PageSourceSearch

https://www.jalan.net/dp/js/ana_contingency_jalantop.js

js jalan.net collected 2026-09-24 08:48:39 UTC 1,750 bytes, 75 lines download raw bytes

1/*
2ANA ƒRƒ“ƒeƒBƒ“ƒWƒFƒ“ƒV[‘Ήž: jalanTop
3USE: jquery-1.8.3.min.js
4*/
5(function(jQuery, $, window, document, undefined) {
6  /*
7   * @constructor
8   */
9  var DisableSubmitBtn = function() {
10    this.initialize.apply(this, arguments);
11  };
12  
13  /* ƒvƒƒpƒeƒBƒZƒbƒg */
14  DisableSubmitBtn.prototype = {
15    url: '/dp/js/ana_contingency_state.json',
16    target: '',
17    replaceHtml: '',
18    style: [{},{},{}]
19  };
20  
21  /* ‰Šú‰» */
22  DisableSubmitBtn.prototype.initialize = function(options) {
23    $.extend(this, options);
24    this.getState();
25  };
26  
27  DisableSubmitBtn.prototype.replaceWith = function() {
28    var $target = $(this.target);
29    var $el = $(this.replaceHtml).css(this.style[0]);
30    $el.children().eq(0).css(this.style[1]);
31    $el.children().eq(1).css(this.style[2]);
32    
33    $target.replaceWith($el);
34  };
35  
36  DisableSubmitBtn.prototype.getState = function() {
37    var that = this;
38    $.ajax({
39      url: that.url,
40      cache: false,
41      dataType: 'json',
42      timeout: 10000
43    })
44    .then(function (data) {
45      if(data.ana_state) return;
46      that.replaceWith();
47    });
48  };
49  
50  // init
51  //replace HTML
52  var replaceHtml = '<div><p>¦ Œ»ÝAANAq‹óŒ”{h”‘‚Í<br>ƒƒ“ƒeƒiƒ“ƒX’†‚Ì‚½‚ß‚²—˜—p‚¢‚½‚¾‚¯‚Ü‚¹‚ñ</p><div>ŒŸõ</div></div>'
53  var style = [
54    {
55      'text-align': 'center'
56    },
57    {
58      "margin": '0 auto',
59      'color': '#f00'
60    },
61    {
62      'margin':'10px auto 0',
63      'color': '#FFF',
64      'background-color': '#999',
65      'font-size': '14px',
66      'width': '156px',
67      'padding': '5px 0',
68      'border-radius': '3px',
69      'line-height': '1'
70    }
71  ];
72  
73  new DisableSubmitBtn({target:'#dp_ana_form_submit', replaceHtml: replaceHtml, style: style});
74  
75})(jQuery, $, window, document);

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.