PageSourceSearch

https://www.brillia-art.com/common/js/base.js?2022

js brillia-art.com collected 2026-09-24 22:35:16 UTC 4,252 bytes, 155 lines download raw bytes

1if(navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/)){
2//ここに書いた処理はスマホ閲覧時のみ有効となる
3$(function() {
4$('html,body').animate({ scrollTop: 0 }, '1');
5});
6}
7
8$(document).ready(function(){
9var hSize = $(window).height();
10$('#mainPhoto').height(hSize);
11});
12$(window).resize(function(){
13var hSize = $(window).height();
14$('#mainPhoto').height(hSize);
15});
16
17$(document).ready(function() {
18var flag = false;
19var pagetop = $('.pagetop');
20$(window).scroll(function () {
21if ($(this).scrollTop() > 200) {
22if (flag == false) {
23flag = true;
24pagetop.stop().animate({
25'bottom': '0px'
26}, 600);
27}
28} else {
29if (flag) {
30flag = false;
31pagetop.stop().animate({
32'bottom': '-70px'
33}, 600);
34}
35}
36});
37pagetop.click(function () {
38$('body, html').animate({ scrollTop: 0 }, 1000);
39return false;
40});
41});
42
43$(function(){
44// #で始まるアンカーをクリックした場合に処理
45$('a[href^="#"]').click(function() {
46// スクロールの速度
47var speed = 800; // ミリ秒
48// アンカーの値取得
49var href= $(this).attr("href");
50// 移動先を取得
51var target = $(href == "#" || href == "" ? 'html' : href);
52// 移動先を数値で取得
53var position = target.offset().top;
54// スムーススクロール
55$('body,html').animate({scrollTop:position}, speed, 'swing');
56return false;
57});
58});
59
60(function($) {
61$(function() {
62$('#top-head').click(function(){
63$('body').toggleClass('open');
64});
65});
66})(jQuery);
67
68(function($) {
69$(function() {
70$('.global-nav li a').click(function(){
71$('body').removeClass('open');
72});
73});
74})(jQuery);
75
76$(function(){
77var $btn = $('.category-btn [data-filter]'),
78$list = $('.category-list [data-category]');
79$btn.on('click', function() {
80var $btnCat = $(this).attr('data-filter');
81$list.removeClass('is-animate');
82if ($btnCat == 'all') {
83$list.show().addClass('is-animate');
84} else {
85$list.hide().removeClass('is-animate').filter('[data-category = "' + $btnCat + '"]').show().addClass('is-animate');
86}
87return false;
88});
89});
90
91$(".category-btn li a").on("click", function() {
92$(".category-btn li a").removeClass("active"); //消す
93$(this).addClass("active"); //付与
94});
95
96$(function() {
97//クリックしたときのファンクションをまとめて指定
98$('ul.tabWrap li').click(function() {
99//.index()を使いクリックされたタブが何番目かを調べ、
100//indexという変数に代入します。
101var index = $('ul.tabWrap li').index(this);
102//コンテンツを一度すべて非表示にし、
103$('.contentArea').css('display','none');
104//クリックされたタブと同じ順番のコンテンツを表示します。
105$('.contentArea').eq(index).fadeIn();
106//タブについているクラスselectを消し、
107$('.tabWrap li').removeClass('select');
108//クリックされたタブのみにクラスselectをつけます。
109$(this).addClass('select')
110});
111});
112
113//ダイレクトリンク
114$(function() {
115//location.hashで#以下を取得 変数hashに格納
116var hash = location.hash;	
117//hashの中に#tab~が存在するか調べる。
118hash = (hash.match(/^#tab\d+$/) || [])[0];
119
120//hashに要素が存在する場合、hashで取得した文字列(#tab2,#tab3等)から#より後を取得(tab2,tab3)	
121if($(hash).length){
122var tabname = hash.slice(1) ;
123} else{
124// 要素が存在しなければtabnameにtab1を代入する
125var tabname = "tab1";}
126//コンテンツを一度すべて非表示にし、
127$('.contentArea').css('display','none');
128
129//一度タブについているクラスselectを消し、
130$('.tabWrap li').removeClass('select');
131
132var tabno = $('ul.tabWrap li#' + tabname).index();
133
134//クリックされたタブと同じ順番のコンテンツを表示します。
135$('.contentArea').eq(tabno).fadeIn();
136
137//クリックされたタブのみにクラスselectをつけます。
138$('ul.tabWrap li').eq(tabno).addClass('select')
139});
140
141$(function(){
142var headerH = 310;
143$(window).on("load", function(){
144if(location.hash !== ""){
145var targetOffset = $(location.hash).offset().top;
146$(window).scrollTop(targetOffset - headerH);
147}
148});
149});
150
151$(function(){
152$("#other").on("click", function() {
153$(this).next().slideToggle();
154});
155});

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.