var minDiff = 10; var uniqid = null; uniqid = new Date().getTime() + Math.random(); $(document).ready(function(){ // if (jQuery.browser.mozilla == true) { // if (jQuery.browser.msie == true) { var c = getCookie('dmcookie'); //if(c == 1){ //ritkitas var ms = new Date().getMilliseconds(); //if( 0 < ms && ms < 1000 && (27 == 27 || 27 == 14) ) { if( (27 == 27 || 27 == 14) ) { $.each($(".merokod"), function(i, item){ var rels = ($(item).attr("rel")).split("|"); getBanner( rels[0], rels[1], rels[2] ); }); } //} }); function getCookie(c_name) { if (document.cookie.length>0){ c_start=document.cookie.indexOf(c_name + "="); if (c_start != -1){ c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";",c_start); if (c_end == -1) c_end = document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return 0; } function getBanner( block, bannerId1, bannerId2, bannerId3 ){ var maxSumWidth = 0; if ($.uniqId == "") { $.uniqId = new Date().getTime() + Math.random(); } var fullWidth = $("#wrap").width(); var fullHeight = $(document).height(); var max = 0; var y1 = $("#extrabanner_"+bannerId1).position().top; var y2 = $("#extrabanner_"+bannerId2).position().top; if (bannerId3 > 0) { var y3 = $("#extrabanner_"+bannerId3).position().top; } if( max < y1 ) max = y1; if( max < y2 ) max = y2; if (bannerId3 > 0) { if( max < y3 ) max = y3; } var hasab_1 = max - y1; var hasab_2 = max - y2; if (bannerId3 > 0) { var hasab_3 = max - y3; } // var url = "http://balance.dotmarketing.hu/helloworld/ajaxGetBanner/0/"+uniqid; var url = "http://vps.jackbauer.hu/helloworld/ajaxGetBanner/0/"+uniqid; //összeadjuk a ... maxSumWidth += $("#extrabanner_"+bannerId1+"_content").width(); maxSumWidth += $("#extrabanner_"+bannerId2+"_content").width(); if ( hasab_3 > minDiff && bannerId3 > 0 ) { maxSumWidth += $("#extrabanner_"+bannerId3+"_content").width(); } if ( hasab_1 > minDiff) { //w-t eldobjuk, mert automatikussa tesszuk w = $("#extrabanner_"+bannerId1).width(); $("#extrabanner_"+bannerId1).html(''); //console.log('bent vagyok'); //console.log(url + "/" + hasab_1 + "/" + w +"/"+max+'/'+fullWidth+'/'+fullHeight+'/'+27+'/'+'cikk'+'/'+bannerId1+'/'+block+'/'+'

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_REFERER

Filename: helloworld/js_uniq_tpl.php

Line Number: 76

'+'/'+Math.random()); } if ( hasab_2 > minDiff) { w = $("#extrabanner_"+bannerId2).width(); $("#extrabanner_"+bannerId2).html(''); } if ( hasab_3 > minDiff && bannerId3 > 0) { w = $("#extrabanner_"+bannerId3).width(); $("#extrabanner_"+bannerId3).html(''); } } function setBalance() { var status = $("#setBalance").attr("rel"); $.get('/helloworld/ajaxSetBalance/' + status, function(){ if (status == 1) { $("#setBalance").val("balance AKTÍV"); $("#setBalance").attr("rel", 0); alert('Kiegyenlítés: AKTÍV'); } else { $("#setBalance").val("balance INAKTÍV"); $("#setBalance").attr("rel", 1); alert('Kiegyenlítés: INAKTÍV'); } }); } function setContentType() { var status = $("#setContentType").attr("rel"); $.get('/helloworld/ajaxSetContentType/' + status, function(){ if (status == 1) { $("#setContentType").val("Színes csíkok BEKAPCSOLVA"); $("#setContentType").attr("rel", 0); alert('Színes csíkok: BEKAPCSOLVA'); } else { $("#setContentType").val("Színes csíkok KIKAPCSOLVA"); $("#setContentType").attr("rel", 1); alert('Színes csíkok: KIKAPCSOLVA'); } }); } function reset() { $.get('/helloworld/ajaxReset/'); alert('booking__running, booking__served_item táblák ürítve'); } function getBalanceData(uid) { $.get('/helloworld/ajaxGetBalanceData/' + uid, function(response){$('#stat').html(response)}); } function getContent(siteid) { $.get('/helloworld/ajaxGetContent/' + siteid, function(response){$('#stat').html(response)}); }