Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
yemreak committed Oct 29, 2023
0 parents commit 2352656
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Yönlendirme</title>
</head>
<body>
<script type="text/javascript">
// Slug'ı al
const slug = window.location.pathname;
// Yönlendirme yapılacak URL'i oluştur
const newURL = `https://www.yemreak.com/arsiv/yapay-zeka/${slug}`;
// Yönlendir
window.location.href = newURL;
</script>
</body>
</html>
59 changes: 59 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=https://www.yemreak.com/arsiv/yapay-zeka">
<title>Yönlendirme</title>
<style>
body {
font-family: 'Arial', sans-serif;
height: 100vh;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.container {
text-align: center;
animation: fade 2s;
}
@keyframes fade {
0% { opacity: 0; transform: translateY(30px); }
100% { opacity: 1; transform: translateY(0); }
}
.spinner {
border: 8px solid rgba(255, 255, 255, .3);
border-radius: 50%;
border-top: 8px solid #333;
width: 60px;
height: 60px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div class="container">
<div class="spinner"></div>
Yönlendiriliyorsunuz... Eğer yönlendirme otomatik olarak gerçekleşmezse, <a href="https://www.yemreak.com/arsiv/yapay-zeka">tıklayın</a>.
</div>
<script type="text/javascript">
// Mevcut URL'den slug'ı al
var currentSlug = window.location.pathname;

// Yönlendirme yapılacak URL'i oluştur
var newBaseURL = "https://www.yemreak.com/arsiv/yapay-zeka/";
var newURL = newBaseURL + currentSlug;

// 2 saniye sonra oluşturulan yeni URL'e yönlendirme yap
setTimeout(function(){
window.location.href = newURL;
}, 2000);
</script>
</body>
</html>

0 comments on commit 2352656

Please sign in to comment.