1$(window).on({'load' : function() { 2 3 //ã¦ã£ã³ãã¦ãµã¤ãºåå¾ 4 windowChange(); 5 $(window).resize(function() { 6 windowChange(); 7 }); 8 9 $('video').contextmenu(function() { return false; }); 10 11 if($('html.ccm-toolbar-visible').length == 0) { 12 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 13 $('a[href^="#"]').not('.inline').click(function() { 14 // ã¹ã¯ãã¼ã«ã®é度 15 var speed = 400; // ããªç§ 16 // ã¢ã³ã«ã¼ã®å¤åå¾ 17 var href= $(this).attr("href"); 18 // ç§»åå ãåå¾ 19 var target = $(href == "#" || href == "" ? 'html' : href); 20 // ç§»åå ãæ°å¤ã§åå¾ 21 var position = target.offset().top; 22 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 23 $('body,html').animate({scrollTop:position}, speed, 'swing'); 24 return false; 25 }); 26 } // ccm-toolbar-visible==0 27 28 //ã¹ããç¨ã®ã¹ã©ã¤ãã¡ãã¥ã¼ 29 var winW = $(window).width(); 30 if(winW < 768) { 31 $("#menu").click(function () { 32 if($(this).hasClass("on")){ 33 $(this).removeClass("on"); 34 $("#global-nav").slideUp("fast"); 35 } else { 36 $(this).addClass("on"); 37 $("#global-nav").slideDown("fast"); 38 } 39 }); 40 } 41 42 //ã·ã¼ãºéã®ã¹ã©ã¤ãã¡ãã¥ã¼ 43 $(".seeds-box h4").click(function () { 44 if($(this).hasClass("on")){ 45 $(this).removeClass("on"); 46 $(this).next(".seeds-wrap").slideUp("fast"); 47 } else { 48 $(this).addClass("on"); 49 $(this).next(".seeds-wrap").slideDown("fast"); 50 } 51 }); 52 //ã©ã¤ãã¹ã¿ã¤ã«ã®ã¹ã©ã¤ãã¡ãã¥ã¼ 53 $(".more-area .more").click(function () { 54 if($(this).hasClass("on")){ 55 $(this).removeClass("on"); 56 $(this).next(".more-box").slideUp("fast"); 57 } else { 58 $(this).addClass("on"); 59 $(this).next(".more-box").slideDown("fast"); 60 } 61 }); 62 63 //ã·ã¼ãºéã®ãã¼ã«ã«ãã 64 $("#local-nav .click").click(function () { 65 if($(this).hasClass("on")){ 66 $(this).removeClass("on"); 67 $(this).next("ul").slideUp("fast"); 68 } else { 69 $(this).addClass("on"); 70 $(this).next("ul").slideDown("fast"); 71 } 72 return false; 73 }); 74 $("#local-nav .click.on").next("ul").css("display","block"); 75 76 //ãã¼ãã«ã¹ã¯ãã¼ã« 77 $("table.scroll").wrap("<div class='scroll'></div>"); 78 $("table.scrollmb20").wrap("<div class='scrollmb20'></div>"); 79 $("table.teacher-list").wrap("<div class='scroll'></div>"); 80 $("div.scroll").before('<p class="scroll-txt">å·¦å³ã«ã¹ã¯ãã¼ã«ãã¦ã覧ãã ããã</p>'); 81 $("div.scrollmb20").before('<p class="scroll-txt">å·¦å³ã«ã¹ã¯ãã¼ã«ãã¦ã覧ãã ããã</p>'); 82 83 //æ¤ç´¢ 84 $(".search-icon #s-btn").click(function () { 85 if($(this).hasClass("on")){ 86 $(this).removeClass("on"); 87 $("#search").fadeOut(); 88 } else { 89 $(this).addClass("on"); 90 $("#search").fadeIn(); 91 } 92 $('.gsc-input').focus(); 93 }); 94 95 //ãªãã¸ã§ã¯ããã£ãã 96 objectFitImages(); 97 98}}); 99 100 101function windowChange() { 102 var winW = $(window).width(); 103 //var winH = $(window).height(); 104 105 //ã¹ã©ã¤ãã·ã§ã¼ 106 //$(".slick-list li .imgs").removeAttr('style'); 107 if (winW < 768) { 108 var slideH = winW*0.4912; 109 } 110 111 $(".slick-dots").removeAttr('style'); 112 $("#slide .home-title").removeAttr('style'); 113 if (winW < 768) { 114 var slickDotsH = slideH; 115 $(".slick-dots").css("top",slickDotsH); 116 $("#slide .home-title").css("top",slickDotsH); 117 } 118 //ãµã¤ãããã 119 $(".sitemap-nav").children("li:even").addClass("clear-even"); 120 $(".sitemap-nav").children("li:nth-child(3n+1)").addClass("clear-3n"); 121} 122 123$(function(){ 124 //ã°ãã¼ãã«ããã«ã¬ã³ã 125 $('#global-nav').naviRollOver({ 126 keepFlg : true, // è¦ã¤ãã¦ãå¦çç¶ããã 127 hashStrictCheck: true, // # ã¤ãã® URL ãå¥ URL ã¨ãã¦æ±ãã 128 firstStrictCheck: true, // æåã®è¦ç´ ãå³å¯ã«ãã§ãã¯ããã 129 className : 'on' // ã«ã¬ã³ããªã³ã¯ã«ä»ä¸ãããclasså 130 }); 131 //ãã¼ã«ã«ããã«ã¬ã³ã 132 $('#local-nav').naviRollOver({ 133 keepFlg : true, // è¦ã¤ãã¦ãå¦çç¶ããã 134 hashStrictCheck: true, // # ã¤ãã® URL ãå¥ URL ã¨ãã¦æ±ãã 135 //firstStrictCheck: true, // æåã®è¦ç´ ãå³å¯ã«ãã§ãã¯ããã 136 className : 'on' // ã«ã¬ã³ããªã³ã¯ã«ä»ä¸ãããclasså 137 }); 138 //ãã¥ã¼ã¹ã¿ãã«ã¬ã³ã 139 $('.category-tab').naviRollOver({
140 keepFlg : true, // è¦ã¤ãã¦ãå¦çç¶ããã 141 hashStrictCheck: true, // # ã¤ãã® URL ãå¥ URL ã¨ãã¦æ±ãã 142 firstStrictCheck: true, // æåã®è¦ç´ ãå³å¯ã«ãã§ãã¯ããã 143 className : 'on' // ã«ã¬ã³ããªã³ã¯ã«ä»ä¸ãããclasså 144 }); 145 146 //è¦åºã 147 $('.m01:first').addClass("mt0"); 148 $('.m21').wrapInner( '<span></span>' ); 149 150 $(window).bind("scroll", function() { 151 // ããã¥ã¡ã³ãã®é«ã 152 var scrollHeight = $(document).height(); 153 // ã¹ã¯ãã¼ã«ããé«ã 154 var scrollTop = $(window).scrollTop(); 155 // ã¦ã£ã³ãã¦ã®é«ã+ã¹ã¯ãã¼ã«ããé«ãâ ç¾å¨ã®ãããããã®ä½ç½® 156 var scrollPosition = $(window).height() + $(window).scrollTop(); 157 // ããã¿ã¼ã®é«ã 158 //var footHeight = $("#page-footer").height(); 159 var footHeight = $("#page-footer").height() - 40; 160 161 // ãã¼ã¸ããã 162 if ( scrollTop > 200 ) { 163 // gotopã表示 164 $("#page-top").fadeIn("fast"); 165 } else { 166 // å ã«æ»ã 167 $("#page-top").fadeOut("fast"); 168 } 169 // ã¹ã¯ãã¼ã«ä½ç½®ãããã¿ã¼ã¾ã§æ¥ãã 170 if ( scrollHeight - scrollPosition <= footHeight ) { 171 // ããã¿ã¼ã«åºå® 172 $("#page-top").css({"position":"absolute","bottom": "0px"}); 173 $("#page-top").addClass("fix"); 174 $("#side").addClass("bottom"); 175 } else { 176 // ä¸ã«åºå® 177 $("#page-top").css({"position":"fixed","bottom": "0px"}); 178 $("#page-top").removeClass("fix"); 179 $("#side").removeClass("bottom"); 180 } 181 // ãããã¼ã»ã°ããã 182 var winW = $(window).width(); 183 var headrNum = 56; 184 if(winW > 1039){ 185 headrNum = 80; 186 } 187 if ( scrollTop > headrNum ) { 188 $("#page-header").addClass("fix"); 189 $("#global-nav").addClass("fix"); 190 } else { 191 $("#page-header").removeClass("fix"); 192 $("#global-nav").removeClass("fix"); 193 } 194 195 }); 196 197});
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.