1var main = function(){ 2 3 return { 4 init : function(){ 5 6 $('.gov_wrap.area .more,.gov_wrap.area .tab_layer').hover(function() { 7 $('.tab_layer').show(); 8 }, function() { 9 $('.tab_layer').hide(); 10 }); 11 12 13 $(document).on('click','.gov_wrap li > .lnk',function(){ 14 var ajaxUrl = './ajax/json.local.news.html'; 15 var code = $(this).attr('data-code'); 16 var gnb = $(this).attr('data-gnb'); 17 var recnum = $(this).attr('data-num'); 18 var target = $(this).attr('data-area'); 19 var data = {'gnb':gnb,'code':code,'recnum':recnum}; 20 21 $('.gov_wrap.'+target+' li').removeClass('current'); 22 $(this).parent('li').addClass('current'); 23 24 if($('.tab_layer li').hasClass('current')){ 25 var current = $('.tab_layer li.current > a').text(); 26 $('.gov_wrap.area .more > a').text(current); 27 $('.gov_wrap.area .more > a').addClass('current'); 28 } else { 29 $('.gov_wrap.area .more > a').text('ë보기'); 30 $('.gov_wrap.area .more > a').removeClass('current'); 31 } 32 33 34 $.ajax({ 35 type : "POST" 36 ,async : true 37 ,url : ajaxUrl 38 ,data : data 39 ,cache : false 40 ,dataType : "json" 41 ,success: function(response) { 42 $('#'+target).html(response.html); 43 } 44 }) 45 }) 46 47 $('.gov_wrap .tab > li.current .lnk').trigger('click'); 48 } 49 } 50 51}(); 52 53/************************ 54var adLayer = function(){ 55 56 return { 57 init : function(){ 58 $.ajax({ 59 type : "POST" 60 ,async : true 61 ,url : './ajax/json.pop.ad.html' 62 ,cache : false 63 ,dataType : "json" 64 ,success: function(response) { 65 var uid = response.uid; 66 67 if(!$.cookie('popup'+uid) && uid){ 68 $('#modal_popup').modal('show'); 69 $('#modal_popup .modal-body ').html(response.html); 70 } 71 } 72 }) 73 74 $('#btnClose').click(function(){ 75 var uid = $('#modal_popup .popLayer').attr('data-uid'); 76 $.cookie('popup'+uid,'1',{expires:1}); 77 }) 78 } 79 80 } 81 82}(); 83************************/ 84 85jQuery(document).ready(function() { 86 main.init(); 87 //adLayer.init(); 88});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.