PageSourceSearch

https://fantasyresort.jp/sapporo/wp-content/themes/fantasykidsresort/assets/js/shop-base.js

js fantasyresort.jp collected 2026-10-02 04:48:08 UTC 643 bytes, 27 lines download raw bytes

1//店舗トップスマホ時固定ナビ
2$(function() {
3  var $win = $(window),
4      $main = $('body'),
5      $nav = $('.page-title-area'),
6		$contentMain = $('#contents-main'),
7      navHeight = $nav.outerHeight(),
8      navPos = $nav.offset().top,
9      fixedClass = 'is-fixed';
10
11	var w = $(window).outerWidth(),
12	x = 767;
13	  if (w < x) {
14	  $win.on('load scroll', function() {
15    var value = $(this).scrollTop();
16    if ( value > 258 ) {
17      $nav.addClass(fixedClass);
18      $contentMain.css('margin-top', navHeight);
19    } else {
20      $nav.removeClass(fixedClass);
21      $contentMain.css('margin-top', '0');
22    }
23  });
24  
25  }
26  
27});

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.