PageSourceSearch

https://tokyo-trip.org/wp-content/themes/jstork/library/js/scripts.js

js tokyo-trip.org collected 2026-10-02 11:11:41 UTC 1,286 bytes, 41 lines download raw bytes

1/////////////////////////////////
2//Windowsサイズを取得
3/////////////////////////////////
4function updateViewportDimensions() {
5	var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],x=w.innerWidth||e.clientWidth||g.clientWidth,y=w.innerHeight||e.clientHeight||g.clientHeight;
6	return { width:x,height:y };
7}
8var viewport = updateViewportDimensions();
9
10
11
12/////////////////////////////////
13// 画面のサイズ変更が完了した時にjqueryを動かす
14/////////////////////////////////
15var waitForFinalEvent = (function () {
16	var timers = {};
17	return function (callback, ms, uniqueId) {
18		if (!uniqueId) { uniqueId = "Don't call this twice without a uniqueId"; }
19		if (timers[uniqueId]) { clearTimeout (timers[uniqueId]); }
20		timers[uniqueId] = setTimeout(callback, ms);
21	};
22})();
23var timeToWaitForLast = 100;
24
25
26function loadGravatars() {
27  viewport = updateViewportDimensions();
28  if (viewport.width >= 768) {
29  jQuery('.comment img[data-gravatar]').each(function(){
30    jQuery(this).attr('src',jQuery(this).attr('data-gravatar'));
31  });
32	}
33}
34
35
36/////////////////////////////////
37// target Link内に画像がはいっている場合にクラスを追加
38/////////////////////////////////
39jQuery(function($){
40$("a:has(img)").addClass("no-icon");
41});

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.