PageSourceSearch

https://naocorp.jp/common/js/common.js

js naocorp.jp collected 2026-10-06 16:57:25 UTC 2,519 bytes, 83 lines download raw bytes

1// ƒy[ƒW“àƒXƒNƒ[ƒ‹
2$(function(){
3   // #‚ÅŽn‚Ü‚éƒAƒ“ƒJ[‚ðƒNƒŠƒbƒN‚µ‚½ê‡‚ɏˆ—
4   $('a[href^=#]').click(function() {
5      // ƒXƒNƒ[ƒ‹‚Ì‘¬“x
6      var speed = 400; // ƒ~ƒŠ•b
7      // ƒAƒ“ƒJ[‚Ì’lŽæ“¾
8      var href= $(this).attr("href");
9      // ˆÚ“®æ‚ðŽæ“¾
10      var target = $(href == "#" || href == "" ? 'html' : href);
11      // ˆÚ“®æ‚𐔒l‚Ŏ擾
12      var position = target.offset().top;
13      // ƒXƒ€[ƒXƒXƒNƒ[ƒ‹
14      $('body,html').animate({scrollTop:position}, speed, 'swing');
15      return false;
16   });
17});
18
19
20$('nav').meanmenu({
21    meanMenuClose: "x", // ƒNƒ[ƒYƒ{ƒ^ƒ“
22    meanMenuCloseSize: "18px", // ƒNƒ[ƒYƒ{ƒ^ƒ“‚̃tƒHƒ“ƒgƒTƒCƒY
23    meanMenuOpen: "<span /><span /><span />", // ’ʏíƒ{ƒ^ƒ“
24    meanRevealPosition: "right", // •\ަˆÊ’u
25    meanRevealColour: "", // ”wŒiF
26    meanScreenWidth: "670", // •\ަ‚³‚¹‚éƒEƒBƒ“ƒhƒEƒTƒCƒY(ƒuƒŒƒCƒNƒ|ƒCƒ“ƒg)
27});
28
29// ‰æ‘œ•ύX
30$(function(){
31	var wid = $(window).width();
32	if( wid < 670 ){
33		$('.imgChange').each(function(){
34			$(this).attr("src",$(this).attr("src").replace('_pc', '_sp'));
35		});
36	}
37});
38
39// ƒrƒ…[ƒ|ƒCƒ“ƒgØ‚è‘Ö‚¦iiPad—pj
40jQuery(document).ready(function(){
41    if(navigator.userAgent.indexOf('iPhone') > -1){
42        jQuery("head").append(jQuery('<meta name="viewport" content="width=device-width, maximum-scale=1.0,  user-scalable=no" />'));
43    }
44    else if(navigator.userAgent.indexOf('iPad') > -1){
45        jQuery('head').append('<meta name="viewport" content="width=1180, user-scalable=no" />');
46    }
47});
48
49// ƒtƒbƒ^[ŒÅ’胁ƒjƒ…[
50$(function(){
51	var showFlug = false;
52	var topBtn = $('#footFixed');	
53	topBtn.css('bottom', '-90px');
54
55	$(window).scroll(function () {
56		if ($(this).scrollTop() >= '100') {
57			if (showFlug == false) {
58				showFlug = true;
59				topBtn.stop().animate({'bottom' : '0'}, 200); 
60			}
61		} else {
62			if (showFlug) {
63				showFlug = false;
64				topBtn.stop().animate({'bottom' : '-90px'}, 60); 
65			}
66		}
67	});
68});
69
70// ƒy[ƒWUP
71$(function () {
72    $.scrollUp({
73        scrollName: 'scrollUp', // ƒGƒŒƒƒ“ƒg‚Ìid
74        topDistance: '300', // scrollUp‚ð•\ަ‚·‚éƒgƒbƒv‚©‚ç‚Ì‹——£ (px)
75        topSpeed: 400, // ƒgƒbƒv‚É–ß‚éƒXƒs[ƒh (ms)
76        animation: 'fade', // ƒAƒjƒ[ƒVƒ‡ƒ“‚ÌŽí—Þ (Fade, slide, none)
77        animationInSpeed: 200, // ƒAƒjƒ[ƒVƒ‡ƒ“‚̍ŏ‰‚̃Xƒs[ƒh (ms)
78        animationOutSpeed: 200, // ƒAƒjƒ[ƒVƒ‡ƒ“‚̍Ōã‚̃Xƒs[ƒh (ms)
79        scrollText: 'ƒy[ƒW‚ÌTOP‚Ö', // ƒGƒŒƒƒ“ƒg‚É•\ަ‚·‚éƒeƒLƒXƒg
80        activeOverlay: false, // scrollUp“®ìŽž‚̃I[ƒo[ƒŒƒC‚̃Jƒ‰[, e.g '#00FFFF'
81    });
82 
83});

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.