var DovizKuru = DovizKuruCek("http://turkanlargayrimenkul.com/getDoviz.php");$(".dolar-alis").text(DovizKuru["DolarAlis"]);$(".dolar-satis").text(DovizKuru["DolarSatis"]);$(".euro-alis").text(DovizKuru["EuroAlis"]);$(".euro-satis").text(DovizKuru["EuroSatis"]);$(".gbp-alis").text(DovizKuru["GbpAlis"]);$(".gbp-satis").text(DovizKuru["GbpSatis"]);
$(document).ready(function(e) {
// Function to update counters on all elements with class counter
var doUpdate = function() {
$('.countdown').each(function() {
var count = parseInt($(this).html());
if (count !== 0) {
$(this).html(count - 1);
}else{
$(".yukleniyor").fadeIn(100);
//$( ".gidecekadres" ).trigger( "click" );
window.location=decodeURIComponent("https");
return false;
}
});
};
// Schedule the update to happen once every second
setInterval(doUpdate, 1000);
});