PageSourceSearch

https://maginodrive.jp/category/1120js/ebisu.js

js maginodrive.jp collected 2026-10-04 14:01:03 UTC 4,208 bytes, 142 lines download raw bytes

1var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
3{
4  let window = _____WB$wombat$assign$function_____("window");
5  let self = _____WB$wombat$assign$function_____("self");
6  let document = _____WB$wombat$assign$function_____("document");
7  let location = _____WB$wombat$assign$function_____("location");
8  let top = _____WB$wombat$assign$function_____("top");
9  let parent = _____WB$wombat$assign$function_____("parent");
10  let frames = _____WB$wombat$assign$function_____("frames");
11  let opener = _____WB$wombat$assign$function_____("opener");
12
13// Ebisumart Library
14var Ebisu = {
15	isLocal: true,
16	rootPath: "/"
17};
18(function() {
19"use strict";
20
21// Ebisu FontChanger 2010/09/15 -------------------------------
22Ebisu.FontChanger = {
23	map: {
24		S: "95%",
25		M: "100%",
26		L: "105%"
27	},
28	currentSize: null,
29	getCurrentSize: function() {
30		if (this.currentSize == null) {
31			this.currentSize = eb$.cookie('body.style.fontSize') == null ? "M" : eb$.cookie('body.style.fontSize');
32		}
33		return this.currentSize;
34	},
35	change: function(size) {
36		this.currentSize = size;
37		eb$.cookie('body.style.fontSize', size, {expires: '7', path: '/'});
38		this.view();
39	},
40	
41	view: function() {
42		var size = this.getCurrentSize();
43		size = (size == null) ? "M" : size ;
44		eb$(".__FONT_CHANGER_BUTTON_S_ON").hide();
45		eb$(".__FONT_CHANGER_BUTTON_S_OFF").show();
46		eb$(".__FONT_CHANGER_BUTTON_M_ON").hide();
47		eb$(".__FONT_CHANGER_BUTTON_M_OFF").show();
48		eb$(".__FONT_CHANGER_BUTTON_L_ON").hide();
49		eb$(".__FONT_CHANGER_BUTTON_L_OFF").show();
50		eb$(".__FONT_CHANGER_BUTTON_" + size + "_ON").show();
51		eb$(".__FONT_CHANGER_BUTTON_" + size + "_OFF").hide();
52		document.body.style.fontSize = this.map[size];
53	}
54};
55
56// Ebisu Calendar 2010/09/15 -------------------------------
57eb$.fn.ebisu_calendar = function(options) {
58	if (options == null) {
59		options = {};
60	}
61		
62	if (options.goneMonthCount != null) {
63		var today = new Date();
64		var firstMonthFirstDay = new Date(today.getFullYear(), today.getMonth() - options.goneMonthCount, 1);
65		options.minDate = firstMonthFirstDay;
66	}
67	if (options.comingMonthCount != null) {
68		var today = new Date();
69		var lastMonthLastDay = new Date(today.getFullYear(), today.getMonth() + options.comingMonthCount + 1, 0);
70		options.maxDate = lastMonthLastDay;
71	}
72	
73	var target = eb$(this);
74	var doDatePicker = function(dateJson) {
75		var oldFunc = options.beforeShowDay;
76		options.beforeShowDay = function(date) {
77			var colorNo = dateJson[Ebisu.dateToYYYYMMDD(date)];
78			if (colorNo != null) {
79				return [true, "day_color" + colorNo];
80			}
81			if (oldFunc) {
82				return oldFunc();
83			}
84			return [true];
85		};
86		
87		target.datepicker(options);
88	};
89
90	if (Ebisu.isLocal) {
91		doDatePicker({
92			20120117: 1,
93			20120119: 2,
94			20120120: 3,
95			20120121: 4,
96			20120122: 5,
97			20120123: 6
98		});
99	} else {
100		eb$.getJSON(
101			Ebisu.rootPath + "ajax_calendar_data.jsonp?callback=?",
102			{
103				"min_date": Ebisu.dateToYYYYMMDD(options.minDate),
104				"max_date": Ebisu.dateToYYYYMMDD(options.maxDate)
105			},
106			doDatePicker
107		);
108	}
109};
110
111Ebisu.dateToYYYYMMDD = function(date) {
112	var
113		yyyy = date.getFullYear(),
114		mm = date.getMonth() + 1,
115		dd = date.getDate();
116	if (mm < 10) { mm = "0" + mm; }
117	if (dd < 10) { dd = "0" + dd; }
118	return yyyy.toString() + mm.toString() + dd.toString();
119};
120}) ();
121
122}
123/*
124     FILE ARCHIVED ON 07:20:48 Jun 26, 2014 AND RETRIEVED FROM THE
125     INTERNET ARCHIVE ON 04:37:34 Nov 20, 2023.
126     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
127
128     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
129     SECTION 108(a)(3)).
130*/
131/*
132playback timings (ms):
133  captures_list: 167.247
134  exclusion.robots: 0.188
135  exclusion.robots.policy: 0.178
136  cdx.remote: 0.055
137  esindex: 0.01
138  LoadShardBlock: 135.632 (3)
139  PetaboxLoader3.datanode: 165.51 (5)
140  load_resource: 356.045 (2)
141  PetaboxLoader3.resolve: 234.491 (2)
142*/

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.