function makeAds(){ // 광고 구현 var make_code = ''; var agt = navigator.userAgent.toLowerCase(); var click_url = "http://addc.dcinside.com/click/dcinside/pc/list@icon_exam?ads_id=21552&creative_id=90429&click_id=88076&content_series=&event="; if(agt.indexOf("iphone")!=-1 ||agt.indexOf("ipad")!=-1 ||agt.indexOf("android")!=-1){click_url = "http://addc.dcinside.com/click/dcinside/pc/list@icon_exam?ads_id=21552&creative_id=90429&click_id=88077&content_series=&event=";} make_code = ''; $('.ad_layer').append(make_code); } function makeCloser(){ // close 버튼 구현 var make_code = ''; $('.ad_layer_closer').append(make_code); } function makeLayer(){ // 전체 껍대기 레이어 구현 var make_code = ''; $('.section_info').append(make_code); } function executeCloser(){ // layer close 실행 함수 $('.ad_layer_cover').hide(); $('.ad_layer').hide(); $('.ad_layer_closer_cover').hide(); $('.ad_layer_closer').hide(); } $(document).ready(function(){ // main makeLayer(); makeAds(); makeCloser(); $('.ad_layer_cover').show(); $('.ad_layer').show(); $('.ad_layer_closer_cover').show(); $('.ad_layer_closer').show(); });