1// JavaScript Document 2/* ------------------------------------ 3 * ãã¼ãã£ã³ã° 4 *-------------------------------------*/ 5/* ãã¼ã¸ããã 6 *-------------------------------------*/ 7/* colorboxï¼ãã©ã°ã¤ã³å®è¡ï¼ */ 8/*-------------------------------------*/ 9/* swiperï¼ãã©ã°ã¤ã³å®è¡ï¼ */ 10/*-------------------------------------*/ 11 12 13/*-------------------------------------*/ 14 // ãã¼ãã£ã³ã° 15/*-------------------------------------*/ 16//ããã¹ãã®ã«ã¦ã³ãã¢ãã+ãã¼ã®è¨å® 17var bar = new ProgressBar.Line(splash_text, {//idåãæå® 18 easing: 'easeInOut',//ã¢ãã¡ã¼ã·ã§ã³å¹ælinearãeaseInãeaseOutãeaseInOutãæå®å¯è½ 19 duration: 1000,//æéæå®(1000ï¼1ç§) 20 strokeWidth: 0.2,//鲿ã²ã¼ã¸ã®å¤ªã 21 color: '#555',//鲿ã²ã¼ã¸ã®ã«ã©ã¼ 22 trailWidth: 0.2,//ã²ã¼ã¸ãã¼ã¹ã®ç·ã®å¤ªã 23 trailColor: '#bbb',//ã²ã¼ã¸ãã¼ã¹ã®ç·ã®ã«ã©ã¼ 24 text: {//ããã¹ãã®å½¢ç¶ãç´æ¥æå® 25 style: {//天å°ä¸å¤®ã«é ç½® 26 position: 'absolute', 27 left: '50%', 28 top: '50%', 29 padding: '0', 30 margin: '-30px 0 0 0',//ãã¼ããä¸ã«é ç½® 31 transform:'translate(-50%,-50%)', 32 'font-size':'1rem', 33 color: '#fff', 34 }, 35 autoStyleContainer: false //èªåä»ä¸ã®ã¹ã¿ã¤ã«ãåã 36 }, 37 step: function(state, bar) { 38 bar.setText(Math.round(bar.value() * 100) + ' %'); //ããã¹ãã®æ°å¤ 39 } 40}); 41 42//ã¢ãã¡ã¼ã·ã§ã³ã¹ã¿ã¼ã 43bar.animate(1.0, function () {//ãã¼ãæç»ããå²åãæå®ãã¾ã 1.0 ãªã100%ã¾ã§æç»ãã¾ã 44 $("#splash").delay(500).fadeOut(800);//ã¢ãã¡ã¼ã·ã§ã³ãçµãã£ãã#splashã¨ãªã¢ããã§ã¼ãã¢ã¦ã 45}); 46 47 48 49/*-------------------------------------*/ 50 // ãã¼ã¸ããã 51/*-------------------------------------*/ 52 53//ã¹ã ã¼ãºã¹ã¯ãã¼ã« 54 var isHtmlScrollable = (function(){ 55 var html = $('html'), top = html.scrollTop(); 56 var elm = $('<div/>').height(1500).prependTo('body'); 57 html.scrollTop(1500); 58 var rs = !!html.scrollTop(); 59 html.scrollTop(top); 60 elm.remove(); 61 return rs; 62 })(); 63 64 65jQuery(document).ready(function($) { 66 //表示 67 const ua = navigator.userAgent; 68 if (ua.indexOf('iPhone') > -1 || (ua.indexOf('Android') > -1 && ua.indexOf('Mobile') > -1)) { 69 $('.layout-footer').after('<div class="tothetop"><a href="https://tawaramoton.com/wp/wp-content/themes/kanko/images/map_2020.png">page top</a></div>'); 70 } else if (ua.indexOf('iPad') > -1 || ua.indexOf('Android') > -1) { 71 $('.layout-footer').after('<div class="tothetop"><a href="https://tawaramoton.com/wp/wp-content/themes/kanko/images/map_2020.png">page top</a></div>'); 72 } else { 73 $('.layout-footer').after('<div class="tothetop"><a href="https://tawaramoton.com/wp/wp-content/themes/kanko/images/map_side.png">page top</a></div>'); 74 } 75 76 77 var topBtn = $('.tothetop'); 78 topBtn.hide(); 79 80 $(window).scroll(function () { 81 if ($(this).scrollTop() > 800) { 82 topBtn.fadeIn(); 83 } else { 84 topBtn.fadeOut(); 85 } 86 }); 87 88 //ãã¼ã¸å ãªã³ã¯ã¨ãã¼ã¸ãããã¸ã®ç§»å 89 $('a[href=#]').click(function () { 90 //ã¹ãã¼ãèª¿æ´ 91 var hrefval= $(this).attr('href'); 92 //console.log(hrefval); 93 var positiontop; 94 var speed; 95 96 if(hrefval == "#") { 97 positiontop = 0; 98 speed = 200 + $(this).offset().top /30; 99 }else{ 100 var targetelement = $(hrefval); 101 positiontop = targetelement.offset().top -100; 102 speed = 200 + (positiontop + 120) / 30; 103 } 104 105 $(isHtmlScrollable ? 'html' : 'body').animate({ 106 scrollTop: positiontop 107 }, speed); 108 return false; 109 110 /* åºæ¬ 111 $(isHtmlScrollable ? 'html' : 'body').animate({ 112 scrollTop: 0 113 }, 500); 114 return false;*/ 115 116 }); 117 118/* ã¢ãã¡ã¼ã·ã§ã³ãããããªãè¦ç´ ãããå ´å 119 $('a[href^=#]').not('ã¢ãã¡ã¼ã·ã§ã³ãããªã a è¦ç´ ').click(function(){ 120 var hrefval= $(this).attr('href'); 121 var targetelement = hrefval == "#" ? $('html') : $(hrefval); 122 var positiontop = targetelement.offset().top; 123 $(isHtmlScrollable ? 'html' : 'body').animate({ 124 scrollTop: positiontop 125 }, 500); 126 return false;
127 }); 128*/ 129}); 130/*-------------------------------------*/ 131// colorbox 132/*-------------------------------------*/ 133/*$(function() { 134 $(".inline").colorbox({ 135 inline:true, 136 maxWidth:"90%", 137 maxHeight:"90%", 138 opacity: 0.7 139 }); 140 141 $(".gallery").colorbox({ 142 rel:'slideshow', 143 slideshow:true, 144 slideshowSpeed:3000, 145 maxWidth:"90%", 146 maxHeight:"90%", 147 opacity: 0.7 148 }); 149}); 150 151*/ 152 153/*-------------------------------------*/ 154 // swiper 155/*-------------------------------------*/ 156/*var mySwiper = new Swiper ('.swiper-container', { 157 // ãªãã·ã§ã³ãã©ã¡ã¼ã¿(ä¸é¨ã®ã¿æç²) 158 loop: true, // æå¾ã®ã¹ã©ã¤ãã¾ã§å°éããå ´åãæåã«æ»ããã«ç¶ãã¦ã¹ã©ã¤ãå¯è½ã«ãããã 159 speed: 1000, // ã¹ã©ã¤ããåãæ¿ãããã©ã³ã¸ã·ã§ã³æé(ããªç§)ã 160 slidesPerView: 1, // 使ã®ã¹ã©ã¤ãã表示ããã 161 //spaceBetween: 10, // ã¹ã©ã¤ãéã®ä½ç½ãµã¤ãº(ãã¯ã»ã«) 162 direction: 'horizontal', // ã¹ã©ã¤ãæ¹åã 'horizontal'(æ°´å¹³) ã 'vertical'(åç´)ãeffectãªãã·ã§ã³ã 'slide' 以å¤ã¯ç¡å¹ã 163 effect: 'cube', // "slide", "fade"(ãã§ã¼ã), "cube"(ãã¥ã¼ãå転), "coverflow"(ã«ãã¼ããã¼) ã¾ã㯠"flip"(å¹³é¢å転) 164 165 // ã¹ã©ã¤ãã¼ã®èªååç 166 // autoplay: true ãã®ã¿ãªãæ¢å®å¤ã§ã®èªååç 167 autoplay: { 168 delay: 3000, // ã¹ã©ã¤ããåãæ¿ããã¾ã§ã®è¡¨ç¤ºæé(ããªç§) 169 stopOnLast: false, // æå¾ã®ã¹ã©ã¤ãã¾ã§è¡¨ç¤ºããããèªååçã䏿¢ããã 170 disableOnInteraction: true // ã¦ã¼ã¶ã¼ã®ã¹ã¯ã¤ãæä½ãæ¤åºãããèªååçã䏿¢ããã 171 }, 172 173// ã¬ã¹ãã³ã·ã忡件 174/* breakpoints: { 175 // 980ãã¯ã»ã«å¹ 以ä¸ã«ãªã£ãã 176 980: { 177 slidesPerView: 3, 178 spaceBetween: 30 179 }, 180 // 640ãã¯ã»ã«å¹ 以ä¸ã«ãªã£ãã 181 640: { 182 slidesPerView: 2, 183 spaceBetween: 20 184 } 185 },*/ 186// ãã¼ã¸ãã¼ã·ã§ã³ã表示ããå ´å 187/* pagination: { 188 el: '.swiper-pagination',ã // ãã¼ã¸ãã¼ã·ã§ã³ã表示ããã»ã¬ã¯ã¿ 189 },*/ 190 191// åå¾ã¹ã©ã¤ãã¸ã®ããã²ã¼ã·ã§ã³ã表示ããå ´å 192/* navigation: { 193 nextEl: '.swiper-button-next', // 次ã®ã¹ã©ã¤ããã¿ã³ã®ã»ã¬ã¯ã¿ 194 prevEl: '.swiper-button-prev', // åã®ã¹ã©ã¤ããã¿ã³ã®ã»ã¬ã¯ã¿ 195 },*/ 196 197// ã¹ã¯ãã¼ã«ãã¼ã表示ããå ´å 198/*<!-- scrollbar: { 199 el: '.swiper-scrollbar', // ã¹ã¯ãã¼ã«ãã¼ã表示ããã»ã¬ã¯ã¿ 200 }*/ 201// });
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.