PageSourceSearch

https://www.nippon.com/ja/ncommon/js/banner.js

js nippon.com collected 2026-09-24 07:28:38 UTC 949 bytes, 46 lines download raw bytes

1(function($) {
2
3  'use strict';
4
5  window.addEventListener('DOMContentLoaded', domContentLoaded, true);
6
7  function domContentLoaded() {
8
9    try {
10
11      getBannerData();
12
13    } catch (e) {
14
15      console.log(e);
16
17    }
18
19  }
20
21  function getBannerData() {
22
23    function callback(response) {
24      var htmltext = '';
25      if(response.status == "200"){
26        var json;
27  
28        json= JSON.parse(response.responseText);
29  
30        if (json.banners.length > 0){
31          var banner = json.banners[0];
32          htmltext =  '<a href="' + banner['url'] + '">' +
33                      '<img class="upc-none" src="' + banner['image_sp'] + '">'
34                    + '<img class="usp-none" src="' + banner['image_pc'] + '">'
35                    + '</a>';
36        }
37        $.$('banner').innerHTML = htmltext;
38      }
39
40    }
41
42    $.get(settings.language.ROOT + '/ncommon/data/banner.json', 't=' + new Date().getTime(), callback);
43
44  }
45
46})(window.base);

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.