PageSourceSearch

https://www.fukuoka-kango.or.jp/assets/tags/base.js

js fukuoka-kango.or.jp collected 2026-10-04 01:49:49 UTC 2,567 bytes, 60 lines download raw bytes

1(function(){
2    riot.mixin({
3        init: function() {
4            this.on('mount', function() {
5                this.base = this.refs_root();
6                this.document_body_id = document.body.id
7                this.update();
8            })
9            this.has_body_id = function(body_id, value) {
10                if (this.document_body_id !== body_id) {
11                    return false;
12                }
13                return value ? value : true;
14            }
15            this.level1 = function(level, value) {
16                var level1 = location.pathname.replace(this.base, '').split('/')[1]
17                if (level1 !== level) {
18                    return false;
19                }
20                return value ? value : true;
21            }
22            this.level2 = function(level, value) {
23                var level2 = location.pathname.replace(this.base, '').split('/')[2]
24                if (level2 !== level) {
25                    return false;
26                }
27                return value ? value : true;
28            }
29            this.level3 = function(level, value) {
30                var level3 = location.pathname.replace(this.base, '').split('/')[3]
31                if (level3 !== level) {
32                    return false;
33                }
34                return value ? value : true;
35            }
36        },
37        refs_root: function() {
38            var tag_name = this.root.localName;
39            var scripts = document.querySelector('script[src$="'+tag_name+'.tag"]');
40            if (!scripts) {
41                return '';
42            }
43            var match = scripts.src.match(new RegExp('(^|.*\/)'+tag_name+'\.tag$'));
44            return match ? match[1].replace('/assets/tags/', '').replace(window.location.origin, '') : '' /* default */;
45        },
46        observe: riot.observable()
47    })
48    riot.mount('*');
49
50    //--------------------------------------------------------------------------
51    // 繧ソ繧ー縺ォ蟇セ縺吶k`javascript`縺ッ蝓コ譛ャ逧�↓`import.js`縺ォ險倩シ峨☆繧�
52    //--------------------------------------------------------------------------
53    var scripts = document.querySelector('script[src$="base.js"]');
54    var match = scripts.src.match(new RegExp('(^|.*\/)base\.js'));
55    var path = match ? match[1].replace('/assets/tags/', '').replace(window.location.origin, '') : '' /* default */;
56    var script = document.createElement('script');
57    // execute script after maunt.
58    script.src = path+'/assets/js/import.js';
59    document.head.appendChild(script);
60})();

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.