1//ãã¼ã¸å ãªã³ã¯ãã£ãã---------------------------------------------------- 2 3jQuery(function(){ 4 jQuery('a[href^="#"]').click(function(){ 5 var speed = 500; 6 var href= jQuery(this).attr("href"); 7 var target = jQuery(href == "#" || href == "" ? 'html' : href); 8 var position = target.offset().top; 9 jQuery("html, body").animate({scrollTop:position}, speed, "swing"); 10 return false; 11 }); 12}); 13 14 15//ã¹ããã¡ãã¥ã¼ç¨---------------------------------------------------- 16 17jQuery(function($){ 18 $("#spnavbtn").on("click", function() { 19 $("#spnavbtn div").toggleClass("active"); 20 $("#spnavbtn p").toggleClass("activete"); 21 $("#spnav .trigger").toggleClass("open"); 22 $(".hyde").toggleClass("hydebg"); 23 }); 24}); 25jQuery(function($){ 26 $(".open1").on("click", function() { 27 $(this).next().slideToggle("fast"); 28 $("#spnav .subnav").toggleClass("drop1"); 29 }); 30}); 31jQuery(function($){ 32 $(".open2").on("click", function() { 33 $(this).next().slideToggle("fast"); 34 $("#spnav .subnav").toggleClass("drop2"); 35 }); 36}); 37jQuery(function($){ 38 $(".open3").on("click", function() { 39 $(this).next().slideToggle("fast"); 40 $("#spnav .subnav").toggleClass("drop3"); 41 }); 42}); 43 44jQuery(function(){ 45 var scrolled; 46 var windowHeight; 47 var elements = jQuery(".j-scroll-switch"); 48 var jAnimeElement; 49 function initCheck(){ 50 windowHeight = jQuery(window).height(); 51 scrolled = jQuery(window).scrollTop() + Math.floor(windowHeight * 0.75); 52 } 53 function scrollCheck(){ 54 jQuery.each(elements, function(){ 55 if(scrolled >= jQuery(this).offset().top){ 56 jQuery(this).addClass("on"); 57 if ( jQuery(this).hasClass("j-anime") && !jQuery(this).hasClass("j-moving") ) { 58 jAnimeElement = jQuery(this).addClass("j-moving"); 59 jAnime = setTimeout(jAnimeSample, 100); 60 } 61 } 62 }); 63 check = setTimeout(scrollCheck, 100); 64 } 65 jQuery(window).on("load scroll resize", initCheck); 66 var check = setTimeout(scrollCheck, 400); 67}); 68 69 70//ã¡ãã¥ã¼åºå®ç¨ï¼ä½¿ç¨æ¦ãå ´åã¯ãããã²ã¼ã·ã§ã³åã®é«ãã確ä¿ããªããï¼---------------------------------------------------- 71 72jQuery(function($) { 73var bt = $(".navwrap").offset().top; 74var ds = 0; 75 76$(document).scroll(function(){ 77 ds = $(this).scrollTop(); 78 79 if (bt <= ds) { 80 $(".navwrap").addClass('fixed'); 81 $(".header").addClass('fixed'); 82 } else if (bt >= ds) { 83 $(".navwrap").removeClass('fixed'); 84 $(".header").removeClass('fixed'); 85 } 86 }); 87}); 88 89//googlemap---------------------------------------------------- 90 91function initialize() { 92 var latlng = new google.maps.LatLng(32.806002, 130.711296); 93 var myOptions = { 94 zoom: 18,/*æ¡å¤§æ¯ç*/ 95 center: latlng,/*表示æ å ã®ä¸å¿ç¹*/ 96 scrollwheel: false, 97 mapTypeControlOptions: { mapTypeIds: ['sample', google.maps.MapTypeId.ROADMAP] }/*表示ã¿ã¤ãã®æå®*/ 98 }; 99 var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions); 100 var styleOptions = [ 101 { 102 "stylers": [ 103 { 104 "hue": "#000000" 105 }, 106 { 107 "saturation": -100 108 } 109 ], 110 "elementType": "all", 111 "featureType": "all" 112 } 113]; 114 var styledMapOptions = { name: 'cube' } 115 var sampleType = new google.maps.StyledMapType(styleOptions, styledMapOptions); 116 map.mapTypes.set('sample', sampleType); 117 map.setMapTypeId('sample'); 118 var image = 'http://cubetest.net/nishida/wp-content/uploads/mapicon.png'; 119 var marker = new google.maps.Marker({ 120 position: latlng, 121 map: map, 122 icon: image, 123 animation: google.maps.Animation.DROP, 124 raiseOnDrag:true 125 }); 126 google.maps.event.addListener(marker, 'click', toggleBounce); 127 function toggleBounce() { 128 if (marker.getAnimation() != null) { 129 /* ã¢ãã¡ã¼ã·ã§ã³ç¡å¹å */ 130 marker.setAnimation(null); 131 } else { 132 /* ã¢ãã¡ã¼ã·ã§ã³ï¼é£ã³è·³ããï¼ */ 133 marker.setAnimation(google.maps.Animation.BOUNCE); 134 } 135 } 136 var marker = new google.maps.Marker(markerOptions); 137ã/*ã¢ã¤ã³ã³è¨å®ããã¾ã§â²*/ 138 139 /*åå¾ã¹ã¿ã¤ã«ã®è²¼ãä»ã*/ 140} 141google.maps.event.addDomListener(window, 'load', initialize);
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.