PageSourceSearch

https://engaru.jp/common/js/common.js

js engaru.jp collected 2026-10-02 07:34:55 UTC 1,386 bytes, 42 lines download raw bytes

1$(function(){
2	$(".menu-trigger").click(function(e) {
3		$(this).parent().toggleClass("active");
4		$("header .main-menu").toggleClass("active");
5		
6		if($("header .main-menu").hasClass("active")){
7			$("#google_translate_element").prependTo(".main-menu .translate");
8		}else{
9			$("#google_translate_element").insertAfter(".lang-size");
10		}
11	});
12	$(".main-menu a").click(function(e) {
13		$(".active").removeClass("active");
14	});
15	
16	var id = location.hash;
17	speed = 0;
18	headerHight = 179; // 固定ヘッダーの高さ
19	if ( '' != id ) {
20	pos = jQuery( id ).offset().top - headerHight;
21	jQuery( 'html' ).animate({ scrollTop: pos }, speed );
22	}
23	//文字サイズ
24	$(".header-right button").click(function(e) {
25		$(".header-right button.active").removeClass("active");
26		$("html").removeClass("large");
27		$(this).addClass("active");
28		if($(this).hasClass("large")){
29			$("html").addClass("large");
30		}
31	});
32	$('#cassette-content').find('a[href^=http]').not('[href*="'+location.hostname+'"]').not('[href*="mailto"]').attr({target:"_blank"});
33});
34function getParam(name, url) {
35    if (!url) url = window.location.href;
36    name = name.replace(/[\[\]]/g, "\\$&");
37    var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
38        results = regex.exec(url);
39    if (!results) return null;
40    if (!results[2]) return '';
41    return decodeURIComponent(results[2].replace(/\+/g, " "));
42}

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.