PageSourceSearch

https://www.pref.shizuoka.jp/_template_/_site_/_default_/_res/js/ads_randam.js

js pref.shizuoka.jp collected 2026-10-01 10:19:44 UTC 1,074 bytes, 36 lines download raw bytes

1//------------------------------------------------------------------------------
2//	トップページ バナーランダム表示
3//	Copyright (C) 2012 FUTUREINN CO., LTD. All Rights Reserved.
4//------------------------------------------------------------------------------
5(function(){
6var $ = FI.jQuery;
7		if( typeof Array.prototype.shuffle === 'undefined') Array.prototype.shuffle = function(){
8			var i = this.length;
9			while (i) {
10				var j = Math.floor(Math.random() * i);
11				var t = this[--i];
12				this[i] = this[j];
13				this[j] = t;
14			}
15			return this;
16		};
17		//ちらっと見えるのを防ぐため、非表示にしておく
18		$('<style type="text/css">#sad ul {display:none;}</style>').appendTo('head');
19
20		$(function (){
21			if($("#sad")){
22				var list = [];
23				$("#sad li").each(function(i) {
24					list[i] = $(this).html();
25				});
26				$("#sad ul").empty();
27				list.shuffle();
28				for (var i = 0; i < list.length; i++) {
29					var $li = $("<li>");
30					$li.append(list[i])
31					$("#sad ul").append($li);
32				}
33				$("#sad ul").show();
34			}
35		});
36	})();

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.