1$(function(){ 2 var $loading = $(".loading"); 3 var $loadingIn = $(".loading-in"); 4 var $loadingOut = $(".loading-out"); 5 var $loadingCharacter = $("#loading_character"); 6 var $textLoading = $(".text_loading"); 7 var $fadeContents = $("h2, .contents-fade"); 8 9 var item = []; 10 var length = $("img").length; 11 for(var cnt = 0; cnt < length; cnt++) { 12 item[cnt] = $("img").eq(cnt).attr("src"); 13 } 14 var ua = navigator.userAgent.toLowerCase(); 15 var isIE11 = (ua.indexOf('trident/7') > -1); 16 var isEdge = (ua.indexOf('edge') > -1); 17 var isIE = isEdge || isIE11; 18 var link = ""; 19 20 $fadeContents.addClass("short-delay").removeClass("hide"); 21 22 $(window).on("load", function(){ 23 openingLoad(); 24 }); 25 function openingLoad() { 26 if($("body").attr("id") == "top") { 27 $loadingCharacter.removeClass("ready"); 28 29 if(isLoadingCut) { 30 $("body").addClass("enable-scroll"); 31 $("html, body").removeClass("loading-bg"); 32 $("#wrapper").removeClass("hide"); 33 } 34 setTimeout(function(){ 35 $textLoading.removeClass("hide"); 36 setTimeout(function(){ 37 $textLoading.addClass("hide"); 38 setTimeout(function(){ 39 $loadingCharacter.addClass("remove"); 40 $fadeContents.removeClass("hide"); 41 $loadingOut.addClass("remove"); 42 if(!isLoadingCut) { 43 $("body").addClass("enable-scroll"); 44 $("html, body").removeClass("loading-bg"); 45 $("#wrapper").removeClass("hide"); 46 } 47 $(window).trigger("scroll"); 48 }, 400); 49 }, 600); 50 }, 1200); 51 } 52 else { 53 $("body").addClass("enable-scroll"); 54 var delay = 0; 55 if($("body").attr("id") == "character") delay = 400; 56 setTimeout(function(){ 57 $(window).trigger("scroll"); 58 }, delay); 59 } 60 } 61 62 //ym selector 63 $('select#ym_selector').on("change",function(){ 64 console.log("onchange"); 65 66 67 var url =location.href; 68 url = url.replace(/\?.*$/,""); 69 if($(this).val()){ 70 location.href = url + "?ym=" +$(this).val(); 71 }else{ 72 location.href = url; 73 } 74 }); 75 76 //æ»ã 77 $(function () { 78 $(window).scroll(function () { 79 if ($(this).scrollTop() > 50) { 80 $('.bback').fadeIn(); 81 } else { 82 $('.bback').fadeOut(); 83 } 84 }); 85 86 var ans; //1ã¤åã®ãã¼ã¸ãåä¸ãã¡ã¤ã³ãã©ãã 87 var bs = false; //unloadã¤ãã³ããçºçãããã©ãã 88 var ref = document.referrer; 89 $(window).bind("unload beforeunload",function(){ 90 bs = true; 91 }); 92 re = new RegExp(location.hostname,"i"); 93 if(ref.match(re)){ 94 ans = true; 95 }else{ 96 ans = false; 97 } 98 $('.bback').bind("click",function(){ 99 var that = this; 100 if(ans){ 101 history.back(); 102 setTimeout(function(){ 103 if(!bs){ 104 location.href = "/news/"; 105 } 106 },100); 107 }else{ 108 location.href = "/news/"; 109 } 110 return false; 111 }); 112 }); 113 114 115});
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.