PageSourceSearch

https://www.dstar.su/selfcare/page-call.js

js dstar.su collected 2026-10-04 02:23:21 UTC 6,034 bytes, 199 lines download raw bytes

1function setVisibility(state)
2{
3  showHourGlass();
4  $.getJSON(
5    'https://gate.dstar.su/api/manage/visible.php?callback=?',
6    {
7      key: session['key'],
8      state: state ? 'On' : 'Off'
9    },
10    function(data)
11    {
12      showMessageBox(
13        $.t('call:tab2.title'),
14        $.t('call:messages.complete'),
15        showCallPage
16      );
17    }
18  );
19}
20
21function goRegistrar()
22{
23  location.href = 'https://trust.dstar.su/sign.jsp?key=' + session['key'];
24}
25
26function attachAddress(state)
27{
28  showHourGlass();
29  $.getJSON(
30    'https://xrf250.dstar.su/api/manage/spot.php?callback=?',
31    {
32      key: session['key'],
33      action: state ? 'attach' : 'reset'
34    },
35    function(data)
36    {
37      showMessageBox(
38        $.t('call:tab4.title'),
39        $.t('call:messages.complete'),
40        showCallPage
41      );
42    }
43  );
44}
45
46function registerEntry()
47{
48  var agent = $('#agent').val();
49  var password = $('#password').val();
50  showHourGlass();
51  $.getJSON(
52    'https://entrance.dstar.su/api/manage/entrance.php?callback=?',
53    {
54      key: session['key'],
55      agent: agent,
56      password: password
57    },
58    function(data)
59    {
60      showMessageBox(
61        $.t('call:tab5.title'),
62        $.t('call:messages.complete'),
63        showCallPage
64      );
65    }
66  );
67}
68
69function getCellText(value)
70{
71  if (value == undefined)
72    return '';
73  return value;
74}
75
76function getCellDate(value)
77{
78  try
79  {
80    var date = new Date(value * 1000);
81    return date.format('yyyy-mm-dd HH:MM:ss o');
82  }
83  catch (exception)
84  {
85    return '';
86  }
87}
88
89function handleCallData(data)
90{
91  $.each(
92    data,
93    function(key, value)
94    {
95      $('#information tbody').append(
96        '<tr class="custom-wrap">' +
97        '  <td>' + getCellText(value['call']) + '</td>' +
98        '  <td>' + getCellText(value['alias']) + '</td>' +
99        '  <td>' + getCellText(value['repeater1']) + '</td>' +
100        '  <td>' + getCellText(value['repeater2']) + '</td>' +
101        '  <td>' + getCellDate(value['date']) + '</td>' +
102        '</tr>'
103      );
104    }
105  );
106  $('#container').i18n();
107}
108
109function showCallPage()
110{
111  $('#container').html(
112    '<ul class="nav nav-tabs">' +
113    '  <li class="active"><a href="#information" data-toggle="tab" data-i18n="call:tab1.title"></a></li>' +
114    '  <li><a href="#privacy" data-toggle="tab" data-i18n="call:tab2.title"></a></li>' +
115    '  <li><a href="#registrar" data-toggle="tab" data-i18n="call:tab3.title"></a></li>' +
116    '  <li><a href="#spot" data-toggle="tab" data-i18n="call:tab4.title"></a></li>' +
117    '  <li><a href="#entrance" data-toggle="tab" data-i18n="call:tab5.title"></a></li>' +
118    '</ul>' +
119    '<div class="tab-content">' +
120    '  <div class="tab-pane active" id="information">' +
121    '    <table class="table table-stripped">' +
122    '      <thead>' +
123    '        <tr class="custom-wrap">' +
124    '          <th data-i18n="call:tab1.table.call"></th>' +
125    '          <th data-i18n="call:tab1.table.alias"></th>' +
126    '          <th data-i18n="call:tab1.table.repeater1"></th>' +
127    '          <th data-i18n="call:tab1.table.repeater2"></th>' +
128    '          <th data-i18n="call:tab1.table.date"></th>' +
129    '        </tr>' +
130    '      </thead>' +
131    '      <tbody>' +
132    '      </tbody>' +
133    '    </table>' +
134    '  </div>' +
135    '  <div class="tab-pane custom-high" id="privacy">' +
136    '    <div class="alert alert-info" data-i18n="call:tab2.alert">' +
137    '    </div>' +
138    '    <button class="btn btn-large btn-success" type="button" onclick="setVisibility(true)" data-i18n="call:tab2.button1"></button>' +
139    '    <button class="btn btn-large btn-danger custom-space" type="button" onclick="setVisibility(false)" data-i18n="call:tab2.button2"></button>' +
140    '  </div>' +
141    '  <div class="tab-pane custom-high" id="registrar">' +
142
143    '    <div class="alert alert-info" data-i18n="call:tab3.alert">' +
144    '    </div>' +
145    '    <button class="btn btn-large btn-inverse" type="button" onclick="goRegistrar()" data-i18n="call:tab3.button1"></button>' +
146    '  </div>' +
147    /*
148    '  <div class="tab-pane" id="registrar">' +
149    '    <iframe src="https://trust.dstar.su/sign.jsp?key=' + session['key'] + '"></iframe>' +
150    '  </div>' +
151    */
152    '  <div class="tab-pane custom-high" id="spot">' +
153    '    <div class="alert alert-info" data-i18n="call:tab4.alert">
153' +
154    '    </div>' +
155    '    <button class="btn btn-large btn-success" type="button" onclick="attachAddress(true)" data-i18n="call:tab4.button1"></button>' +
156    '  </div>' +
157
158    '  <div class="tab-pane custom-high" id="entrance">' +
159    '    <div class="alert alert-info" data-i18n="call:tab5.alert">' +
160    '    </div>' +
161    '    <form class="form-horizontal">' +
162    '      <div class="control-group">' +
163    '        <label class="control-label" data-i18n="call:tab5.fields.agent"></label>' +
164    '        <div class="controls">' +
165    '          <select id="agent" class="input-medium custom-space">' +
166    '            <option value="1" selected="selected">UP4DAR</option>' +
167    '          </select>' +
168    '        </div>' +
169    '      </div>' +
170    '      <div class="control-group">' +
171    '         <label class="control-label" data-i18n="call:tab5.fields.password"></label>' +
172    '        <div class="controls">' +
173    '          <input id="password" type="password" class="input-xlarge custom-large" onkeypress="validatePasswordInput(this)">' +
174    '        </div>' +
175    '      </div>' +
176    '      <div class="control-group">' +
177    '        <div class="controls">' +
178    '          <a onclick="registerEntry();" class="btn btn-large btn-primary">' +
179    '            <i class="icon-ok"></i>' +
180    '            <span data-i18n="call:tab5.button1"></span>' +
181    '          </a>' +
182    '        </div>' +
183    '      </div>' +
184    '    </form>' +
185    '  </div>' +
186
187    '</div>'
188  );
189
190  $.getJSON(
191    'https://tracker.dstar.su/api/manage/station.php?callback=?',
192    {
193      key: session['key']
194    },
195    handleCallData
196  );
197}
198
199registerHashedPage('call', 'My Call', showCallPage);

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.