var oLuminous = new Object();(function () { oLuminous.init = function(){ oLuminous.getData(); }; oLuminous.getData = function(){ try { var arrData = new Array(); if(navigator.userAgent.indexOf("iPhone") > -1 || navigator.userAgent.indexOf("iPod") > -1 || navigator.userAgent.indexOf("iPad") > -1 ){ luminous_setting.sUrl = luminous_setting.sUrlIos; }else if(navigator.userAgent.indexOf("Android") > -1){ luminous_setting.sUrl = luminous_setting.sUrlAnd; }else{ luminous_setting.sUrl = luminous_setting.sUrlEtc; } if(luminous_setting.sTxt.length>0){ $("#ia").html(luminous_setting.sTxt); $("#img_area label").css({"margin-left":"40px"}); } else { $("#img_area label").css({"margin-left":"0px"}); } if(luminous_setting.sColor.length<1){ luminous_setting.sColor = "#000";} $("#wrap").css({"background":luminous_setting.sColor,"width":"100%","height":"100px"}); $("#area_slide").css({"background":"url('"+luminous_setting.sImgBanner+"')no-repeat right","width":"320px","display":"block","background-size":"auto 100px","position":"relative"}); } catch(e) { console.log('getData error : '+e.message); return''; } }; oLuminous.gotoService = function(){ try { $("#img_area").css({"background":"url('"+luminous_setting.sImgSlide+"')no-repeat center","width":"240px","height":"32px","border-radius":"30px 30px 30px 30px","-moz-border-radius":"20px","-webkit-border-radius":"20px","line-height":"28px","background-size":"auto 32px"}); $("#img_area").click(function(){ top.location.href=luminous_setting.sUrl; }); $("#rg").css({"display":"none"}); $("#ia").css({"display":"none"}); var l_rndom=new Date().getTime(); $.ajax({ type: "GET", async: true, data: luminous_setting.sClickUrl.substring(luminous_setting.sClickUrl.lastIndexOf("?")+1,luminous_setting.sClickUrl.length)+"&r="+l_rndom, url: luminous_setting.sClickUrl.substring(0,luminous_setting.sClickUrl.lastIndexOf("?")), cache: false, dataType: "jsonp", jsonp: "jquerycallback", success: function(data) { setTimeout("top.location.href='"+luminous_setting.sUrl+"'",208); } }); } catch(e) { console.log('gotoService error : '+e.message); return''; } }; oLuminous.setSlideMove = function(){ try { if($('#rg').val() >= 60) { oLuminous.gotoService(); }else{ setTimeout(function(){$('#rg').val(0);},1000); } } catch(e) { console.log('setSlideMove error : '+e.message); return''; } }; oLuminous.setClose = function(){ try { $("body").css({"display":"none"}); } catch(e) { console.log('setClose error : '+e.message); return''; } }; })();$(document).ready(function(){ oLuminous.init();$("#img_area p").css({"display":"none"}); var pPage = "02QY"; if(pPage == "02QY" || pPage =="05hv"){ $("#lumi_ad #area_slide").click(function(){ oLuminous.gotoService(); }); }});