1(function () { 2'use strict'; 3 4 // handlers in DOM loaded. 5 $(function () { 6 7 //toggle global menu for sp 8 $(document).on('click', '.p-site-header__menubutton', function (e) { 9 var $self = $(this); 10 var $menu = $('.p-site-header__menu'); 11 12 e.preventDefault(); 13 $self.toggleClass('is-open'); 14 $menu.stop().slideToggle(); 15 }); 16 }); 17 18 // handlers in all contents loaded. 19 window.addEventListener('load', function () {}); 20}()); 21 22// topTop 23$(function() { 24 $('.btn-top').click(function(){ 25 $('html,body').animate({scrollTop: 0}, 500, 'swing'); 26 }); 27 28 var showTop = 100; 29 30 $(window).on('load scroll resize',function(){ 31 if($(window).scrollTop() >= showTop){ 32 $('.btn-top').fadeIn('normal'); 33 } else if($(window).scrollTop() < showTop){ 34 $('.btn-top').fadeOut('normal'); 35 } 36 37 var totalHeigth = $(document).height(); 38 var heigth = $(window).height() + $(window).scrollTop(); 39 var contHeigth = totalHeigth - heigth; 40 41 if(contHeigth <= $('footer').height()){ 42 $('.btn-totop').addClass("onfoot"); 43 } else { 44 $('.btn-totop').removeClass("onfoot"); 45 } 46 }); 47}); 48 49//ã¹ã ã¼ãºã¹ã¯ãã¼ã« 50$(document).on('click', 'a[href^="#"]', function (e) { 51 var $self = $(this); 52 var $target = $($self.attr('href')); 53 var wwidth = $(window).width(); 54 var dist = 0; 55 56 e.preventDefault(); 57 58 if ($target.length > 0) { 59 dist = $target.offset().top; 60 } 61 62 dist = dist < 0 ? 0 : dist; 63 64 if (wwidth < 768) { 65 dist = dist - 77; 66 } 67 68 $('html, body').animate({ 69 scrollTop: dist 70 }); 71}); 72 73 74//æ°ãµã¤ãå æ¤ç´¢ã¾ã§ã®ä¸æçä½¿ç¨ 75//ãµã¤ãå æ¤ç´¢CloudWANã®ã¿è¡¨ç¤ºç¨JS 76$(function(){ 77 $("#cse-search-box").submit(function(){ 78 if($("#searchInput").val() != ""){ 79 var jumpURL = "http://www.nttpc.co.jp/search/?q=site:cloudwan.nttpc.co.jp+" + $("#searchInput").val() 80 window.open( jumpURL ) ; 81 } 82 return false; 83 }); 84}); 85 86//ãµã¤ãè³æè«æ±ãã¿ã³ 87// $(function() { 88// var btn = $('.side_download_cta'); 89// //ã¹ã¯ãã¼ã«ãã¦ãã¼ã¸ããããã250ã«éããããã¿ã³ã表示 90// $(window).on('load scroll', function(){ 91// if($(this).scrollTop() > 250) { 92// btn.addClass('active'); 93// }else{ 94// btn.removeClass('active'); 95// } 96// }); 97 98// btn.on('click',function () { 99// $('body,html').animate({ 100// scrollTop: 0 101// }); 102// }); 103// }); 104 105 // $(function() { 106 // var btn = $('.floating_sdwanbook_cta'); 107// //ã¹ã¯ãã¼ã«ãã¦ãã¼ã¸ããããã250ã«éããããã¿ã³ã表示 108// $(window).on('load scroll', function(){ 109// if($(this).scrollTop() > 250) { 110// btn.addClass('active'); 111// }else{ 112// btn.removeClass('active'); 113// } 114// }); 115 116 // btn.on('click',function () { 117 // $('body,html').animate({ 118 // scrollTop: 0 119 // }); 120 // }); 121 122 123 //click 124// $(".optimize-close").click(function(){ 125// $(".floating_sdwanbook_cta").fadeOut(); 126// $(window).off("scroll", display); 127// }); 128// }); 129 130//ãããã¿ã³ã§ç»åãæ¶ããã ãã«å¤æ´ 131$(function () { 132 $(".optimize-close").click(function(){ 133 $(".floating_sdwanbook_cta").fadeOut(); 134 $(window).off("scroll", display); 135 }); 136}); 137
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.