1// JavaScript Document 2(function($){ 3 $(function(){ 4 var loadTotal = $("#header-include-container,#footer-include-container,#relatedlinks-include-container,#magazine-include-container").length; 5 var loadedCount = 0; 6 var elemArr = []; 7 8 /*ããã*/ 9 if($("#header-include-container").length == 1){ 10 $.ajax({ 11 url:"/ajax/assets/let/header", 12 dataType:"html", 13 cache:false, 14 success:function(res){ 15 loaded("#header-include-container", res); 16 } 17 }); 18 } 19 20 /*ããã¿*/ 21 if($("#footer-include-container").length == 1){ 22 $.ajax({ 23 url:"/assets/let/footer/footer.html", 24 dataType:"html", 25 cache:false, 26 success:function(res){ 27 loaded("#footer-include-container", res); 28 } 29 }); 30 } 31 32 /*ãã¬ã¸ã³*/ 33 if($("#magazine-include-container").length == 1){ 34 $.ajax({ 35 url:"/magazine/module/top_news.html", 36 dataType:"html", 37 cache:false, 38 success:function(res){ 39 loaded("#magazine-include-container", res); 40 } 41 }); 42 } 43 44 /*related links*/ 45 if($("#relatedlinks-include-container").length == 1){ 46 $.ajax({ 47 url:"/assets/let/footer/relatedlinks.html", 48 dataType:"html", 49 cache:false, 50 success:function(res){ 51 loaded("#relatedlinks-include-container", res); 52 } 53 }); 54 } 55 56 function loaded(elemStr, res){ 57 elemArr.push({e:elemStr, html:res}); 58 loadedCount++; 59 if(loadedCount == loadTotal) { 60 for(var v in elemArr){ 61 $(elemArr[v].e).append(elemArr[v].html); 62 } 63 COMMON.ready(); 64 } 65 } 66 }); 67 68 $(window).on('load',function(){ 69 var ww = $(window).width(), 70 naviLeft = $('.header:not(.is-clone) .nav-global').get( 0 ).offsetLeft, 71 $menu = $('.header:not(.is-clone) .megamenu'); 72 $menu.css('left', -naviLeft); 73 }); 74 75 $(window).on('load resize', function(){ 76 var ww = $(window).width(), 77 naviLeft = $('.header:not(.is-clone) .nav-global').get( 0 ).offsetLeft, 78 $menu = $('.header:not(.is-clone) .megamenu'); 79 $menu.css('left', -naviLeft); 80 }); 81 82})(jQuery);
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.