window.onload=function(){if(_widget_event.allow()){if("undefined"==typeof jQuery){var e=document.createElement("script");e.src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",e.onload=function(){_widget_event.init(_widgetEvent)},document.getElementsByTagName("head")[0].appendChild(e)}else _widget_event.init(_widgetEvent)}};var _widget_event={url:"https://handbook.wecampus.kr/daelim/",icon:function(){return"daelim/"+("00"+String(Math.floor(27*Math.random()+1))).slice(-2)+".png"},domain:"design.werodan.com;home.applykr.com;",domain_deny:"",fadein_time:3,allow:function(){return!(_widget_event.domain_deny.indexOf(window.location.hostname.toLowerCase())>=0)&&!!(_widget_event.domain.indexOf(window.location.hostname.toLowerCase())>=0||_widget_event.domain.indexOf("*")>=0)},init:function(e){$.each(e,function(e,t){_widget_event[e]=t}),_widget_event.display()},display:function(){let e=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),t=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth),n=parseInt(Math.random()*(e-100)),i=parseInt(Math.random()*(t-100)),o=7*parseInt(100*Math.random()%5)*(Math.random()>.5?-1:1);if(""==_widget_event.url){console.log("url 값이 없습니다.");return}html_body='',html_head="",$("head").append(html_head),$("body").append(html_body),$(".widget_event").fadeIn(1e3*_widget_event.fadein_time)},open:function(){var e=window.screen.width/4*3-200,t=window.screen.height/2-400;window.open(_widget_event.url,"widget","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, height=800, width=400, left="+e+", top="+t)}};