48 lines
2.2 KiB
HTML
48 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<title>Furkan Karlıoğlu</title>
|
||
<link href="img/icon.ico" rel="shortcut icon" type="image/x-icon">
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-XSS-Protection" content="1; mode=block">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="robots" content="INDEX, FOLLOW">
|
||
<meta name="publisher" content="https://furk4ngg.github.io">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="keywords" content="Software,Program Languages,Artificial Intelligence,Cybersecurity,Mobile App,Mobile App Development,Robotics Coding,Portfolio,Experience,Enterprising,Software Developer">
|
||
<meta name="description" content="This portfolio site is a platform I designed to share my passion and skills in the software world with you.Unlock innovation and visit my website."/>
|
||
<meta property="og:description" content="Furkan Karlioglu's personal web site." />
|
||
<link rel="stylesheet" href="CSS/1.css">
|
||
</head>
|
||
<body>
|
||
<div id="body_index"><div id="ref_div" align="center"><h1 id="ref">-You are being redirected to the homepage-</h1></div></div>
|
||
<script>
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
const userLang = navigator.language || navigator.userLanguage;
|
||
|
||
// İçeriği dil tercihine göre yönlendirme
|
||
if (userLang.startsWith('tr')) {
|
||
window.location.href = '/home_tr'; // Türkçe içerik
|
||
} else {
|
||
window.location.href = '/home_en'; // İngilizce içerik
|
||
}
|
||
});
|
||
|
||
const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled
|
||
const showAlert = e => {
|
||
e.preventDefault(); // preventing its default behaviour
|
||
return alert("Sorry, you can't view or copy source codes this way!");
|
||
}
|
||
document.addEventListener("contextmenu", e => {
|
||
showAlert(e); // calling showAlert() function on mouse right click
|
||
});
|
||
document.addEventListener("keydown", e => {
|
||
// calling showAlert() function, if the pressed key matched to disabled keys
|
||
if((e.ctrlKey && disabledKeys.includes(e.key)) || e.key === "F12") {
|
||
showAlert(e);
|
||
}
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|