This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
birler = ["","Bir","İki","Üç","Dört","Beş","Altı","Yedi","Sekiz","Dokuz"] | |
onlar = ["","On","Yirmi","Otuz","Kırk","Elli","Altmış","Yetmiş","Seksen","Doksan"] | |
def okunus(sayı): | |
birinci = sayı % 10 | |
ikinci = sayı // 10 | |
return onlar[ikinci] + " " + birler[birinci] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).scroll(function(){ | |
if($(this).scrollTop() + 10 > 600) | |
$(".yan_menu").stop(true).delay(500).animate({"top": $(this).scrollTop() + 10},{ duration:1000, easing: "easeOutExpo" }) | |
else | |
$(".yan_menu").stop(true).delay(500).animate({"top": 600},{ duration:1000, easing: "easeOutExpo" }) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).on('scroll.custom', function () { | |
var height = $(window).scrollTop(); | |
if (height > 300) { | |
$('.counter-1, .counter-2, .counter-3, .counter-4').counter(); | |
$(window).off('scroll.custom') | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.scrollLeft = (document.body.scrollWidth - document.body.clientWidth) / 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
var url = window.location.href; | |
$('.social-share a.facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + url); | |
$('.social-share a.twitter').attr('href', 'https://twitter.com/home?status=' + url); | |
//... other share links ... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.toAdd').hide(); | |
var i = 0; | |
$('#add input').click(function () { | |
i=(i >= 4)?0:i; | |
//or if(i >= 4){ i=0;} | |
$('.toAdd').eq(i).show().siblings().not(':first').hide(); | |
i++; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"il": "Adana", | |
"plaka": 1, | |
"ilceleri": [ | |
"Aladağ", | |
"Ceyhan", | |
"Çukurova", | |
"Feke", | |
"İmamoğlu", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<hta:application applicationname="HTA Test" scroll="yes" singleinstance="yes"> | |
<script type="text/javascript"> | |
function openURL() | |
{ | |
var shell = new ActiveXObject("WScript.Shell"); | |
shell.run("Firefox http://www.google.com"); | |
} | |
</script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', 'a[href^="#"]', function (event) { | |
event.preventDefault(); | |
$('html, body').animate({ | |
scrollTop: $($.attr(this, 'href')).offset().top | |
}, 500); | |
}); |