Skip to content

Instantly share code, notes, and snippets.

@ramazansancar
Created December 2, 2022 14:03
Show Gist options
  • Save ramazansancar/e56c5f906a1f90080b1b9f5aa4a07f10 to your computer and use it in GitHub Desktop.
Save ramazansancar/e56c5f906a1f90080b1b9f5aa4a07f10 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>İÜ Bilgisayar Programcılığı Final Tarihi</title>
<style>
body {
text-align: center;
padding: 70px 50px;
background: #0D1A29;
font-family: "Helvetica Neue", "Open Sans", helvetica, arial, sans-serif;
}
#timer {
font-size: 3em;
font-weight: 100;
color: white;
text-shadow: 0 0 20px #48C8FF;
}
#timer div {
display: inline-block;
min-width: 90px;
}
#timer div span {
color: #B1CDF1;
display: block;
font-size: 0.35em;
font-weight: 400;
}
</style>
</head>
<body>
<h1 style="color:white;">%u0130 Bilgisayar Programc%u0131l%u0131%u011F%u0131</h1>
<h1 style="color:Grey;">Final S%u0131nav%u0131na kalan sre </h1>
<h1 style="color:Red;">24 Aral%u0131k 2022 Saat:14:00(Alan Dersleri)</h1>
<!-- partial:index.partial.html -->
<div id="timer"></div>
<!-- partial -->
<script language="Javascript">
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
if(EnableRightClick==1){ return true; }
else {return false; }
}
function mousehandler(e){
if(EnableRightClick==1){ return true; }
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
var myevent = (isNS) ? e : window.event;
if (myevent.keyCode==96)
EnableRightClick = 1;
return;
}
//document.oncontextmenu = mischandler;
//document.onkeypress = keyhandler;
//document.onmousedown = mousehandler;
//document.onmouseup = mousehandler;
</script>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"></body>
<script type="text/javascript">
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<body onkeydown="return false">
<script type="text/javascript">
function updateTimer() {
future = Date.parse("December 24, 2022 14:00:00");
now = new Date();
diff = future - now;
days = Math.floor( diff / (1000*60*60*24) );
hours = Math.floor( diff / (1000*60*60) );
mins = Math.floor( diff / (1000*60) );
secs = Math.floor( diff / 1000 );
d = days;
h = hours - days * 24;
m = mins - hours * 60;
s = secs - mins * 60;
document.getElementById("timer")
.innerHTML =
'<div>' + d + '<span>Gun</span></div>' +
'<div>' + h + '<span>Saat</span></div>' +
'<div>' + m + '<span>Dakika</span></div>' +
'<div>' + s + '<span>Saniye</span></div>' ;
}
setInterval('updateTimer()', 1000 );
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment