PageSourceSearch

https://static.seesaawiki.jp/js/wikisense.js?0.8.6

js seesaawiki.jp collected 2026-09-27 20:54:38 UTC 1,399 bytes, 45 lines download raw bytes

1Array.prototype.shuffle = function() {
2    var i = this.length;
3    while(i){
4        var j = Math.floor(Math.random()*i);
5        var t = this[--i];
6        this[i] = this[j];
7        this[j] = t;
8    }
9    return this;
10}
11
12var WikiSense = (function(){
13    return {
14        callback : ( function( wiki_ads ) {
15            if( wiki_ads.length == 0 ) {
16                return ;
17            }
18            wiki_ads.shuffle();
19            var s = '';
20            var alternative_flg = true; 
21            var alternative_label ='odd';
22            for(i=0; i < wiki_ads.length; ++i) {
23                var title = wiki_ads[i].title;
24                //var max = 30;
25                //if( title.length > max ) {
26                //    title = title.substr(0,max - 2 ) + '...'; // 2 for ...
27                //}
28
29                if (alternative_flg == true ){
30                    alternative_label = 'odd'; 
31                    alternative_flg = false;
32                }
33                else {
34                    alternative_label = 'even'; 
35                    alternative_flg = true;
36                }
37                s += '<li class="'+ alternative_label + '"><a href="' + wiki_ads[i].url + '" target="_blank">' + title + '</a></li>';
38                if(i==5){
39                    break;
40                }
41            }
42            document.getElementById('wikisense').innerHTML = s;
43        })
44    };
45})();

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.