DT-LAYOUT


SUBMITTED BY: locked

DATE: July 14, 2023, 2:42 a.m.

UPDATED: Oct. 8, 2023, 10:09 p.m.

FORMAT: Text only

SIZE: 22.2 kB

HITS: 1523

  1. {
  2. "status":200,
  3. "data":[
  4. {
  5. "id":3807,
  6. "label":"Nome do app",
  7. "name":"APP_NAME",
  8. "value": "ℹ️ 1.1",
  9. "type":"STRING",
  10. "status":"INACTIVE",
  11. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  12. },
  13. {
  14. "id":3808,
  15. "label":"Logo do app",
  16. "name":"APP_LOGO",
  17. "value":"https://i.imgur.com/DfpItDx.pn",
  18. "type":"IMAGE",
  19. "status":"INACTIVE",
  20. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  21. },
  22. {
  23. "id":3809,
  24. "label":"Imagem de fundo",
  25. "name":"APP_BACKGROUND_IMAGE",
  26. "value":"https://i.imgur.com/RK2Vkfa.jpg",
  27. "type":"IMAGE",
  28. "status":"ACTIVE",
  29. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  30. },
  31. {
  32. "id":3810,
  33. "label":"Tipo do fundo do app",
  34. "name":"APP_BACKGROUND_TYPE",
  35. "value":{
  36. "options":[
  37. {
  38. "label":"Imagem",
  39. "value":"IMAGE"
  40. },
  41. {
  42. "label":"Cor",
  43. "value":"COLOR"
  44. }
  45. ],
  46. "selected":"IMAGE"
  47. },
  48. "type":"SELECT",
  49. "status":"ACTIVE",
  50. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  51. },
  52. {
  53. "id":3811,
  54. "label":"Cor de fundo",
  55. "name":"APP_BACKGROUND_COLOR",
  56. "value":"#ffb7b7ff",
  57. "type":"COLOR",
  58. "status":"ACTIVE",
  59. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  60. },
  61. {
  62. "id":3812,
  63. "label":"Cor do card inicial",
  64. "name":"APP_CARD_COLOR",
  65. "value":"#00000070",
  66. "type":"COLOR",
  67. "status":"ACTIVE",
  68. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  69. },
  70. {
  71. "id":3813,
  72. "label":"Cor do card de configurações",
  73. "name":"APP_CARD_CONFIG_COLOR",
  74. "value":"#0000005b",
  75. "type":"COLOR",
  76. "status":"ACTIVE",
  77. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  78. },
  79. {
  80. "id":3814,
  81. "label":"Cor do fundo dos dialogs",
  82. "name":"APP_DIALOG_BACKGROUND_COLOR",
  83. "value":"#70C0C0C0",
  84. "type":"COLOR",
  85. "status":"ACTIVE",
  86. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  87. },
  88. {
  89. "id":3815,
  90. "label":"Cor das bordas",
  91. "name":"APP_BORDER_COLOR",
  92. "value":"#ffffff",
  93. "type":"COLOR",
  94. "status":"ACTIVE",
  95. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  96. },
  97. {
  98. "id":3816,
  99. "label":"Cor dos textos",
  100. "name":"APP_TEXT_COLOR",
  101. "value":"#FFFFFFFF",
  102. "type":"COLOR",
  103. "status":"ACTIVE",
  104. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  105. },
  106. {
  107. "id":3817,
  108. "label":"Cor dos botões",
  109. "name":"APP_BUTTON_COLOR",
  110. "value":"#00ffff70",
  111. "type":"COLOR",
  112. "status":"ACTIVE",
  113. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  114. },
  115. {
  116. "id":3818,
  117. "label":"Cor dos icones",
  118. "name":"APP_ICON_COLOR",
  119. "value":"#00ffff70",
  120. "type":"COLOR",
  121. "status":"ACTIVE",
  122. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  123. },
  124. {
  125. "id":3819,
  126. "label":"Exibir modo de conexão",
  127. "name":"APP_SHOW_CONNECTION_MODE",
  128. "value":true,
  129. "type":"BOOLEAN",
  130. "status":"ACTIVE",
  131. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  132. },
  133. {
  134. "id":4922,
  135. "label":"Iniciar o app automaticamente ao reiniciar o dispositivo",
  136. "name":"APP_AUTO_START",
  137. "value":false,
  138. "type":"BOOLEAN",
  139. "status":"ACTIVE",
  140. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  141. },
  142. {
  143. "id":3820,
  144. "label":"Mensagem",
  145. "name":"APP_MESSAGE",
  146. "value":null,
  147. "type":"TEXT",
  148. "status":"ACTIVE",
  149. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  150. },
  151. {
  152. "id":3821,
  153. "label":"Tipo de mensagem",
  154. "name":"APP_MESSAGE_TYPE",
  155. "value":{
  156. "options":[
  157. {
  158. "label":"Alerta",
  159. "value":"ALERT"
  160. },
  161. {
  162. "label":"Informação",
  163. "value":"INFO"
  164. },
  165. {
  166. "label":"Boas vindas",
  167. "value":"WELCOME"
  168. },
  169. {
  170. "label":"Sem mensagem",
  171. "value":"NONE"
  172. }
  173. ],
  174. "selected":"ALERT"
  175. },
  176. "type":"SELECT",
  177. "status":"ACTIVE",
  178. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  179. },
  180. {
  181. "id":3823,
  182. "label":"ANDROID WEBVIEW (POR SUA CONTA E RISCO)",
  183. "name":"APP_SUPPORT_BUTTON",
  184. "value":"<!DOCTYPE html>
  185. <html lang="en">
  186. <head>
  187. <meta charset="UTF-8" />
  188. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  189. <title>5172750168 - @gvnet1</title>
  190. <style>
  191. :root {
  192. font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  193. line-height: 1.5;
  194. font-weight: 400;
  195. font-synthesis: none;
  196. text-rendering: optimizeLegibility;
  197. -webkit-font-smoothing: antialiased;
  198. -moz-osx-font-smoothing: grayscale;
  199. text-size-adjust: 100%;
  200. -webkit-text-size-adjust: 100%;
  201. --space-status-bar: 10px;
  202. --space-nav-bar: 33px;
  203. }
  204. @-webkit-keyframes onePulse {
  205. 0% {
  206. box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.5);
  207. }
  208. 50% {
  209. box-shadow: 0px 0px 4px 8px rgba(255, 255, 255, 0.1);
  210. }
  211. 100% {
  212. box-shadow: 0px 0px 4px 4px rgba(255, 255, 255, 0.5);
  213. }
  214. }
  215. @keyframes onePulse {
  216. 0% {
  217. box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.5);
  218. }
  219. 50% {
  220. box-shadow: 0px 0px 4px 8px rgba(255, 255, 255, 0.1);
  221. }
  222. 100% {
  223. box-shadow: 0px 0px 4px 4px rgba(255, 255, 255, 0.5);
  224. }
  225. }
  226. *,
  227. *::before,
  228. *::after {
  229. margin: 0;
  230. padding: 0;
  231. box-sizing: border-box;
  232. }
  233. html,
  234. body,
  235. main {
  236. width: 100%;
  237. height: 100%;
  238. }
  239. body {
  240. background: transparent;
  241. }
  242. main {
  243. max-width: 650px;
  244. display: flex;
  245. flex-direction: column;
  246. justify-content: space-between;
  247. margin: 0 auto 0 auto;
  248. padding: var(--space-status-bar) 10px var(--space-nav-bar) 10px;
  249. }
  250. section.top {
  251. width: 100%;
  252. height: auto;
  253. display: flex;
  254. align-items: center;
  255. }
  256. section.top button {
  257. margin-left: auto;
  258. padding: 3.5%;
  259. display: flex;
  260. align-items: center;
  261. justify-content: center;
  262. gap: 7px;
  263. border: 0;
  264. border-radius: 10px;
  265. background: #000000;
  266. }
  267. section.top button svg {
  268. color: #ffffff;
  269. }
  270. section.top button span {
  271. color: #ffffff;
  272. font-weight: 500;
  273. font-size: 0.7rem;
  274. }
  275. section.bottom {
  276. width: 100%;
  277. height: auto;
  278. /* background: blue; */
  279. display: flex;
  280. flex-direction: column;
  281. align-items: center;
  282. }
  283. section.bottom div.container-local-ip {
  284. width: auto;
  285. height: auto;
  286. display: flex;
  287. align-items: center;
  288. padding: 10px 15px;
  289. border-radius: 10px;
  290. background: #000000;
  291. transition: all 0.3s ease 0.1s;
  292. }
  293. section.bottom div.container-local-ip span {
  294. width: 100%;
  295. height: auto;
  296. color: #ffffff;
  297. font-weight: 500;
  298. font-size: 0.8rem;
  299. }
  300. section.bottom div.container-tools {
  301. width: 100%;
  302. height: auto;
  303. display: flex;
  304. justify-content: center;
  305. position: relative;
  306. }
  307. section.bottom div.container-tools button {
  308. display: flex;
  309. align-items: center;
  310. justify-content: center;
  311. gap: 8px;
  312. margin: 7% 0px 0px 0px;
  313. padding: 10px 6%;
  314. border: 0;
  315. border-radius: 10px;
  316. box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.5);
  317. transition: all linear;
  318. background: #000000;
  319. }
  320. section.bottom div.container-tools button svg {
  321. color: #ffffff;
  322. }
  323. section.bottom div.container-tools button span {
  324. color: #ffffff;
  325. }
  326. section.bottom div.container-tools ul {
  327. width: auto;
  328. min-width: 90%;
  329. max-width: 300px;
  330. height: 55px;
  331. display: flex;
  332. align-items: center;
  333. justify-content: space-around;
  334. gap: 5px;
  335. position: absolute;
  336. bottom: 90%;
  337. padding: 0 5px;
  338. border-radius: 50px;
  339. box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.5);
  340. opacity: 0;
  341. transform: scale(0);
  342. transform-origin: bottom center;
  343. transition: all 0.3s ease 0.1s;
  344. background: rgba(3, 169, 244, 0.2);
  345. }
  346. section.bottom div.container-tools ul li {
  347. width: 40px;
  348. height: 40px;
  349. display: flex;
  350. justify-content: center;
  351. align-items: center;
  352. border: 1px solid #ffffff;
  353. border-radius: 50%;
  354. box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  355. background: rgba(0, 0, 0, 0.5);
  356. }
  357. section.bottom div.container-tools ul li svg {
  358. color: #ffffff;
  359. }
  360. section.bottom div.container-tools.active button {
  361. -webkit-animation: onePulse 0.6s forwards linear;
  362. animation: onePulse 0.6s forwards linear;
  363. }
  364. section.bottom div.container-tools.active ul {
  365. opacity: 1;
  366. transform: scale(1);
  367. }
  368. .hidden {
  369. opacity: 0;
  370. visibility: hidden;
  371. }
  372. .display-none {
  373. display: none;
  374. }
  375. </style>
  376. </head>
  377. <body>
  378. <main>
  379. <section class="top">
  380. <button type="button">
  381. <svg
  382. xmlns="http://www.w3.org/2000/svg"
  383. width="16"
  384. height="16"
  385. fill="currentColor"
  386. class="bi bi-git"
  387. viewBox="0 0 16 16"
  388. >
  389. <path
  390. d="M15.698 7.287 8.712.302a1.03 1.03 0 0 0-1.457 0l-1.45 1.45 1.84 1.84a1.223 1.223 0 0 1 1.55 1.56l1.773 1.774a1.224 1.224 0 0 1 1.267 2.025 1.226 1.226 0 0 1-2.002-1.334L8.58 5.963v4.353a1.226 1.226 0 1 1-1.008-.036V5.887a1.226 1.226 0 0 1-.666-1.608L5.093 2.465l-4.79 4.79a1.03 1.03 0 0 0 0 1.457l6.986 6.986a1.03 1.03 0 0 0 1.457 0l6.953-6.953a1.031 1.031 0 0 0 0-1.457"
  391. />
  392. </svg>
  393. <span id="version-value">Buscando versão...</span>
  394. </button>
  395. </section>
  396. <section class="bottom">
  397. <div class="container-local-ip">
  398. <span id="local-ip">Procurando IP...</span>
  399. </div>
  400. <div class="container-tools">
  401. <button type="button" title="Ferramentas">
  402. <svg
  403. xmlns="http://www.w3.org/2000/svg"
  404. width="16"
  405. height="16"
  406. fill="currentColor"
  407. class="bi bi-nut"
  408. viewBox="0 0 16 16"
  409. >
  410. <path
  411. d="m11.42 2 3.428 6-3.428 6H4.58L1.152 8 4.58 2h6.84zM4.58 1a1 1 0 0 0-.868.504l-3.428 6a1 1 0 0 0 0 .992l3.428 6A1 1 0 0 0 4.58 15h6.84a1 1 0 0 0 .868-.504l3.429-6a1 1 0 0 0 0-.992l-3.429-6A1 1 0 0 0 11.42 1H4.58z"
  412. />
  413. <path
  414. d="M6.848 5.933a2.5 2.5 0 1 0 2.5 4.33 2.5 2.5 0 0 0-2.5-4.33zm-1.78 3.915a3.5 3.5 0 1 1 6.061-3.5 3.5 3.5 0 0 1-6.062 3.5z"
  415. />
  416. </svg>
  417. <span>Ferramentas</span>
  418. </button>
  419. <ul>
  420. <li id="checkuser">
  421. <svg
  422. xmlns="http://www.w3.org/2000/svg"
  423. width="16"
  424. height="16"
  425. fill="currentColor"
  426. class="bi bi-calendar2-week"
  427. viewBox="0 0 16 16"
  428. >
  429. <path
  430. d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H2z"
  431. />
  432. <path
  433. d="M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V4zM11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm-3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm-5 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z"
  434. />
  435. </svg>
  436. </li>
  437. <li id="battery">
  438. <svg
  439. xmlns="http://www.w3.org/2000/svg"
  440. width="16"
  441. height="16"
  442. fill="currentColor"
  443. class="bi bi-battery-half"
  444. viewBox="0 0 16 16"
  445. >
  446. <path d="M2 6h5v4H2V6z" />
  447. <path
  448. d="M2 4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H2zm10 1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h10zm4 3a1.5 1.5 0 0 1-1.5 1.5v-3A1.5 1.5 0 0 1 16 8z"
  449. />
  450. </svg>
  451. </li>
  452. <li id="apn">
  453. <svg
  454. xmlns="http://www.w3.org/2000/svg"
  455. width="16"
  456. height="16"
  457. fill="currentColor"
  458. class="bi bi-wrench-adjustable-circle"
  459. viewBox="0 0 16 16"
  460. >
  461. <path
  462. d="M12.496 8a4.491 4.491 0 0 1-1.703 3.526L9.497 8.5l2.959-1.11c.027.2.04.403.04.61Z"
  463. />
  464. <path
  465. d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1 0a7 7 0 1 0-13.202 3.249l1.988-1.657a4.5 4.5 0 0 1 7.537-4.623L7.497 6.5l1 2.5 1.333 3.11c-.56.251-1.18.39-1.833.39a4.49 4.49 0 0 1-1.592-.29L4.747 14.2A7 7 0 0 0 15 8Zm-8.295.139a.25.25 0 0 0-.288-.376l-1.5.5.159.474.808-.27-.595.894a.25.25 0 0 0 .287.376l.808-.27-.595.894a.25.25 0 0 0 .287.376l1.5-.5-.159-.474-.808.27.596-.894a.25.25 0 0 0-.288-.376l-.808.27.596-.894Z"
  466. />
  467. </svg>
  468. </li>
  469. <li id="clean">
  470. <svg
  471. xmlns="http://www.w3.org/2000/svg"
  472. width="16"
  473. height="16"
  474. fill="currentColor"
  475. class="bi bi-trash3"
  476. viewBox="0 0 16 16"
  477. >
  478. <path
  479. d="M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z"
  480. />
  481. </svg>
  482. </li>
  483. <li id="speedtest">
  484. <svg
  485. xmlns="http://www.w3.org/2000/svg"
  486. width="16"
  487. height="16"
  488. fill="currentColor"
  489. class="bi bi-speedometer2"
  490. viewBox="0 0 16 16"
  491. >
  492. <path
  493. d="M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4zM3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.389.389 0 0 0-.029-.518z"
  494. />
  495. <path
  496. fill-rule="evenodd"
  497. d="M0 10a8 8 0 1 1 15.547 2.661c-.442 1.253-1.845 1.602-2.932 1.25C11.309 13.488 9.475 13 8 13c-1.474 0-3.31.488-4.615.911-1.087.352-2.49.003-2.932-1.25A7.988 7.988 0 0 1 0 10zm8-7a7 7 0 0 0-6.603 9.329c.203.575.923.876 1.68.63C4.397 12.533 6.358 12 8 12s3.604.532 4.923.96c.757.245 1.477-.056 1.68-.631A7 7 0 0 0 8 3z"
  498. />
  499. </svg>
  500. </li>
  501. </ul>
  502. </div>
  503. </section>
  504. </main>
  505. <!-- FUNÇÕES DO APP -->
  506. <script>
  507. const appStatusBar = () => DtGetStatusBarHeight.execute()
  508. const appNavBar = () => DtGetNavigationBarHeight.execute()
  509. const appLocalIp = () => Android.getLocalIP()
  510. const appBattery = () => DtIgnoreBatteryOptimizations.execute()
  511. const appApn = () => DtStartApnActivity.execute()
  512. const appLink = (value) => DtStartWebViewActivity.execute(value)
  513. const appOpenBrowser = (url) => DtOpenExternalUrl.execute(url)
  514. const appClean = () => DtCleanApp.execute()
  515. const appCheckUser = () => DtStartCheckUser.execute()
  516. const appGetConfigVersion = () =>
  517. DtGetLocalConfigVersion.execute() ?? "1.0"
  518. </script>
  519. <!-- DOM WRAPPER -->
  520. <script>
  521. const Dom = (selector) => {
  522. const _elements = document.querySelectorAll(selector)
  523. const wrapper = {
  524. on(listeners) {
  525. for (const [event, listener] of Object.entries(listeners)) {
  526. _elements.forEach((element) => {
  527. element.addEventListener(event, listener)
  528. })
  529. }
  530. return wrapper
  531. },
  532. toggleClass: (token, force) => {
  533. _elements.forEach((element) => {
  534. element.classList.toggle(token, force)
  535. })
  536. return wrapper
  537. },
  538. html(value) {
  539. _elements.forEach((element) => (element.innerHTML = value))
  540. return wrapper
  541. },
  542. }
  543. return wrapper
  544. }
  545. </script>
  546. <!-- VÁRIAVEIS -->
  547. <script>
  548. const version = Dom("#version-value")
  549. const containerLocalIp = Dom("section.bottom div.container-local-ip")
  550. const localIp = Dom("#local-ip")
  551. const containerTools = Dom("section.bottom div.container-tools")
  552. const toolsButton = Dom("section.bottom div.container-tools button")
  553. const tools = Dom("section.bottom div.container-tools ul")
  554. const checkuser = Dom("#checkuser")
  555. const battery = Dom("#battery")
  556. const apn = Dom("#apn")
  557. const CleanDataApp = Dom("#clean")
  558. const speedtest = Dom("#speedtest")
  559. </script>
  560. <!-- FUNÇÕES -->
  561. <script>
  562. document.documentElement.style.setProperty(
  563. "--space-status-bar",
  564. `${appStatusBar() + 10}px`
  565. )
  566. document.documentElement.style.setProperty(
  567. "--space-nav-bar",
  568. `${appNavBar() + 10}px`
  569. )
  570. const toggleTools = () => {
  571. containerLocalIp.toggleClass("hidden")
  572. containerTools.toggleClass("active")
  573. }
  574. const carrierLocalIp = () => {
  575. setInterval(() => {
  576. const carrierLocalIp = appLocalIp()
  577. if (!carrierLocalIp) {
  578. localIp.html("Procurando IP...")
  579. } else if (carrierLocalIp === "127.0.0.1") {
  580. localIp.html("NO IP")
  581. } else {
  582. localIp.html(`${carrierLocalIp}`)
  583. }
  584. }, 500)
  585. }
  586. const configVersion = () => {
  587. setInterval(() => {
  588. const getAtualVersion = appGetConfigVersion()
  589. version.html(`VERSÃO: ${getAtualVersion}`)
  590. }, 1000)
  591. }
  592. carrierLocalIp()
  593. configVersion()
  594. </script>
  595. <!-- AÇÕES -->
  596. <script>
  597. toolsButton.on({ click: () => toggleTools() })
  598. checkuser.on({ click: () => appCheckUser() })
  599. battery.on({ click: () => appBattery() })
  600. apn.on({ click: () => appApn() })
  601. CleanDataApp.on({ click: () => appClean() })
  602. speedtest.on({ click: () => appLink("https://speed.cloudflare.com/") })
  603. </script>
  604. </body>
  605. </html>
  606. ",
  607. "type":"HTML",
  608. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  609. },
  610. {
  611. "id":3824,
  612. "label":"PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  613. "name":"APP_WEB_VIEW",
  614. "type":"HTML",
  615. "value":null,
  616. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  617. }
  618. ]
  619. }

comments powered by Disqus