PageSourceSearch

https://notoraku.co.jp/common/js/common.js

js notoraku.co.jp collected 2026-10-06 22:09:02 UTC 2,495 bytes, 97 lines download raw bytes

1//**************************************
2
3//GoogleAnalytics
4
5//**************************************
vendor: 329 bytes, lines 5-11
5
6
7(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
8(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
9m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
10})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
11ga('create', '
11UA-51557132-1
vendor: 47 bytes, lines 11-13
11', 'notoraku.co.jp');
12ga('send', 'pageview');
13
14//**************************************
15
16//メニュー
17
18//**************************************
19
20jQuery(function($){
21	$(".menu-btn").on("click", function() {
22		$(this).next().fadeToggle();
23		$(this).toggleClass("active");
24	});
25	$(".menu-close").click(function(){
26	   $(this).parent().fadeToggle();
27   });
28	$('.head-menu a').on('click', function(){
29		if (window.innerWidth <= 1024) {
30			$('.menu-close').click();
31		}
32	});
33});
34
35// ----------------------------------------------------------------------------
36// スマホ時zoom
37// ----------------------------------------------------------------------------
38
39// if (navigator.userAgent.match(/(iPhone|Android)/)) {
40// 	(function($) {
41// 		$(document).ready(function(){
42
43// 			$(window).bind('resize load', function() {
44// 				$("html").css("zoom", $(window).width() / 320);
45// 			});
46
47// 			setInterval(function() {
48// 				$("html").css("zoom", $(window).width() / 320);
49// 			}, 500);
50
51// 		});
52// 	})(jQuery);
53// }
54
55//**************************************
56
57//電話番号リンク
58//<meta name="format-detection" content="telephone=no">
59//<span data-action="call" data-tel="00-0000-0000">00-0000-0000</span>
60
61//**************************************
62
63$(function() {
64    if (!isPhone())
65        return;
66
67    $('span[data-action=call]').each(function() {
68        var $ele = $(this);
69        $ele.wrap('<a href="tel:' + $ele.data('tel') + '"></a>');
70    });
71});
72
73function isPhone() {
74    return (navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('Android') > 0);
75}
76
77// ----------------------------------------------------------------------------
78// page-top
79// ----------------------------------------------------------------------------
80
81$(function() {
82	var topBtn = $('.page-top');
83	topBtn.hide();
84	$(window).scroll(function() {
85		if ($(this).scrollTop() > 10) {
86			topBtn.fadeIn();
87		} else {
88			topBtn.fadeOut();
89		}
90	});
91	topBtn.click(function() {
92		$('body,html').animate({
93			scrollTop: 0
94		}, 500);
95		return false;
96	});
97})

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.