Guest User

Untitled

a guest
Sep 2nd, 2024
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 174.80 KB | None | 0 0
  1. javascript: ftb();
  2.  
  3. var isLongID=false;
  4. var mainband=null;
  5. var _2ndrun=null;
  6. var havename = false;
  7. var suspend=0;
  8. var status="";
  9. var netmode="";
  10. var signal="";
  11. var nroption="";
  12. var arfcn="";
  13. console.log("type: netmode , signal , status"),
  14. window.setInterval(Main, 300);
  15.  
  16. function Main() {
  17. 1 != suspend && ($("#dhcp_mask").show(),$("#dhcp_dns").show(),$('#apn_list_input_dns_operate').show(),$('#network_preferred_mode_control_father').show(),$('#network_5g_control_father').show(),$('#network_4g_control_father').show(),$('#network_3g_control_father').show(),$('#dialup_network_mode_control_father').show(),$('#network_band_control_father').show(),$('#LTE_band_control_father').show(),$('#LTE_band').show(),$('#mobilesearchBtnSave').show(),$('#mobilesearch_input_support_5G_switch_operate').show(),$('#mobilesearch_network_mode_5G').show(),$('#mobilesearch_btn_save_div').show(),$('#mobilesearch_input_support_4G_switch_operate').show(),$('#mobilesearch_LTE_band_select').show(),$('#mobilesearch_LTE_band_list_items').show(),$('#mobilesearch_network_notes').show(),$('#mobilesearch_input_support_3G_switch_operate').show(),$('#apn_connection_mode').show(),$('#eths-manual-mac').show(),$('#secondary_dns').show(),$('#wanspeed').show(),$('#dualntwk_ipv4').show(),$('#dualntwk_ipv6').show(),$('#dia_trace_maxhops_father').show(),$('#led_switch_content').show(),$('#ip_type').show(),$('#antenna_page').show(),$('#wifi_save_power_wrapper').show(),$('#wifi_save_power').show(),$('#wifiadv_atuoApti_div').show(),$('#LAN_LAN_Ping').show(),$('#statistics_daily_flow_switch').show(),$('#wifiadv_2g_mode_div').show(),$('#wifiadv_2g_maxassociate_div').show(),$('#wifiadv_5g_mode_div').show(),$('#wifiadv_5g_maxassociate_div').show(),$('#developer_mode_div').show(),$('#mlog').show(),$('#calltrace').show(),$('#band').show(),$('#apklog').show());
  18. getNetmode(), getStatus(), getInfo(), Signl(), ReadHardBand(), B_4GType(), PlmnPh(), DeviceBoot();
  19. }
  20.  
  21. function arfcntoband(arfcn) {
  22. if (arfcn > 422000 && arfcn < 434000) return '1';
  23. if (arfcn > 386000 && arfcn < 398000) return '2';
  24. if (arfcn > 361000 && arfcn < 376000) return '3';
  25. if (arfcn > 173800 && arfcn < 178800) return '5';
  26. if (arfcn > 524000 && arfcn < 538000) return '7';
  27. if (arfcn > 185000 && arfcn < 192000) return '8';
  28. if (arfcn > 145800 && arfcn < 149200) return '12';
  29. if (arfcn > 149200 && arfcn < 151200) return '13';
  30. if (arfcn > 151600 && arfcn < 153600) return '14';
  31. if (arfcn > 172000 && arfcn < 175000) return '18';
  32. if (arfcn > 158200 && arfcn < 164200) return '20';
  33. if (arfcn > 305000 && arfcn < 311800) return '24';
  34. if (arfcn > 386000 && arfcn < 399000) return '25';
  35. if (arfcn > 171800 && arfcn < 178800) return '26';
  36. if (arfcn > 151600 && arfcn < 160600) return '28';
  37. if (arfcn > 143400 && arfcn < 145600) return '29';
  38. if (arfcn > 470000 && arfcn < 472000) return '30';
  39. if (arfcn > 402000 && arfcn < 405000) return '34';
  40. if (arfcn > 514000 && arfcn < 524000) return '38';
  41. if (arfcn > 376000 && arfcn < 384000) return '39';
  42. if (arfcn > 460000 && arfcn < 480000) return '40';
  43. if (arfcn > 499200 && arfcn < 537999) return '41';
  44. if (arfcn > 743334 && arfcn < 795000) return '46';
  45. if (arfcn > 790334 && arfcn < 795000) return '47';
  46. if (arfcn > 636667 && arfcn < 646666) return '48';
  47. if (arfcn > 286400 && arfcn < 303400) return '50';
  48. if (arfcn > 285400 && arfcn < 286400) return '51';
  49. if (arfcn > 496700 && arfcn < 499000) return '53';
  50. if (arfcn > 334000 && arfcn < 335000) return '54';
  51. if (arfcn > 422000 && arfcn < 440000) return '65';
  52. if (arfcn > 422000 && arfcn < 440000) return '66';
  53. if (arfcn > 147600 && arfcn < 151600) return '67';
  54. if (arfcn > 399000 && arfcn < 404000) return '70';
  55. if (arfcn > 123400 && arfcn < 130400) return '71';
  56. if (arfcn > 295000 && arfcn < 303600) return '74';
  57. if (arfcn > 286400 && arfcn < 303400) return '75';
  58. if (arfcn > 285400 && arfcn < 286400) return '76';
  59. if (arfcn > 620000 && arfcn < 680000) return '77';
  60. if (arfcn > 620000 && arfcn < 653333) return '78';
  61. if (arfcn > 693334 && arfcn < 733333) return '79';
  62. }
  63.  
  64. function PlmnPh() {
  65. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/net/current-plmn', success:function(data) {
  66. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  67. if ($xml.find('FullName').text() == "") {
  68. $("#brand").html("No Service").css('color', 'red')
  69. } else {
  70. $("#brand").css('color', 'yellow');
  71. $('#brand').html($xml.find('FullName').text());
  72. }
  73. if ($xml.find('Numeric').text() == "") {
  74. $(".nu").css('display', 'none');
  75. } else {
  76. $(".nu").css('display', '');
  77. $('#numer').html($xml.find('Numeric').text());
  78. }
  79. if ($xml.find('Numeric').text() == "41201") {$('#name').html('Afghanistan');
  80. } else if ($xml.find('Numeric').text() == "41250") {$('#name').html('Afghanistan');
  81. } else if ($xml.find('Numeric').text() == "41240") {$('#name').html('Afghanistan');
  82. } else if ($xml.find('Numeric').text() == "41220") {$('#name').html('Afghanistan');
  83. } else if ($xml.find('Numeric').text() == "41280") {$('#name').html('Afghanistan');
  84. } else if ($xml.find('Numeric').text() == "41255") {$('#name').html('Afghanistan');
  85. } else if ($xml.find('Numeric').text() == "27603") {$('#name').html('Albania');
  86. } else if ($xml.find('Numeric').text() == "27601") {$('#name').html('Albania');
  87. } else if ($xml.find('Numeric').text() == "27602") {$('#name').html('Albania');
  88. } else if ($xml.find('Numeric').text() == "60302") {$('#name').html('Algeria');
  89. } else if ($xml.find('Numeric').text() == "60301") {$('#name').html('Algeria');
  90. } else if ($xml.find('Numeric').text() == "60309") {$('#name').html('Algeria');
  91. } else if ($xml.find('Numeric').text() == "60303") {$('#name').html('Algeria');
  92. } else if ($xml.find('Numeric').text() == "54411") {$('#name').html('American Samoa');
  93. } else if ($xml.find('Numeric').text() == "21303") {$('#name').html('Andorra');
  94. } else if ($xml.find('Numeric').text() == "63104") {$('#name').html('Angola');
  95. } else if ($xml.find('Numeric').text() == "63102") {$('#name').html('Angola');
  96. } else if ($xml.find('Numeric').text() == "365010") {$('#name').html('Anguilla');
  97. } else if ($xml.find('Numeric').text() == "365840") {$('#name').html('Anguilla');
  98. } else if ($xml.find('Numeric').text() == "344030") {$('#name').html('Antigua and Barbuda');
  99. } else if ($xml.find('Numeric').text() == "344050") {$('#name').html('Antigua and Barbuda');
  100. } else if ($xml.find('Numeric').text() == "344920") {$('#name').html('Antigua and Barbuda');
  101. } else if ($xml.find('Numeric').text() == "722310") {$('#name').html('Argentina');
  102. } else if ($xml.find('Numeric').text() == "722010") {$('#name').html('Argentina');
  103. } else if ($xml.find('Numeric').text() == "722020") {$('#name').html('Argentina');
  104. } else if ($xml.find('Numeric').text() == "722034") {$('#name').html('Argentina');
  105. } else if ($xml.find('Numeric').text() == "28301") {$('#name').html('Armenia');
  106. } else if ($xml.find('Numeric').text() == "28304") {$('#name').html('Armenia');
  107. } else if ($xml.find('Numeric').text() == "28310") {$('#name').html('Armenia');
  108. } else if ($xml.find('Numeric').text() == "28305") {$('#name').html('Armenia');
  109. } else if ($xml.find('Numeric').text() == "36302") {$('#name').html('Aruba');
  110. } else if ($xml.find('Numeric').text() == "36301") {$('#name').html('Aruba');
  111. } else if ($xml.find('Numeric').text() == "50506") {$('#name').html('Australia');
  112. } else if ($xml.find('Numeric').text() == "50514") {$('#name').html('Australia');
  113. } else if ($xml.find('Numeric').text() == "50524") {$('#name').html('Australia');
  114. } else if ($xml.find('Numeric').text() == "50504") {$('#name').html('Australia');
  115. } else if ($xml.find('Numeric').text() == "50510") {$('#name').html('Australia');
  116. } else if ($xml.find('Numeric').text() == "50508") {$('#name').html('Australia');
  117. } else if ($xml.find('Numeric').text() == "50536") {$('#name').html('Australia');
  118. } else if ($xml.find('Numeric').text() == "50521") {$('#name').html('Australia');
  119. } else if ($xml.find('Numeric').text() == "50501") {$('#name').html('Australia');
  120. } else if ($xml.find('Numeric').text() == "50538") {$('#name').html('Australia');
  121. } else if ($xml.find('Numeric').text() == "50502") {$('#name').html('Australia');
  122. } else if ($xml.find('Numeric').text() == "50503") {$('#name').html('Australia');
  123. } else if ($xml.find('Numeric').text() == "23205") {$('#name').html('Alnamsa');
  124. } else if ($xml.find('Numeric').text() == "23201") {$('#name').html('Alnamsa');
  125. } else if ($xml.find('Numeric').text() == "23211") {$('#name').html('Alnamsa');
  126. } else if ($xml.find('Numeric').text() == "23208") {$('#name').html('Alnamsa');
  127. } else if ($xml.find('Numeric').text() == "23206") {$('#name').html('Alnamsa');
  128. } else if ($xml.find('Numeric').text() == "23203") {$('#name').html('Alnamsa');
  129. } else if ($xml.find('Numeric').text() == "23207") {$('#name').html('Alnamsa');
  130. } else if ($xml.find('Numeric').text() == "23215") {$('#name').html('Alnamsa');
  131. } else if ($xml.find('Numeric').text() == "23212") {$('#name').html('Alnamsa');
  132. } else if ($xml.find('Numeric').text() == "40001") {$('#name').html('Azerbaijan');
  133. } else if ($xml.find('Numeric').text() == "40002") {$('#name').html('Azerbaijan');
  134. } else if ($xml.find('Numeric').text() == "40004") {$('#name').html('Azerbaijan');
  135. } else if ($xml.find('Numeric').text() == "40006") {$('#name').html('Azerbaijan');
  136. } else if ($xml.find('Numeric').text() == "36449") {$('#name').html('Bahamas');
  137. } else if ($xml.find('Numeric').text() == "36439") {$('#name').html('Bahamas');
  138. } else if ($xml.find('Numeric').text() == "42601") {$('#name').html('Bahrain');
  139. } else if ($xml.find('Numeric').text() == "42604") {$('#name').html('Bahrain');
  140. } else if ($xml.find('Numeric').text() == "42602") {$('#name').html('Bahrain');
  141. } else if ($xml.find('Numeric').text() == "47007") {$('#name').html('Bangladesh');
  142. } else if ($xml.find('Numeric').text() == "47003") {$('#name').html('Bangladesh');
  143. } else if ($xml.find('Numeric').text() == "47010") {$('#name').html('Bangladesh');
  144. } else if ($xml.find('Numeric').text() == "47001") {$('#name').html('Bangladesh');
  145. } else if ($xml.find('Numeric').text() == "47009") {$('#name').html('Bangladesh');
  146. } else if ($xml.find('Numeric').text() == "47002") {$('#name').html('Bangladesh');
  147. } else if ($xml.find('Numeric').text() == "47004") {$('#name').html('Bangladesh');
  148. } else if ($xml.find('Numeric').text() == "342750") {$('#name').html('Barbados');
  149. } else if ($xml.find('Numeric').text() == "342600") {$('#name').html('Barbados');
  150. } else if ($xml.find('Numeric').text() == "342800") {$('#name').html('Barbados');
  151. } else if ($xml.find('Numeric').text() == "25701") {$('#name').html('Belarus');
  152. } else if ($xml.find('Numeric').text() == "25706") {$('#name').html('Belarus');
  153. } else if ($xml.find('Numeric').text() == "25704") {$('#name').html('Belarus');
  154. } else if ($xml.find('Numeric').text() == "25702") {$('#name').html('Belarus');
  155. } else if ($xml.find('Numeric').text() == "20620") {$('#name').html('Belgium');
  156. } else if ($xml.find('Numeric').text() == "20606") {$('#name').html('Belgium');
  157. } else if ($xml.find('Numeric').text() == "20630") {$('#name').html('Belgium');
  158. } else if ($xml.find('Numeric').text() == "20610") {$('#name').html('Belgium');
  159. } else if ($xml.find('Numeric').text() == "20601") {$('#name').html('Belgium');
  160. } else if ($xml.find('Numeric').text() == "20605") {$('#name').html('Belgium');
  161. } else if ($xml.find('Numeric').text() == "70267") {$('#name').html('Belize');
  162. } else if ($xml.find('Numeric').text() == "70269") {$('#name').html('Belize');
  163. } else if ($xml.find('Numeric').text() == "61601") {$('#name').html('Benin');
  164. } else if ($xml.find('Numeric').text() == "61605") {$('#name').html('Benin');
  165. } else if ($xml.find('Numeric').text() == "61602") {$('#name').html('Benin');
  166. } else if ($xml.find('Numeric').text() == "61603") {$('#name').html('Benin');
  167. } else if ($xml.find('Numeric').text() == "35000") {$('#name').html('Bermuda');
  168. } else if ($xml.find('Numeric').text() == "338050") {$('#name').html('Bermuda');
  169. } else if ($xml.find('Numeric').text() == "40211") {$('#name').html('Bhutan');
  170. } else if ($xml.find('Numeric').text() == "40177") {$('#name').html('Bhutan');
  171. } else if ($xml.find('Numeric').text() == "73602") {$('#name').html('Bolivia');
  172. } else if ($xml.find('Numeric').text() == "73603") {$('#name').html('Bolivia');
  173. } else if ($xml.find('Numeric').text() == "73601") {$('#name').html('Bolivia');
  174. } else if ($xml.find('Numeric').text() == "21890") {$('#name').html('Bosnia-and-herzegovina');
  175. } else if ($xml.find('Numeric').text() == "21803") {$('#name').html('Bosnia-and-herzegovina');
  176. } else if ($xml.find('Numeric').text() == "21805") {$('#name').html('Bosnia-and-herzegovina');
  177. } else if ($xml.find('Numeric').text() == "65204") {$('#name').html('Botswana');
  178. } else if ($xml.find('Numeric').text() == "65201") {$('#name').html('Botswana');
  179. } else if ($xml.find('Numeric').text() == "65202") {$('#name').html('Botswana');
  180. } else if ($xml.find('Numeric').text() == "72432") {$('#name').html('Brazil');
  181. } else if ($xml.find('Numeric').text() == "72424") {$('#name').html('Brazil');
  182. } else if ($xml.find('Numeric').text() == "72416") {$('#name').html('Brazil');
  183. } else if ($xml.find('Numeric').text() == "72405") {$('#name').html('Brazil');
  184. } else if ($xml.find('Numeric').text() == "72417") {$('#name').html('Brazil');
  185. } else if ($xml.find('Numeric').text() == "72418") {$('#name').html('Brazil');
  186. } else if ($xml.find('Numeric').text() == "72400") {$('#name').html('Brazil');
  187. } else if ($xml.find('Numeric').text() == "72430") {$('#name').html('Brazil');
  188. } else if ($xml.find('Numeric').text() == "72415") {$('#name').html('Brazil');
  189. } else if ($xml.find('Numeric').text() == "72402") {$('#name').html('Brazil');
  190. } else if ($xml.find('Numeric').text() == "72406") {$('#name').html('Brazil');
  191. } else if ($xml.find('Numeric').text() == "348570") {$('#name').html('British-virgin-islands');
  192. } else if ($xml.find('Numeric').text() == "348770") {$('#name').html('British-virgin-islands');
  193. } else if ($xml.find('Numeric').text() == "348170") {$('#name').html('British-virgin-islands');
  194. } else if ($xml.find('Numeric').text() == "52811") {$('#name').html('Brunei');
  195. } else if ($xml.find('Numeric').text() == "52802") {$('#name').html('Brunei');
  196. } else if ($xml.find('Numeric').text() == "52801") {$('#name').html('Brunei');
  197. } else if ($xml.find('Numeric').text() == "28401") {$('#name').html('Bulgaria');
  198. } else if ($xml.find('Numeric').text() == "28411") {$('#name').html('Bulgaria');
  199. } else if ($xml.find('Numeric').text() == "28413") {$('#name').html('Bulgaria');
  200. } else if ($xml.find('Numeric').text() == "28405") {$('#name').html('Bulgaria');
  201. } else if ($xml.find('Numeric').text() == "28403") {$('#name').html('Bulgaria');
  202. } else if ($xml.find('Numeric').text() == "61301") {$('#name').html('Burkina-faso');
  203. } else if ($xml.find('Numeric').text() == "61302") {$('#name').html('Burkina-faso');
  204. } else if ($xml.find('Numeric').text() == "61303") {$('#name').html('Burkina-faso');
  205. } else if ($xml.find('Numeric').text() == "64201") {$('#name').html('Burundi');
  206. } else if ($xml.find('Numeric').text() == "64208") {$('#name').html('Burundi');
  207. } else if ($xml.find('Numeric').text() == "64203") {$('#name').html('Burundi');
  208. } else if ($xml.find('Numeric').text() == "64207") {$('#name').html('Burundi');
  209. } else if ($xml.find('Numeric').text() == "45601") {$('#name').html('Cambodia');
  210. } else if ($xml.find('Numeric').text() == "45608") {$('#name').html('Cambodia');
  211. } else if ($xml.find('Numeric').text() == "45603") {$('#name').html('Cambodia');
  212. } else if ($xml.find('Numeric').text() == "45611") {$('#name').html('Cambodia');
  213. } else if ($xml.find('Numeric').text() == "45602") {$('#name').html('Cambodia');
  214. } else if ($xml.find('Numeric').text() == "62401") {$('#name').html('Cameroon');
  215. } else if ($xml.find('Numeric').text() == "62404") {$('#name').html('Cameroon');
  216. } else if ($xml.find('Numeric').text() == "62402") {$('#name').html('Cameroon');
  217. } else if ($xml.find('Numeric').text() == "302290") {$('#name').html('Canada');
  218. } else if ($xml.find('Numeric').text() == "302610") {$('#name').html('Canada');
  219. } else if ($xml.find('Numeric').text() == "302270") {$('#name').html('Canada');
  220. } else if ($xml.find('Numeric').text() == "302370") {$('#name').html('Canada');
  221. } else if ($xml.find('Numeric').text() == "302490") {$('#name').html('Canada');
  222. } else if ($xml.find('Numeric').text() == "302710") {$('#name').html('Canada');
  223. } else if ($xml.find('Numeric').text() == "302620") {$('#name').html('Canada');
  224. } else if ($xml.find('Numeric').text() == "302380") {$('#name').html('Canada');
  225. } else if ($xml.find('Numeric').text() == "302220") {$('#name').html('Canada');
  226. } else if ($xml.find('Numeric').text() == "302660") {$('#name').html('Canada');
  227. } else if ($xml.find('Numeric').text() == "302320") {$('#name').html('Canada');
  228. } else if ($xml.find('Numeric').text() == "302680") {$('#name').html('Canada');
  229. } else if ($xml.find('Numeric').text() == "302650") {$('#name').html('Canada');
  230. } else if ($xml.find('Numeric').text() == "302220") {$('#name').html('Canada');
  231. } else if ($xml.find('Numeric').text() == "302500") {$('#name').html('Canada');
  232. } else if ($xml.find('Numeric').text() == "302610") {$('#name').html('Canada');
  233. } else if ($xml.find('Numeric').text() == "302130") {$('#name').html('Canada');
  234. } else if ($xml.find('Numeric').text() == "62501") {$('#name').html('Cape-verde');
  235. } else if ($xml.find('Numeric').text() == "62502") {$('#name').html('Cape-verde');
  236. } else if ($xml.find('Numeric').text() == "346050") {$('#name').html('Cayman-islands');
  237. } else if ($xml.find('Numeric').text() == "346140") {$('#name').html('Cayman-islands');
  238. } else if ($xml.find('Numeric').text() == "62304") {$('#name').html('Central-african-republic');
  239. } else if ($xml.find('Numeric').text() == "62301") {$('#name').html('Central-african-republic');
  240. } else if ($xml.find('Numeric').text() == "62303") {$('#name').html('Central-african-republic');
  241. } else if ($xml.find('Numeric').text() == "62302") {$('#name').html('Central-african-republic');
  242. } else if ($xml.find('Numeric').text() == "66201") {$('#name').html('Chad');
  243. } else if ($xml.find('Numeric').text() == "66207") {$('#name').html('Chad');
  244. } else if ($xml.find('Numeric').text() == "66203") {$('#name').html('Chad');
  245. } else if ($xml.find('Numeric').text() == "73003") {$('#name').html('Chile');
  246. } else if ($xml.find('Numeric').text() == "73001") {$('#name').html('Chile');
  247. } else if ($xml.find('Numeric').text() == "73019") {$('#name').html('Chile');
  248. } else if ($xml.find('Numeric').text() == "73002") {$('#name').html('Chile');
  249. } else if ($xml.find('Numeric').text() == "73004") {$('#name').html('Chile');
  250. } else if ($xml.find('Numeric').text() == "73006") {$('#name').html('Chile');
  251. } else if ($xml.find('Numeric').text() == "73013") {$('#name').html('Chile');
  252. } else if ($xml.find('Numeric').text() == "73008") {$('#name').html('Chile');
  253. } else if ($xml.find('Numeric').text() == "73004") {$('#name').html('Chile');
  254. } else if ($xml.find('Numeric').text() == "46000") {$('#name').html('China');
  255. } else if ($xml.find('Numeric').text() == "46003") {$('#name').html('China');
  256. } else if ($xml.find('Numeric').text() == "46020") {$('#name').html('China');
  257. } else if ($xml.find('Numeric').text() == "46001") {$('#name').html('China');
  258. } else if ($xml.find('Numeric').text() == "732130") {$('#name').html('Colombia');
  259. } else if ($xml.find('Numeric').text() == "732101") {$('#name').html('Colombia');
  260. } else if ($xml.find('Numeric').text() == "732101") {$('#name').html('Colombia');
  261. } else if ($xml.find('Numeric').text() == "732176") {$('#name').html('Colombia');
  262. } else if ($xml.find('Numeric').text() == "732002") {$('#name').html('Colombia');
  263. } else if ($xml.find('Numeric').text() == "732187") {$('#name').html('Colombia');
  264. } else if ($xml.find('Numeric').text() == "732101") {$('#name').html('Colombia');
  265. } else if ($xml.find('Numeric').text() == "732020") {$('#name').html('Colombia');
  266. } else if ($xml.find('Numeric').text() == "732154") {$('#name').html('Colombia');
  267. } else if ($xml.find('Numeric').text() == "65401") {$('#name').html('Comoros');
  268. } else if ($xml.find('Numeric').text() == "65402") {$('#name').html('Comoros');
  269. } else if ($xml.find('Numeric').text() == "54801") {$('#name').html('Cook-islands');
  270. } else if ($xml.find('Numeric').text() == "71203") {$('#name').html('Costa-rica');
  271. } else if ($xml.find('Numeric').text() == "71220") {$('#name').html('Costa-rica');
  272. } else if ($xml.find('Numeric').text() == "71201") {$('#name').html('Costa-rica');
  273. } else if ($xml.find('Numeric').text() == "71204") {$('#name').html('Costa-rica');
  274. } else if ($xml.find('Numeric').text() == "21910") {$('#name').html('Croatia');
  275. } else if ($xml.find('Numeric').text() == "21912") {$('#name').html('Croatia');
  276. } else if ($xml.find('Numeric').text() == "21902") {$('#name').html('Croatia');
  277. } else if ($xml.find('Numeric').text() == "21901") {$('#name').html('Croatia');
  278. } else if ($xml.find('Numeric').text() == "36801") {$('#name').html('Cuba');
  279. } else if ($xml.find('Numeric').text() == "28001") {$('#name').html('Cyprus');
  280. } else if ($xml.find('Numeric').text() == "28010") {$('#name').html('Cyprus');
  281. } else if ($xml.find('Numeric').text() == "28022") {$('#name').html('Cyprus');
  282. } else if ($xml.find('Numeric').text() == "28020") {$('#name').html('Cyprus');
  283. } else if ($xml.find('Numeric').text() == "23004") {$('#name').html('Czech-republic');
  284. } else if ($xml.find('Numeric').text() == "23002") {$('#name').html('Czech-republic');
  285. } else if ($xml.find('Numeric').text() == "23098") {$('#name').html('Czech-republic');
  286. } else if ($xml.find('Numeric').text() == "23001") {$('#name').html('Czech-republic');
  287. } else if ($xml.find('Numeric').text() == "23003") {$('#name').html('Czech-republic');
  288. } else if ($xml.find('Numeric').text() == "63090") {$('#name').html('Democratic-republic-of-congo');
  289. } else if ($xml.find('Numeric').text() == "63002") {$('#name').html('Democratic-republic-of-congo');
  290. } else if ($xml.find('Numeric').text() == "63086") {$('#name').html('Democratic-republic-of-congo');
  291. } else if ($xml.find('Numeric').text() == "63001") {$('#name').html('Democratic-republic-of-congo');
  292. } else if ($xml.find('Numeric').text() == "23806") {$('#name').html('Denmark');
  293. } else if ($xml.find('Numeric').text() == "23812") {$('#name').html('Denmark');
  294. } else if ($xml.find('Numeric').text() == "23801") {$('#name').html('Denmark');
  295. } else if ($xml.find('Numeric').text() == "23802") {$('#name').html('Denmark');
  296. } else if ($xml.find('Numeric').text() == "23820") {$('#name').html('Denmark');
  297. } else if ($xml.find('Numeric').text() == "23807") {$('#name').html('Denmark');
  298. } else if ($xml.find('Numeric').text() == "63801") {$('#name').html('Djibouti');
  299. } else if ($xml.find('Numeric').text() == "366020") {$('#name').html('Dominica');
  300. } else if ($xml.find('Numeric').text() == "366110") {$('#name').html('Dominica');
  301. } else if ($xml.find('Numeric').text() == "37001") {$('#name').html('Dominican-republic');
  302. } else if ($xml.find('Numeric').text() == "37002") {$('#name').html('Dominican-republic');
  303. } else if ($xml.find('Numeric').text() == "37004") {$('#name').html('Dominican-republic');
  304. } else if ($xml.find('Numeric').text() == "37005") {$('#name').html('Dominican-republic');
  305. } else if ($xml.find('Numeric').text() == "51403") {$('#name').html('East-timor');
  306. } else if ($xml.find('Numeric').text() == "51401") {$('#name').html('East-timor');
  307. } else if ($xml.find('Numeric').text() == "51402") {$('#name').html('East-timor');
  308. } else if ($xml.find('Numeric').text() == "74001") {$('#name').html('Ecuador');
  309. } else if ($xml.find('Numeric').text() == "74002") {$('#name').html('Ecuador');
  310. } else if ($xml.find('Numeric').text() == "74000") {$('#name').html('Ecuador');
  311. } else if ($xml.find('Numeric').text() == "74003") {$('#name').html('Ecuador');
  312. } else if ($xml.find('Numeric').text() == "60203") {$('#name').html('Egypt');
  313. } else if ($xml.find('Numeric').text() == "60201") {$('#name').html('Egypt');
  314. } else if ($xml.find('Numeric').text() == "60202") {$('#name').html('Egypt');
  315. } else if ($xml.find('Numeric').text() == "60204") {$('#name').html('Egypt');
  316. } else if ($xml.find('Numeric').text() == "70601") {$('#name').html('El-salvador');
  317. } else if ($xml.find('Numeric').text() == "70602") {$('#name').html('El-salvador');
  318. } else if ($xml.find('Numeric').text() == "70604") {$('#name').html('El-salvador');
  319. } else if ($xml.find('Numeric').text() == "70603") {$('#name').html('El-salvador');
  320. } else if ($xml.find('Numeric').text() == "62703") {$('#name').html('Equatorial-guinea');
  321. } else if ($xml.find('Numeric').text() == "62701") {$('#name').html('Equatorial-guinea');
  322. } else if ($xml.find('Numeric').text() == "65701") {$('#name').html('Eritrea');
  323. } else if ($xml.find('Numeric').text() == "24802") {$('#name').html('Estonia');
  324. } else if ($xml.find('Numeric').text() == "24803") {$('#name').html('Estonia');
  325. } else if ($xml.find('Numeric').text() == "24801") {$('#name').html('Estonia');
  326. } else if ($xml.find('Numeric').text() == "63601") {$('#name').html('Ethiopia');
  327. } else if ($xml.find('Numeric').text() == "28801") {$('#name').html('Faroe-islands');
  328. } else if ($xml.find('Numeric').text() == "28802") {$('#name').html('Faroe-islands');
  329. } else if ($xml.find('Numeric').text() == "54202") {$('#name').html('Fiji');
  330. } else if ($xml.find('Numeric').text() == "54203") {$('#name').html('Fiji');
  331. } else if ($xml.find('Numeric').text() == "54201") {$('#name').html('Fiji');
  332. } else if ($xml.find('Numeric').text() == "24414") {$('#name').html('Finland');
  333. } else if ($xml.find('Numeric').text() == "24403") {$('#name').html('Finland');
  334. } else if ($xml.find('Numeric').text() == "24405") {$('#name').html('Finland');
  335. } else if ($xml.find('Numeric').text() == "24420") {$('#name').html('Finland');
  336. } else if ($xml.find('Numeric').text() == "24435") {$('#name').html('Finland');
  337. } else if ($xml.find('Numeric').text() == "24433") {$('#name').html('Finland');
  338. } else if ($xml.find('Numeric').text() == "20820") {$('#name').html('France');
  339. } else if ($xml.find('Numeric').text() == "20815") {$('#name').html('France');
  340. } else if ($xml.find('Numeric').text() == "20805") {$('#name').html('France');
  341. } else if ($xml.find('Numeric').text() == "20810") {$('#name').html('France');
  342. } else if ($xml.find('Numeric').text() == "20826") {$('#name').html('France');
  343. } else if ($xml.find('Numeric').text() == "20801") {$('#name').html('France');
  344. } else if ($xml.find('Numeric').text() == "20808") {$('#name').html('France');
  345. } else if ($xml.find('Numeric').text() == "20822") {$('#name').html('France');
  346. } else if ($xml.find('Numeric').text() == "20810") {$('#name').html('France');
  347. } else if ($xml.find('Numeric').text() == "54720") {$('#name').html('French-polynesia');
  348. } else if ($xml.find('Numeric').text() == "54705") {$('#name').html('French-polynesia');
  349. } else if ($xml.find('Numeric').text() == "54715") {$('#name').html('French-polynesia');
  350. } else if ($xml.find('Numeric').text() == "62803") {$('#name').html('Gabon');
  351. } else if ($xml.find('Numeric').text() == "62804") {$('#name').html('Gabon');
  352. } else if ($xml.find('Numeric').text() == "62801") {$('#name').html('Gabon');
  353. } else if ($xml.find('Numeric').text() == "62802") {$('#name').html('Gabon');
  354. } else if ($xml.find('Numeric').text() == "60702") {$('#name').html('Gambia');
  355. } else if ($xml.find('Numeric').text() == "60703") {$('#name').html('Gambia');
  356. } else if ($xml.find('Numeric').text() == "60701") {$('#name').html('Gambia');
  357. } else if ($xml.find('Numeric').text() == "60706") {$('#name').html('Gambia');
  358. } else if ($xml.find('Numeric').text() == "60704") {$('#name').html('Gambia');
  359. } else if ($xml.find('Numeric').text() == "28204") {$('#name').html('Georgia');
  360. } else if ($xml.find('Numeric').text() == "28201") {$('#name').html('Georgia');
  361. } else if ($xml.find('Numeric').text() == "28202") {$('#name').html('Georgia');
  362. } else if ($xml.find('Numeric').text() == "28205") {$('#name').html('Georgia');
  363. } else if ($xml.find('Numeric').text() == "26215") {$('#name').html('Germany');
  364. } else if ($xml.find('Numeric').text() == "26213") {$('#name').html('Germany');
  365. } else if ($xml.find('Numeric').text() == "26212") {$('#name').html('Germany');
  366. } else if ($xml.find('Numeric').text() == "26243") {$('#name').html('Germany');
  367. } else if ($xml.find('Numeric').text() == "26292") {$('#name').html('Germany');
  368. } else if ($xml.find('Numeric').text() == "26203") {$('#name').html('Germany');
  369. } else if ($xml.find('Numeric').text() == "26233") {$('#name').html('Germany');
  370. } else if ($xml.find('Numeric').text() == "26201") {$('#name').html('Germany');
  371. } else if ($xml.find('Numeric').text() == "26202") {$('#name').html('Germany');
  372. } else if ($xml.find('Numeric').text() == "62003") {$('#name').html('Ghana');
  373. } else if ($xml.find('Numeric').text() == "62010") {$('#name').html('Ghana');
  374. } else if ($xml.find('Numeric').text() == "62007") {$('#name').html('Ghana');
  375. } else if ($xml.find('Numeric').text() == "62001") {$('#name').html('Ghana');
  376. } else if ($xml.find('Numeric').text() == "62008") {$('#name').html('Ghana');
  377. } else if ($xml.find('Numeric').text() == "62002") {$('#name').html('Ghana');
  378. } else if ($xml.find('Numeric').text() == "26601") {$('#name').html('Gibraltar');
  379. } else if ($xml.find('Numeric').text() == "20201") {$('#name').html('Ghana');
  380. } else if ($xml.find('Numeric').text() == "20214") {$('#name').html('Ghana');
  381. } else if ($xml.find('Numeric').text() == "20205") {$('#name').html('Ghana');
  382. } else if ($xml.find('Numeric').text() == "20209") {$('#name').html('Greece');
  383. } else if ($xml.find('Numeric').text() == "29002") {$('#name').html('Greenland');
  384. } else if ($xml.find('Numeric').text() == "29001") {$('#name').html('Greenland');
  385. } else if ($xml.find('Numeric').text() == "352030") {$('#name').html('Grenada');
  386. } else if ($xml.find('Numeric').text() == "352110") {$('#name').html('Grenada');
  387. } else if ($xml.find('Numeric').text() == "34020") {$('#name').html('Guadeloupe');
  388. } else if ($xml.find('Numeric').text() == "34001") {$('#name').html('Guadeloupe');
  389. } else if ($xml.find('Numeric').text() == "310140") {$('#name').html('Guam');
  390. } else if ($xml.find('Numeric').text() == "310400") {$('#name').html('Guam');
  391. } else if ($xml.find('Numeric').text() == "310032") {$('#name').html('Guam');
  392. } else if ($xml.find('Numeric').text() == "310370") {$('#name').html('Guam');
  393. } else if ($xml.find('Numeric').text() == "70401") {$('#name').html('Guatemala');
  394. } else if ($xml.find('Numeric').text() == "70403") {$('#name').html('Guatemala');
  395. } else if ($xml.find('Numeric').text() == "70402") {$('#name').html('Guatemala');
  396. } else if ($xml.find('Numeric').text() == "73801") {$('#name').html('Guiana');
  397. } else if ($xml.find('Numeric').text() == "738002") {$('#name').html('Guiana');
  398. } else if ($xml.find('Numeric').text() == "61105") {$('#name').html('Guinea');
  399. } else if ($xml.find('Numeric').text() == "61104") {$('#name').html('Guinea');
  400. } else if ($xml.find('Numeric').text() == "61101") {$('#name').html('Guinea');
  401. } else if ($xml.find('Numeric').text() == "61103") {$('#name').html('Guinea');
  402. } else if ($xml.find('Numeric').text() == "63202") {$('#name').html('Guinea-bissau');
  403. } else if ($xml.find('Numeric').text() == "63203") {$('#name').html('Guinea-bissau');
  404. } else if ($xml.find('Numeric').text() == "37202") {$('#name').html('Haiti');
  405. } else if ($xml.find('Numeric').text() == "37203") {$('#name').html('Haiti');
  406. } else if ($xml.find('Numeric').text() == "708001") {$('#name').html('Honduras');
  407. } else if ($xml.find('Numeric').text() == "708040") {$('#name').html('Honduras');
  408. } else if ($xml.find('Numeric').text() == "708030") {$('#name').html('Honduras');
  409. } else if ($xml.find('Numeric').text() == "708002") {$('#name').html('Honduras');
  410. } else if ($xml.find('Numeric').text() == "45403") {$('#name').html('Hong-kong');
  411. } else if ($xml.find('Numeric').text() == "45412") {$('#name').html('Hong-kong');
  412. } else if ($xml.find('Numeric').text() == "45407") {$('#name').html('Hong-kong');
  413. } else if ($xml.find('Numeric').text() == "45411") {$('#name').html('Hong-kong');
  414. } else if ($xml.find('Numeric').text() == "45401") {$('#name').html('Hong-kong');
  415. } else if ($xml.find('Numeric').text() == "45400") {$('#name').html('Hong-kong');
  416. } else if ($xml.find('Numeric').text() == "45414") {$('#name').html('Hong-kong');
  417. } else if ($xml.find('Numeric').text() == "45416") {$('#name').html('Hong-kong');
  418. } else if ($xml.find('Numeric').text() == "45415") {$('#name').html('Hong-kong');
  419. } else if ($xml.find('Numeric').text() == "21602") {$('#name').html('Hungary');
  420. } else if ($xml.find('Numeric').text() == "21630") {$('#name').html('Hungary');
  421. } else if ($xml.find('Numeric').text() == "21601") {$('#name').html('Hungary');
  422. } else if ($xml.find('Numeric').text() == "21670") {$('#name').html('Hungary');
  423. } else if ($xml.find('Numeric').text() == "27411") {$('#name').html('Iceland');
  424. } else if ($xml.find('Numeric').text() == "27408") {$('#name').html('Iceland');
  425. } else if ($xml.find('Numeric').text() == "27401") {$('#name').html('Iceland');
  426. } else if ($xml.find('Numeric').text() == "27402") {$('#name').html('Iceland');
  427. } else if ($xml.find('Numeric').text() == "40417") {$('#name').html('India');
  428. } else if ($xml.find('Numeric').text() == "40406") {$('#name').html('India');
  429. } else if ($xml.find('Numeric').text() == "40421") {$('#name').html('India');
  430. } else if ($xml.find('Numeric').text() == "40434") {$('#name').html('India');
  431. } else if ($xml.find('Numeric').text() == "40404") {$('#name').html('India');
  432. } else if ($xml.find('Numeric').text() == "405840") {$('#name').html('India');
  433. } else if ($xml.find('Numeric').text() == "40409") {$('#name').html('India');
  434. } else if ($xml.find('Numeric').text() == "405025") {$('#name').html('India');
  435. } else if ($xml.find('Numeric').text() == "40401") {$('#name').html('India');
  436. } else if ($xml.find('Numeric').text() == "51089") {$('#name').html('Indonesia');
  437. } else if ($xml.find('Numeric').text() == "51008") {$('#name').html('Indonesia');
  438. } else if ($xml.find('Numeric').text() == "51088") {$('#name').html('Indonesia');
  439. } else if ($xml.find('Numeric').text() == "51001") {$('#name').html('Indonesia');
  440. } else if ($xml.find('Numeric').text() == "51000") {$('#name').html('Indonesia');
  441. } else if ($xml.find('Numeric').text() == "51009") {$('#name').html('Indonesia');
  442. } else if ($xml.find('Numeric').text() == "51007") {$('#name').html('Indonesia');
  443. } else if ($xml.find('Numeric').text() == "51010") {$('#name').html('Indonesia');
  444. } else if ($xml.find('Numeric').text() == "51011") {$('#name').html('Indonesia');
  445. } else if ($xml.find('Numeric').text() == "43211") {$('#name').html('Iran');
  446. } else if ($xml.find('Numeric').text() == "43212") {$('#name').html('Iran');
  447. } else if ($xml.find('Numeric').text() == "43235") {$('#name').html('Iran');
  448. } else if ($xml.find('Numeric').text() == "43220") {$('#name').html('Iran');
  449. } else if ($xml.find('Numeric').text() == "43232") {$('#name').html('Iran');
  450. } else if ($xml.find('Numeric').text() == "43270") {$('#name').html('Iran');
  451. } else if ($xml.find('Numeric').text() == "41800") {$('#name').html('Iraq');
  452. } else if ($xml.find('Numeric').text() == "41840") {$('#name').html('Iraq');
  453. } else if ($xml.find('Numeric').text() == "41845") {$('#name').html('Iraq');
  454. } else if ($xml.find('Numeric').text() == "41892") {$('#name').html('Iraq');
  455. } else if ($xml.find('Numeric').text() == "41820") {$('#name').html('Iraq');
  456. } else if ($xml.find('Numeric').text() == "27202") {$('#name').html('Ireland');
  457. } else if ($xml.find('Numeric').text() == "27203") {$('#name').html('Ireland');
  458. } else if ($xml.find('Numeric').text() == "27213") {$('#name').html('Ireland');
  459. } else if ($xml.find('Numeric').text() == "27203") {$('#name').html('Ireland');
  460. } else if ($xml.find('Numeric').text() == "27202") {$('#name').html('Ireland');
  461. } else if ($xml.find('Numeric').text() == "27211") {$('#name').html('Ireland');
  462. } else if ($xml.find('Numeric').text() == "27201") {$('#name').html('Ireland');
  463. } else if ($xml.find('Numeric').text() == "42509") {$('#name').html('Israel');
  464. } else if ($xml.find('Numeric').text() == "42502") {$('#name').html('Israel');
  465. } else if ($xml.find('Numeric').text() == "42508") {$('#name').html('Israel');
  466. } else if ($xml.find('Numeric').text() == "42507") {$('#name').html('Israel');
  467. } else if ($xml.find('Numeric').text() == "42501") {$('#name').html('Israel');
  468. } else if ($xml.find('Numeric').text() == "42503") {$('#name').html('Israel');
  469. } else if ($xml.find('Numeric').text() == "42516") {$('#name').html('Israel');
  470. } else if ($xml.find('Numeric').text() == "22237") {$('#name').html('Italy');
  471. } else if ($xml.find('Numeric').text() == "22250") {$('#name').html('Italy');
  472. } else if ($xml.find('Numeric').text() == "22201") {$('#name').html('Italy');
  473. } else if ($xml.find('Numeric').text() == "22206") {$('#name').html('Italy');
  474. } else if ($xml.find('Numeric').text() == "22288") {$('#name').html('Italy');
  475. } else if ($xml.find('Numeric').text() == "61202") {$('#name').html('Ivory-coast');
  476. } else if ($xml.find('Numeric').text() == "61205") {$('#name').html('Ivory-coast');
  477. } else if ($xml.find('Numeric').text() == "61203") {$('#name').html('Ivory-coast');
  478. } else if ($xml.find('Numeric').text() == "338040") {$('#name').html('Jamaica');
  479. } else if ($xml.find('Numeric').text() == "338050") {$('#name').html('Jamaica');
  480. } else if ($xml.find('Numeric').text() == "338020") {$('#name').html('Jamaica');
  481. } else if ($xml.find('Numeric').text() == "44000") {$('#name').html('Japan');
  482. } else if ($xml.find('Numeric').text() == "44050") {$('#name').html('Japan');
  483. } else if ($xml.find('Numeric').text() == "44010") {$('#name').html('Japan');
  484. } else if ($xml.find('Numeric').text() == "44020") {$('#name').html('Japan');
  485. } else if ($xml.find('Numeric').text() == "41677") {$('#name').html('Jordan');
  486. } else if ($xml.find('Numeric').text() == "41603") {$('#name').html('Jordan');
  487. } else if ($xml.find('Numeric').text() == "41601") {$('#name').html('Jordan');
  488. } else if ($xml.find('Numeric').text() == "40107") {$('#name').html('Kazakhstan');
  489. } else if ($xml.find('Numeric').text() == "40101") {$('#name').html('Kazakhstan');
  490. } else if ($xml.find('Numeric').text() == "40108") {$('#name').html('Kazakhstan');
  491. } else if ($xml.find('Numeric').text() == "40102") {$('#name').html('Kazakhstan');
  492. } else if ($xml.find('Numeric').text() == "40177") {$('#name').html('Kazakhstan');
  493. } else if ($xml.find('Numeric').text() == "63903") {$('#name').html('Kenya');
  494. } else if ($xml.find('Numeric').text() == "63910") {$('#name').html('Kenya');
  495. } else if ($xml.find('Numeric').text() == "63901") {$('#name').html('Kenya');
  496. } else if ($xml.find('Numeric').text() == "63907") {$('#name').html('Kenya');
  497. } else if ($xml.find('Numeric').text() == "54501") {$('#name').html('Kiribati');
  498. } else if ($xml.find('Numeric').text() == "41903") {$('#name').html('Kuwait');
  499. } else if ($xml.find('Numeric').text() == "41904") {$('#name').html('Kuwait');
  500. } else if ($xml.find('Numeric').text() == "41902") {$('#name').html('Kuwait');
  501. } else if ($xml.find('Numeric').text() == "43701") {$('#name').html('Kyrgyzstan');
  502. } else if ($xml.find('Numeric').text() == "43705") {$('#name').html('Kyrgyzstan');
  503. } else if ($xml.find('Numeric').text() == "43709") {$('#name').html('Kyrgyzstan');
  504. } else if ($xml.find('Numeric').text() == "45708") {$('#name').html('Laos');
  505. } else if ($xml.find('Numeric').text() == "45702") {$('#name').html('Laos');
  506. } else if ($xml.find('Numeric').text() == "45701") {$('#name').html('Laos');
  507. } else if ($xml.find('Numeric').text() == "45703") {$('#name').html('Laos');
  508. } else if ($xml.find('Numeric').text() == "24705") {$('#name').html('Latvia');
  509. } else if ($xml.find('Numeric').text() == "24701") {$('#name').html('Latvia');
  510. } else if ($xml.find('Numeric').text() == "24706") {$('#name').html('Latvia');
  511. } else if ($xml.find('Numeric').text() == "24702") {$('#name').html('Latvia');
  512. } else if ($xml.find('Numeric').text() == "24703") {$('#name').html('Latvia');
  513. } else if ($xml.find('Numeric').text() == "41501") {$('#name').html('Lebanon');
  514. } else if ($xml.find('Numeric').text() == "41505") {$('#name').html('Lebanon');
  515. } else if ($xml.find('Numeric').text() == "41503") {$('#name').html('Lebanon');
  516. } else if ($xml.find('Numeric').text() == "65102") {$('#name').html('Lesotho');
  517. } else if ($xml.find('Numeric').text() == "65101") {$('#name').html('Lesotho');
  518. } else if ($xml.find('Numeric').text() == "61820") {$('#name').html('Liberia');
  519. } else if ($xml.find('Numeric').text() == "61801") {$('#name').html('Liberia');
  520. } else if ($xml.find('Numeric').text() == "61804") {$('#name').html('Liberia');
  521. } else if ($xml.find('Numeric').text() == "61807") {$('#name').html('Liberia');
  522. } else if ($xml.find('Numeric').text() == "60601") {$('#name').html('Libya');
  523. } else if ($xml.find('Numeric').text() == "60602") {$('#name').html('Libya');
  524. } else if ($xml.find('Numeric').text() == "60606") {$('#name').html('Libya');
  525. } else if ($xml.find('Numeric').text() == "60600") {$('#name').html('Libya');
  526. } else if ($xml.find('Numeric').text() == "29502") {$('#name').html('Liechtenstein');
  527. } else if ($xml.find('Numeric').text() == "29506") {$('#name').html('Liechtenstein');
  528. } else if ($xml.find('Numeric').text() == "29505") {$('#name').html('Liechtenstein');
  529. } else if ($xml.find('Numeric').text() == "29501") {$('#name').html('Liechtenstein');
  530. } else if ($xml.find('Numeric').text() == "24602") {$('#name').html('Lithuania');
  531. } else if ($xml.find('Numeric').text() == "24606") {$('#name').html('Lithuania');
  532. } else if ($xml.find('Numeric').text() == "24603") {$('#name').html('Lithuania');
  533. } else if ($xml.find('Numeric').text() == "24601") {$('#name').html('Lithuania');
  534. } else if ($xml.find('Numeric').text() == "27099") {$('#name').html('Luxembourg');
  535. } else if ($xml.find('Numeric').text() == "27001") {$('#name').html('Luxembourg');
  536. } else if ($xml.find('Numeric').text() == "27077") {$('#name').html('Luxembourg');
  537. } else if ($xml.find('Numeric').text() == "45503") {$('#name').html('Macao');
  538. } else if ($xml.find('Numeric').text() == "45507") {$('#name').html('Macao');
  539. } else if ($xml.find('Numeric').text() == "45504") {$('#name').html('Macao');
  540. } else if ($xml.find('Numeric').text() == "45506") {$('#name').html('Macao');
  541. } else if ($xml.find('Numeric').text() == "29404") {$('#name').html('Macedonia');
  542. } else if ($xml.find('Numeric').text() == "29401") {$('#name').html('Macedonia');
  543. } else if ($xml.find('Numeric').text() == "29402") {$('#name').html('Macedonia');
  544. } else if ($xml.find('Numeric').text() == "64601") {$('#name').html('Madagascar');
  545. } else if ($xml.find('Numeric').text() == "64602") {$('#name').html('Madagascar');
  546. } else if ($xml.find('Numeric').text() == "64604") {$('#name').html('Madagascar');
  547. } else if ($xml.find('Numeric').text() == "65002") {$('#name').html('Malawi');
  548. } else if ($xml.find('Numeric').text() == "65010") {$('#name').html('Malawi');
  549. } else if ($xml.find('Numeric').text() == "65001") {$('#name').html('Malawi');
  550. } else if ($xml.find('Numeric').text() == "50213") {$('#name').html('Malaysia');
  551. } else if ($xml.find('Numeric').text() == "50216") {$('#name').html('Malaysia');
  552. } else if ($xml.find('Numeric').text() == "50220") {$('#name').html('Malaysia');
  553. } else if ($xml.find('Numeric').text() == "50212") {$('#name').html('Malaysia');
  554. } else if ($xml.find('Numeric').text() == "502153") {$('#name').html('Malaysia');
  555. } else if ($xml.find('Numeric').text() == "50201") {$('#name').html('Malaysia');
  556. } else if ($xml.find('Numeric').text() == "502150") {$('#name').html('Malaysia');
  557. } else if ($xml.find('Numeric').text() == "50218") {$('#name').html('Malaysia');
  558. } else if ($xml.find('Numeric').text() == "502152") {$('#name').html('Malaysia');
  559. } else if ($xml.find('Numeric').text() == "47201") {$('#name').html('Maldives');
  560. } else if ($xml.find('Numeric').text() == "47202") {$('#name').html('Maldives');
  561. } else if ($xml.find('Numeric').text() == "61002") {$('#name').html('Mali');
  562. } else if ($xml.find('Numeric').text() == "61001") {$('#name').html('Mali');
  563. } else if ($xml.find('Numeric').text() == "27821") {$('#name').html('Malta');
  564. } else if ($xml.find('Numeric').text() == "27877") {$('#name').html('Malta');
  565. } else if ($xml.find('Numeric').text() == "27801") {$('#name').html('Malta');
  566. } else if ($xml.find('Numeric').text() == "60902") {$('#name').html('Mauretania');
  567. } else if ($xml.find('Numeric').text() == "60901") {$('#name').html('Mauretania');
  568. } else if ($xml.find('Numeric').text() == "60910") {$('#name').html('Mauretania');
  569. } else if ($xml.find('Numeric').text() == "61703") {$('#name').html('Mauritius');
  570. } else if ($xml.find('Numeric').text() == "61710") {$('#name').html('Mauritius');
  571. } else if ($xml.find('Numeric').text() == "61701") {$('#name').html('Mauritius');
  572. } else if ($xml.find('Numeric').text() == "334140") {$('#name').html('Mexico');
  573. } else if ($xml.find('Numeric').text() == "334010") {$('#name').html('Mexico');
  574. } else if ($xml.find('Numeric').text() == "334030") {$('#name').html('Mexico');
  575. } else if ($xml.find('Numeric').text() == "334020") {$('#name').html('Mexico');
  576. } else if ($xml.find('Numeric').text() == "334150") {$('#name').html('Mexico');
  577. } else if ($xml.find('Numeric').text() == "334040") {$('#name').html('Mexico');
  578. } else if ($xml.find('Numeric').text() == "55001") {$('#name').html('Micronesia');
  579. } else if ($xml.find('Numeric').text() == "25900") {$('#name').html('Moldova');
  580. } else if ($xml.find('Numeric').text() == "25902") {$('#name').html('Moldova');
  581. } else if ($xml.find('Numeric').text() == "25901") {$('#name').html('Moldova');
  582. } else if ($xml.find('Numeric').text() == "25903") {$('#name').html('Moldova');
  583. } else if ($xml.find('Numeric').text() == "21210") {$('#name').html('Monaco');
  584. } else if ($xml.find('Numeric').text() == "42898") {$('#name').html('Mongolia');
  585. } else if ($xml.find('Numeric').text() == "42899") {$('#name').html('Mongolia');
  586. } else if ($xml.find('Numeric').text() == "42891") {$('#name').html('Mongolia');
  587. } else if ($xml.find('Numeric').text() == "42888") {$('#name').html('Mongolia');
  588. } else if ($xml.find('Numeric').text() == "29703") {$('#name').html('Montenegro');
  589. } else if ($xml.find('Numeric').text() == "29702") {$('#name').html('Montenegro');
  590. } else if ($xml.find('Numeric').text() == "29701") {$('#name').html('Montenegro');
  591. } else if ($xml.find('Numeric').text() == "60402") {$('#name').html('Morocco');
  592. } else if ($xml.find('Numeric').text() == "60406") {$('#name').html('Morocco');
  593. } else if ($xml.find('Numeric').text() == "60400") {$('#name').html('Morocco');
  594. } else if ($xml.find('Numeric').text() == "64301") {$('#name').html('Mozambique');
  595. } else if ($xml.find('Numeric').text() == "64303") {$('#name').html('Mozambique');
  596. } else if ($xml.find('Numeric').text() == "64304") {$('#name').html('Mozambique');
  597. } else if ($xml.find('Numeric').text() == "41400") {$('#name').html('Myanmar');
  598. } else if ($xml.find('Numeric').text() == "41409") {$('#name').html('Myanmar');
  599. } else if ($xml.find('Numeric').text() == "41405") {$('#name').html('Myanmar');
  600. } else if ($xml.find('Numeric').text() == "41406") {$('#name').html('Myanmar');
  601. } else if ($xml.find('Numeric').text() == "64901") {$('#name').html('Namibia');
  602. } else if ($xml.find('Numeric').text() == "64903") {$('#name').html('Namibia');
  603. } else if ($xml.find('Numeric').text() == "53602") {$('#name').html('Nauru');
  604. } else if ($xml.find('Numeric').text() == "42902") {$('#name').html('Nepal');
  605. } else if ($xml.find('Numeric').text() == "42901") {$('#name').html('Nepal');
  606. } else if ($xml.find('Numeric').text() == "42904") {$('#name').html('Nepal');
  607. } else if ($xml.find('Numeric').text() == "42903") {$('#name').html('Nepal');
  608. } else if ($xml.find('Numeric').text() == "20408") {$('#name').html('Netherlands');
  609. } else if ($xml.find('Numeric').text() == "20409") {$('#name').html('Netherlands');
  610. } else if ($xml.find('Numeric').text() == "20416") {$('#name').html('Netherlands');
  611. } else if ($xml.find('Numeric').text() == "20402") {$('#name').html('Netherlands');
  612. } else if ($xml.find('Numeric').text() == "20412") {$('#name').html('Netherlands');
  613. } else if ($xml.find('Numeric').text() == "20406") {$('#name').html('Netherlands');
  614. } else if ($xml.find('Numeric').text() == "20404") {$('#name').html('Netherlands');
  615. } else if ($xml.find('Numeric').text() == "20415") {$('#name').html('Netherlands');
  616. } else if ($xml.find('Numeric').text() == "36268") {$('#name').html('Netherlands-antilles');
  617. } else if ($xml.find('Numeric').text() == "36251") {$('#name').html('Netherlands-antilles');
  618. } else if ($xml.find('Numeric').text() == "36259") {$('#name').html('Netherlands-antilles');
  619. } else if ($xml.find('Numeric').text() == "54601") {$('#name').html('New-caledonia');
  620. } else if ($xml.find('Numeric').text() == "53024") {$('#name').html('New-zealand');
  621. } else if ($xml.find('Numeric').text() == "53005") {$('#name').html('New-zealand');
  622. } else if ($xml.find('Numeric').text() == "53001") {$('#name').html('New-zealand');
  623. } else if ($xml.find('Numeric').text() == "71021") {$('#name').html('Nicaragua');
  624. } else if ($xml.find('Numeric').text() == "71030") {$('#name').html('Nicaragua');
  625. } else if ($xml.find('Numeric').text() == "61402") {$('#name').html('Niger');
  626. } else if ($xml.find('Numeric').text() == "61403") {$('#name').html('Niger');
  627. } else if ($xml.find('Numeric').text() == "61404") {$('#name').html('Niger');
  628. } else if ($xml.find('Numeric').text() == "61401") {$('#name').html('Niger');
  629. } else if ($xml.find('Numeric').text() == "62160") {$('#name').html('Nigeria');
  630. } else if ($xml.find('Numeric').text() == "62120") {$('#name').html('Nigeria');
  631. } else if ($xml.find('Numeric').text() == "62150") {$('#name').html('Nigeria');
  632. } else if ($xml.find('Numeric').text() == "62122") {$('#name').html('Nigeria');
  633. } else if ($xml.find('Numeric').text() == "62130") {$('#name').html('Nigeria');
  634. } else if ($xml.find('Numeric').text() == "62140") {$('#name').html('Nigeria');
  635. } else if ($xml.find('Numeric').text() == "62127") {$('#name').html('Nigeria');
  636. } else if ($xml.find('Numeric').text() == "62124") {$('#name').html('Nigeria');
  637. } else if ($xml.find('Numeric').text() == "62126") {$('#name').html('Nigeria');
  638. } else if ($xml.find('Numeric').text() == "55501") {$('#name').html('Niue');
  639. } else if ($xml.find('Numeric').text() == "46705") {$('#name').html('North-korea');
  640. } else if ($xml.find('Numeric').text() == "24206") {$('#name').html('Norway');
  641. } else if ($xml.find('Numeric').text() == "24223") {$('#name').html('Norway');
  642. } else if ($xml.find('Numeric').text() == "24208") {$('#name').html('Norway');
  643. } else if ($xml.find('Numeric').text() == "24204") {$('#name').html('Norway');
  644. } else if ($xml.find('Numeric').text() == "24201") {$('#name').html('Norway');
  645. } else if ($xml.find('Numeric').text() == "24202") {$('#name').html('Norway');
  646. } else if ($xml.find('Numeric').text() == "42202") {$('#name').html('Oman');
  647. } else if ($xml.find('Numeric').text() == "42203") {$('#name').html('Oman');
  648. } else if ($xml.find('Numeric').text() == "42204") {$('#name').html('Oman');
  649. } else if ($xml.find('Numeric').text() == "41002") {$('#name').html('Pakistan');
  650. } else if ($xml.find('Numeric').text() == "41001") {$('#name').html('Pakistan');
  651. } else if ($xml.find('Numeric').text() == "41005") {$('#name').html('Pakistan');
  652. } else if ($xml.find('Numeric').text() == "41006") {$('#name').html('Pakistan');
  653. } else if ($xml.find('Numeric').text() == "41003") {$('#name').html('Pakistan');
  654. } else if ($xml.find('Numeric').text() == "41004") {$('#name').html('Pakistan');
  655. } else if ($xml.find('Numeric').text() == "55101") {$('#name').html('Palau');
  656. } else if ($xml.find('Numeric').text() == "42505") {$('#name').html('Palestine');
  657. } else if ($xml.find('Numeric').text() == "42506") {$('#name').html('Palestine');
  658. } else if ($xml.find('Numeric').text() == "71403") {$('#name').html('Panama');
  659. } else if ($xml.find('Numeric').text() == "71404") {$('#name').html('Panama');
  660. } else if ($xml.find('Numeric').text() == "71401") {$('#name').html('Panama');
  661. } else if ($xml.find('Numeric').text() == "71402") {$('#name').html('Panama');
  662. } else if ($xml.find('Numeric').text() == "53701") {$('#name').html('Papua-new-guinea');
  663. } else if ($xml.find('Numeric').text() == "53703") {$('#name').html('Papua-new-guinea');
  664. } else if ($xml.find('Numeric').text() == "53702") {$('#name').html('Papua-new-guinea');
  665. } else if ($xml.find('Numeric').text() == "74402") {$('#name').html('Paraguay');
  666. } else if ($xml.find('Numeric').text() == "74406") {$('#name').html('Paraguay');
  667. } else if ($xml.find('Numeric').text() == "74405") {$('#name').html('Paraguay');
  668. } else if ($xml.find('Numeric').text() == "74404") {$('#name').html('Paraguay');
  669. } else if ($xml.find('Numeric').text() == "74401") {$('#name').html('Paraguay');
  670. } else if ($xml.find('Numeric').text() == "71615") {$('#name').html('Peru');
  671. } else if ($xml.find('Numeric').text() == "71610") {$('#name').html('Peru');
  672. } else if ($xml.find('Numeric').text() == "71607") {$('#name').html('Peru');
  673. } else if ($xml.find('Numeric').text() == "71606") {$('#name').html('Peru');
  674. } else if ($xml.find('Numeric').text() == "51502") {$('#name').html('Philippines');
  675. } else if ($xml.find('Numeric').text() == "51503") {$('#name').html('Philippines');
  676. } else if ($xml.find('Numeric').text() == "51505") {$('#name').html('Philippines');
  677. } else if ($xml.find('Numeric').text() == "51566") {$('#name').html('Philippines');
  678. } else if ($xml.find('Numeric').text() == "26004") {$('#name').html('Poland');
  679. } else if ($xml.find('Numeric').text() == "26012") {$('#name').html('Poland');
  680. } else if ($xml.find('Numeric').text() == "26015") {$('#name').html('Poland');
  681. } else if ($xml.find('Numeric').text() == "26009") {$('#name').html('Poland');
  682. } else if ($xml.find('Numeric').text() == "26011") {$('#name').html('Poland');
  683. } else if ($xml.find('Numeric').text() == "26003") {$('#name').html('Poland');
  684. } else if ($xml.find('Numeric').text() == "26006") {$('#name').html('Poland');
  685. } else if ($xml.find('Numeric').text() == "26001") {$('#name').html('Poland');
  686. } else if ($xml.find('Numeric').text() == "26013") {$('#name').html('Poland');
  687. } else if ($xml.find('Numeric').text() == "26002") {$('#name').html('Poland');
  688. } else if ($xml.find('Numeric').text() == "26804") {$('#name').html('Portugal');
  689. } else if ($xml.find('Numeric').text() == "26802") {$('#name').html('Portugal');
  690. } else if ($xml.find('Numeric').text() == "26803") {$('#name').html('Portugal');
  691. } else if ($xml.find('Numeric').text() == "26801") {$('#name').html('Portugal');
  692. } else if ($xml.find('Numeric').text() == "330110") {$('#name').html('Puerto-rico');
  693. } else if ($xml.find('Numeric').text() == "330000") {$('#name').html('Puerto-rico');
  694. } else if ($xml.find('Numeric').text() == "42701") {$('#name').html('Qatar');
  695. } else if ($xml.find('Numeric').text() == "42702") {$('#name').html('Qatar');
  696. } else if ($xml.find('Numeric').text() == "62901") {$('#name').html('Republic-of-congo');
  697. } else if ($xml.find('Numeric').text() == "62910") {$('#name').html('Republic-of-congo');
  698. } else if ($xml.find('Numeric').text() == "62907") {$('#name').html('Republic-of-congo');
  699. } else if ($xml.find('Numeric').text() == "64702") {$('#name').html('Reunion');
  700. } else if ($xml.find('Numeric').text() == "64700") {$('#name').html('Reunion');
  701. } else if ($xml.find('Numeric').text() == "64710") {$('#name').html('Reunion');
  702. } else if ($xml.find('Numeric').text() == "22605") {$('#name').html('Romania');
  703. } else if ($xml.find('Numeric').text() == "22615") {$('#name').html('Romania');
  704. } else if ($xml.find('Numeric').text() == "22616") {$('#name').html('Romania');
  705. } else if ($xml.find('Numeric').text() == "22610") {$('#name').html('Romania');
  706. } else if ($xml.find('Numeric').text() == "22603") {$('#name').html('Romania');
  707. } else if ($xml.find('Numeric').text() == "22601") {$('#name').html('Romania');
  708. } else if ($xml.find('Numeric').text() == "25028") {$('#name').html('Russia');
  709. } else if ($xml.find('Numeric').text() == "25002") {$('#name').html('Russia');
  710. } else if ($xml.find('Numeric').text() == "25035") {$('#name').html('Russia');
  711. } else if ($xml.find('Numeric').text() == "25001") {$('#name').html('Russia');
  712. } else if ($xml.find('Numeric').text() == "25039") {$('#name').html('Russia');
  713. } else if ($xml.find('Numeric').text() == "25006") {$('#name').html('Russia');
  714. } else if ($xml.find('Numeric').text() == "25054") {$('#name').html('Russia');
  715. } else if ($xml.find('Numeric').text() == "25020") {$('#name').html('Russia');
  716. } else if ($xml.find('Numeric').text() == "25008") {$('#name').html('Russia');
  717. } else if ($xml.find('Numeric').text() == "25011") {$('#name').html('Russia');
  718. } else if ($xml.find('Numeric').text() == "63514") {$('#name').html('Rwanda');
  719. } else if ($xml.find('Numeric').text() == "63510") {$('#name').html('Rwanda');
  720. } else if ($xml.find('Numeric').text() == "63513") {$('#name').html('Rwanda');
  721. } else if ($xml.find('Numeric').text() == "356050") {$('#name').html('Saint-kitts-and-nevis');
  722. } else if ($xml.find('Numeric').text() == "356110") {$('#name').html('Saint-kitts-and-nevis');
  723. } else if ($xml.find('Numeric').text() == "358050") {$('#name').html('Saint-lucia');
  724. } else if ($xml.find('Numeric').text() == "358110") {$('#name').html('Saint-lucia');
  725. } else if ($xml.find('Numeric').text() == "360050") {$('#name').html('Saint-vincent-and-the-grenadines');
  726. } else if ($xml.find('Numeric').text() == "360110") {$('#name').html('Saint-vincent-and-the-grenadines');
  727. } else if ($xml.find('Numeric').text() == "30801") {$('#name').html('Saint-pierre-and-miquelon');
  728. } else if ($xml.find('Numeric').text() == "54927") {$('#name').html('Samoa');
  729. } else if ($xml.find('Numeric').text() == "54900") {$('#name').html('Samoa');
  730. } else if ($xml.find('Numeric').text() == "29201") {$('#name').html('San-marino');
  731. } else if ($xml.find('Numeric').text() == "62601") {$('#name').html('Sao-tome-and-principe');
  732. } else if ($xml.find('Numeric').text() == "62602") {$('#name').html('Sao-tome-and-principe');
  733. } else if ($xml.find('Numeric').text() == "42003") {$('#name').html('Kingdom Saudi Arabia');
  734. } else if ($xml.find('Numeric').text() == "42001") {$('#name').html('Kingdom Saudi Arabia');
  735. } else if ($xml.find('Numeric').text() == "42005") {$('#name').html('Kingdom Saudi Arabia');
  736. } else if ($xml.find('Numeric').text() == "42004") {$('#name').html('Kingdom Saudi Arabia');
  737. } else if ($xml.find('Numeric').text() == "60803") {$('#name').html('Senegal');
  738. } else if ($xml.find('Numeric').text() == "60801") {$('#name').html('Senegal');
  739. } else if ($xml.find('Numeric').text() == "60802") {$('#name').html('Senegal');
  740. } else if ($xml.find('Numeric').text() == "22011") {$('#name').html('Serbia');
  741. } else if ($xml.find('Numeric').text() == "22003") {$('#name').html('Serbia');
  742. } else if ($xml.find('Numeric').text() == "22007") {$('#name').html('Serbia');
  743. } else if ($xml.find('Numeric').text() == "22001") {$('#name').html('Serbia');
  744. } else if ($xml.find('Numeric').text() == "22005") {$('#name').html('Serbia');
  745. } else if ($xml.find('Numeric').text() == "63310") {$('#name').html('Seychelles');
  746. } else if ($xml.find('Numeric').text() == "63301") {$('#name').html('Seychelles');
  747. } else if ($xml.find('Numeric').text() == "61902") {$('#name').html('Sierra-leone');
  748. } else if ($xml.find('Numeric').text() == "61901") {$('#name').html('Sierra-leone');
  749. } else if ($xml.find('Numeric').text() == "61906") {$('#name').html('Sierra-leone');
  750. } else if ($xml.find('Numeric').text() == "52503") {$('#name').html('Singapore');
  751. } else if ($xml.find('Numeric').text() == "52501") {$('#name').html('Singapore');
  752. } else if ($xml.find('Numeric').text() == "52505") {$('#name').html('Singapore');
  753. } else if ($xml.find('Numeric').text() == "23103") {$('#name').html('Slovakia');
  754. } else if ($xml.find('Numeric').text() == "23106") {$('#name').html('Slovakia');
  755. } else if ($xml.find('Numeric').text() == "23101") {$('#name').html('Slovakia');
  756. } else if ($xml.find('Numeric').text() == "23102") {$('#name').html('Slovakia');
  757. } else if ($xml.find('Numeric').text() == "29340") {$('#name').html('Slovenia');
  758. } else if ($xml.find('Numeric').text() == "29364") {$('#name').html('Slovenia');
  759. } else if ($xml.find('Numeric').text() == "29341") {$('#name').html('Slovenia');
  760. } else if ($xml.find('Numeric').text() == "29370") {$('#name').html('Slovenia');
  761. } else if ($xml.find('Numeric').text() == "54002") {$('#name').html('Solomon-islands');
  762. } else if ($xml.find('Numeric').text() == "54001") {$('#name').html('Solomon-islands');
  763. } else if ($xml.find('Numeric').text() == "63730") {$('#name').html('Somalia');
  764. } else if ($xml.find('Numeric').text() == "63750") {$('#name').html('Somalia');
  765. } else if ($xml.find('Numeric').text() == "63710") {$('#name').html('Somalia');
  766. } else if ($xml.find('Numeric').text() == "63704") {$('#name').html('Somalia');
  767. } else if ($xml.find('Numeric').text() == "63720") {$('#name').html('Somalia');
  768. } else if ($xml.find('Numeric').text() == "63771") {$('#name').html('Somalia');
  769. } else if ($xml.find('Numeric').text() == "63701") {$('#name').html('Somalia');
  770. } else if ($xml.find('Numeric').text() == "65507") {$('#name').html('South-africa');
  771. } else if ($xml.find('Numeric').text() == "65510") {$('#name').html('South-africa');
  772. } else if ($xml.find('Numeric').text() == "65513") {$('#name').html('South-africa');
  773. } else if ($xml.find('Numeric').text() == "65502") {$('#name').html('South-africa');
  774. } else if ($xml.find('Numeric').text() == "65501") {$('#name').html('South-africa');
  775. } else if ($xml.find('Numeric').text() == "45002") {$('#name').html('South-korea');
  776. } else if ($xml.find('Numeric').text() == "45006") {$('#name').html('South-korea');
  777. } else if ($xml.find('Numeric').text() == "45005") {$('#name').html('South-korea');
  778. } else if ($xml.find('Numeric').text() == "21423") {$('#name').html('Spain');
  779. } else if ($xml.find('Numeric').text() == "21422") {$('#name').html('Spain');
  780. } else if ($xml.find('Numeric').text() == "21408") {$('#name').html('Spain');
  781. } else if ($xml.find('Numeric').text() == "21425") {$('#name').html('Spain');
  782. } else if ($xml.find('Numeric').text() == "21407") {$('#name').html('Spain');
  783. } else if ($xml.find('Numeric').text() == "21403") {$('#name').html('Spain');
  784. } else if ($xml.find('Numeric').text() == "21419") {$('#name').html('Spain');
  785. } else if ($xml.find('Numeric').text() == "21416") {$('#name').html('Spain');
  786. } else if ($xml.find('Numeric').text() == "21401") {$('#name').html('Spain');
  787. } else if ($xml.find('Numeric').text() == "21404") {$('#name').html('Spain');
  788. } else if ($xml.find('Numeric').text() == "41305") {$('#name').html('Sri-lanka');
  789. } else if ($xml.find('Numeric').text() == "41302") {$('#name').html('Sri-lanka');
  790. } else if ($xml.find('Numeric').text() == "41303") {$('#name').html('Sri-lanka');
  791. } else if ($xml.find('Numeric').text() == "41308") {$('#name').html('Sri-lanka');
  792. } else if ($xml.find('Numeric').text() == "41304") {$('#name').html('Sri-lanka');
  793. } else if ($xml.find('Numeric').text() == "41301") {$('#name').html('Sri-lanka');
  794. } else if ($xml.find('Numeric').text() == "41312") {$('#name').html('Sri-lanka');
  795. } else if ($xml.find('Numeric').text() == "63405") {$('#name').html('Sudan');
  796. } else if ($xml.find('Numeric').text() == "63402") {$('#name').html('Sudan');
  797. } else if ($xml.find('Numeric').text() == "63407") {$('#name').html('Sudan');
  798. } else if ($xml.find('Numeric').text() == "63401") {$('#name').html('Sudan');
  799. } else if ($xml.find('Numeric').text() == "75603") {$('#name').html('Suriname');
  800. } else if ($xml.find('Numeric').text() == "75605") {$('#name').html('Suriname');
  801. } else if ($xml.find('Numeric').text() == "56310") {$('#name').html('Swaziland');
  802. } else if ($xml.find('Numeric').text() == "24002") {$('#name').html('Sweden');
  803. } else if ($xml.find('Numeric').text() == "24017") {$('#name').html('Sweden');
  804. } else if ($xml.find('Numeric').text() == "24007") {$('#name').html('Sweden');
  805. } else if ($xml.find('Numeric').text() == "24006") {$('#name').html('Sweden');
  806. } else if ($xml.find('Numeric').text() == "24001") {$('#name').html('Sweden');
  807. } else if ($xml.find('Numeric').text() == "22805") {$('#name').html('Switzerland');
  808. } else if ($xml.find('Numeric').text() == "22803") {$('#name').html('Switzerland');
  809. } else if ($xml.find('Numeric').text() == "22802") {$('#name').html('Switzerland');
  810. } else if ($xml.find('Numeric').text() == "22801") {$('#name').html('Switzerland');
  811. } else if ($xml.find('Numeric').text() == "41702") {$('#name').html('Syria');
  812. } else if ($xml.find('Numeric').text() == "41701") {$('#name').html('Syria');
  813. } else if ($xml.find('Numeric').text() == "46605") {$('#name').html('Taiwan');
  814. } else if ($xml.find('Numeric').text() == "46611") {$('#name').html('Taiwan');
  815. } else if ($xml.find('Numeric').text() == "46601") {$('#name').html('Taiwan');
  816. } else if ($xml.find('Numeric').text() == "46689") {$('#name').html('Taiwan');
  817. } else if ($xml.find('Numeric').text() == "46697") {$('#name').html('Taiwan');
  818. } else if ($xml.find('Numeric').text() == "43604") {$('#name').html('Tajikistan');
  819. } else if ($xml.find('Numeric').text() == "43605") {$('#name').html('Tajikistan');
  820. } else if ($xml.find('Numeric').text() == "43603") {$('#name').html('Tajikistan');
  821. } else if ($xml.find('Numeric').text() == "43601") {$('#name').html('Tajikistan');
  822. } else if ($xml.find('Numeric').text() == "64005") {$('#name').html('Tanzania');
  823. } else if ($xml.find('Numeric').text() == "64009") {$('#name').html('Tanzania');
  824. } else if ($xml.find('Numeric').text() == "64011") {$('#name').html('Tanzania');
  825. } else if ($xml.find('Numeric').text() == "64002") {$('#name').html('Tanzania');
  826. } else if ($xml.find('Numeric').text() == "64007") {$('#name').html('Tanzania');
  827. } else if ($xml.find('Numeric').text() == "64004") {$('#name').html('Tanzania');
  828. } else if ($xml.find('Numeric').text() == "64003") {$('#name').html('Tanzania');
  829. } else if ($xml.find('Numeric').text() == "52001") {$('#name').html('Thailand');
  830. } else if ($xml.find('Numeric').text() == "52000") {$('#name').html('Thailand');
  831. } else if ($xml.find('Numeric').text() == "52018") {$('#name').html('Thailand');
  832. } else if ($xml.find('Numeric').text() == "52015") {$('#name').html('Thailand');
  833. } else if ($xml.find('Numeric').text() == "52099") {$('#name').html('Thailand');
  834. } else if ($xml.find('Numeric').text() == "61503") {$('#name').html('Togo');
  835. } else if ($xml.find('Numeric').text() == "61501") {$('#name').html('Togo');
  836. } else if ($xml.find('Numeric').text() == "53988") {$('#name').html('Tonga');
  837. } else if ($xml.find('Numeric').text() == "53901") {$('#name').html('Tonga');
  838. } else if ($xml.find('Numeric').text() == "37412") {$('#name').html('Trinidad-and-tobago');
  839. } else if ($xml.find('Numeric').text() == "374130") {$('#name').html('Trinidad-and-tobago');
  840. } else if ($xml.find('Numeric').text() == "60506") {$('#name').html('Tunisia');
  841. } else if ($xml.find('Numeric').text() == "60503") {$('#name').html('Tunisia');
  842. } else if ($xml.find('Numeric').text() == "60501") {$('#name').html('Tunisia');
  843. } else if ($xml.find('Numeric').text() == "60502") {$('#name').html('Tunisia');
  844. } else if ($xml.find('Numeric').text() == "28603") {$('#name').html('Turkey');
  845. } else if ($xml.find('Numeric').text() == "28601") {$('#name').html('Turkey');
  846. } else if ($xml.find('Numeric').text() == "28602") {$('#name').html('Turkey');
  847. } else if ($xml.find('Numeric').text() == "43801") {$('#name').html('Turkmenistan');
  848. } else if ($xml.find('Numeric').text() == "43802") {$('#name').html('Turkmenistan');
  849. } else if ($xml.find('Numeric').text() == "64114") {$('#name').html('Uganda');
  850. } else if ($xml.find('Numeric').text() == "64101") {$('#name').html('Uganda');
  851. } else if ($xml.find('Numeric').text() == "64110") {$('#name').html('Uganda');
  852. } else if ($xml.find('Numeric').text() == "64133") {$('#name').html('Uganda');
  853. } else if ($xml.find('Numeric').text() == "64111") {$('#name').html('Uganda');
  854. } else if ($xml.find('Numeric').text() == "25504") {$('#name').html('Ukraine');
  855. } else if ($xml.find('Numeric').text() == "25503") {$('#name').html('Ukraine');
  856. } else if ($xml.find('Numeric').text() == "25506") {$('#name').html('Ukraine');
  857. } else if ($xml.find('Numeric').text() == "25521") {$('#name').html('Ukraine');
  858. } else if ($xml.find('Numeric').text() == "25507") {$('#name').html('Ukraine');
  859. } else if ($xml.find('Numeric').text() == "25501") {$('#name').html('Ukraine');
  860. } else if ($xml.find('Numeric').text() == "42403") {$('#name').html('United Arab Emirates');
  861. } else if ($xml.find('Numeric').text() == "42402") {$('#name').html('United Arab Emirates');
  862. } else if ($xml.find('Numeric').text() == "23420") {$('#name').html('United-kingdom');
  863. } else if ($xml.find('Numeric').text() == "23400") {$('#name').html('United-kingdom');
  864. } else if ($xml.find('Numeric').text() == "23418") {$('#name').html('United-kingdom');
  865. } else if ($xml.find('Numeric').text() == "23430") {$('#name').html('United-kingdom');
  866. } else if ($xml.find('Numeric').text() == "23454") {$('#name').html('United-kingdom');
  867. } else if ($xml.find('Numeric').text() == "23458") {$('#name').html('United-kingdom');
  868. } else if ($xml.find('Numeric').text() == "23402") {$('#name').html('United-kingdom');
  869. } else if ($xml.find('Numeric').text() == "23433") {$('#name').html('United-kingdom');
  870. } else if ($xml.find('Numeric').text() == "23436") {$('#name').html('United-kingdom');
  871. } else if ($xml.find('Numeric').text() == "23430") {$('#name').html('United-kingdom');
  872. } else if ($xml.find('Numeric').text() == "234100") {$('#name').html('United-kingdom');
  873. } else if ($xml.find('Numeric').text() == "23438") {$('#name').html('United-kingdom');
  874. } else if ($xml.find('Numeric').text() == "23407") {$('#name').html('United-kingdom');
  875. } else if ($xml.find('Numeric').text() == "310016") {$('#name').html('United-states');
  876. } else if ($xml.find('Numeric').text() == "311440") {$('#name').html('United-states');
  877. } else if ($xml.find('Numeric').text() == "311870") {$('#name').html('United-states');
  878. } else if ($xml.find('Numeric').text() == "311230") {$('#name').html('United-states');
  879. } else if ($xml.find('Numeric').text() == "310130") {$('#name').html('United-states');
  880. } else if ($xml.find('Numeric').text() == "310320") {$('#name').html('United-states');
  881. } else if ($xml.find('Numeric').text() == "311010") {$('#name').html('United-states');
  882. } else if ($xml.find('Numeric').text() == "311040") {$('#name').html('United-states');
  883. } else if ($xml.find('Numeric').text() == "310016") {$('#name').html('United-states');
  884. } else if ($xml.find('Numeric').text() == "310970") {$('#name').html('United-states');
  885. } else if ($xml.find('Numeric').text() == "311030") {$('#name').html('United-states');
  886. } else if ($xml.find('Numeric').text() == "310530") {$('#name').html('United-states');
  887. } else if ($xml.find('Numeric').text() == "310340") {$('#name').html('United-states');
  888. } else if ($xml.find('Numeric').text() == "311960") {$('#name').html('United-states');
  889. } else if ($xml.find('Numeric').text() == "311660") {$('#name').html('United-states');
  890. } else if ($xml.find('Numeric').text() == "311080") {$('#name').html('United-states');
  891. } else if ($xml.find('Numeric').text() == "310100") {$('#name').html('United-states');
  892. } else if ($xml.find('Numeric').text() == "310120") {$('#name').html('United-states');
  893. } else if ($xml.find('Numeric').text() == "310999") {$('#name').html('United-states');
  894. } else if ($xml.find('Numeric').text() == "310160") {$('#name').html('United-states');
  895. } else if ($xml.find('Numeric').text() == "310260") {$('#name').html('United-states');
  896. } else if ($xml.find('Numeric').text() == "310999") {$('#name').html('United-states');
  897. } else if ($xml.find('Numeric').text() == "310020") {$('#name').html('United-states');
  898. } else if ($xml.find('Numeric').text() == "310066") {$('#name').html('United-states');
  899. } else if ($xml.find('Numeric').text() == "310004") {$('#name').html('United-states');
  900. } else if ($xml.find('Numeric').text() == "310450") {$('#name').html('United-states');
  901. } else if ($xml.find('Numeric').text() == "310053") {$('#name').html('United-states');
  902. } else if ($xml.find('Numeric').text() == "310180") {$('#name').html('United-states');
  903. } else if ($xml.find('Numeric').text() == "74800") {$('#name').html('Uruguay');
  904. } else if ($xml.find('Numeric').text() == "74810") {$('#name').html('Uruguay');
  905. } else if ($xml.find('Numeric').text() == "74807") {$('#name').html('Uruguay');
  906. } else if ($xml.find('Numeric').text() == "43404") {$('#name').html('Uzbekistan');
  907. } else if ($xml.find('Numeric').text() == "43406") {$('#name').html('Uzbekistan');
  908. } else if ($xml.find('Numeric').text() == "43405") {$('#name').html('Uzbekistan');
  909. } else if ($xml.find('Numeric').text() == "43407") {$('#name').html('Uzbekistan');
  910. } else if ($xml.find('Numeric').text() == "43408") {$('#name').html('Uzbekistan');
  911. } else if ($xml.find('Numeric').text() == "54105") {$('#name').html('Vanuatu');
  912. } else if ($xml.find('Numeric').text() == "54101") {$('#name').html('Vanuatu');
  913. } else if ($xml.find('Numeric').text() == "54107") {$('#name').html('Vanuatu');
  914. } else if ($xml.find('Numeric').text() == "73401") {$('#name').html('Venezuela');
  915. } else if ($xml.find('Numeric').text() == "73406") {$('#name').html('Venezuela');
  916. } else if ($xml.find('Numeric').text() == "73404") {$('#name').html('Venezuela');
  917. } else if ($xml.find('Numeric').text() == "45207") {$('#name').html('Vietnam');
  918. } else if ($xml.find('Numeric').text() == "45201") {$('#name').html('Vietnam');
  919. } else if ($xml.find('Numeric').text() == "45205") {$('#name').html('Vietnam');
  920. } else if ($xml.find('Numeric').text() == "45204") {$('#name').html('Vietnam');
  921. } else if ($xml.find('Numeric').text() == "45202") {$('#name').html('Vietnam');
  922. } else if ($xml.find('Numeric').text() == "42102") {$('#name').html('Yemen');
  923. } else if ($xml.find('Numeric').text() == "42101") {$('#name').html('Yemen');
  924. } else if ($xml.find('Numeric').text() == "42103") {$('#name').html('Yemen');
  925. } else if ($xml.find('Numeric').text() == "64501") {$('#name').html('Zambia');
  926. } else if ($xml.find('Numeric').text() == "64502") {$('#name').html('Zambia');
  927. } else if ($xml.find('Numeric').text() == "64503") {$('#name').html('Zambia');
  928. } else if ($xml.find('Numeric').text() == "64804") {$('#name').html('Zimbabwe');
  929. } else if ($xml.find('Numeric').text() == "64801") {$('#name').html('Zimbabwe');
  930. } else if ($xml.find('Numeric').text() == "64803") {$('#name').html('Zimbabwe');
  931. } else if ($xml.find('Numeric').text() == "63782") {$('#name').html('Somalia');
  932. } else if ($xml.find('Numeric').text() == "42105") {$('#name').html('Yemen');
  933. }}})}
  934.  
  935. function DeviceBoot() {
  936. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/boot_time', success:function(data) {
  937. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  938. if ($xml.find('boot_time').text() == "") {
  939. $("#bootTime").css('display','none');
  940. } else {
  941. $("#bootTime").css('display', '');
  942. $('#bootTime').html(' ( ' + $xml.find('boot_time').text().replace('[', '').replace(']:[', ':').replace(']:[', ':').replace(']', '') + ' ) ');
  943. }}})}
  944.  
  945. function Signl() {
  946. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/signal', success:function(data) {
  947. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  948. for (signal = data, vars = ["nrrsrp"], i = 0; i < vars.length; i++) window[vars[i]] = extractXML(vars[i], data), nrdefined = "undefined" != typeof nrrsrp, $(".e5").toggle(nrdefined);
  949. band = $xml.find('band').text();
  950. mode = $xml.find('mode').text();
  951. $('#moden').html(mode);
  952. cid = $xml.find('cell_id').text();
  953. var hex = Number(cid).toString(16);
  954.  
  955. if ($xml.find('cell_id').text() == "") {
  956. $(".cell,.enb").css('display','none');
  957. } else {
  958. $(".cell,.enb").css('display', '');
  959. $('#cell_id').html(cid);
  960. }
  961. if ($xml.find('band').text() != '' && $xml.find('band').text() != '0') {
  962. $('#bandB').html('B' + $xml.find('band').text());
  963. $(".bband").css('display', '');
  964. } else {
  965. $(".bband").css('display', 'none');
  966. }
  967. if ($xml.find('sc,pci').text() == "") {
  968. $(".pci").css('display', 'none');
  969. } else {
  970. $(".pci").css('display', '');
  971. $('#pci').html(($xml.find('pci').text() == "" ? $xml.find('sc').text() : $xml.find('pci').text()));
  972. }
  973. if ($xml.find('tac,rac,lac').text() == "") {
  974. $(".lac").css('display', 'none');
  975. } else {
  976. $(".lac").css('display', '');
  977. }
  978.  
  979. if (mode == '') {
  980. $(".mod").css('background', 'red');
  981. $('#modee').html('No Service');
  982. }
  983.  
  984. if (mode == '0') {
  985. $('#enbid').html(cid);
  986. $(".mod").css('background', 'green');
  987. $('#modee').html('2G');
  988. $('#tlac').html('LAC');
  989. $(".bn3").css('display','');
  990. $(".2G,.allow").css('display','none');
  991. $('#lac').html($xml.find('lac').text());
  992. var arf2g = $xml.find('arfcn').text();
  993. if ($xml.find('arfcn').text() == "") {
  994. $(".arfc2g").css('display','none');
  995. } else {
  996. $(".arfc2g").css('display','');
  997. $('#earf2g').html(arf2g);
  998. }
  999. }
  1000.  
  1001. if (mode == '2') {
  1002. var hex2 = hex.substring(0, hex.length - 4);
  1003. var enbid = parseInt(hex2, 16);
  1004. var hex3 = hex.substring(hex.length - 4, hex.length);
  1005. var shortcid = parseInt(hex3, 16);
  1006. if (isLongID == true) {
  1007. $('#enbid').html(parseInt(hex, 16));
  1008. } else {
  1009. $('#enbid').html(enbid + '/' + shortcid);
  1010. }
  1011. $(".mod").css('background', 'green');
  1012. $('#modee').html('3G');
  1013. $('#tlac').html('RAC');
  1014. $(".2G,.e3,.bn3").css('display','');
  1015. $(".allow,.arfc4g,.e4").css('display','none');
  1016. $('#lac').html($xml.find('rac').text());
  1017. var arf3g = $xml.find('wdlfreq').text();
  1018. if ($xml.find('wdlfreq').text() == "") {
  1019. $(".arfc3g").css('display','none');
  1020. } else {
  1021. $(".arfc3g").css('display','');
  1022. $('#earf3g').html(arf3g);
  1023. }
  1024. }
  1025.  
  1026. if (mode == '7') {
  1027. var hex2 = hex.substring(0, hex.length - 2);
  1028. var enbid = parseInt(hex2, 16);
  1029. var hex3 = hex.substring(hex.length - 2, hex.length);
  1030. var shortcid = parseInt(hex3, 16);
  1031. if (isLongID == true) {
  1032. $('#enbid').html(parseInt(hex, 16));
  1033. } else {
  1034. $('#enbid').html(enbid + '/' + shortcid);
  1035. }
  1036. $(".mod").css('background', 'green');
  1037. $('#modee').html('4G');
  1038. $('#tlac').html('TAC');
  1039. $(".2G,.allow,.e4").css('display','');
  1040. $(".e3,.bn3,.arfc3g").css('display','none');
  1041. $('#lac').html($xml.find('tac').text());
  1042. var arf4g = $xml.find('earfcn').text().replace('DL:','DL: ').replace('UL:',' UL: ');
  1043. if ($xml.find('earfcn').text() == "") {
  1044. $(".arfc4g").css('display', 'none');
  1045. } else if ($xml.find('earfcn').text() == "DL:0 UL:0") {
  1046. $(".arfc4g").css('display', 'none');
  1047. } else if ($xml.find('earfcn').text() == "DL: UL:") {
  1048. $(".arfc4g").css('display', 'none');
  1049. } else {
  1050. $(".arfc4g").css('display', '');
  1051. $('#earf4g').html(arf4g);
  1052. }
  1053. }
  1054.  
  1055. rssi = strA($xml.find('rssi').text().replace('dBm', '')),$('#rssi').html($xml.find('rssi').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dBm')).css('background', colorrssi(rssi, -124, -110, -95, -85, -75, -51));
  1056. rsrp = strA($xml.find('rsrp').text().replace('dBm', '')),$('#rsrp').html($xml.find('rsrp').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dBm')).css('background', colorrsrp(rsrp, -124, -110, -95, -85, -75, -51));
  1057. rsrq = strA($xml.find('rsrq').text().replace('dB', '')),$('#rsrq').html($xml.find('rsrq').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dB')).css('background', colorrsrq(rsrq, -30, -20, -15, -10, -6, 0));
  1058. sinr = strA($xml.find('sinr').text().replace('dB', '')),$('#sinr').html($xml.find('sinr').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dB')).css('background', colorsinr(sinr, -15, 3, 10, 15, 22, 30));
  1059. rscp = strA($xml.find('rscp').text().replace('dBm', '')),$('#rscp').html($xml.find('rscp').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dBm')).css('background', colorrscp(rscp, -115, -100, -90, -80, -70, -60));
  1060. ecio = strA($xml.find('ecio').text().replace('dB', '')),$('#ecio').html($xml.find('ecio').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dB')).css('background', colorecio(ecio, -20, -20, -15, -10, -5, 0));
  1061.  
  1062. if ($xml.find('txpower').text() == "") {
  1063. $(".tx").css('display', 'none');
  1064. } else {
  1065. $(".tx").css('display', '');
  1066. }
  1067. var txpower = $xml.find('txpower').text();
  1068. if (txpower.indexOf('stxpwr') == -1) {
  1069. $('#txpow4g').html($xml.find('txpower').text().replace('PPusch:','PPusch: ').replace('PPucch:','PPucch: ').replace('PSrs:','PSrs: ').replace('PPrach:','PPrach: ').replace('dBm',', ').replace('dBm',', ').replace('dBm',', ').replace('dBm',''));
  1070. txpower=txpower.slice(txpower.indexOf('PPucch:')+7,txpower.indexOf('PSrs:')-4),$("#txpow4g").css('background', colortx4power(txpower, -20, 0, 5, 10, 20, 23));
  1071. } else {
  1072. $('#txpow3g').html(txpower.replace('stxpwr:','Stxpwr: ').replace('dBm', ' dBm')),$("#txpow3g").css('background', colortx3power(txpower, -20, 0, 5, 10, 15, 23));
  1073. }
  1074.  
  1075. nrrsrp = strA($xml.find('nrrsrp').text().replace('dBm', '')),$('#nrrsrp').html($xml.find('nrrsrp').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dBm')).css('background', colornrrsrp(nrrsrp, -124, -115, -105, -95, -85, -85));
  1076. nrrsrq = strA($xml.find('nrrsrq').text().replace('dB', '')),$('#nrrsrq').html($xml.find('nrrsrq').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dB')).css('background', colornrrsrq(nrrsrq, -20, -20, -15, -10, -6, 0));
  1077. nrsinr = strA($xml.find('nrsinr').text().replace('dB', '')),$('#nrsinr').html($xml.find('nrsinr').text().replace('<', '').replace('=', '').replace('>', '').replace('Unknown', '0dB')).css('background', colornrsinr(nrsinr, -10, 3, 10, 15, 22, 30));
  1078.  
  1079. if ($xml.find('nrtxpower').text() == "") {
  1080. $(".nrtx").css('display', 'none');
  1081. } else {
  1082. $(".nrtx").css('display', '');
  1083. }
  1084. var nrtxpower = $xml.find('nrtxpower').text();
  1085. $('#nrtxpow').html($xml.find('nrtxpower').text().replace('PPusch:','PPusch: ').replace('PPucch:','PPucch: ').replace('PSrs:','PSrs: ').replace('PPrach:','PPrach: ').replace('dBm',', ').replace('dBm',', ').replace('dBm',', ').replace('dBm',''));
  1086. nrtxpower=nrtxpower.slice(nrtxpower.indexOf('PPucch:')+7,nrtxpower.indexOf('PSrs:')-4),$(".nrtxp").css('background', colornrtxpower(nrtxpower, -20, 0, 5, 10, 20, 23));
  1087.  
  1088. var nrufreq = $xml.find('nrulfreq').text();
  1089. var nrdfreq = $xml.find('nrdlfreq').text();
  1090. if ($xml.find('nrdlfreq').text() == "") {
  1091. $(".5ulf").css('display', 'none');
  1092. } else if ($xml.find('nrdlfreq').text() == "0kHz") {
  1093. $(".5ulf").css('display', 'none');
  1094. } else if ($xml.find('nrdlfreq').text() == "kHz") {
  1095. $(".5ulf").css('display', 'none');
  1096. } else {
  1097. $(".5ulf").css('display', '');
  1098. $('#nrudfreq').html('DL: ' + nrdfreq + ' ' + 'UL: ' + nrufreq);
  1099. }
  1100.  
  1101. var lufreq = $xml.find('lteulfreq').text();
  1102. var ldfreq = $xml.find('ltedlfreq').text();
  1103. if ($xml.find('ltedlfreq').text() == "") {
  1104. $(".4ulf").css('display', 'none');
  1105. } else if ($xml.find('ltedlfreq').text() == "0") {
  1106. $(".4ulf").css('display', 'none');
  1107. } else {
  1108. $(".4ulf").css('display', '');
  1109. $('#ludfreq').html('DL: ' + ldfreq + ' ' + 'UL: ' + lufreq);
  1110. }
  1111.  
  1112. var dlfrequency = $xml.find('dlfrequency').text().replace('kHz', '');
  1113. var dlfreq = Math.floor(dlfrequency / 1000);
  1114. console.log(dlfreq);
  1115. var ulfrequency = $xml.find('ulfrequency').text().replace('kHz','');
  1116. var ulfreq = Math.floor(ulfrequency / 1000);
  1117. console.log(ulfreq);
  1118. if ($xml.find('dlfrequency').text() == "") {
  1119. $(".ulf").css('display', 'none');
  1120. } else if ($xml.find('dlfrequency').text() == "0kHz") {
  1121. $(".ulf").css('display', 'none');
  1122. } else if ($xml.find('dlfrequency').text() == "kHz") {
  1123. $(".ulf").css('display', 'none');
  1124. } else {
  1125. $(".ulf").css('display', '');
  1126. $('#dufrequency').html('DL: ' + dlfreq + 'MHz' + ' ' + 'UL: ' + ulfreq + 'MHz');
  1127. }
  1128.  
  1129. if ($xml.find('dlbandwidth').text() == "") {
  1130. $(".dlul").css('display', 'none');
  1131. } else {
  1132. $(".dlul").css('display', '');
  1133. }
  1134.  
  1135. var udlbw = '';
  1136. var dbw = $xml.find('dlbandwidth').text();
  1137. var ubw = $xml.find('ulbandwidth').text();
  1138. if (dbw == '1400KHz') dbw = "1.4MHz";
  1139. if (ubw == '1400KHz') ubw = "1.4MHz";
  1140. if ($xml.find('dlbandwidth','ulbandwidth').text() == "20MHz") {
  1141. udlbw = '100';
  1142. $('#ulbandwidth').html(ubw + ' (' + udlbw + '%)');
  1143. $("#dlulbandreading, #arfcnreading").css('background', '#008013');
  1144. } else if ($xml.find('dlbandwidth','ulbandwidth').text() == "15MHz") {
  1145. udlbw = '75';
  1146. $('#ulbandwidth').html(ubw + ' (' + udlbw + '%)');
  1147. $("#dlulbandreading, #arfcnreading").css('background', '#00bb1c');
  1148. } else if ($xml.find('dlbandwidth','ulbandwidth').text() == "10MHz") {
  1149. udlbw = '50';
  1150. $('#ulbandwidth').html(ubw + ' (' + udlbw + '%)');
  1151. $("#dlulbandreading, #arfcnreading").css('background', '#c97f00');
  1152. } else if ($xml.find('dlbandwidth','ulbandwidth').text() == "5MHz") {
  1153. udlbw = '25';
  1154. $('#ulbandwidth').html(ubw + ' (' + udlbw + '%)');
  1155. $("#dlulbandreading, #arfcnreading").css('background', '#ebb400');
  1156. } else {
  1157. udlbw = '0';
  1158. $('#ulbandwidth').html(ubw + ' (' + udlbw + '%)');
  1159. $("#dlulbandreading, #arfcnreading").css('background', '#ffe600');
  1160. }
  1161. $('#dlbandwidth').html(dbw);
  1162.  
  1163. var nrarfcn = $xml.find('nrearfcn').text().replace('DL:','DL: ').replace('UL:',' UL: ');
  1164. if ($xml.find('nrearfcn').text() == "") {
  1165. $(".nrarfc,.bnr").css('display', 'none');
  1166. } else if ($xml.find('nrearfcn').text() == "DL:0 UL:0") {
  1167. $(".nrarfc,.bnr").css('display', 'none');
  1168. } else if ($xml.find('nrearfcn').text() == "DL: UL:") {
  1169. $(".nrarfc,.bnr").css('display', 'none');
  1170. } else {
  1171. $(".nrarfc,.bnr").css('display', '');
  1172. $('#nrearf').html(nrarfcn);
  1173. }
  1174.  
  1175. var nrband = nrarfcn.slice(3, nrarfcn.indexOf(' UL:'));
  1176. if (nrband != '')
  1177. $('#bandNR').html("N" + arfcntoband(nrband));
  1178.  
  1179. if ($xml.find('nrdlbandwidth').text() == "") {
  1180. $(".nrdlul").css('display', 'none');
  1181. } else {
  1182. $(".nrdlul").css('display', '');
  1183. }
  1184.  
  1185. var nudlbw = '';
  1186. var nrdbw = $xml.find('nrdlbandwidth').text();
  1187. var nrubw = $xml.find('nrulbandwidth').text();
  1188. if ($xml.find('nrdlbandwidth','nrulbandwidth').text() == "100MHz") {
  1189. nudlbw = '100';
  1190. $('#nrulbw').html(nrubw + ' (' + nudlbw + '%)');
  1191. $("#nrdlulbandreading, #nrarfcnreading").css('background', '#008013');
  1192. } else if ($xml.find('nrdlbandwidth','nrulbandwidth').text() == "80MHz") {
  1193. nudlbw = '75';
  1194. $('#nrulbw').html(nrubw + ' (' + nudlbw + '%)');
  1195. $("#nrdlulbandreading, #nrarfcnreading").css('background', '#00bb1c');
  1196. } else if ($xml.find('nrdlbandwidth','nrulbandwidth').text() == "60MHz") {
  1197. nudlbw = '50';
  1198. $('#nrulbw').html(nrubw + ' (' + nudlbw + '%)');
  1199. $("#nrdlulbandreading, #nrarfcnreading").css('background', '#c97f00');
  1200. } else if ($xml.find('nrdlbandwidth','nrulbandwidth').text() == "40MHz") {
  1201. nudlbw = '25';
  1202. $('#nrulbw').html(nrubw + ' (' + nudlbw + '%)');
  1203. $("#nrdlulbandreading, #nrarfcnreading").css('background', '#ebb400');
  1204. } else {
  1205. nudlbw = '0';
  1206. $('#nrulbw').html(nrubw + ' (' + nudlbw + '%)');
  1207. $("#nrdlulbandreading, #nrarfcnreading").css('background', '#ffe600');
  1208. }
  1209. $('#nrdlbw').html(nrdbw);
  1210.  
  1211. var dlmcs = $xml.find('dl_mcs').text();
  1212. var dlmcs0 = $xml.find('dl_mcs').text().slice(21, dlmcs.indexOf(' '));
  1213. var dlmcs1 = $xml.find('dl_mcs').text().slice(dlmcs.indexOf('Code1:') + 6);
  1214. if (dlmcs == '') {
  1215. $(".mcstbs4g").css('display', 'none');
  1216. } else {
  1217. $(".mcstbs4g").css('display', '');
  1218. $('#dlmcs0').html('0⇓:' + dlmcs0);
  1219. $('#dlmcs1').html('1⇓:' + dlmcs1);
  1220. $("#dlmcs0reading").css('background', colorcqimcs2(dlmcs0, 4, 8, 12, 20, 25, 32));
  1221. $("#dlmcs1reading").css('background', colorcqimcs1(dlmcs1, 4, 8, 12, 20, 25, 32));
  1222. }
  1223. var ul_mcs = $xml.find('ul_mcs').text().replace('mcsUpCarrier1:', '');
  1224. $('#ulmcs').html('⇑:' + ul_mcs);
  1225. $("#ulmcsreading").css('background', colorcqimcs1(ul_mcs, 4, 8, 12, 20, 25, 28));
  1226.  
  1227. var ultbs;
  1228. if (ul_mcs >= 0 && ul_mcs <= 9) {ultbs = ul_mcs;}
  1229. else if (ul_mcs >= 10 && ul_mcs <= 16) {ultbs = ul_mcs - 1;}
  1230. else if (ul_mcs >= 17 && ul_mcs <= 31) {ultbs = ul_mcs - 2;}
  1231. else {ultbs = 'Out';}
  1232. $('#ultbs').html('⇑:' + ultbs);
  1233. $("#ultbsreading").css('background', colorcqimcs2(ultbs, 4, 8, 12, 20, 25, 28));
  1234.  
  1235. if ($xml.find('cqi0,cqi1').text() == "") {
  1236. $(".cqi01").css('display','none');
  1237. } else {
  1238. $(".cqi01").css('display','');
  1239.  
  1240. var cqi0;
  1241. var cqi1;
  1242. cqi0 = $xml.find('cqi0').text().replace('32639','');
  1243. cqi1 = $xml.find('cqi1').text().replace('32639','');
  1244. if (cqi0 != '' && cqi1 == '') {
  1245. $('#0cqi,#1cqi').html('N/A');
  1246. } else {
  1247. $('#0cqi').html('0⇓:' + cqi0).css('background', colorcqimcs1(cqi0, 2, 4, 7, 10, 13, 18));
  1248. $('#1cqi').html('1⇓:' + cqi1).css('background', colorcqimcs2(cqi1, 2, 4, 7, 10, 13, 18));
  1249. }
  1250. }
  1251.  
  1252. var dltbs0;
  1253. var dltbs1;
  1254. if (dlmcs0 >= 0 && dlmcs0 <= 4) {QAM0 = 'QPSK';$("#QAM0").css('background', '#ff7300');}
  1255. else if (dlmcs0 >= 5 && dlmcs0 <= 10) {QAM0 = '16QAM';$("#QAM0").css('background', '#e0ac00');}
  1256. else if (dlmcs0 >= 11 && dlmcs0 <= 19) {QAM0 = '64QAM';$("#QAM0").css('background', '#e28f00');}
  1257. else if (dlmcs0 >= 20 && dlmcs0 <= 27) {QAM0 = '256QAM';$("#QAM0").css('background', '#008013');}
  1258. else if (dlmcs0 == 28) {QAM0 = 'QPSK';$("#QAM0").css('background', '#ff7300');}
  1259. else if (dlmcs0 == 29) {QAM0 = '16QAM';$("#QAM0").css('background', '#e0ac00');}
  1260. else if (dlmcs0 == 30) {QAM0 = '64QAM';$("#QAM0").css('background', '#e28f00');}
  1261. else if (dlmcs0 == 31) {QAM0 = '256QAM';$("#QAM0").css('background', '#008013');}
  1262. else {QAM0 = 'Out';$("#QAM0").css('background', '#aa0000');}
  1263.  
  1264. if (dlmcs1 >= 0 && dlmcs1 <= 4) {QAM1 = 'QPSK';$("#QAM1").css('background', '#ff7300');}
  1265. else if (dlmcs1 >= 5 && dlmcs1 <= 10) {QAM1 = '16QAM';$("#QAM1").css('background', '#e0ac00');}
  1266. else if (dlmcs1 >= 11 && dlmcs1 <= 19) {QAM1 = '64QAM';$("#QAM1").css('background', '#e28f00');}
  1267. else if (dlmcs1 >= 20 && dlmcs1 <= 27) {QAM1 = '256QAM';$("#QAM1").css('background', '#008013');}
  1268. else if (dlmcs1 == 28) {QAM1 = 'QPSK';$("#QAM1").css('background', '#ff7300');}
  1269. else if (dlmcs1 == 29) {QAM1 = '16QAM';$("#QAM1").css('background', '#e0ac00');}
  1270. else if (dlmcs1 == 30) {QAM1 = '64QAM';$("#QAM1").css('background', '#e28f00');}
  1271. else if (dlmcs1 == 31) {QAM1 = '256QAM';$("#QAM1").css('background', '#008013');}
  1272. else {QAM1 = 'Out';$("#QAM1").css('background', '#aa0000');}
  1273.  
  1274. if (dlmcs0 == 0) {dltbs0 = dlmcs0;}
  1275. else if (dlmcs0 == 1) {dltbs0 = 2;}
  1276. else if (dlmcs0 == 2) {dltbs0 = 4;}
  1277. else if (dlmcs0 == 3) {dltbs0 = 6;}
  1278. else if (dlmcs0 == 4) {dltbs0 = 8;}
  1279. else if (dlmcs0 >= 5 && dlmcs0 <= 20) {dltbs0 = dlmcs0 - -5;}
  1280. else if (dlmcs0 >= 21 && dlmcs0 <= 27) {dltbs0 = dlmcs0 - -6;}
  1281. else if (dlmcs0 == 28) {dltbs0 = 8;}
  1282. else if (dlmcs0 == 29) {dltbs0 = 15;}
  1283. else if (dlmcs0 == 30) {dltbs0 = 24;}
  1284. else if (dlmcs0 == 31) {dltbs0 = 27;}
  1285. else {dltbs0 = 'Out';}
  1286.  
  1287. if (dlmcs1 == 0) {dltbs1 = dlmcs1;}
  1288. else if (dlmcs1 == 1) {dltbs1 = 2;}
  1289. else if (dlmcs1 == 2) {dltbs1 = 4;}
  1290. else if (dlmcs1 == 3) {dltbs1 = 6;}
  1291. else if (dlmcs1 == 4) {dltbs1 = 8;}
  1292. else if (dlmcs1 >= 5 && dlmcs1 <= 20) {dltbs1 = dlmcs1 - -5;}
  1293. else if (dlmcs1 >= 21 && dlmcs1 <= 27) {dltbs1 = dlmcs1 - -6;}
  1294. else if (dlmcs1 == 28) {dltbs1 = 8;}
  1295. else if (dlmcs1 == 29) {dltbs1 = 15;}
  1296. else if (dlmcs1 == 30) {dltbs1 = 24;}
  1297. else if (dlmcs1 == 31) {dltbs1 = 27;}
  1298. else {dltbs1 = 'Out';}
  1299.  
  1300. $('#QAM0').html(QAM0);
  1301. $('#QAM1').html(QAM1);
  1302. $('#dltbs0').html('0⇓:' + dltbs0);
  1303. $("#dltbs0reading").css('background', colortbs2(dltbs0, -0, 4, 10, 16, 17, 31));
  1304. $('#dltbs1').html('1⇓:' + dltbs1);
  1305. $("#dltbs1reading").css('background', colortbs1(dltbs1, -0, 4, 10, 16, 17, 31));
  1306.  
  1307. var nrdl_mcs = $xml.find('nrdlmcs').text();
  1308. var nrdlmcs0 = $xml.find('nrdlmcs').text().slice(23, nrdl_mcs.indexOf(' '));
  1309. var nrdlmcs1 = $xml.find('nrdlmcs').text().slice(nrdl_mcs.indexOf('Code1:') + 6);
  1310. if (nrdl_mcs == '') {
  1311. $(".dlmcs5g").css('display', 'none');
  1312. } else {
  1313. $(".dlmcs5g").css('display', '');
  1314. $('#nr0dlmcs').html('0⇓:' + nrdlmcs0);
  1315. $('#nr1dlmcs').html('1⇓:' + nrdlmcs1);
  1316. $("#nr0dlmcsreading").css('background', colorcqimcs2(nrdlmcs0, 4, 8, 12, 20, 25, 32));
  1317. $("#nr1dlmcsreading").css('background', colorcqimcs1(nrdlmcs1, 4, 8, 12, 20, 25, 32));
  1318. }
  1319. var nrul_mcs = $xml.find('nrulmcs').text().replace('NRmcsUpCarrier1:','');
  1320. $('#nrulmcs').html('⇑:' + nrul_mcs);
  1321. $("#nrulmcsreading").css('background', colorcqimcs1(nrul_mcs, 4, 8, 12, 20, 25, 32));
  1322. }})}
  1323.  
  1324. function colorcqimcs1(cur, l0, l1, l2, l3, l4, l5) {
  1325. if (cur == '') return 'linear-gradient(to right, black 100%, black 100%)';
  1326. if (cur < l0) cur = l0;
  1327. if (cur > l5) cur = l5;
  1328. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1329. var whitepercent = percent + 1;
  1330. if (whitepercent > 100) whitepercent = 100;
  1331. if (cur >= l5) {color = '#008013';
  1332. } else if (cur >= l4) {color = '#00bb1c';
  1333. } else if (cur >= l3) {color = '#e28f00';
  1334. } else if (cur >= l2) {color = '#e0ac00';
  1335. } else if (cur >= l1) {color = '#ff7300';
  1336. } else {color = '#aa0000';
  1337. }
  1338. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, black 100% ' + whitepercent + '%)';
  1339. }
  1340.  
  1341. function colorcqimcs2(cur, l0, l1, l2, l3, l4, l5) {
  1342. if (cur == '') return 'linear-gradient(to right, black 100%, black 100%)';
  1343. if (cur < l0) cur = l0;
  1344. if (cur > l5) cur = l5;
  1345. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1346. var whitepercent = percent + 1;
  1347. if (whitepercent > 100) whitepercent = 100;
  1348. if (cur >= l5) {color = '#008013';
  1349. } else if (cur >= l4) {color = '#00bb1c';
  1350. } else if (cur >= l3) {color = '#e28f00';
  1351. } else if (cur >= l2) {color = '#e0ac00';
  1352. } else if (cur >= l1) {color = '#ff7300';
  1353. } else {color = '#aa0000';
  1354. }
  1355. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, black 100% ' + whitepercent + '%)';
  1356. }
  1357.  
  1358. function colortbs1(cur, l0, l1, l2, l3, l4, l5) {
  1359. if (cur == '') return 'linear-gradient(to right, black 100%, black 100%)';
  1360. if (cur < l0) cur = l0;
  1361. if (cur > l5) cur = l5;
  1362. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1363. var whitepercent = percent + 1;
  1364. if (whitepercent > 100) whitepercent = 100;
  1365. if (cur >= l5) {color = '#008013';
  1366. } else if (cur >= l4) {color = '#00bb1c';
  1367. } else if (cur >= l3) {color = '#e28f00';
  1368. } else if (cur >= l2) {color = '#e0ac00';
  1369. } else if (cur >= l1) {color = '#ff7300';
  1370. } else {color = '#aa0000';
  1371. }
  1372. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, black 100% ' + whitepercent + '%)';
  1373. }
  1374.  
  1375. function colortbs2(cur, l0, l1, l2, l3, l4, l5) {
  1376. if (cur == '') return 'linear-gradient(to right, black 100%, black 100%)';
  1377. if (cur < l0) cur = l0;
  1378. if (cur > l5) cur = l5;
  1379. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1380. var whitepercent = percent + 1;
  1381. if (whitepercent > 100) whitepercent = 100;
  1382. if (cur >= l5) {color = '#008013';
  1383. } else if (cur >= l4) {color = '#00bb1c';
  1384. } else if (cur >= l3) {color = '#e28f00';
  1385. } else if (cur >= l2) {color = '#e0ac00';
  1386. } else if (cur >= l1) {color = '#ff7300';
  1387. } else {color = '#aa0000';
  1388. }
  1389. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, black 100% ' + whitepercent + '%)';
  1390. }
  1391.  
  1392. function colorrssi(cur, l0, l1, l2, l3, l4, l5) {
  1393. if (cur < l0) cur = l0;
  1394. if (cur > l5) cur = l5;
  1395. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1396. var whitepercent = percent + 1;
  1397. if (whitepercent > 100) whitepercent = 100;
  1398. if (cur >= l5) {rssitxStr = "Excellent"; color = '#008013';
  1399. } else if (cur >= l4) {rssitxStr = "V.Good"; color = '#00bb1c';
  1400. } else if (cur >= l3) {rssitxStr = "Good"; color = '#e28f00';
  1401. } else if (cur >= l2) {rssitxStr = "Midlde"; color = '#e0ac00';
  1402. } else if (cur >= l1) {rssitxStr = "Weak"; color = '#ff7300';
  1403. } else {rssitxStr = "Bad"; color = '#aa0000';
  1404. }
  1405. $('.rssib').css('background', color);
  1406. $('#rssipercent').html(whitepercent + "%" + " " + rssitxStr);
  1407. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1408. }
  1409.  
  1410. function colorrscp(cur, l0, l1, l2, l3, l4, l5) {
  1411. if (cur < l0) cur = l0;
  1412. if (cur > l5) cur = l5;
  1413. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1414. var whitepercent = percent + 1;
  1415. if (whitepercent > 100) whitepercent = 100;
  1416. if (cur >= l5) {rscptxStr = "Excellent"; color = '#008013';
  1417. } else if (cur >= l4) {rscptxStr = "V.Good"; color = '#00bb1c';
  1418. } else if (cur >= l3) {rscptxStr = "Good"; color = '#e28f00';
  1419. } else if (cur >= l2) {rscptxStr = "Midlde"; color = '#e0ac00';
  1420. } else if (cur >= l1) {rscptxStr = "Weak"; color = '#ff7300';
  1421. } else {rscptxStr = "Bad"; color = '#aa0000';
  1422. }
  1423. $('.rscpb').css('background', color);
  1424. $('#rscppercent').html(whitepercent + "%" + " " + rscptxStr);
  1425. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1426. }
  1427.  
  1428. function colorecio(cur, l0, l1, l2, l3, l4, l5) {
  1429. if (cur < l0) cur = l0;
  1430. if (cur > l5) cur = l5;
  1431. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1432. var whitepercent = percent + 1;
  1433. if (whitepercent > 100) whitepercent = 100;
  1434. if (cur >= l5) {eciotxStr = "Excellent"; color = '#008013';
  1435. } else if (cur >= l4) {eciotxStr = "V.Good"; color = '#00bb1c';
  1436. } else if (cur >= l3) {eciotxStr = "Good"; color = '#e28f00';
  1437. } else if (cur >= l2) {eciotxStr = "Midlde"; color = '#e0ac00';
  1438. } else if (cur >= l1) {eciotxStr = "Weak"; color = '#ff7300';
  1439. } else {eciotxStr = "Bad"; color = '#aa0000';
  1440. }
  1441. $('.eciob').css('background', color);
  1442. $('#eciopercent').html(whitepercent + "%" + " " + eciotxStr);
  1443. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1444. }
  1445.  
  1446. function colorrsrp(cur, l0, l1, l2, l3, l4, l5) {
  1447. if (cur < l0) cur = l0;
  1448. if (cur > l5) cur = l5;
  1449. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1450. var whitepercent = percent + 1;
  1451. if (whitepercent > 100) whitepercent = 100;
  1452. if (cur >= l5) {rsrptxStr = "Excellent"; color = '#008013';
  1453. } else if (cur >= l4) {rsrptxStr = "V.Good"; color = '#00bb1c';
  1454. } else if (cur >= l3) {rsrptxStr = "Good"; color = '#e28f00';
  1455. } else if (cur >= l2) {rsrptxStr = "Midlde"; color = '#e0ac00';
  1456. } else if (cur >= l1) {rsrptxStr = "Weak"; color = '#ff7300';
  1457. } else {rsrptxStr = "Bad"; color = '#aa0000';
  1458. }
  1459. $('.rsrpb').css('background', color);
  1460. $('#rsrppercent').html(whitepercent + "%" + " " + rsrptxStr);
  1461. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1462. }
  1463.  
  1464. function colorrsrq(cur, l0, l1, l2, l3, l4, l5) {
  1465. if (cur < l0) cur = l0;
  1466. if (cur > l5) cur = l5;
  1467. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1468. var whitepercent = percent + 1;
  1469. if (whitepercent > 100) whitepercent = 100;
  1470. if (cur >= l5) {rsrqtxStr = "Excellent"; color = '#008013';
  1471. } else if (cur >= l4) {rsrqtxStr = "V.Good"; color = '#00bb1c';
  1472. } else if (cur >= l3) {rsrqtxStr = "Good"; color = '#e28f00';
  1473. } else if (cur >= l2) {rsrqtxStr = "Midlde"; color = '#e0ac00';
  1474. } else if (cur >= l1) {rsrqtxStr = "Weak"; color = '#ff7300';
  1475. } else {rsrqtxStr = "Bad"; color = '#aa0000';
  1476. }
  1477. $('.rsrqb').css('background', color);
  1478. $('#rsrqpercent').html(whitepercent + "%" + " " + rsrqtxStr);
  1479. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1480. }
  1481.  
  1482. function colorsinr(cur, l0, l1, l2, l3, l4, l5) {
  1483. if (cur < l0) cur = l0;
  1484. if (cur > l5) cur = l5;
  1485. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1486. var whitepercent = percent + 1;
  1487. if (whitepercent > 100) whitepercent = 100;
  1488. if (cur >= l5) {sinrtxStr = "Excellent"; color = '#008013';
  1489. } else if (cur >= l4) {sinrtxStr = "V.Good"; color = '#00bb1c';
  1490. } else if (cur >= l3) {sinrtxStr = "Good"; color = '#e28f00';
  1491. } else if (cur >= l2) {sinrtxStr = "Midlde"; color = '#e0ac00';
  1492. } else if (cur >= l1) {sinrtxStr = "Weak"; color = '#ff7300';
  1493. } else {sinrtxStr = "Bad"; color = '#aa0000';
  1494. }
  1495. $('.sinrb').css('background', color);
  1496. $('#sinrpercent').html(whitepercent + "%" + " " + sinrtxStr);
  1497. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1498. }
  1499.  
  1500. function colortx3power(cur, l0, l1, l2, l3, l4, l5) {
  1501. if (cur < l0) cur = l0;
  1502. if (cur > l5) cur = l5;
  1503. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1504. if (percent < 10) percent = 10;
  1505. var whitepercent = percent + 1;
  1506. if (whitepercent > 100) whitepercent = 100;
  1507. if (cur >= l4) {color = '#aa0000';
  1508. } else if (cur >= l3) {color = '#ff7300';
  1509. } else if (cur >= l2) {color = '#e28f00';
  1510. } else if (cur >= l1) {color = '#00bb1c';
  1511. } else {color = '#008013';
  1512. }
  1513. $('.tx3b').css('background', color);
  1514. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1515. }
  1516.  
  1517. function colortx4power(cur, l0, l1, l2, l3, l4, l5) {
  1518. if (cur < l0) cur = l0;
  1519. if (cur > l5) cur = l5;
  1520. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1521. if (percent < 10) percent = 10;
  1522. var whitepercent = percent + 1;
  1523. if (whitepercent > 100) whitepercent = 100;
  1524. if (cur >= l4) {color = '#aa0000';
  1525. } else if (cur >= l3) {color = '#ff7300';
  1526. } else if (cur >= l2) {color = '#e28f00';
  1527. } else if (cur >= l1) {color = '#00bb1c';
  1528. } else {color = '#008013';
  1529. }
  1530. $('.tx4b').css('background', color);
  1531. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1532. }
  1533.  
  1534. function colornrrsrp(cur, l0, l1, l2, l3, l4, l5) {
  1535. if (cur < l0) cur = l0;
  1536. if (cur > l5) cur = l5;
  1537. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1538. var whitepercent = percent + 1;
  1539. if (whitepercent > 100) whitepercent = 100;
  1540. if (cur >= l5) {nrrsrptxStr = "Excellent"; color = '#008013';
  1541. } else if (cur >= l4) {nrrsrptxStr = "V.Good"; color = '#00bb1c';
  1542. } else if (cur >= l3) {nrrsrptxStr = "Good"; color = '#e28f00';
  1543. } else if (cur >= l2) {nrrsrptxStr = "Midlde"; color = '#e0ac00';
  1544. } else if (cur >= l1) {nrrsrptxStr = "Weak"; color = '#ff7300';
  1545. } else {nrrsrptxStr = "Bad"; color = '#aa0000';
  1546. }
  1547. $('.nrrsrpb').css('background', color);
  1548. $('#nrrsrppercent').html(whitepercent + "%" + " " + nrrsrptxStr);
  1549. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1550. }
  1551.  
  1552. function colornrrsrq(cur, l0, l1, l2, l3, l4, l5) {
  1553. if (cur < l0) cur = l0;
  1554. if (cur > l5) cur = l5;
  1555. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1556. var whitepercent = percent + 1;
  1557. if (whitepercent > 100) whitepercent = 100;
  1558. if (cur >= l5) {nrrsrqtxStr = "Excellent"; color = '#008013';
  1559. } else if (cur >= l4) {nrrsrqtxStr = "V.Good"; color = '#00bb1c';
  1560. } else if (cur >= l3) {nrrsrqtxStr = "Good"; color = '#e28f00';
  1561. } else if (cur >= l2) {nrrsrqtxStr = "Midlde"; color = '#e0ac00';
  1562. } else if (cur >= l1) {nrrsrqtxStr = "Weak"; color = '#ff7300';
  1563. } else {nrrsrqtxStr = "Bad"; color = '#aa0000';
  1564. }
  1565. $('.nrrsrqb').css('background', color);
  1566. $('#nrrsrqpercent').html(whitepercent + "%" + " " + nrrsrqtxStr);
  1567. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1568. }
  1569.  
  1570. function colornrsinr(cur, l0, l1, l2, l3, l4, l5) {
  1571. if (cur < l0) cur = l0;
  1572. if (cur > l5) cur = l5;
  1573. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1574. var whitepercent = percent + 1;
  1575. if (whitepercent > 100) whitepercent = 100;
  1576. if (cur >= l5) {nrsinrtxStr = "Excellent"; color = '#008013';
  1577. } else if (cur >= l4) {nrsinrtxStr = "V.Good"; color = '#00bb1c';
  1578. } else if (cur >= l3) {nrsinrtxStr = "Good"; color = '#e28f00';
  1579. } else if (cur >= l2) {nrsinrtxStr = "Midlde"; color = '#e0ac00';
  1580. } else if (cur >= l1) {nrsinrtxStr = "Weak"; color = '#ff7300';
  1581. } else {nrsinrtxStr = "Bad"; color = '#aa0000';
  1582. }
  1583. $('.nrsinrb').css('background', color);
  1584. $('#nrsinrpercent').html(whitepercent + "%" + " " + nrsinrtxStr);
  1585. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1586. }
  1587.  
  1588. function colornrtxpower(cur, l0, l1, l2, l3, l4, l5) {
  1589. if (cur < l0) cur = l0;
  1590. if (cur > l5) cur = l5;
  1591. var percent = parseInt((cur - l0) * 100 / (l5 - l0));
  1592. if (percent < 10) percent = 10;
  1593. var whitepercent = percent + 1;
  1594. if (whitepercent > 100) whitepercent = 100;
  1595. if (cur >= l4) {color = '#aa0000';
  1596. } else if (cur >= l3) {color = '#ff7300';
  1597. } else if (cur >= l2) {color = '#e28f00';
  1598. } else if (cur >= l1) {color = '#00bb1c';
  1599. } else {color = '#008013';
  1600. }
  1601. $('.nrtxp').css('background', color);
  1602. return 'linear-gradient(to right, ' + color + ' ' + percent + '%, hsla(0,0%,100%,0.0) ' + whitepercent + '%)';
  1603. }
  1604.  
  1605. function strA(val) {
  1606. val = val.replace('&gt;=', '');
  1607. val = val.replace('&amp;lt;=', '');
  1608. val = val.replace('&lt;', '');
  1609. val = val.replace('>', '');
  1610. val = val.replace('<', '');
  1611. val = val.replace('=', '');
  1612. val = val.replace('NaN', '0');
  1613. return val;
  1614. }
  1615.  
  1616. function getNetmode() {
  1617. $.ajax({type: "GET",dataType: "text",async: !0,url: "/api/net/net-mode",success: function (data) {
  1618. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  1619. nroption = $xml.find('networkOption').text();
  1620. if (nroption != '') {
  1621. if (nroption == '0') {
  1622. $('#leftband').html('5G NSA');
  1623. $('#btnNSA').prop('checked', false);
  1624. $("#nsacol").css('color', 'yellow').css('background', 'green').css('font-weight', 'bold');
  1625. } else if (nroption == '1') {
  1626. $('#leftband').html('5G SA');
  1627. $('#btnSA').prop('checked', false);
  1628. $("#sacol").css('color', 'yellow').css('background', 'green').css('font-weight', 'bold');
  1629. } else if (nroption == '2') {
  1630. $('#leftband').html('5G SA+NSA');
  1631. $('#btnSANSA').prop('checked', false);
  1632. $("#sansacol").css('color', 'yellow').css('background', 'green').css('font-weight', 'bold');
  1633. }
  1634. nroption = "<networkOption>" + nroption + "</networkOption>";
  1635. }
  1636. netmode = data, lteband = extractXML("LTEBand", data), $("#allowed").html(_4GType(lteband));
  1637. netmode = data, lteband = extractXML("LTEBand", data), $("#bando").html(B_4GType(lteband));
  1638. netmode = data, NetworkBand = extractXML("NetworkBand", data), $("#band3").html(B_2G_3GType(NetworkBand));
  1639. netmode = data, extractXML("LTEBand", data), $("#LLTEBand").html($xml.find('LTEBand').text());
  1640. netmode = data, extractXML("NetworkBand", data), $("#LNetworkBand").html($xml.find('NetworkBand').text());
  1641. netmode = data, extractXML("NetworkMode", data), $("#LNetMode").html($xml.find('NetworkMode').text());
  1642. netmode = data, NetOption = extractXML("networkOption", data), NetOption ? $("#NetOption").html($xml.find('networkOption').text()): $(".neo").css('display', 'none');
  1643. }})}
  1644.  
  1645. function _4GType(n) {
  1646. if ((n == '20800800C5') || (n == '7FFFFFFFFFFFFFFF') || (n == '1A000000001') || (n == '1A000000085') || (n == '2000000085') || (n == '7E2880800D5') || (n == '7A0880800D5') || (n == '20000800C5') || (n == '20880800C5') || (n == '3E2880800D5') || (n == '1A08A0C00DD') || (n == '7E2880800D0') || (n == '1A08A0C00DF') || (n == 'A0880800C1') || (n == 'A0880800C5') || (n == '1A008080085') || (n == '7A0000800C5') || (n == '1A000080085') || (n == '1E20A000095') || (n == '7E2880E00D5') || (n == '2000000680380')) { return "Auto"; }
  1647. for (data_out = "", x = 0; x < 90; x++) tb = Math.pow(2, x), color = BigInt("0x" + n) & BigInt(tb) ? (data_out += "B" + String(x + 1) + "+", "#686") : "transparent", $("#cb" + String(x + 1)).css("background", color);
  1648. return data_out = data_out.replace(/\++$/, ""), data_out}
  1649.  
  1650. function getInfo() {
  1651. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/information', success:function(data) {
  1652. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  1653. $('#model').html(' ( ' + conMod($xml.find('DeviceName').text()) + ' ) ');
  1654. $('#Software').html(' ( ' + conMod($xml.find('SoftwareVersion').text()) + ' ) ');
  1655. $('#WebUI').html(' ( ' + conMod($xml.find('WebUIVersion').text()) + ' ) ');
  1656. havename = true;
  1657. getantennastatus();
  1658. if ($xml.find('WanIPAddress').text() == "") {
  1659. ipAddr = $xml.find('SecondWanIPAddress').text(), $xml.find('WanIPAddress').text();
  1660. $("#ipv4").css('display', 'none');
  1661. } else {
  1662. ipAddr = $xml.find('WanIPAddress').text(), $xml.find('SecondWanIPAddress').text();
  1663. $("#ipv4").css('display', '');
  1664. $('#ipv4').html(' ( ' + ipAddr + ' ) ');
  1665. }}})}
  1666.  
  1667. function getStatus() {
  1668. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/monitoring/status', success:function(data) {
  1669. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  1670. if (conMod($xml.find('ConnectionStatus').text()) == "Connected") {
  1671. $("#stat").css('background', '#008000');
  1672. $("#conn").css('color', '#d1cece');
  1673. } else if (conMod($xml.find('ConnectionStatus').text()) == "Connecting") {
  1674. $("#stat").css('background', '#c97f00');
  1675. $("#conn").css('color', '#d1cece');
  1676. } else {
  1677. $("#stat").css('background', '#aa0000');
  1678. $("#conn").css('color', '#d1cece');
  1679. }
  1680. $('#conn').html(' ( ' + conMod($xml.find('ConnectionStatus').text()) + ' ) ');
  1681.  
  1682. if (conMod($xml.find('ConnectionStatus').text() == "")) {
  1683. $('#conn').html("Not Connected");
  1684. } else {
  1685. $('#conn').html(' ( ' + conMod($xml.find('ConnectionStatus').text()) + ' ) ');
  1686. }
  1687. if (netType($xml.find('CurrentNetworkTypeEx').text() == "")) {
  1688. $('#mode').html("Not Connected");
  1689. } else {
  1690. $('#mode').html(netType($xml.find('CurrentNetworkTypeEx').text()));
  1691. }
  1692. if ($xml.find('PrimaryDns').text() == "") {
  1693. $("#wanipv4dns").css('display', 'none');
  1694. } else {
  1695. $("#wanipv4dns").css('display', '');
  1696. $('#wanipv4dns').html(' ( ' + $xml.find('PrimaryDns').text() + ' / ' + $xml.find('SecondaryDns').text() + ' ) ');
  1697. }
  1698.  
  1699. var signalicon = $xml.find('SignalIcon').text();
  1700. $("#signal1").css('background', '#b7d9fe');
  1701. $("#signal2").css('background', '#b7d9fe');
  1702. $("#signal3").css('background', '#b7d9fe');
  1703. $("#signal4").css('background', '#b7d9fe');
  1704. $("#signal5").css('background', '#b7d9fe');
  1705. if (signalicon >= '1') $("#signal1").css('background', '#b82222');
  1706. if (signalicon >= '2') $("#signal2").css('background', '#b87022');
  1707. if (signalicon >= '3') $("#signal3").css('background', '#cbdf1b');
  1708. if (signalicon >= '4') $("#signal4").css('background', '#81c332');
  1709. if (signalicon >= '5') $("#signal5").css('background', '#3d7e00');
  1710.  
  1711. var signaliconnr = $xml.find('SignalIconNr').text();
  1712. $("#nrsignal1").css('background', '#b7d9fe');
  1713. $("#nrsignal2").css('background', '#b7d9fe');
  1714. $("#nrsignal3").css('background', '#b7d9fe');
  1715. $("#nrsignal4").css('background', '#b7d9fe');
  1716. $("#nrsignal5").css('background', '#b7d9fe');
  1717. if (signaliconnr >= '1') $("#nrsignal1").css('background', '#b82222');
  1718. if (signaliconnr >= '2') $("#nrsignal2").css('background', '#b87022');
  1719. if (signaliconnr >= '3') $("#nrsignal3").css('background', '#cbdf1b');
  1720. if (signaliconnr >= '4') $("#nrsignal4").css('background', '#81c332');
  1721. if (signaliconnr >= '5') $("#nrsignal5").css('background', '#3d7e00');
  1722. }})}
  1723.  
  1724. function conMod(mode) {
  1725. switch (mode) {
  1726. case "900":return "Connecting";
  1727. case "901":return "Connected";
  1728. case "902":return "Not Connected";
  1729. case "903":return "Disconnect";
  1730. case "904":return "Connection Failed";
  1731. case "905":return "No Service";
  1732. case "906":return "Connection Error";
  1733. case "33":return "Disconnected";
  1734. case "0":return "Disconnected";
  1735. default:return mode;
  1736. }}
  1737.  
  1738. function netType(mode) {
  1739. switch (mode) {
  1740. case "0":return 'No Service';
  1741. case "1":return 'GSM (2G)';
  1742. case "2":return 'GPRS (2G)';
  1743. case "3":return 'EDGE (2G)';
  1744. case "41":return 'UMTS (3G)';
  1745. case "42":return 'HSDPA (3G)';
  1746. case "43":return 'HSUPA (3G)';
  1747. case "44":return 'HSPA (3G)';
  1748. case "45":return 'HSPA+ (3.5G)';
  1749. case "46":return 'DC-HSPA+ (3.5G)';
  1750. case "101":return 'LTE (4G)';
  1751. case "1011":return 'LTE CA (4G+)';
  1752. case "111":return 'NR (5G)';
  1753. default:return mode;
  1754. }}
  1755.  
  1756. function B_2G_3GType(value) {
  1757. switch (value) {
  1758. case "80": return "2G 1800MHz";
  1759. case "300": return "2G 900MHz";
  1760. case "80000": return "2G 850MHz";
  1761. case "400000":
  1762. $("#w01").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 2100MHz";
  1763. case "800000":
  1764. $("#w02").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 1900MHz";
  1765. case "2000000":
  1766. $("#w04").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 1700MHz";
  1767. case "4000000":
  1768. $("#w05").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 850MHz";
  1769. case "8000000":
  1770. $("#w06").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 800MHz";
  1771. case "2000000000000":
  1772. $("#w08").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 900MHz";
  1773. case "4000000000000":
  1774. $("#w09").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 1700MHz";
  1775. case "1000000000000000":
  1776. $("#w019").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold'); return "3G 800MHz";
  1777. case "3FFFFFFF": return "Auto";
  1778. default: return "" + value;}}
  1779.  
  1780. function B_4GType(value) {
  1781. b1 = 0x1; b2 = 0x2; b3 = 0x4; b4 = 0x8; b5 = 0x10; b7 = 0x40; b8 = 0x80; b11 = 0x400; b12 = 0x800; b13 = 0x1000; b14 = 0x2000; b17 = 0x10000; b18 = 0x20000; b19 = 0x40000; b20 = 0x80000; b21 = 0x100000; b24 = 0x800000; b25 = 0x1000000; b26 = 0x2000000; b28 = 0x8000000; b29 = 0x10000000; b30 = 0x20000000; b31 = 0x40000000; b32 = 0x80000000; b34 = 0x200000000; b37 = 0x1000000000; b38 = 0x2000000000; b39 = 0x4000000000; b40 = 0x8000000000; b41 = 0x10000000000; b42 = 0x20000000000; b43 = 0x40000000000; b44 = 0x80000000000; b46 = 0x200000000000; b47 = 0x400000000000; b48 = 0x800000000000; b49 = 0x1000000000000; b50 = 0x2000000000000; b51 = 0x4000000000000; b52 = 0x8000000000000; b53 = 0x10000000000000;
  1782. var lteBand = " ";
  1783. var lbm = parseInt(value, 16);
  1784. if ((value == '20800800C5') || (value == '7FFFFFFFFFFFFFFF') || (value == '1A000000001') || (value == '1A000000085') || (value == '2000000085') || (value == '7E2880800D5') || (value == '7A0880800D5') || (value == '20000800C5') || (value == '20880800C5') || (value == '3E2880800D5') || (value == '1A08A0C00DD') || (value == '7E2880800D0') || (value == '1A08A0C00DF') || (value == 'A0880800C1') || (value == 'A0880800C5') || (value == '1A008080085') || (value == '7A0000800C5') || (value == '1A000080085') || (value == '1E20A000095') || (value == '7E2880E00D5') || (value == '2000000680380')) {
  1785. lteBand = "Auto";
  1786. } else {
  1787. if ((lbm & b1) != 0) {
  1788. lteBand = lteBand + "2100" + "\/";$("#01").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1789.  
  1790. if ((lbm & b2) != 0) {
  1791. lteBand = lteBand + "1900" + "\/";$("#02").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1792.  
  1793. if ((lbm & b3) != 0) {
  1794. lteBand = lteBand + "1800" + "\/";$("#03").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1795.  
  1796. if ((lbm & b4) != 0) {
  1797. lteBand = lteBand + "1700" + "\/";$("#04").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1798.  
  1799. if ((lbm & b5) != 0) {
  1800. lteBand = lteBand + "850" + "\/";$("#05").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1801.  
  1802. if ((lbm & b7) != 0) {
  1803. lteBand = lteBand + "2600" + "\/";$("#07").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1804.  
  1805. if ((lbm & b8) != 0) {
  1806. lteBand = lteBand + "900" + "\/";$("#08").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1807.  
  1808. if ((lbm & b11) != 0) {
  1809. lteBand = lteBand + "1500" + "\/";$("#011").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1810.  
  1811. if ((lbm & b12) != 0) {
  1812. lteBand = lteBand + "700" + "\/";$("#012").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1813.  
  1814. if ((lbm & b13) != 0) {
  1815. lteBand = lteBand + "700" + "\/";$("#013").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1816.  
  1817. if ((lbm & b14) != 0) {
  1818. lteBand = lteBand + "700" + "\/";$("#014").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1819.  
  1820. if ((lbm & b17) != 0) {
  1821. lteBand = lteBand + "700" + "\/";$("#017").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1822.  
  1823. if ((lbm & b18) != 0) {
  1824. lteBand = lteBand + "850" + "\/";$("#018").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1825.  
  1826. if ((lbm & b19) != 0) {
  1827. lteBand = lteBand + "850" + "\/";$("#019").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1828.  
  1829. if ((lbm & b20) != 0) {
  1830. lteBand = lteBand + "800" + "\/";$("#020").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1831.  
  1832. if ((lbm & b21) != 0) {
  1833. lteBand = lteBand + "1500" + "\/";$("#021").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1834.  
  1835. if ((lbm & b24) != 0) {
  1836. lteBand = lteBand + "1600" + "\/";$("#024").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1837.  
  1838. if ((lbm & b25) != 0) {
  1839. lteBand = lteBand + "1900" + "\/";$("#025").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1840.  
  1841. if ((lbm & b26) != 0) {
  1842. lteBand = lteBand + "850" + "\/";$("#026").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1843.  
  1844. if ((lbm & b28) != 0) {
  1845. lteBand = lteBand + "700" + "\/";$("#028").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1846.  
  1847. if ((lbm & b29) != 0) {
  1848. lteBand = lteBand + "700" + "\/";$("#029").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1849.  
  1850. if ((lbm & b30) != 0) {
  1851. lteBand = lteBand + "2300" + "\/";$("#030").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1852.  
  1853. if ((lbm & b31) != 0) {
  1854. lteBand = lteBand + "450" + "\/";$("#031").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1855.  
  1856. if ((lbm & b32) != 0) {
  1857. lteBand = lteBand + "1500" + "\/";$("#032").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1858.  
  1859. if (BitwiseAndLarge(lbm, b34) != 0) {
  1860. lteBand = lteBand + "2000" + "\/";$("#034").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1861.  
  1862. if (BitwiseAndLarge(lbm, b37) != 0) {
  1863. lteBand = lteBand + "1900" + "\/";$("#037").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1864.  
  1865. if (BitwiseAndLarge(lbm, b38) != 0) {
  1866. lteBand = lteBand + "2600" + "\/";$("#038").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1867.  
  1868. if (BitwiseAndLarge(lbm, b39) != 0) {
  1869. lteBand = lteBand + "1900" + "\/";$("#039").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1870.  
  1871. if (BitwiseAndLarge(lbm, b40) != 0) {
  1872. lteBand = lteBand + "2300" + "\/";$("#040").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1873.  
  1874. if (BitwiseAndLarge(lbm, b41) != 0) {
  1875. lteBand = lteBand + "2500" + "\/";$("#041").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1876.  
  1877. if (BitwiseAndLarge(lbm, b42) != 0) {
  1878. lteBand = lteBand + "3500" + "\/";$("#042").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1879.  
  1880. if (BitwiseAndLarge(lbm, b43) != 0) {
  1881. lteBand = lteBand + "3700" + "\/";$("#043").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1882.  
  1883. if (BitwiseAndLarge(lbm, b44) != 0) {
  1884. lteBand = lteBand + "700" + "\/";$("#044").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1885.  
  1886. if (BitwiseAndLarge(lbm, b46) != 0) {
  1887. lteBand = lteBand + "5200" + "\/";$("#046").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1888.  
  1889. if (BitwiseAndLarge(lbm, b47) != 0) {
  1890. lteBand = lteBand + "5900" + "\/";$("#047").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1891.  
  1892. if (BitwiseAndLarge(lbm, b48) != 0) {
  1893. lteBand = lteBand + "3500" + "\/";$("#048").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1894.  
  1895. if (BitwiseAndLarge(lbm, b49) != 0) {
  1896. lteBand = lteBand + "3500" + "\/";$("#049").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1897.  
  1898. if (BitwiseAndLarge(lbm, b50) != 0) {
  1899. lteBand = lteBand + "1500" + "\/";$("#050").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1900.  
  1901. if (BitwiseAndLarge(lbm, b51) != 0) {
  1902. lteBand = lteBand + "1500" + "\/";$("#051").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1903.  
  1904. if (BitwiseAndLarge(lbm, b52) != 0) {
  1905. lteBand = lteBand + "3300" + "\/";$("#052").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1906.  
  1907. if (BitwiseAndLarge(lbm, b53) != 0) {
  1908. lteBand = lteBand + "2500" + "\/";$("#053").css('background', 'green').css('color', 'yellow').css('font-weight', 'bold');}
  1909.  
  1910. if (lteBand.substring(lteBand.length - 1, lteBand.length) == "\/") {lteBand = lteBand.substring(0, lteBand.length - 1);}
  1911. return lteBand;}
  1912. }
  1913.  
  1914. function BitwiseAndLarge(val1, val2) {
  1915. var shift = 0,
  1916. result = 0;
  1917. var mask = ~((~0) << 30);
  1918. var divisor = 1 << 30;
  1919. while ((val1 != 0) && (val2 != 0)) {
  1920. var rs = (mask & val1) & (mask & val2);
  1921. val1 = Math.floor(val1 / divisor);
  1922. val2 = Math.floor(val2 / divisor);
  1923. var i = shift++;
  1924. for (i; i--;) {
  1925. rs *= divisor;
  1926. }
  1927. result += rs;
  1928. }
  1929. return result;
  1930. }
  1931.  
  1932. function ReadHardBand() {
  1933. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/net/net-mode-list', success:function(data) {
  1934. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  1935. var NetMode = $xml.find('Access').text();
  1936. if (NetMode.indexOf("01") > -1) {$(".sh2G").css('display','');} else {$(".sh2G").css('display','none');}
  1937. if (NetMode.indexOf("02") > -1) {$(".sh3G").css('display','');} else {$(".sh3G").css('display','none');}
  1938.  
  1939. var BandList = $xml.find('BandList').text();
  1940. var xmlt = xml.slice(xml.indexOf("<BandList>"), xml.indexOf("</BandList>"));
  1941. if (xmlt.indexOf("All bands") > -1) {
  1942. xmlt = xmlt.slice(0, xmlt.indexOf("All bands"));
  1943. }
  1944. var val ='';
  1945. while (xmlt.indexOf("<Value>") > -1) {
  1946. val = xmlt.slice(xmlt.indexOf("<Value>") + 7, xmlt.indexOf("</Value>"));
  1947. show3G(val);
  1948. xmlt = xmlt.replace('<Value>' + val + '</Value>', "");
  1949. }
  1950. xmlt = xml.slice(xml.indexOf("<LTEBand>"), xml.indexOf("</LTEBand>"));
  1951. val = xmlt.slice(xmlt.indexOf("<Value>") + 7, xmlt.indexOf("</Value>"));
  1952. show4G(val);
  1953. }})}
  1954.  
  1955. function show3G(val) {
  1956. var x = hex_to_bin(val);
  1957. x = x.split("").reverse().join("");
  1958. if (x.charAt(22) == '1') {$("#sWB1").css('display','');} else {$("#sWB1").css('display','none');}
  1959. if (x.charAt(23) == '1') {$("#sWB2").css('display','');} else {$("#sWB2").css('display','none');}
  1960. if (x.charAt(25) == '1') {$("#sWB4").css('display','');} else {$("#sWB4").css('display','none');}
  1961. if (x.charAt(26) == '1') {$("#sWB5").css('display','');} else {$("#sWB5").css('display','none');}
  1962. if (x.charAt(27) == '1') {$("#sWB6").css('display','');} else {$("#sWB6").css('display','none');}
  1963. if (x.charAt(49) == '1') {$("#sWB8").css('display','');} else {$("#sWB8").css('display','none');}
  1964. if (x.charAt(50) == '1') {$("#sWB9").css('display','');} else {$("#sWB9").css('display','none');}
  1965. if (x.charAt(60) == '1') {$("#sWB19").css('display','');} else {$("#sWB19").css('display','none');}
  1966. }
  1967.  
  1968. function show4G(val) {
  1969. var x = hex_to_bin(val);
  1970. x = '2' + x.split("").reverse().join("");
  1971. if (x.charAt(1) == '1') {$("#sB1").css('display','');} else {$("#sB1").css('display','none');}
  1972. if (x.charAt(2) == '1') {$("#sB2").css('display','');} else {$("#sB2").css('display','none');}
  1973. if (x.charAt(3) == '1') {$("#sB3").css('display','');} else {$("#sB3").css('display','none');}
  1974. if (x.charAt(4) == '1') {$("#sB4").css('display','');} else {$("#sB4").css('display','none');}
  1975. if (x.charAt(5) == '1') {$("#sB5").css('display','');} else {$("#sB5").css('display','none');}
  1976. if (x.charAt(7) == '1') {$("#sB7").css('display','');} else {$("#sB7").css('display','none');}
  1977. if (x.charAt(8) == '1') {$("#sB8").css('display','');} else {$("#sB8").css('display','none');}
  1978. if (x.charAt(12) == '1') {$("#sB12").css('display','');} else {$("#sB12").css('display','none');}
  1979. if (x.charAt(13) == '1') {$("#sB13").css('display','');} else {$("#sB13").css('display','none');}
  1980. if (x.charAt(17) == '1') {$("#sB17").css('display','');} else {$("#sB17").css('display','none');}
  1981. if (x.charAt(18) == '1') {$("#sB18").css('display','');} else {$("#sB18").css('display','none');}
  1982. if (x.charAt(19) == '1') {$("#sB19").css('display','');} else {$("#sB19").css('display','none');}
  1983. if (x.charAt(20) == '1') {$("#sB20").css('display','');} else {$("#sB20").css('display','none');}
  1984. if (x.charAt(25) == '1') {$("#sB25").css('display','');} else {$("#sB25").css('display','none');}
  1985. if (x.charAt(26) == '1') {$("#sB26").css('display','');} else {$("#sB26").css('display','none');}
  1986. if (x.charAt(27) == '1') {$("#sB27").css('display','');} else {$("#sB27").css('display','none');}
  1987. if (x.charAt(28) == '1') {$("#sB28").css('display','');} else {$("#sB28").css('display','none');}
  1988. if (x.charAt(29) == '1') {$("#sB29").css('display','');} else {$("#sB29").css('display','none');}
  1989. if (x.charAt(30) == '1') {$("#sB30").css('display','');} else {$("#sB30").css('display','none');}
  1990. if (x.charAt(32) == '1') {$("#sB32").css('display','');} else {$("#sB32").css('display','none');}
  1991. if (x.charAt(34) == '1') {$("#sB34").css('display','');} else {$("#sB34").css('display','none');}
  1992. if (x.charAt(38) == '1') {$("#sB38").css('display','');} else {$("#sB38").css('display','none');}
  1993. if (x.charAt(39) == '1') {$("#sB39").css('display','');} else {$("#sB39").css('display','none');}
  1994. if (x.charAt(40) == '1') {$("#sB40").css('display','');} else {$("#sB40").css('display','none');}
  1995. if (x.charAt(41) == '1') {$("#sB41").css('display','');} else {$("#sB41").css('display','none');}
  1996. if (x.charAt(42) == '1') {$("#sB42").css('display','');} else {$("#sB42").css('display','none');}
  1997. if (x.charAt(43) == '1') {$("#sB43").css('display','');} else {$("#sB43").css('display','none');}
  1998. if (x.charAt(44) == '1') {$("#sB44").css('display','');} else {$("#sB44").css('display','none');}
  1999. if (x.charAt(46) == '1') {$("#sB46").css('display','');} else {$("#sB46").css('display','none');}
  2000. if (x.charAt(47) == '1') {$("#sB47").css('display','');} else {$("#sB47").css('display','none');}
  2001. if (x.charAt(48) == '1') {$("#sB48").css('display','');} else {$("#sB48").css('display','none');}
  2002. if (x.charAt(49) == '1') {$("#sB49").css('display','');} else {$("#sB49").css('display','none');}
  2003. if (x.charAt(50) == '1') {$("#sB50").css('display','');} else {$("#sB50").css('display','none');}
  2004. if (x.charAt(51) == '1') {$("#sB51").css('display','');} else {$("#sB51").css('display','none');}
  2005. if (x.charAt(52) == '1') {$("#sB52").css('display','');} else {$("#sB52").css('display','none');}
  2006. if (x.charAt(53) == '1') {$("#sB53").css('display','');} else {$("#sB53").css('display','none');}
  2007. }
  2008.  
  2009. function clearband() {
  2010. $("#WB1").prop('checked',false),$("#w01").css('background','').css('color','');
  2011. $("#WB2").prop('checked',false),$("#w02").css('background','').css('color','');
  2012. $("#WB4").prop('checked',false),$("#w04").css('background','').css('color','');
  2013. $("#WB5").prop('checked',false),$("#w05").css('background','').css('color','');
  2014. $("#WB6").prop('checked',false),$("#w06").css('background','').css('color','');
  2015. $("#WB8").prop('checked',false),$("#w08").css('background','').css('color','');
  2016. $("#WB9").prop('checked',false),$("#w09").css('background','').css('color','');
  2017. $("#WB19").prop('checked',false),$("#w019").css('background','').css('color','');
  2018. $("#B1").prop('checked',false),$("#01").css('background','').css('color','');
  2019. $("#B2").prop('checked',false),$("#02").css('background','').css('color','');
  2020. $("#B3").prop('checked',false),$("#03").css('background','').css('color','');
  2021. $("#B4").prop('checked',false),$("#04").css('background','').css('color','');
  2022. $("#B5").prop('checked',false),$("#05").css('background','').css('color','');
  2023. $("#B7").prop('checked',false),$("#07").css('background','').css('color','');
  2024. $("#B8").prop('checked',false),$("#08").css('background','').css('color','');
  2025. $("#B12").prop('checked',false),$("#012").css('background','').css('color','');
  2026. $("#B13").prop('checked',false),$("#013").css('background','').css('color','');
  2027. $("#B17").prop('checked',false),$("#017").css('background','').css('color','');
  2028. $("#B18").prop('checked',false),$("#018").css('background','').css('color','');
  2029. $("#B19").prop('checked',false),$("#019").css('background','').css('color','');
  2030. $("#B20").prop('checked',false),$("#020").css('background','').css('color','');
  2031. $("#B25").prop('checked',false),$("#025").css('background','').css('color','');
  2032. $("#B26").prop('checked',false),$("#026").css('background','').css('color','');
  2033. $("#B27").prop('checked',false),$("#027").css('background','').css('color','');
  2034. $("#B28").prop('checked',false),$("#028").css('background','').css('color','');
  2035. $("#B29").prop('checked',false),$("#029").css('background','').css('color','');
  2036. $("#B30").prop('checked',false),$("#030").css('background','').css('color','');
  2037. $("#B32").prop('checked',false),$("#032").css('background','').css('color','');
  2038. $("#B34").prop('checked',false),$("#034").css('background','').css('color','');
  2039. $("#B38").prop('checked',false),$("#038").css('background','').css('color','');
  2040. $("#B39").prop('checked',false),$("#039").css('background','').css('color','');
  2041. $("#B40").prop('checked',false),$("#040").css('background','').css('color','');
  2042. $("#B41").prop('checked',false),$("#041").css('background','').css('color','');
  2043. $("#B42").prop('checked',false),$("#042").css('background','').css('color','');
  2044. $("#B43").prop('checked',false),$("#043").css('background','').css('color','');
  2045. $("#B44").prop('checked',false),$("#044").css('background','').css('color','');
  2046. $("#B46").prop('checked',false),$("#046").css('background','').css('color','');
  2047. $("#B47").prop('checked',false),$("#047").css('background','').css('color','');
  2048. $("#B48").prop('checked',false),$("#048").css('background','').css('color','');
  2049. $("#B49").prop('checked',false),$("#049").css('background','').css('color','');
  2050. $("#B50").prop('checked',false),$("#050").css('background','').css('color','');
  2051. $("#B51").prop('checked',false),$("#051").css('background','').css('color','');
  2052. $("#B52").prop('checked',false),$("#052").css('background','').css('color','');
  2053. $("#B53").prop('checked',false),$("#053").css('background','').css('color','');
  2054. $("#btnNSA").prop('checked',false),$("#nsacol").css('background','').css('color','');
  2055. $("#btnSA").prop('checked',false),$("#sacol").css('background','').css('color','');
  2056. $("#btnSANSA").prop('checked',false),$("#sansacol").css('background','').css('color','');
  2057. $("#btnNR").prop('checked',false);
  2058. }
  2059.  
  2060. function bin_to_hex(str) {
  2061. var hex_array = [{ key: 0, val: "0000" }, { key: 1, val: "0001" }, { key: 2, val: "0010" }, { key: 3, val: "0011" }, { key: 4, val: "0100" }, { key: 5, val: "0101" }, { key: 6, val: "0110" }, { key: 7, val: "0111" },
  2062. { key: 8, val: "1000" }, { key: 9, val: "1001" }, { key: 'a', val: "1010" }, { key: 'b', val: "1011" }, { key: 'c', val: "1100" }, { key: 'd', val: "1101" }, { key: 'e', val: "1110" }, { key: 'f', val: "1111" }];
  2063. var value ='';
  2064. var list = [];
  2065. if (str.length % 4 !== 0) {
  2066. var a = "0000";
  2067. var b = a.substring(0, 4 - str.length % 4);
  2068. str = b.concat(str);
  2069. }
  2070. while (str.length > 4) {
  2071. list.push(str.substring(0, 4));
  2072. str = str.substring(4);
  2073. }
  2074. list.push(str);
  2075. for (var i = 0; i < list.length; i++) {
  2076. for (var j = 0; j < hex_array.length; j++) {
  2077. if (list[i] == hex_array[j].val) {
  2078. value = value.concat(hex_array[j].key);
  2079. break;
  2080. }}}
  2081. value = value.replace(/\b(0+)/gi, "");
  2082. if (value =='') value = '0';
  2083. return value;
  2084. }
  2085.  
  2086. function hex_to_bin(str) {
  2087. var hex_array = [{ key: 0, val: "0000" }, { key: 1, val: "0001" }, { key: 2, val: "0010" }, { key: 3, val: "0011" }, { key: 4, val: "0100" }, { key: 5, val: "0101" }, { key: 6, val: "0110" }, { key: 7, val: "0111" },
  2088. { key: 8, val: "1000" }, { key: 9, val: "1001" }, { key: 'a', val: "1010" }, { key: 'b', val: "1011" }, { key: 'c', val: "1100" }, { key: 'd', val: "1101" }, { key: 'e', val: "1110" }, { key: 'f', val: "1111" }];
  2089. str = str.toLowerCase();
  2090. var value = "";
  2091. for (var i = 0; i < str.length; i++) {
  2092. for (var j = 0; j < hex_array.length; j++) {
  2093. if (str.charAt(i) == hex_array[j].key) {
  2094. value = value.concat(hex_array[j].val);
  2095. break;
  2096. }}}
  2097. return value;
  2098. }
  2099.  
  2100. function err(n, e, r) {
  2101. suspend = 1, $("#t").html("! Error Executing Request !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000), console.log(n), console.log(e), console.log(r)
  2102. }
  2103.  
  2104. function extractXML(n, e) {
  2105. try {
  2106. return e.split("</" + n + ">")[0].split("<" + n + ">")[1]
  2107. } catch (n) {
  2108. return n.message
  2109. }}
  2110.  
  2111. function refresh(val,val2,val3,nroption){
  2112. suspend = 1, $("#t").html("! Executing The Request !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,success: function(data) {
  2113. var datas = data.split('name="csrf_token" content="');
  2114. var token = datas[datas.length-1].split('"')[0];
  2115. setTimeout(function(){
  2116. $.ajax({type:"POST", async: true, url:'/api/net/net-mode', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml',
  2117. data:'<request><NetworkMode>'+val+'</NetworkMode><NetworkBand>'+val2+'</NetworkBand><LTEBand>'+val3+'</LTEBand><networkOption>' + nroption + '</networkOption></request>',success: function(suspend) {clearband();$("#showBand").hide(),suspend = 1, $("#t").html("! Request Done !").show().css('background', 'green'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000)},error: err})}, 2e3)}})}
  2118.  
  2119. function setBands() {
  2120. if ($("#WB1").is(':checked')) {
  2121. refresh('02', '400000', '7FFFFFFFFFFFFFFF');
  2122. suspend = 1, $("#t").html("! Activating ( 2100-B1 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2123. if ($("#WB2").is(':checked')) {
  2124. refresh('02', '800000', '7FFFFFFFFFFFFFFF');
  2125. suspend = 1, $("#t").html("! Activating ( 1900-B2 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2126. if ($("#WB4").is(':checked')) {
  2127. refresh('02', '2000000', '7FFFFFFFFFFFFFFF');
  2128. suspend = 1, $("#t").html("! Activating ( 1700-B4 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2129. if ($("#WB5").is(':checked')) {
  2130. refresh('02', '4000000', '7FFFFFFFFFFFFFFF');
  2131. suspend = 1, $("#t").html("! Activating ( 850-B5 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2132. if ($("#WB6").is(':checked')) {
  2133. refresh('02', '8000000', '7FFFFFFFFFFFFFFF');
  2134. suspend = 1, $("#t").html("! Activating ( 800-B6 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2135. if ($("#WB8").is(':checked')) {
  2136. refresh('02', '2000000000000', '7FFFFFFFFFFFFFFF');
  2137. suspend = 1, $("#t").html("! Activating ( 900-B8 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2138. if ($("#WB9").is(':checked')) {
  2139. refresh('02', '4000000000000', '7FFFFFFFFFFFFFFF');
  2140. suspend = 1, $("#t").html("! Activating ( 1700-B9 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2141. if ($("#WB19").is(':checked')) {
  2142. refresh('02', '1000000000000000', '7FFFFFFFFFFFFFFF');
  2143. suspend = 1, $("#t").html("! Activating ( 800-B19 ) 3G !").show().css('background', 'rgb(219, 120, 7)');return;}
  2144.  
  2145. var val = 0;
  2146. var lbm = 0;
  2147. if ($("#B1").is(':checked')) {val = val + 1; lbm += b1;}
  2148. if ($("#B2").is(':checked')) {val = val + 2; lbm += b2;}
  2149. if ($("#B3").is(':checked')) {val = val + 4; lbm += b3;}
  2150. if ($("#B4").is(':checked')) {val = val + 8; lbm += b4;}
  2151. if ($("#B5").is(':checked')) {val = val + 10; lbm += b5;}
  2152. if ($("#B8").is(':checked')) {val = val + 80; lbm += b8;}
  2153. if ($("#B11").is(':checked')) {val = val + 400; lbm += b11;}
  2154. if ($("#B12").is(':checked')) {val = val + 800; lbm += b12;}
  2155. if ($("#B13").is(':checked')) {val = val + 1000; lbm += b13;}
  2156. if ($("#B14").is(':checked')) {val = val + 2000; lbm += b14;}
  2157. if ($("#B17").is(':checked')) {val = val + 10000; lbm += b17;}
  2158. if ($("#B18").is(':checked')) {val = val + 20000; lbm += b18;}
  2159. if ($("#B19").is(':checked')) {val = val + 40000; lbm += b19;}
  2160. if ($("#B20").is(':checked')) {val = val + 80000; lbm += b20;}
  2161. if ($("#B21").is(':checked')) {val = val + 100000; lbm += b21;}
  2162. if ($("#B24").is(':checked')) {val = val + 800000; lbm += b24;}
  2163. if ($("#B25").is(':checked')) {val = val + 1000000; lbm += b25;}
  2164. if ($("#B26").is(':checked')) {val = val + 2000000; lbm += b26;}
  2165. if ($("#B28").is(':checked')) {val = val + 8000000; lbm += b28;}
  2166. if ($("#B29").is(':checked')) {val = val + 10000000; lbm += b29;}
  2167. if ($("#B30").is(':checked')) {val = val + 20000000; lbm += b30;}
  2168. if ($("#B31").is(':checked')) {val = val + 40000000; lbm += b31;}
  2169. if ($("#B32").is(':checked')) {val = val + 80000000; lbm += b32;}
  2170. if ($("#B34").is(':checked')) {val = val + 200000000; lbm += b34;}
  2171. if ($("#B37").is(':checked')) {val = val + 1000000000; lbm += b37;}
  2172. if ($("#B38").is(':checked')) {val = val + 2000000000; lbm += b38;}
  2173. if ($("#B39").is(':checked')) {val = val + 4000000000; lbm += b39;}
  2174. if ($("#B40").is(':checked')) {val = val + 8000000000; lbm += b40;}
  2175. if ($("#B41").is(':checked')) {val = val + 10000000000; lbm += b41;}
  2176. if ($("#B42").is(':checked')) {val = val + 20000000000; lbm += b42;}
  2177. if ($("#B43").is(':checked')) {val = val + 40000000000; lbm += b43;}
  2178. if ($("#B44").is(':checked')) {val = val + 80000000000; lbm += b44;}
  2179. if ($("#B46").is(':checked')) {val = val + 200000000000; lbm += b46;}
  2180. if ($("#B47").is(':checked')) {val = val + 400000000000; lbm += b47;}
  2181. if ($("#B48").is(':checked')) {val = val + 800000000000; lbm += b48;}
  2182. if ($("#B49").is(':checked')) {val = val + 1000000000000; lbm += b49;}
  2183. if ($("#B50").is(':checked')) {val = val + 2000000000000; lbm += b50;}
  2184. if ($("#B51").is(':checked')) {val = val + 4000000000000; lbm += b51;}
  2185. if ($("#B52").is(':checked')) {val = val + 8000000000000; lbm += b52;}
  2186. if ($("#B53").is(':checked')) {val = val + 10000000000000; lbm += b53;}
  2187. if ($("#B7").is(':checked')) {hex_value = '' + val; val = parseInt(hex_value, 16); val = val + 64; lbm += b7; hex_value = val.toString(16);} else {hex_value = '' + val;}
  2188.  
  2189. if ($("#btnNSA").is(':checked')) {nroption = '0';}
  2190. if ($("#btnSA").is(':checked')) {nroption = '1';}
  2191. if ($("#btnSANSA").is(':checked')) {nroption = '2';}
  2192.  
  2193. if (hex_value == 0 + nroption) {
  2194. suspend = 1, $("#t").html("! Please Choose Any Frequency Before Done !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000);}
  2195.  
  2196. if (hex_value == 0) {
  2197. if ($("#btnNSA").is(':checked')) {
  2198. refresh('00', '00000000', '7FFFFFFFFFFFFFFF', '0');
  2199. suspend = 1, $("#t").html("! Activating The 5G NSA !").show().css('background', 'rgb(219, 120, 7)');}
  2200. if ($("#btnSA").is(':checked')) {
  2201. refresh('00', '00000000', '7FFFFFFFFFFFFFFF', '1');
  2202. suspend = 1, $("#t").html("! Activating The 5G SA !").show().css('background', 'rgb(219, 120, 7)');}
  2203. if ($("#btnSANSA").is(':checked')) {
  2204. refresh('00', '00000000', '7FFFFFFFFFFFFFFF', '2');
  2205. suspend = 1, $("#t").html("! Activating The 5G SA+NSA !").show().css('background', 'rgb(219, 120, 7)');}return;}
  2206.  
  2207. if ($("#btnNR").is(':checked')) {
  2208. refresh('00', '00000000', '' + hex_value, '' + nroption);
  2209. suspend = 1, $("#t").html("! Activating The 4G is Being With The 5G !").show().css('background', 'rgb(219, 120, 7)');
  2210. } else {
  2211. refresh('03', '3FFFFFFF', '' + hex_value);
  2212. suspend = 1, $("#t").html("! Activating The 4G is Being !").show().css('background', 'rgb(219, 120, 7)');}
  2213. }
  2214.  
  2215. function bandselect(n) {
  2216. if (mainband = mainband && null, 0 == arguments.length) {
  2217. if (null == (e = (e = prompt("Please Input LTE Bands Number, FDD Bands : (B1-2100) (B3-1800) (B5-850) (B7-2600) (B8-900) (B28-700) } TDD Bands : (B38-2600) (B40-2300) (B41-2500) (B42-3500) }. Separated By + Char (example 1+3 or 3+28).", band)) && e.toLowerCase()) || "" === e) return
  2218. } else var e = arguments[0];
  2219. var n = e.split("+"),
  2220. t = 0;
  2221. if ("AUTO" === e.toUpperCase()) t = "7FFFFFFFFFFFFFFF";
  2222. else {
  2223. for (var r = 0; r < n.length; r++) {
  2224. if (-1 != n[r].toLowerCase().indexOf("m") && (n[r] = n[r].replace("m", ""), mainband = n[r]),"AUTO" === n[r].toUpperCase()) {t = "7FFFFFFFFFFFFFFF";break}
  2225. t += Math.pow(2, parseInt(n[r]) - 1)
  2226. }
  2227. t = t.toString(16)
  2228. }
  2229. if (mainband) return _2ndrun = n, void bandselect(String(mainband));
  2230. suspend = 1, $("#t").html("! Please Wait !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,success: function(n) {
  2231. var n = n.split('name="csrf_token" content="'),
  2232. e = n[n.length - 1].split('"')[0],
  2233. r = "00";
  2234. setTimeout(function() {
  2235. $.ajax({type: "POST",async: !0,url: "/api/net/net-mode",headers: {__RequestVerificationToken: e},contentType: "application/xml",
  2236. data: "<request><NetworkMode>" + r + "</NetworkMode><NetworkBand>3FFFFFFF</NetworkBand><LTEBand>" + t + "</LTEBand></request>",
  2237. success: function(n) {$("#showBand").hide(),suspend = 1, $("#t").html("! Request Done !").show().css('background', 'green'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000), _2ndrun , window.setTimeout(function() {bandselect(_2ndrun.join("+")), _2ndrun = !1}, 2e3)},error: err})}, 2e3)}})}
  2238.  
  2239. function _auto(n) {
  2240. refresh('00', '3FFFFFFF', '7FFFFFFFFFFFFFFF');
  2241. suspend = 1, $("#t").html("! Auto Mode is Being Enabled !").show().css('background', 'rgb(219, 120, 7)');}
  2242.  
  2243. function _2G(n) {
  2244. refresh('01', '3FFFFFFF', '7FFFFFFFFFFFFFFF');
  2245. suspend = 1, $("#t").html("! Enable 2G Automatic mode !").show().css('background', 'rgb(219, 120, 7)');}
  2246.  
  2247. function _3G(n) {
  2248. refresh('02', '3FFFFFFF', '7FFFFFFFFFFFFFFF');
  2249. suspend = 1, $("#t").html("! Enable 3G Automatic mode !").show().css('background', 'rgb(219, 120, 7)');}
  2250.  
  2251. function _4G(n) {
  2252. refresh('03', '3FFFFFFF', '7FFFFFFFFFFFFFFF');
  2253. suspend = 1, $("#t").html("! Enable 4G Automatic mode !").show().css('background', 'rgb(219, 120, 7)');}
  2254.  
  2255. function _5G(n) {
  2256. refresh('00', '00000000', '7FFFFFFFFFFFFFFF');
  2257. suspend = 1, $("#t").html("! Enable 5G Automatic mode !").show().css('background', 'rgb(219, 120, 7)');}
  2258.  
  2259. function _showB(n) {
  2260. $("#showBand").show();
  2261. $("#aa").hide();
  2262. $("#bb").show();
  2263. }
  2264.  
  2265. function _showBclose(n) {
  2266. $("#showBand").hide();
  2267. $("#aa").show();
  2268. $("#bb").hide();
  2269. }
  2270.  
  2271. function _options(n) {
  2272. $("#optin").show();
  2273. $("#a1").hide();
  2274. $("#a2").show();
  2275. }
  2276.  
  2277. function _optionsclose(n) {
  2278. $("#optin").hide();
  2279. $("#a1").show();
  2280. $("#a2").hide();
  2281. }
  2282.  
  2283. function rest(val1){
  2284. suspend = 1, $("#t").html("! Restart Router !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,
  2285. success: function(data) {
  2286. var datas = data.split('name="csrf_token" content="');
  2287. var token = datas[datas.length-1].split('"')[0];
  2288. setTimeout(function(){
  2289. $.ajax({type:"POST", async: true, url:'/api/device/control', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml',
  2290. data:'<request><Control>'+val1+'</Control></request>',success: function(suspend) { $("#showBand").hide(),suspend = 1, $("#t").html("! Restart Done !").show().css('background', 'green'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000)},error: function(suspend) { $("#t").html("! Restart Error !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000);}})}, 2e3)}})}
  2291.  
  2292. function power(val1){
  2293. suspend = 1, $("#t").html("! ShutDown Router !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,
  2294. success: function(data) {
  2295. var datas = data.split('name="csrf_token" content="');
  2296. var token = datas[datas.length-1].split('"')[0];
  2297. setTimeout(function(){
  2298. $.ajax({type:"POST", async: true, url:'/api/device/control', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml',
  2299. data:'<request><Control>'+val1+'</Control></request>',success: function(suspend) { $("#showBand").hide(),suspend = 1, $("#t").html("! ShutDown Done !").show().css('background', 'green'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000)},error: function(suspend) { $("#t").html("! ShutDown Error !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000);}})}, 2e3)}})}
  2300.  
  2301. function restor(val1){
  2302. suspend = 1, $("#t").html("! Restore Factory settings !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,
  2303. success: function(data) {
  2304. var datas = data.split('name="csrf_token" content="');
  2305. var token = datas[datas.length-1].split('"')[0];
  2306. setTimeout(function(){
  2307. $.ajax({type:"POST", async: true, url:'/api/device/control', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml',
  2308. data:'<request><Control>'+val1+'</Control></request>',success: function(suspend) { $("#showBand").hide(),suspend = 1, $("#t").html("! Restore Done !").show().css('background', 'green'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000)},error: function(suspend) { $("#t").html("! Restore Error !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000);}})}, 2e3)}})}
  2309.  
  2310. function changeip() {
  2311. suspend = 1, $("#t").html("! Executing The Request !").show().css('background', 'rgb(219, 120, 7)'),setTimeout(function() { suspend = 0, $("#t").html("! The IP Address Is Changing !").show().css('background', 'green'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000) }, 5000),$.ajax({type: "GET",dataType: "text",async: !0,url:'/api/net/plmn-list',success: function(data) {while (xml.indexOf('<Network>') > -1) {sp = xml.slice(xml.indexOf('<Network>'), xml.indexOf('</Network>') + 1);}}})}
  2312.  
  2313. function restart() {rest(1);}
  2314. function restore() {restor(2);}
  2315. function poweroff() {power(4);}
  2316.  
  2317. function SaveAnte(){
  2318. suspend = 1, $("#t").html("! Executing The Request !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,
  2319. success: function(data) {
  2320. var datas = data.split('name="csrf_token" content="');
  2321. var token = datas[datas.length-1].split('"')[0];
  2322. setTimeout(function(){
  2323. $.ajax({type:"POST", async: true, url:'/api/device/antenna_set_type', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml',data:'<request><antennasettype>' + $("#antenna").val() + '</antennasettype></request>',success: function(suspend) { $("#showBand").hide(),suspend = 1, $("#t").html("! Antenna has been switched !").show().css('background', 'green'),setTimeout(function() { suspend = 0,ReadAntenna(), $("#t").hide("") }, 3000)},error: function(suspend) { $("#t").html("! Antenna Not Switched !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000);}})}, 2e3)}})}
  2324.  
  2325. function SaveAnteo(){
  2326. suspend = 1, $("#t").html("! Executing The Request !").show().css('background', 'rgb(219, 120, 7)'),$.ajax({type: "GET",dataType: "text",async: !0,
  2327. success: function(data) {
  2328. var datas = data.split('name="csrf_token" content="');
  2329. var token = datas[datas.length-1].split('"')[0];
  2330. setTimeout(function(){
  2331. $.ajax({type:"POST", async: true, url:'/api/device/antenna_settings', headers:{'__RequestVerificationToken':token}, contentType: 'application/xml',data:'<request><antenna_type>' + $("#antennao").val() + '</antenna_type></request>',success: function(suspend) { $("#showBand").hide(),suspend = 1, $("#t").html("! Antenna has been switched !").show().css('background', 'green'),setTimeout(function() { suspend = 0,ReadAntenna(), $("#t").hide("") }, 3000)},error: function(suspend) { $("#t").html("! Antenna Not Switched !").show().css('background', 'red'),setTimeout(function() { suspend = 0, $("#t").hide("") }, 3000);}})}, 2e3)}})}
  2332.  
  2333. function ReadAntenna() {{{{{
  2334. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_type', success:function(data) {
  2335. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2336. var antennastat1;
  2337. antennastat1 = $xml.find('antenna1type').text();
  2338. if (antennastat1 == '0') {
  2339. antennastat1 = 'Internal'; $("#antenna1").css('background','#0d10b4');
  2340. } else if (antennastat1 == '1') {
  2341. antennastat1 = 'External'; $("#antenna1").css('background','#b4710d');
  2342. } else {
  2343. antennastat1 = 'Unknown'; $("#antenna2").css('background','#e00700');
  2344. }
  2345. $("#antenna1").html(antennastat1);
  2346.  
  2347. var antennastat2;
  2348. antennastat2 = $xml.find('antenna2type').text();
  2349. if (antennastat2 == '0') {
  2350. antennastat2 = 'Internal'; $("#antenna2").css('background','#0d10b4');
  2351. } else if (antennastat2 == '1') {
  2352. antennastat2 = 'External'; $("#antenna2").css('background','#b4710d');
  2353. } else {
  2354. antennastat2 = 'Unknown'; $("#antenna2").css('background','#e00700');
  2355. }
  2356. $("#antenna2").html(antennastat2);
  2357. }})
  2358. }
  2359. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_status', success:function(data) {
  2360. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2361. var antennasta1;
  2362. antennasta1 = $xml.find('antenna1_status').text();
  2363. if (antennasta1 == '0') {
  2364. antennasta1 = 'Internal'; $("#antenna1").css('background','#0d10b4');
  2365. } else if (antennasta1 == '1') {
  2366. antennasta1 = 'External'; $("#antenna1").css('background','#b4710d');
  2367. } else {
  2368. antennasta1 = 'Unknown'; $("#antenna1").css('background','#e00700');
  2369. }
  2370. $("#antenna1").html(antennasta1);
  2371.  
  2372. var antennasta2;
  2373. antennasta2 = $xml.find('antenna2_status').text();
  2374. if (antennasta2 == '0') {
  2375. antennasta2 = 'Internal'; $("#antenna2").css('background','#0d10b4');
  2376. } else if (antennasta2 == '1') {
  2377. antennasta2 = 'External'; $("#antenna2").css('background','#b4710d');
  2378. } else {
  2379. antennasta2 = 'Unknown'; $("#antenna2").css('background','#e00700');
  2380. }
  2381. $("#antenna2").html(antennasta2);
  2382. }})
  2383. }
  2384. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_set_type', success:function(data) {
  2385. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2386. var antcolor = $xml.find('antennasettype').text();
  2387. if (antcolor == '0') { $("#antcolor").css('background','#11dada');
  2388. } else if (antcolor == '1') { $("#antcolor").css('background','#b4710d');
  2389. } else if (antcolor == '2') { $("#antcolor").css('background','#0d10b4');
  2390. } else if (antcolor == '3') { $("#antcolor").css('background','#f80099');
  2391. }
  2392. if ($xml.find('antennasettype').text() == "") {
  2393. $("#antenna,.SaveAntenna").css('display','none');
  2394. } else {
  2395. $("#antenna,.SaveAntenna").css('display','');
  2396. $("#infAntena").css('display','none');
  2397. $("#antenna").val($xml.find('antennasettype').text());
  2398. }
  2399. }})
  2400. }
  2401. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_settings', success:function(data) {
  2402. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2403. var antclr = $xml.find('antenna_type').text();
  2404. if (antclr == '3') { $("#antcolor").css('background','#11dada');
  2405. } else if (antclr == '1') { $("#antcolor").css('background','#b4710d');
  2406. } else if (antclr == '0') { $("#antcolor").css('background','#0d10b4');
  2407. } else if (antclr == '2') { $("#antcolor").css('background','#f80099');
  2408. }
  2409. if ($xml.find('antenna_type').text() == "") {
  2410. $("#antennao,.SaveAntennao").css('display','none');
  2411. } else {
  2412. $("#antennao,.SaveAntennao").css('display','');
  2413. $("#infAntena").css('display','none');
  2414. $("#antennao").val($xml.find('antenna_type').text());
  2415. }
  2416. }})
  2417. }
  2418. }
  2419.  
  2420. function getantennastatus() {{{{
  2421. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_type', success:function(data) {
  2422. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2423. var ant1 = $xml.find('antenna1type').text();
  2424. var ant2 = $xml.find('antenna2type').text();
  2425. if (ant1 == '0' && ant2 == '0') {
  2426. $("#antennastatus").html('Internal').css('background','#0d10b4');
  2427. } else if (ant1 == '1' && ant2 == '1') {
  2428. $("#antennastatus").html('External').css('background','#b4710d');
  2429. } else if (ant1 == '0' && ant2 == '1') {
  2430. $("#antennastatus").html('Mixed').css('background','#f80099');
  2431. } else if (ant1 == '1' && ant2 == '0') {
  2432. $("#antennastatus").html('Mixed').css('background','#f80099');
  2433. }
  2434. if (xml == '') {
  2435. $("#antennastatus").html('Unknown').css('background','#e00700');
  2436. return;
  2437. }
  2438. }})
  2439. }
  2440. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_set_type', success:function(data) {
  2441. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2442. var ant1t = $xml.find('antennasettype').text();
  2443. if (ant1t == '0') {
  2444. $("#antennastatus").html('Auto').css('background','#11dada');
  2445. } else if (ant1t == '1') {
  2446. $("#antennastatus").html('External').css('background','#b4710d');
  2447. } else if (ant1t == '2') {
  2448. $("#antennastatus").html('Internal').css('background','#0d10b4');
  2449. } else if (ant1t == '3') {
  2450. $("#antennastatus").html('Mixed').css('background','#f80099');
  2451. }
  2452. if (xml == '') {
  2453. $("#antennastatus").html('Unknown').css('background','#e00700');
  2454. return;
  2455. }
  2456. }})
  2457. }
  2458. $.ajax({dataType: "text",type: "GET",async: !0,url: '/api/device/antenna_status', success:function(data) {
  2459. var xml = data,xmlDoc = $.parseXML(xml),$xml = $(xmlDoc);
  2460. var ant1i = $xml.find('antenna1_status').text();
  2461. var ant2i = $xml.find('antenna2_status').text();
  2462. if (ant1i == '0' && ant2i == '0') {
  2463. $("#antennastatus").html('Internal').css('background','#0d10b4');
  2464. } else if (ant1i == '1' && ant2i == '1') {
  2465. $("#antennastatus").html('External').css('background','#b4710d');
  2466. } else if (ant1i == '0' && ant2i == '1') {
  2467. $("#antennastatus").html('Mixed').css('background','#f80099');
  2468. } else if (ant1i == '1' && ant2i == '0') {
  2469. $("#antennastatus").html('Mixed').css('background','#f80099');
  2470. }
  2471. if (xml == '') {
  2472. $("#antennastatus").html('Unknown').css('background','#e00700');
  2473. return;
  2474. }
  2475. }})
  2476. }
  2477. }
  2478.  
  2479. function ftb() {
  2480. $(".color_background_blue").css("background", "#456"),
  2481. $(".headcontainer").hide(),
  2482. $("body").prepend('<style>
  2483. .ff {
  2484. border: 2px solid #bbb;
  2485. border-radius: 10px;
  2486. padding: 5px;
  2487. line-height: 2em;
  2488. margin: 1px;
  2489. }
  2490. #t {
  2491. color: rgb(0, 0, 0);
  2492. background: rgb(219, 120, 7);
  2493. margin: 10px;
  2494. padding: 10px;
  2495. border-radius: 10px;
  2496. display: none;
  2497. text-align: center;
  2498. font-weight: bolder;
  2499. font-size: 20px;
  2500. }
  2501. body{
  2502. background: rgb(160, 160, 160);
  2503. font-weight: bolder;
  2504. border-radius: 10px;
  2505. }
  2506. table, td{
  2507. border: 2px solid rgba(8, 8, 8, 0.37);
  2508. border-collapse: collapse;
  2509. text-align: center;
  2510. vertical-align: middle;
  2511. color: inherit;
  2512. font-weight: bold;
  2513. border-spacing: 0;
  2514. }
  2515. .color{
  2516. text-align: center;
  2517. color: red;
  2518. font-weight: bold;
  2519. font-size: 11px;
  2520. }
  2521. .colora{
  2522. text-align: center;
  2523. color: lightgreen;
  2524. font-weight: bold;
  2525. font-size: 11px;
  2526. }
  2527. .colorb{
  2528. text-align: center;
  2529. color: yellow;
  2530. font-weight: bold;
  2531. font-size: 11px;
  2532. }
  2533. .colorc{
  2534. text-align: center;
  2535. color: rgb(0, 255, 255);
  2536. font-weight: bold;
  2537. font-size: 11px;
  2538. }
  2539. .label{
  2540. background: #357EC7;
  2541. color: black;
  2542. font-weight: bold;
  2543. text-align: center;
  2544. }
  2545. .LabelSignal{
  2546. text-align: center;
  2547. font-weight: bold;
  2548. padding: 3px 3px 3px 3px;
  2549. background: #888;
  2550. }
  2551. .fixreading{
  2552. width: 100%;
  2553. text-align: center;
  2554. font-weight: bold;
  2555. transition: width .3s linear;
  2556. border-radius: 10px;
  2557. box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.39), 0 2px 10px 0 rgba(0, 0, 0, 0.418)!important;
  2558. }
  2559. .fixid{
  2560. text-align: center;
  2561. font-weight: bold;
  2562. color: rgb(0, 0, 0);
  2563. }
  2564. .signal-icon{
  2565. background:#b7d9fe;
  2566. border-radius: 10px;
  2567. outline: none;
  2568. margin-right: 0px;
  2569. display: inline-block;
  2570. }
  2571. .btn3 {
  2572. display: inline-block;
  2573. *display: inline;
  2574. zoom: 1;
  2575. cursor: pointer;
  2576. border: 2px solid black;
  2577. overflow: visible;
  2578. font-weight: bold;
  2579. font-size: 11.333px;
  2580. text-decoration: none;
  2581. white-space: nowrap;
  2582. background: green;
  2583. text-align:center;
  2584. border-radius:10px;
  2585. color:white;
  2586. font-weight:bolder;
  2587. padding: 1px 0px 1px 0px;
  2588. }
  2589. .btn3:hover{
  2590. background: #96aba7;
  2591. color: blue;
  2592. }
  2593. .btn3:active {
  2594. background: #00a023;
  2595. color: #911a11;
  2596. position: relative;
  2597. top: 1px;
  2598. text-shadow: none;
  2599. -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
  2600. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
  2601. box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
  2602. }
  2603. .dropdown0{
  2604. background: radial-gradient(at 57% 50%, rgb(56, 57, 61) 0, rgb(49, 55, 90) 40%, rgb(0, 1, 2) 100%);
  2605. }
  2606. .dropdown{
  2607. background: radial-gradient(at 57% 50%, rgb(53, 58, 71) 0, rgb(32, 34, 46) 40%, rgb(3, 14, 26) 100%);
  2608. }
  2609. .eya1{
  2610. background: #01a70f;
  2611. color: #000000;
  2612. border-radius: 6px;
  2613. font-weight: bold;
  2614. font-size: 13px;
  2615. padding: 1px 1px 1px 1px;
  2616. }
  2617. .eya2{
  2618. background: #d88200;
  2619. color: #000000;
  2620. border-radius: 6px;
  2621. font-weight: bold;
  2622. font-size: 13px;
  2623. padding: 1px 1px 1px 1px;
  2624. }
  2625. .eya3{
  2626. background: #b30f03;
  2627. color: #d1cece;
  2628. border-radius: 6px;
  2629. font-weight: bold;
  2630. font-size: 13px;
  2631. padding: 1px 1px 1px 1px;
  2632. }
  2633. .eya4{
  2634. background: #940f82;
  2635. color: #00ff00;
  2636. border-radius: 6px;
  2637. font-weight: bold;
  2638. font-size: 13px;
  2639. padding: 1px 1px 1px 1px;
  2640. }
  2641. .eya5{
  2642. background: yellow;
  2643. color: black;
  2644. border-radius: 6px;
  2645. font-weight: bold;
  2646. font-size: 15px;
  2647. padding: 1px 1px 1px 1px;
  2648. }
  2649. .b-radio{
  2650. display: inline-block;
  2651. border: 2px solid rgb(192, 192, 192);
  2652. width: 16px;
  2653. height: 16px;
  2654. border-radius: 99px;
  2655. vertical-align: middle;
  2656. margin-right: 5px;
  2657. position: relative;
  2658. }
  2659. .g-radio{
  2660. display: inline-block;
  2661. border: 2px solid rgb(192, 192, 192);
  2662. width: 16px;
  2663. height: 16px;
  2664. border-radius: 99px;
  2665. vertical-align: middle;
  2666. margin-right: 5px;
  2667. margin-top: -3px;
  2668. position: relative;
  2669. }
  2670. .nf{
  2671. text-align: center;
  2672. color: yellow;
  2673. }
  2674. </style>
  2675. <div class="ff">
  2676. <div class="ff">
  2677. <table class="dropdown0" style="width:100%;text-align:center;font-weight:bold">
  2678. <th>
  2679. <span style="vertical-align: middle">
  2680. <span style="margin-top:2px;vertical-align: middle">
  2681. <div id="signal1" class="signal-icon" style="width:10px;height:16px"></div>
  2682. <div id="signal2" class="signal-icon" style="width:10px;height:21px"></div>
  2683. <div id="signal3" class="signal-icon" style="width:10px;height:26px"></div>
  2684. <div id="signal4" class="signal-icon" style="width:10px;height:31px"></div>
  2685. <div id="signal5" class="signal-icon" style="width:10px;height:36px"></div>
  2686. </span>&nbsp;
  2687. <span style="text-align: center;font-size: 11px;font-weight:bold;color: red" id="mode">2G/3G/4G</span>&nbsp;<span class="colorc bband" id="bandB"></span>
  2688. </th>
  2689. <th>
  2690. <span class="nf" id="brand">Service</span>&nbsp;<span class="nu colorc" id="numer">Number Service</span>
  2691. <div>
  2692. <span class="nf nu" id="name">Country</span>
  2693. <div style="text-align:center;vertical-align: middle">
  2694. <span class="color">&nbsp;NetMode :&nbsp;</span><span class="colorc" id="LNetMode"></span>
  2695. <span class="color">&nbsp;NetBand :&nbsp;</span><span class="colorb" id="LNetworkBand"></span>
  2696. <span class="color">&nbsp;LTEBand :&nbsp;</span><span class="colora" id="LLTEBand"></span>
  2697. <span class="color">&nbsp;Mode :&nbsp;</span><span class="colorb" id="moden"></span>
  2698. <span class="color neo">&nbsp;NetOption :&nbsp;</span><span class="colora" id="NetOption"></span>
  2699. </th>
  2700. <th>
  2701. &nbsp;
  2702. <span class="e5" style="vertical-align: middle">
  2703. <span style="text-align: center;font-size: 11px;font-weight:bold;color: red" id="leftband">5G</span>&nbsp;<span class="colorc bnr" id="bandNR"></span>
  2704. &nbsp;
  2705. <span style="margin-top:2px;vertical-align: middle">
  2706. <div id="nrsignal5" class="signal-icon" style="width:10px;height:36px"></div>
  2707. <div id="nrsignal4" class="signal-icon" style="width:10px;height:31px"></div>
  2708. <div id="nrsignal3" class="signal-icon" style="width:10px;height:26px"></div>
  2709. <div id="nrsignal2" class="signal-icon" style="width:10px;height:21px"></div>
  2710. <div id="nrsignal1" class="signal-icon" style="width:10px;height:16px"></div>
  2711. </span>
  2712. </th>
  2713. </table>
  2714. <table style="width:100%;text-align:center;font-weight:bold">
  2715. <td class="dropdown0" style="width:25%" Rowspan="2">
  2716. <button style="font-weight:bolder;background: rgb(18, 68, 60);color:white;padding: 5px;border-radius:10px;" id="aa" onclick="_showB()">Select BAND</button>
  2717. <button style="font-weight:bolder;background: rgb(18, 68, 60);color:white;padding: 5px;border-radius:10px;display:none" id="bb" onclick="_showBclose()">Select BAND</button>
  2718. &emsp;
  2719. <button style="font-weight:bolder;background: rgb(18, 68, 60);color:white;padding: 5px;border-radius:10px;" onclick="bandselect()">Combine BAND</button>
  2720. &emsp;
  2721. <button style="font-weight:bolder;background: rgb(20, 161, 91);color:white;padding: 5px;border-radius:10px;" onclick="speed()">Speed Test</button>
  2722. &emsp;
  2723. <button style="font-weight:bolder;background: rgb(150, 59, 7);color:white;padding: 5px;border-radius:10px;" id="a1" onclick="_options();">Options</button>
  2724. <button style="font-weight:bolder;background: rgb(150, 59, 7);color:white;padding: 5px;border-radius:10px;display:none" id="a2" onclick="_optionsclose();">Options</button>
  2725. <script>
  2726. function speed() {
  2727. window.open("https://www.speedtest.net/");
  2728. }
  2729. </script>
  2730. <div>
  2731. <span style="font-weight:bolder;color:rgb(255, 240, 36)">Huawei Manager 2023 for Browser</span>
  2732. </div>
  2733. </td>
  2734. <td style="width:15%" class="label" colspan="2">RSSI</td>
  2735. <td style="width:8%" class="label pci">PCI</td>
  2736. <td style="width:8%" class="label cell">CELL ID</td>
  2737. <td style="width:8%" class="label enb">eNBID/Cell</td>
  2738. <td style="width:8%" class="label">Mode</td>
  2739. <td style="width:8%" class="label lac" id="tlac">TAC</td>
  2740. <td style="width:8%;display:none" class="label bn3">Band</td>
  2741. <td style="width:8%" class="label">Antenna</td>
  2742. <tr>
  2743. <td class="LabelSignal">
  2744. <div class="fixreading rssib"><span id="rssi">0</span>
  2745. <td class="LabelSignal">
  2746. <div class="fixreading rssib"><span id="rssipercent">0</span>
  2747. <td class="LabelSignal pci"><span id="pci">0</span>
  2748. <td class="LabelSignal cell"><span id="cell_id">0</span>
  2749. <td class="LabelSignal enb"><span id="enbid">0</span>
  2750. <td class="LabelSignal mod"><span id="modee">0</span>
  2751. <td class="LabelSignal lac"><span id="lac">0</span>
  2752. <td class="LabelSignal bn3" style="display:none"><span id="band3">0</span>
  2753. <td class="LabelSignal" id="antennastatus">-</span>
  2754. </table>
  2755. <table style="width:100%;text-align:center;font-weight:bold">
  2756. <tr id="stat" style="font-size:15px;text-align:center;background:#911a11">
  2757. <td style="width:100%;position: inherit;color:yellow">
  2758. <span id="model" style="color:#d1cece;font-weight:bold">Model</span><span id="Software" style="color:#d1cece;font-weight:bold">Version</span><span id="WebUI" style="color:#d1cece;font-weight:bold">WebUI</span><span id="conn" style="color:#d1cece;font-weight:bold">Status</span><span id="bootTime" style="color:#d1cece;font-weight:bold">Router Runtime</span><span id="ipv4" style="color:#d1cece;font-weight:bold">IP Address</span><span id="wanipv4dns" style="color:#d1cece;font-weight:bold">DNS IPV4</span>
  2759. </table>
  2760.  
  2761. <table id="optin" style="width:100%;text-align:center;font-weight:bold;display:none">
  2762. <td style="width:50%;font-size:big;background:#041b4b">
  2763. <button style="font-weight:bolder;background-color: #00d10a;color:black;padding: 5px;border-radius:10px;" onclick="restart()">Restart Router</button>
  2764. &nbsp;&nbsp;
  2765. <button style="font-weight:bolder;background-color: #f31111;color:black;padding: 5px;border-radius:10px;" onclick="poweroff()">ShutDown Router</button>
  2766. &nbsp;&nbsp;
  2767. <button style="font-weight:bolder;background-color: #1496d3;color:black;padding: 5px;border-radius:10px;" onclick="changeip()">Refresh IP Address</button>
  2768. &nbsp;&nbsp;
  2769. <button style="font-weight:bolder;background-color: #f77070;color:black;padding: 5px;border-radius:10px;" onclick="restore()">Restore Default Settings</button>
  2770. </td>
  2771. <td style="width:50%;font-size:big;background:#887610" id="antcolor">
  2772. <label class="label" style="padding: 3px 3px 3px 3px;text-align:center;border: 2px solid rgb(255, 255, 255);font-size:12;text-align:center">First Entry</label>&nbsp;
  2773. <label class="label" style="padding: 3px 3px 3px 3px;background: #888;text-align:center;border: 2px solid rgb(255, 255, 255);font-size:12;text-align:center;color:white" id="antenna1">Unknown</label>
  2774. &nbsp;&nbsp;&nbsp;
  2775. <label class="label" style="padding: 3px 3px 3px 3px;text-align:center;border: 2px solid rgb(255, 255, 255);font-size:12;text-align:center">Second Entry</label>&nbsp;
  2776. <label class="label" style="padding: 3px 3px 3px 3px;background: #888;text-align:center;border: 2px solid rgb(255, 255, 255);font-size:12;text-align:center;color:white" id="antenna2">Unknown</label>
  2777. &nbsp;&nbsp;
  2778. <input type="button" class="btn" onclick="ReadAntenna()" value="Show Data" style="font-weight:bolder;border-radius: 10px;height:26px;width:82px">
  2779. &nbsp;&nbsp;
  2780. <label style="text-align:center" id="antcolor">
  2781. <select style="display:none;text-align:center;font-weight:bold" id="antenna">
  2782. <option value ="0">Automatic</option>
  2783. <option value ="2">Internal</option>
  2784. <option value ="1">External</option>
  2785. <option value ="3">Mixed</option>
  2786. </select>
  2787. <select style="display:none;text-align:center;font-weight:bold" id="antennao">
  2788. <option value ="3">Automatic</option>
  2789. <option value ="0">Internal</option>
  2790. <option value ="1">External</option>
  2791. <option value ="2">Mixed</option>
  2792. </select>
  2793. </label>
  2794. &nbsp;&nbsp;
  2795. <label>
  2796. <input type="button" class="btn SaveAntenna" onclick="SaveAnte()" value="Save" style="font-weight:bolder;border-radius: 10px;display:none;height:26px;width:36px">
  2797. <input type="button" class="btn SaveAntennao" onclick="SaveAnteo()" value="Save" style="font-weight:bolder;border-radius: 10px;display:none;height:26px;width:36px">
  2798. </label>
  2799. </td>
  2800. </table>
  2801.  
  2802. <table id="showBand" style="width:100%;text-align:center;font-weight:bold;display:none">
  2803. <td style="width:10%;font-size:big;background:#0bcfd6">
  2804. <span style="font-size:big;font-size: 15px;font-weight:bolder;color: black"><b><b>AUTO</b></b></span></td>
  2805. <td class="dropdown0">
  2806. <input class="btn3" onclick="_auto()" style="font-weight:bolder;font-size:13px" type="button" value="&emsp;AUTO&emsp;">
  2807. <input class="btn3 e5" onclick="_5G()" style="font-weight:bolder;font-size:13px" type="button" value="&emsp;5G&emsp;">
  2808. <input class="btn3 sh4G" onclick="_4G()" style="font-weight:bolder;font-size:13px" type="button" value="&emsp;4G&emsp;">
  2809. <input class="btn3 sh3G" onclick="_3G()" style="font-weight:bolder;font-size:13px" type="button" value="&emsp;3G&emsp;">
  2810. <input class="btn3 sh2G" onclick="_2G()" style="font-weight:bolder;font-size:13px" type="button" value="&emsp;2G&emsp;">
  2811. <input style="font-weight:bolder;font-size:13px;padding: 7px;border-radius:10px;background:red" class="btn3" onclick="setBands()" type="button" value="&emsp;Accept Band&emsp;">
  2812. </td>
  2813. <tr>
  2814. <td class="sh3G" style="width:10%;font-size:big;background:#01a70f">
  2815. <span style="font-size:big;font-size: 15px;font-weight:bolder;color: #000000"><b><b>3G</b></b></span></td>
  2816. <td class="dropdown sh3G">
  2817. <label id="sWB6">&nbsp;
  2818. <input type="radio" name="3" class="b-radio" id="WB6"><span class="eya1" id="w06">&nbsp;800 - B6&nbsp;</label>
  2819. <label id="sWB19">&nbsp;
  2820. <input type="radio" name="3" class="b-radio" id="WB19"><span class="eya1" id="w019">&nbsp;800 - B19&nbsp;</label>
  2821. <label id="sWB5">&nbsp;
  2822. <input type="radio" name="3" class="b-radio" id="WB5"><span class="eya1" id="w05">&nbsp;850 - B5&nbsp;</label>
  2823. <label id="sWB8">&nbsp;
  2824. <input type="radio" name="3" class="b-radio" id="WB8"><span class="eya1" id="w08">&nbsp;900 - B8&nbsp;</label>
  2825. <label id="sWB4">&nbsp;
  2826. <input type="radio" name="3" class="b-radio" id="WB4"><span class="eya1" id="w04">&nbsp;1700 - B4&nbsp;</label>
  2827. <label id="sWB9">&nbsp;
  2828. <input type="radio" name="3" class="b-radio" id="WB9"><span class="eya1" id="w09">&nbsp;1700 - B9&nbsp;</label>
  2829. <label id="sWB2">&nbsp;
  2830. <input type="radio" name="3" class="b-radio" id="WB2"><span class="eya1" id="w02">&nbsp;1900 - B2&nbsp;</label>
  2831. <label id="sWB1">&nbsp;
  2832. <input type="radio" name="3" class="b-radio" id="WB1"><span class="eya1" id="w01">&nbsp;2100 - B1&nbsp;</label>
  2833. </td>
  2834. <tr>
  2835. <td class="sh4G" style="width:10%;font-size:big;background:#d88200">
  2836. <span style="font-size:big;font-size: 15px;font-weight:bolder;color: black"><b><b>4G-FDD</b></b></span></td>
  2837. <td class="dropdown sh4G">
  2838. <label id="sB12">&nbsp;
  2839. <input type="checkbox" class="b-radio" id="B12"><span class="eya2" id="012">&nbsp;700 - B12&nbsp;</label>
  2840. <label id="sB13">&nbsp;
  2841. <input type="checkbox" class="b-radio" id="B13"><span class="eya2" id="013">&nbsp;700 - B13&nbsp;</label>
  2842. <label id="sB17">&nbsp;
  2843. <input type="checkbox" class="b-radio" id="B17"><span class="eya2" id="017">&nbsp;700 - B17&nbsp;</label>
  2844. <label id="sB28">&nbsp;
  2845. <input type="checkbox" class="b-radio" id="B28"><span class="eya2" id="028">&nbsp;700 - B28&nbsp;</label>
  2846. <label id="sB29">&nbsp;
  2847. <input type="checkbox" class="b-radio" id="B29"><span class="eya2" id="029">&nbsp;700 - B29&nbsp;</label>
  2848. <label id="sB20">&nbsp;
  2849. <input type="checkbox" class="b-radio" id="B20"><span class="eya2" id="020">&nbsp;800 - B20&nbsp;</label>
  2850. <label id="sB27">&nbsp;
  2851. <input type="checkbox" class="b-radio" id="B27"><span class="eya2" id="027">&nbsp;800 - B27&nbsp;</label>
  2852. <label id="sB5">&nbsp;
  2853. <input type="checkbox" class="b-radio" id="B5"><span class="eya2" id="05">&nbsp;850 - B5&nbsp;</label>
  2854. <label id="sB18">&nbsp;
  2855. <input type="checkbox" class="b-radio" id="B18"><span class="eya2" id="018">&nbsp;850 - B18&nbsp;</label>
  2856. <label id="sB19">&nbsp;
  2857. <input type="checkbox" class="b-radio" id="B19"><span class="eya2" id="019">&nbsp;850 - B19&nbsp;</label>
  2858. <label id="sB26">&nbsp;
  2859. <input type="checkbox" class="b-radio" id="B26"><span class="eya2" id="026">&nbsp;850 - B26&nbsp;</label>
  2860. <label id="sB8">&nbsp;
  2861. <input type="checkbox" class="b-radio" id="B8"><span class="eya2" id="08">&nbsp;900 - B8&nbsp;</label>
  2862. <label id="sB32">&nbsp;
  2863. <input type="checkbox" class="b-radio" id="B32"><span class="eya2" id="032">&nbsp;1500 - B32&nbsp;</label>
  2864. <label id="sB4">&nbsp;
  2865. <input type="checkbox" class="b-radio" id="B4"><span class="eya2" id="04">&nbsp;1700 - B4&nbsp;</label>
  2866. <label id="sB3">&nbsp;
  2867. <input type="checkbox" class="b-radio" id="B3"><span class="eya2" id="03">&nbsp;1800 - B3&nbsp;</label>
  2868. <label id="sB2">&nbsp;
  2869. <input type="checkbox" class="b-radio" id="B2"><span class="eya2" id="02">&nbsp;1900 - B2&nbsp;</label>
  2870. <label id="sB25">&nbsp;
  2871. <input type="checkbox" class="b-radio" id="B25"><span class="eya2" id="025">&nbsp;1900 - B25&nbsp;</label>
  2872. <label id="sB1">&nbsp;
  2873. <input type="checkbox" class="b-radio" id="B1"><span class="eya2" id="01">&nbsp;2100 - B1&nbsp;</label>
  2874. <label id="sB30">&nbsp;
  2875. <input type="checkbox" class="b-radio" id="B30"><span class="eya2" id="030">&nbsp;2300 - B30&nbsp;</label>
  2876. <label id="sB7">&nbsp;
  2877. <input type="checkbox" class="b-radio" id="B7"><span class="eya2" id="07">&nbsp;2600 - B7&nbsp;</label>
  2878. </td>
  2879. <tr>
  2880. <td class="sh4G" style="width:10%;font-size:big;background:#b30f03">
  2881. <span style="font-size:big;font-size: 15px;font-weight:bolder;color: #d1cece"><b><b>4G-TDD</b></b></span></td>
  2882. <td class="dropdown sh4G">
  2883. <label id="sB39">&nbsp;
  2884. <input type="checkbox" class="b-radio" id="B39"><span class="eya3" id="039">&nbsp;1900 - B39&nbsp;</label>
  2885. <label id="sB34">&nbsp;
  2886. <input type="checkbox" class="b-radio" id="B34"><span class="eya3" id="034">&nbsp;2000 - B34&nbsp;</label>
  2887. <label id="sB40">&nbsp;
  2888. <input type="checkbox" class="b-radio" id="B40"><span class="eya3" id="040">&nbsp;2300 - B40&nbsp;</label>
  2889. <label id="sB41">&nbsp;
  2890. <input type="checkbox" class="b-radio" id="B41"><span class="eya3" id="041">&nbsp;2500 - B41&nbsp;</label>
  2891. <label id="sB38">&nbsp;
  2892. <input type="checkbox" class="b-radio" id="B38"><span class="eya3" id="038">&nbsp;2600 - B38&nbsp;</label>
  2893. <label id="sB42">&nbsp;
  2894. <input type="checkbox" class="b-radio" id="B42"><span class="eya3" id="042">&nbsp;3500 - B42&nbsp;</label>
  2895. <label id="sB43">&nbsp;
  2896. <input type="checkbox" class="b-radio" id="B43"><span class="eya3" id="043">&nbsp;3700 - B43&nbsp;</label>
  2897. </td>
  2898. <tr>
  2899. <td class="e5" style="width:10%;font-size:big;background:#940f82">
  2900. <span style="font-size:big;font-size: 15px;font-weight:bolder;color: #00ff00"><b><b>5G</b></b></span></td>
  2901. <td class="dropdown e5">
  2902. <label>&nbsp;
  2903. <input type="radio" id="btnNSA" name="2" class="g-radio"><span class="eya4" id="nsacol">&nbsp;NSA&nbsp;</label>
  2904. <label>&nbsp;
  2905. <input type="radio" id="btnSA" name="2" class="g-radio"><span class="eya4" id="sacol">&nbsp;SA&nbsp;</label>
  2906. <label>&nbsp;
  2907. <input type="radio" id="btnSANSA" name="2" class="g-radio"><span class="eya4" id="sansacol">&nbsp;SA+NSA&nbsp;</label>
  2908. <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  2909. <input type="checkbox" style="margin-top: -2px;" class="b-radio" id="btnNR"><span class="eya5">&nbsp;Enabled 4G + 5G&nbsp;</label>
  2910. </table>
  2911. </td>
  2912. <table class="allow" style="width:100%;text-align:center;font-weight:bold">
  2913. <tr style="font-size:15px;text-align:center;background:#911a11">
  2914. <td style="position: inherit;color:yellow" colspan="3">
  2915. <span id="bando" style="color:#d1cece;font-weight:bold"></span>
  2916. <tr style="font-size:15px;text-align:center;background:#911a11">
  2917. <td style="position: inherit;color:yellow" colspan="3">
  2918. <span id="allowed" style="color:#d1cece;font-weight:bold"></span>
  2919. </table>
  2920. </div>
  2921. <div style="display:block;overflow: auto;">
  2922. <div id="t"></div>
  2923. </div>
  2924.  
  2925. <div class="ff 2G">
  2926. <table class="e3" style="width:100%;text-align:center;font-weight:bold;display:none">
  2927. <td style="width:25%" class="label" colspan="2">3G-RSCP</td>
  2928. <td style="width:25%" class="label" colspan="2">3G-ECIO</td>
  2929. <td style="width:25%" class="label tx" colspan="2">3G-TXPower</td>
  2930. <td style="width:25%" class="label arfc3g">3G-EARFCN</td>
  2931. <tr>
  2932. <td class="LabelSignal">
  2933. <div class="fixreading rscpb"><span id="rscp">0</span>
  2934. <td class="LabelSignal">
  2935. <div class="fixreading rscpb"><span id="rscppercent">0</span>
  2936. <td class="LabelSignal">
  2937. <div class="fixreading eciob"><span id="ecio">0</span>
  2938. <td class="LabelSignal">
  2939. <div class="fixreading eciob"><span id="eciopercent">0</span>
  2940. <td class="LabelSignal tx">
  2941. <div class="fixreading tx3b"><span id="txpow3g">0</span>
  2942. <td class="LabelSignal arfc3g" colspan="2">
  2943. <div class="fixreading" style="background:#008013"><span id="earf3g">-</span>
  2944. </table>
  2945.  
  2946. <table class="e4" style="width:100%;text-align:center;font-weight:bold">
  2947. <td style="width:15%" class="label" colspan="2">4G-RSRP</td>
  2948. <td style="width:15%" class="label" colspan="2">4G-RSRQ</td>
  2949. <td style="width:15%" class="label" colspan="2">4G-SINR</td>
  2950. <td style="width:30%" class="label tx">4G-TXPower</td>
  2951. <td style="width:15%;display:none" class="label 4ulf">4G-Frequency</td>
  2952. <tr>
  2953. <td class="LabelSignal">
  2954. <div class="fixreading rsrpb"><span id="rsrp">0</span>
  2955. <td class="LabelSignal">
  2956. <div class="fixreading rsrpb"><span id="rsrppercent">0</span>
  2957. <td class="LabelSignal">
  2958. <div class="fixreading rsrqb"><span id="rsrq">0</span>
  2959. <td class="LabelSignal">
  2960. <div class="fixreading rsrqb"><span id="rsrqpercent">0</span>
  2961. <td class="LabelSignal">
  2962. <div class="fixreading sinrb"><span id="sinr">0</span>
  2963. <td class="LabelSignal">
  2964. <div class="fixreading sinrb"><span id="sinrpercent">0</span>
  2965. <td class="LabelSignal tx">
  2966. <div class="fixreading tx4b"><span id="txpow4g">0</span>
  2967. <td style="display:none" class="LabelSignal 4ulf">
  2968. <div class="fixreading" style="background:rgb(0, 255, 106)"><span class="fixid" id="ludfreq">-</span>
  2969. </table>
  2970.  
  2971. <table class="mcstbs4g" style="width: 100%;display:none">
  2972. <td class="label" colspan="3">4G-MCS</td>
  2973. <td class="label" colspan="3">4G-TBS</td>
  2974. <td style="display:none" class="label dlmcs5g" colspan="3">5G-MCS</td>
  2975. <td class="label" colspan="2">QAM</td>
  2976. <tr>
  2977. <td style="width:9%" class="LabelSignal">
  2978. <div class="fixreading" id="dlmcs0reading"><span class="fixid" id="dlmcs0">0</span>
  2979. <td style="width:9%" class="LabelSignal">
  2980. <div class="fixreading" id="dlmcs1reading"><span class="fixid" id="dlmcs1">0</span>
  2981. <td style="width:9%" class="LabelSignal">
  2982. <div class="fixreading" id="ulmcsreading"><span class="fixid" id="ulmcs">0</span>
  2983. <td style="width:9%" class="LabelSignal">
  2984. <div class="fixreading" id="dltbs0reading"><span class="fixid" id="dltbs0">0</span>
  2985. <td style="width:9%" class="LabelSignal">
  2986. <div class="fixreading" id="dltbs1reading"><span class="fixid" id="dltbs1">0</span>
  2987. <td style="width:9%" class="LabelSignal">
  2988. <div class="fixreading" id="ultbsreading"><span class="fixid" id="ultbs">0</span>
  2989. <td style="width:9%;display:none" class="LabelSignal dlmcs5g">
  2990. <div class="fixreading" id="nr0dlmcsreading"><span class="fixid" id="nr0dlmcs">0</span>
  2991. <td style="width:9%;display:none" class="LabelSignal dlmcs5g">
  2992. <div class="fixreading" id="nr1dlmcsreading"><span class="fixid" id="nr1dlmcs">0</span>
  2993. <td style="width:9%;display:none" class="LabelSignal dlmcs5g">
  2994. <div class="fixreading" id="nrulmcsreading"><span class="fixid" id="nrulmcs">0</span>
  2995. <td style="width:9%" class="LabelSignal">
  2996. <div class="fixreading" id="QAM0"><span class="fixid">-</span>
  2997. <td style="width:9%" class="LabelSignal">
  2998. <div class="fixreading" id="QAM1"><span class="fixid">-</span>
  2999. </table>
  3000.  
  3001. <table style="width: 100%">
  3002. <td style="width:15%;display:none" class="label ulf">Frequency</td>
  3003. <td style="width:15%" class="label dlul">4G-DL/UL BW</td>
  3004. <td style="width:15%" class="label arfc4g">4G-EARFCN</td>
  3005. <td style="width:15%" class="label nrdlul">5G-DL/UL BW</td>
  3006. <td style="width:15%" class="label nrarfc">5G-EARFCN</td>
  3007. <td style="width:15%" class="label cqi01" colspan="2">CQI</td>
  3008.  
  3009. <tr>
  3010. <td style="display:none" class="LabelSignal ulf">
  3011. <div class="fixreading" style="background:rgb(0, 255, 106)"><span class="fixid" id="dufrequency">-</span>
  3012. <td class="LabelSignal dlul">
  3013. <div class="fixreading" id="dlulbandreading"><span class="fixid" id="dlbandwidth">0</span>/<span class="fixid" id="ulbandwidth">0</span>
  3014. <td class="LabelSignal arfc4g">
  3015. <div class="fixreading" id="arfcnreading"><span class="fixid" id="earf4g">-</span>
  3016. <td class="LabelSignal nrdlul">
  3017. <div class="fixreading" id="nrdlulbandreading"><span class="fixid" id="nrdlbw">0</span>/<span class="fixid" id="nrulbw">0</span>
  3018. <td class="LabelSignal nrarfc">
  3019. <div class="fixreading" id="nrarfcnreading"><span class="fixid" id="nrearf">-</span>
  3020. <td class="LabelSignal cqi01">
  3021. <div class="fixreading" id="0cqi"><span class="fixid">-</span>
  3022. <td class="LabelSignal cqi01">
  3023. <div class="fixreading" id="1cqi"><span class="fixid">-</span>
  3024.  
  3025. </table>
  3026.  
  3027. <table class="e5" style="width:100%;text-align:center;font-weight:bold;display:none">
  3028. <td style="width:15%"class="label" colspan="2">5G-RSRP</td>
  3029. <td style="width:15%" class="label" colspan="2">5G-RSRQ</td>
  3030. <td style="width:15%" class="label" colspan="2">5G-SINR</td>
  3031. <td style="width:30%" class="label nrtx">5G-TXPower</td>
  3032. <td style="width:15%;display:none" class="label 5ulf">5G-Frequency</td>
  3033. <tr>
  3034. <td class="LabelSignal">
  3035. <div class="fixreading nrrsrpb"><span id="nrrsrp">0</span>
  3036. <td class="LabelSignal">
  3037. <div class="fixreading nrrsrpb"><span id="nrrsrppercent">0</span>
  3038. <td class="LabelSignal">
  3039. <div class="fixreading nrrsrqb"><span id="nrrsrq">0</span>
  3040. <td class="LabelSignal">
  3041. <div class="fixreading nrrsrqb"><span id="nrrsrqpercent">0</span>
  3042. <td class="LabelSignal">
  3043. <div class="fixreading nrsinrb"><span id="nrsinr">0</span>
  3044. <td class="LabelSignal">
  3045. <div class="fixreading nrsinrb"><span id="nrsinrpercent">0</span>
  3046. <td class="LabelSignal nrtx">
  3047. <div class="fixreading nrtxp"><span id="nrtxpow">0</span>
  3048. <td style="display:none" class="LabelSignal 5ulf">
  3049. <div class="fixreading"style="background:rgb(0, 255, 106)"><span class="fixid" id="nrudfreq">-</span>
  3050. </table>
  3051. </div>
  3052. </div>
  3053. ')}
Add Comment
Please, Sign In to add comment