PageSourceSearch

https://www.bandainamcostudios.com/Rx2AL8sJ/wp-content/themes/bandainamco_wp/BNS/assets/js/common.js?v2

js bandainamcostudios.com collected 2026-10-01 11:27:49 UTC 2,848 bytes, 85 lines download raw bytes

1(function($){
2	$(function(){
3		// Scroll to anchor link event
4		$('a[href^="#"]').on('click', function(e){
5			e.preventDefault(), e.stopImmediatePropagation();
6
7			let href = $(this).attr("href");
8			let target = $(href === "#" || href === "" ? 'html' : href);
9			let headerHeight = $('header.header').outerHeight();
10			let position = target.offset().top;
11
12			$('body, html').animate({scrollTop: position - headerHeight}, 500);
13			return false;
14		});
15
16		(cf7msm_posted_data !== undefined) && (cf7msm_posted_data["your-consent"] = 0);
17	});
18
19	let urlHash = location.hash;
20	if (urlHash && urlHash !== '#goback') {
21			let target = $("#" + urlHash.slice(1));
22			let headerHeight = $('header.header').outerHeight();
23			let position = target.offset().top;
24			$('body, html').animate({scrollTop: position - headerHeight}, 500);
25	}
26
27	$('#btn_sp_menu').on('click', function(){
28		$(this).toggleClass('on'), $('#sp_menu').toggleClass('on');
29	})
30
31	// creators slick
32	$('.slick').length > 0 && $('.slick').slick({
33		slidesToShow: 7,
34		slidesToScroll: 1,
35		dots: true,
36		variableWidth: true,
37		infinite: false,
38		prevArrow: '<div class="swiper-button-prev slick-prev"><img src="/wp-content/themes/BNS/assets/images/btn_direction-1.svg" width="40" height="40" alt="MORE" class="more"><img src="/wp-content/themes/BNS/assets/images/btn_direction-2.svg" width="40" height="40" alt="MORE" class="more hover"></div>',
39		nextArrow: '<div class="swiper-button-next slick-next"><img src="/wp-content/themes/BNS/assets/images/btn_direction-1.svg" width="40" height="40" alt="MORE" class="more"><img src="/wp-content/themes/BNS/assets/images/btn_direction-2.svg" width="40" height="40" alt="MORE" class="more hover"></div>',
40		responsive: [{
41			breakpoint: 768,
42			settings: {
43				slidesToShow: 3,
44				variableWidth: true,
45				centerMode: true,
46				focusOnSelect: true,
47			}
48		}]
49	});
50
51	// creators fancybox
52	$('[data-fancybox]').length > 0 && $('[data-fancybox]').fancybox();
53
54	// press-inquire confirm go back
55	$('#press-inquire-goback').length > 0 && $('#press-inquire-goback').on('click', function(){
56		location.href = './#goback'
57	});
58
59	$(document).on('wpcf7invalid', function(){
60		$('.wpcf7-not-valid-tip').remove();
61
62		$.ajax().always(function (){
63			$('.wpcf7-form-control-wrap').each(function (index, el) {
64				if ($(el).find('.wpcf7-not-valid-tip').length){
65					$(el).find('.wpcf7-not-valid-tip').insertBefore($(el))
66				}
67			});
68		});
69	});
70
71	let $footerNavCategory = $('.js-footer-nav-toggle');
72	if($footerNavCategory.length){
73		$footerNavCategory.on('click', function(){
74			let target = $(this);
75			if(target.hasClass('is-open')){
76				target.removeClass('is-open');
77				target.next().stop(true, false).slideUp({duration:500});
78			}else{
79				target.addClass('is-open');
80				target.next().stop(true, false).slideDown({duration:500});
81			}
82		});
83	}
84
85})(jQuery)

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.