PageSourceSearch

https://paramountbed.com/static/home/cms/js/__init.js

js paramountbed.com collected 2026-10-09 01:40:12 UTC 2,264 bytes, 76 lines download raw bytes

1var __init = {
2  isM: function() {
3    if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
4      return true
5    }
6    return false
7  },
8  // 切换dom
9  domRespond: function ($elPC,$elMobile) {
10    if('object'!=typeof $elPC || 'object'!=typeof $elMobile)
11      return 
12    if(this.isM()) {
13      $elMobile.show()
14      $elPC.remove()
15    } else {
16      $elPC.show()
17      $elMobile.remove()
18    }
19  },
20  cssload: function (cssArr) {
21    var isM=this.isM(),
22        cssArr=cssArr || []
23    for(var i=0;i<cssArr.length;i++){
24      var css=cssArr[i]
25      var file=css.slice(css.lastIndexOf('/')+1,css.lastIndexOf('.'))
26      var str1=css.slice(0,css.lastIndexOf('/')+1)
27      var str2=css.slice(css.indexOf('.css'))
28      if(!isM) { 
29        
30      } else {
31        file=file+'-m'
32        css=str1+file+str2
33        if(file.indexOf('product')>=0) {
34          $('#css_style-en').after($(css))
35        }
36      }
37      if(file.indexOf('style_fb_1pane_hf_global')>=0)
38        $('#css_font').after($(css))
39      else if(file.indexOf('common')>=0)
40        $('#css_reset').after($(css))
41      else if(file.indexOf('style-en')>=0)
42        $('#css_style').after($(css))
43      else if(file.indexOf('style')>=0)
44        $('#css_common').after($(css))
45      else if(file.indexOf('top-en')>=0) 
46        $('#css_top').after($(css))
47      else if(file.indexOf('top')>=0)
48        $('#contents').prepend($(css))
49      else if(file.indexOf('append-en')>=0)
50        $('#css_style-en').after($(css))
51    }
52  },
53  jsload: function (jsArr){
54    var isM=this.isM(),
55        jsArr= jsArr || []
56    for(var i=0;i<jsArr.length;i++){
57      var js=jsArr[i]
58      var file=js.slice(js.lastIndexOf('/',js.lastIndexOf('<'))+1,js.lastIndexOf('.'))
59      if(isM) {
60        var str1=js.slice(0,js.lastIndexOf('/',js.lastIndexOf('<'))+1)
61        var str2=js.slice(js.indexOf('.js'))
62        file=file+'-m'
63        js=str1+file+str2
64      }
65      if(file.indexOf('plugins')>=0)
66        $('#js_jquery').after($(js))
67      else if(file.indexOf('run')>=0)
68        $('#js_plugins').after($(js))
69    }
70  },
71  onload: function () {
72    $('body').show()
73  }
74}
75$('body').hide()
76$(window).on('load',__init.onload)

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.