PageSourceSearch

http://www.augustcompressor.com/npublic/commonjs/restival.js

js augustcompressor.com collected 2026-10-02 01:24:44 UTC 853 bytes, 33 lines download raw bytes

1$define(['pl_util'], function() {
2    var init = function(res){
3        console.log(res)
4        let fes = res.festival
5        //飘雪
6        renderFun(res.snow,`snow${res.snow.effect}`)
7        //挂灯
8        renderFun(res.lamp,`lamp`)
9        //横幅
10        renderFun(res.topBar,`topBar`)
11        //飘窗
12        renderFun(res.window,`window`)
13        if(fes==2 || fes==3){//元旦 春节
14            //对联
15            renderFun(res.couplet,`couplet`)
16        }
17        //方法
18        function renderFun(obj,key){
19            if(isMo() && key!="topBar"){
20                return
21            }
22            if(!obj.isOpen){
23                return
24            }
25            $require([`/npublic/commonjs/restival/${key}.js`],function(r){
26                r.init(obj,fes)
27            })
28        }
29    }
30    return {
31        init : init
32    };
33})

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.