kristriel08

PORTAL WIFI ONLY

May 14th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title><?= $title ?></title>
  6. <meta http-equiv="pragma" content="no-cache" />
  7. <meta http-equiv="expires" content="-1" />
  8. <meta content='width=device-width, user-scalable=no' name='viewport'/>
  9. <link rel="shortcut icon" href="images/wifi-symbol.png" type="image/x-icon">
  10. <link rel="icon" href="images/wifi-symbol.png" type="image/x-icon">
  11. <!--bootstrap-->
  12. <link href="css/bootstrap4.min.css" rel="stylesheet" type="text/css">
  13. <!--font-awsome-css-->
  14. <link rel="stylesheet" href="css/font-awesome.min.css">
  15.  
  16. <style>
  17. html { font-size: 1rem; }
  18.  
  19. body {
  20. background-color: #cfedfc !important;
  21. background-image: url("images/bg.jpg");
  22. background-size: cover;
  23. background-position: center center;
  24. }
  25.  
  26. a:hover{
  27. text-decoration: none !important;
  28. }
  29.  
  30.  
  31. .button-rnd {
  32. min-width: 300px !important;
  33. max-width: 300px !important;
  34. border-radius: 14px 14px;
  35. }
  36. .button-rnd:hover{
  37. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  38. }
  39.  
  40. .btn-faq{
  41. min-width:90px !important;
  42. font-size:10px;
  43. border-radius: 7px 7px;padding:2px !important;
  44. }
  45.  
  46. .container2{
  47.  
  48. margin:auto;
  49. /* background: rgba(255, 255, 255, 0.8); */
  50. z-index:-99999;
  51. }
  52.  
  53. .footer {
  54. font-size:90%;
  55. color:#748c8a;
  56. }
  57.  
  58.  
  59. .footer .fa{
  60. text-align:center;
  61. width:20px;
  62. }
  63. .footer .fa-bell-slash{
  64.  
  65. font-size:90%;
  66. }
  67.  
  68. .temp-hidden {
  69.  
  70. }
  71. .hidden {
  72. display: none !important;
  73. visibility: hidden;
  74. }
  75. .btn-block{
  76. max-width:500px;
  77. margin:auto;
  78. }
  79. .paused{
  80. color:#354443;
  81. }
  82.  
  83.  
  84. /* Important part */
  85. .modal {
  86. z-index:99999;
  87. }
  88. .modal-dialog{
  89. overflow-y: initial !important
  90. }
  91. .modal-body{
  92. height: 250px;
  93. overflow-y: auto;
  94. }
  95.  
  96. #policy h6 {
  97. text-transform: uppercase;
  98. }
  99. #policy p{
  100. text-align: justify;
  101. }
  102.  
  103.  
  104. #connect_how ol{
  105. font-weight: bold;
  106. }
  107. #connect_how ol li ul{
  108. margin-left:-25px;
  109. font-weight: normal;
  110. }
  111. #connect_how ol .normal-font ul{
  112. margin-left:-25px;
  113. font-weight: normal;
  114. font-size:80%;
  115. }
  116.  
  117. .button-animate {
  118.  
  119. -webkit-animation: glowing 1500ms infinite;
  120. -moz-animation: glowing 1500ms infinite;
  121. -o-animation: glowing 1500ms infinite;
  122. animation: glowing 1500ms infinite;
  123. }
  124. @-webkit-keyframes glowing {
  125. 0% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  126. 50% {border-color: #449d44; box-shadow: 0 0 40px #4cae4c; background-color: #449d44; }
  127. 100% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  128. }
  129.  
  130. @-moz-keyframes glowing {
  131. 0% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  132. 50% {border-color: #449d44; box-shadow: 0 0 40px #4cae4c; background-color: #449d44; }
  133. 100% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  134. }
  135.  
  136. @-o-keyframes glowing {
  137. 0% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  138. 50% {border-color: #449d44; box-shadow: 0 0 40px #4cae4c; background-color: #449d44; }
  139. 100% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  140. }
  141.  
  142. @keyframes glowing {
  143. 0% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  144. 50% {border-color: #449d44; box-shadow: 0 0 40px #4cae4c; background-color: #449d44; }
  145. 100% {border-color: #4cae4c; box-shadow: 0 0 3px #b7deb7; background-color: #4cae4c;}
  146. }
  147.  
  148.  
  149. .pause-button:hover{
  150. color:#4CAE4C;
  151. cursor:pointer;
  152. content: "\f023" !important;
  153. }
  154.  
  155. .blink {
  156. animation: blinker 1500ms linear infinite;
  157. }
  158.  
  159. @keyframes blinker {
  160. 50% {
  161. opacity: 0.2;
  162. }
  163. }
  164. .button-animate-red {
  165.  
  166. -webkit-animation: glowingRed 1500ms infinite;
  167. -moz-animation: glowingRed 1500ms infinite;
  168. -o-animation: glowingRed 1500ms infinite;
  169. animation: glowingRed 1500ms infinite;
  170. }
  171. @-webkit-keyframes glowingRed {
  172. 0% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  173. 50% {border-color: #d9534f; box-shadow: 0 0 40px #dc6460; background-color: #d9534f; }
  174. 100% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  175. }
  176.  
  177. @-moz-keyframes glowingRed {
  178. 0% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  179. 50% {border-color: #d9534f; box-shadow: 0 0 40px #dc6460; background-color: #d9534f; }
  180. 100% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  181. }
  182.  
  183. @-o-keyframes glowingRed {
  184. 0% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  185. 50% {border-color: #d9534f; box-shadow: 0 0 40px #dc6460; background-color: #d9534f; }
  186. 100% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  187. }
  188.  
  189. @keyframes glowingRed {
  190. 0% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  191. 50% {border-color: #d9534f; box-shadow: 0 0 40px #dc6460; background-color: #d9534f; }
  192. 100% {border-color: #dc6460; box-shadow: 0 0 3px #efbab8; background-color: #dc6460;}
  193. }
  194.  
  195. @keyframes animatedBackground {
  196. 0% {
  197. background-position: 0 0;
  198. }
  199. 50% {
  200. background-position: 0 100%;
  201. }
  202. 100% {
  203. background-position: 0 0;
  204. }
  205. }
  206. .animate-area {
  207. margin-top: 20px;
  208. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  209. padding-bottom:10px;
  210. padding-top:10px;
  211. margin-bottom: 20px;
  212. border-radius:20px;
  213. background-image: url("images/banner-scroll2.jpg");
  214. background-size: cover; /* <------ */
  215. background-position: center center; /* optional, center the image */
  216. background-repeat: repeat-y;
  217. animation: animatedBackground 20s linear infinite;
  218. }
  219. .animate-area img { max-height:inherit;}
  220.  
  221. #rtime, #ptime {
  222. text-transform: uppercase;
  223. font-size:80% !important;
  224. font-weight: normal;
  225. }
  226. #rtime b, #ptime b{
  227. font-weight: bold;
  228. font-size:200% !important;
  229.  
  230. }
  231.  
  232.  
  233. @media (max-width: 375px) {
  234. .animate-area img { max-height:100px;}
  235. }
  236. @media (min-width: 375px) {
  237. html { font-size: 1rem; }
  238. }
  239. @media (min-width: 576px) {
  240. html { font-size: 1rem; }
  241. animate-area img { max-height:10px;}
  242.  
  243. }
  244. @media (min-width: 768px) {
  245. html { font-size: 1rem; }
  246.  
  247. }
  248. @media (min-width: 992px) {
  249. html { font-size: 1rem; }
  250.  
  251.  
  252. @media (min-width: 1400px) {
  253. html { font-size: 1.15rem; }
  254.  
  255. }
  256. @media (min-width: 2000px) {
  257. html { font-size: 1.75rem; }
  258. }
  259.  
  260.  
  261. </style>
  262. <!--// NOTE WAG E REMOVE -->
  263. <script src="js/apps.min.js"></script>
  264. <script src="js/jquery.min.js"></script>
  265. <!--// end NOTE WAG E REMOVE -->
  266.  
  267. <!--// additional scripts -->
  268. <script src="js/popper.min.js"></script>
  269. <script src="js/bootstrap4.min.js"></script>
  270.  
  271.  
  272.  
  273. </head>
  274. <body class='login'>
  275.  
  276. <div class="container text-center">
  277.  
  278. <div style="margin:0;padding:0;display:inline"></div>
  279.  
  280. <div class="animate-area">
  281. <img class="img-fluid temp-hidden" src="images/logo.png" /> <!-- Banner Logo.png-->
  282. </div>
  283.  
  284.  
  285.  
  286.  
  287.  
  288. <div class="row">
  289. <div class="col-md-12 h2 conn_status hidden">
  290. <?= $status_html ?><br>
  291. </div>
  292. <div class="col-md-12 h2 conn_status2">
  293. <?= $status_html ?><br>
  294. </div>
  295. </div>
  296.  
  297. <div id="default_container">
  298.  
  299. <div class="row" style="margin-bottom:10px;">
  300.  
  301. <div class="col-md-12">
  302. <small style="color:#007bff;text-transform: uppercase;">IP: <?= $ip ?> | Mac: <?= $mac ?> </small>
  303. </div>
  304.  
  305. <div class="col-md-12">
  306. <small style="color:#748c8a;text-transform: uppercase;"><?= ($pausedTime) ? '<small>CLICK RESUME TIME BUTTON TO CONTINUE SURFING</small>' : 'Remaining Time:' ?></small>
  307. </div>
  308. <div class="col-md-12">
  309. <?= ($pausedTime) ? '<h2 id="ptime" class="paused">-- </h2>' : '<h2 id="rtime" class="text-primary">--</h2>'?>
  310. </div>
  311.  
  312.  
  313. </div>
  314.  
  315. <div class="temp-hidden">
  316. <div class="row <?= (!$insertcoin) ? 'hidden' : '' ?>" style="margin-bottom:10px;">
  317. <div class="col-md-12">
  318. <a id="link" href="<?= $connectlink ?>"><button type="button" id="insert_coin_button" class="btn btn-success button-rnd btn-spinner">Insert Coin</button></a>
  319. </div>
  320. </div>
  321.  
  322. <div class="row <?= (!$asdxczc) ? 'hidden' : '' ?> <?= ($remainingTime > 0) ? '' : 'hidden' ?>" style="margin-bottom:10px;">
  323. <div class="col-md-12">
  324. <a class="btn-pause" href="<?= $pausesessionlink ?>"><button type="button" class="btn btn-danger button-rnd btn-spinner">Pause Time</button> </a>
  325. </div>
  326. </div>
  327.  
  328. <div class="row <?= (!$pausedTime) ? 'hidden' : '' ?>" style="margin-bottom:10px;">
  329. <div class="col-md-12">
  330. <a class="btn-resume" href="<?= $resumesessionlink ?>"><button type="button" class="btn btn-danger button-rnd button-animate-red btn-spinner">Resume Time</button></a>
  331. </div>
  332. </div>
  333.  
  334. <div class="row <?= (!$viewrates) ? 'hidden' : '' ?>" style="margin-bottom:10px;">
  335. <div class="col-md-12">
  336. <button type="button" class="btn btn-primary button-rnd" data-toggle="modal" data-target="#popup">View Rates</button>
  337. </div>
  338. </div>
  339.  
  340. <div class="row <?= (!$viewchargingrates) ? 'hidden' : '' ?>" style="margin-bottom:10px;">
  341. <div class="col-md-12">
  342. <button type="button" class="btn btn-primary button-rnd" data-toggle="modal" data-target="#chargingstation">Charging Station Rates</button>
  343. </div>
  344. </div>
  345.  
  346. <div class="col-md-12 push-reminder hidden">
  347. <small><a href="#" data-toggle="modal" data-target="#notifier"><i class="fa fa-bell"></i> Notify me of my remaining time!</a></small>
  348. </div>
  349. <hr>
  350.  
  351. <div class="btn-block">
  352. <form name="frmvoucher" id="frmvoucher" action="<?= $encoder ?>" method="post">
  353. <input type="hidden" name="hashcode01" id="hashcode01" value="<?= $hashcode01; ?>">
  354. <small id="errormsg" class="form-text text-danger"><?= ($errorsession) ? $errormsg : '' ?></small>
  355. <div class="input-group mb-3">
  356.  
  357. <input type="text" class="form-control" name="vcode" id="vcode" value="" aria-describedby="errormsg" placeholder="Enter Voucher here...">
  358. <div class="input-group-append">
  359. <button name="submit" type="submit" id="btn-vcode" class="btn btn-primary">Submit</button>
  360. </div>
  361. </div>
  362. </form>
  363. </div>
  364.  
  365.  
  366. <div class="row ">
  367. <div class="col-md-12">
  368. <?= ($remainingTime > 0) ? '<a href="'.$session2voucher.'"><button type="button" class="btn btn-primary button-rnd btn-spinner">Convert Time to Voucher</button> </a>' : '' ?>
  369. </div>
  370. </div>
  371. <hr>
  372. </div>
  373.  
  374. <?= chargingstations($link, $ip, $mac); ?>
  375. <hr>
  376.  
  377.  
  378. <!-- //LIST VOUCHER -->
  379. <?= vouchersList($link, $ip, $mac, $repeater); ?>
  380. <!-- //END LIST NG VOUCHER-->
  381. </div><!-- //END DEFAULT CONTAINER -->
  382.  
  383.  
  384. <!-- Modal -->
  385. <div id="popup" class="modal fade bd-example-modal-sm" role="dialog">
  386. <div class="modal-dialog modal-dialog-centered">
  387.  
  388. <!-- Modal content-->
  389. <div class="modal-content">
  390. <div class="modal-header">
  391. <h4 class="modal-title">WiFi Rates</h4>
  392. <button type="button" class="close" data-dismiss="modal">×</button>
  393.  
  394. </div>
  395. <div class="modal-body">
  396. <table class="table table-striped table-bordered table-sm">
  397. <tr class="thead-dark">
  398. <th>Amount
  399. </th>
  400. <th>Time
  401. </th>
  402. <th>Note
  403. </th>
  404. </tr>
  405.  
  406.  
  407. <?= myrates($link); ?>
  408.  
  409. </table>
  410. </div>
  411.  
  412. </div>
  413.  
  414. </div>
  415. </div>
  416.  
  417. <!-- Charging Station Modal -->
  418. <div id="chargingstation" class="modal fade bd-example-modal-sm" role="dialog">
  419. <div class="modal-dialog modal-dialog-centered">
  420.  
  421. <!-- Modal content-->
  422. <div class="modal-content">
  423. <div class="modal-header">
  424. <h4 class="modal-title">Charging Station Rates</h4>
  425. <button type="button" class="close" data-dismiss="modal">×</button>
  426.  
  427. </div>
  428. <div class="modal-body">
  429. <table class="table table-striped table-bordered table-sm">
  430. <tr class="thead-dark">
  431. <th>Amount
  432. </th>
  433. <th>Time
  434. </th>
  435. <th>Note
  436. </th>
  437. </tr>
  438.  
  439.  
  440. <?= chargingrates($link); ?>
  441.  
  442. </table>
  443. </div>
  444.  
  445. </div>
  446.  
  447. </div>
  448. </div>
  449.  
  450. <!-- START Policy Modal -->
  451. <div id="policy" class="modal fade" role="dialog">
  452. <div class="modal-dialog modal-dialog-centered">
  453.  
  454. <!-- Modal content-->
  455. <div class="modal-content">
  456. <div class="modal-header">
  457. <h5 class="modal-title">Terms of Service</h5>
  458. </div>
  459. <div class="modal-body text-left" style="font-size:80%">
  460.  
  461.  
  462.  
  463. <h6>Summary</h6>
  464.  
  465. <ul>
  466. <li>Read this <b><a href="#connect_how">How do I connect to EDITTHIS Vending Machine?</a></b></li>
  467. <li>We don’t collect any of your personal info, except your device’s <b>MAC address</b> and <b>basic information.</b></li>
  468. <li>We don’t collect and sell your personal info to advertisers or other third parties.</li>
  469. </ul>
  470.  
  471. <p><i>PMPW Tech may revise the Terms of Use at any time. <u>You must accept this Agreement each time you use the PMPW Tech Vending Machine</u> and it is your responsibility to review it for any changes each time.</i></p>
  472.  
  473. <h6>Restrictions</h6>
  474. <p>The use of the Service for the following activities is prohibited:</p>
  475. <p>Spamming and Invasion of Privacy of Others, Violating Intellectual Property Law, Transmitting Obscene or Indecent Speech or Materials, Transmitting Defamatory or Abusive Language, Hacking or Distribution of Internet Viruses, Worms, Trojan Horses, or Other Destructive Activities.</p>
  476.  
  477. <h6>Terms of Use</h6>
  478. <p>You are about to access the Internet through a coin operated wireless (WiFi) Internet access node (the "Service") operated by PMPW Tech. The purpose of the Service is to provide wireless Internet access to customers of the EDITTHIS Vending Machine. You may use the Service only if you agree to the following terms of service each time you access the Service.</p>
  479.  
  480. <h6>Access to WiFi</h6>
  481. <p>The Service is to provide wireless internet access through the EDITTHIS Vending Machine. Your access to the Service is completely at the discretion of PMPW Tech, and your access to the Service may be blocked, suspended, or terminated at any time for any reason including, but not limited to, violation of this Agreement, actions that may lead to liability for PMPW Tech, disruption of access to other users or networks, violation of applicable laws or regulations, attempt of accessing the ****, intentional damage of the machine, or use of applications that bypasses the Service functionality.</p>
  482.  
  483. <h6>Monitoring and Collection of Data</h6>
  484. <p>The EDITTHIS Vending Machine collects information to authenticate you as a valid customer that authorized you to access our Service. Once authenticated on the EDITTHIS Vending Machine, your information will be stored locally to allow you to auto-connect to the EDITTHIS Vending Machine, properly credit the inserted coins, and monitor your consumed time without having to authenticate each time you access the Service. Periodically you will be required to re-authenticate. The EDITTHIS Vending Machine store IP addresses assigned to you locally and the MAC address of your device accessing the EDITTHIS Vending Machine, as well as usage data associated with the MAC addresses of each device. We may also monitor the traffic for network management and security purposes, such as identifying malware, bandwidth consumption, location of the access points, total amount of coins inserted, session start and end time, types of protocols and applications used, and illegal content as stated above. You acknowledge and agree that the EDITTHIS Vending Machine has the right to automatically monitor your use of the WiFi Service to operate the EDITTHIS Vending Machine properly, to protect itself or its subscribers, to enhance or develop PMPW Tech services offered to you.</p>
  485.  
  486. <p>We don’t collect any of your device’s files, photos, contacts, camera, browsing history,personal info, applications, softwares, and the like. Moreover, we don’t sell your personal info to advertisers or other third parties.</p>
  487.  
  488. <h6>Acceptable Use of the Service</h6>
  489. <p>Your use of the Service and any activities conducted online through the Service shall not violate any applicable law or regulation or the rights of PMPW Tech, or any third party. PMPW Tech cannot accept any responsibility for any injury or loss that results from inaccurate, unsuitable, offensive, or illegal Internet communications and activities.</p>
  490. <hr>
  491. <div id="connect_how">
  492. <h6>How to Connect To EDITTHIS</h6>
  493. <p align="center"><img class="img-fluid" src="images/instructions.jpg" alt="Connect to PMPW Vending Machine" /></p>
  494. <ol class="h6">
  495.  
  496. <li class="normal-font">CONNECT
  497. <ul>
  498. <li>Connect to PMPW - EDITTHIS</li>
  499. <li>Wait for the captive web portal (website) to pop-up.</li>
  500. <li><i>If for 15 seconds there is no pop-up, open your browser (<small>we recommend using <i class="fa fa-chrome"></i> Google Chrome or <i class="fa fa-firefox"></i> Firefox</small>)</i>.</li>
  501. <li>In the address bar type <b>pete.wifi</b> or <b>192.168.25.1</b></li>
  502. </ul>
  503. </li>
  504.  
  505. <li class="normal-font">INSERT COINS
  506. <ul>
  507. <li>Before inserting coins, click the <button type="button" class="btn btn-success btn-sm btn-faq">Insert Coin</button> button.</li>
  508. <li>Wait for the LED to turn red and Insert Coin instruction page to appear</li>
  509. <li>You may now insert ₱1, ₱5, and ₱10 coins. Can accept <u>old and new coins</u>.</li>
  510. <li><i>Please do not insert fast to avoid discredit of coin amount.</i></li>
  511. </ul>
  512. </li>
  513.  
  514. <li class="normal-font">START INTERNET
  515. <ul>
  516. <li>After inserting the desired amount. Click the <button type="button" class="btn btn-success btn-sm btn-faq">Start Internet</button> button.</li>
  517. <li>To check your time you may open your browser (<small>we recommend using <i class="fa fa-chrome"></i> Google Chrome or <i class="fa fa-firefox"></i> Firefox</small>)</i>.</li>
  518. <li>In the address bar type <b>pete.wifi</b> or <b>192.168.25.1</b></li>
  519. </ul>
  520. </li>
  521.  
  522. </ol>
  523. <br>
  524. <h6>FREQUENTLY ASKED QUESTIONS</h6>
  525. <ol>
  526.  
  527. <li><b>Why do you recommend using <i class="fa fa-chrome"></i> Google Chrome or <i class="fa fa-firefox"></i> Firefox?</b>
  528. <ul>
  529. <li>This is to enable you to receive remaining time notifications, announcements, and promos. To know more about the notifier click <a href="#" data-toggle="modal" data-target="#notifier"> FAQ - Time Notifier</a></li>
  530. </ul>
  531. </li>
  532.  
  533. <li><b>Does it mean I can't use my own browser?</b>
  534. <ul>
  535. <li>You can still use your own browser but may not support our notification ****. Thus, you will not be notified of your remaining time.</li>
  536. </ul>
  537. </li>
  538.  
  539. <li><b>I inserted coins but was rejected?</b>
  540. <ul>
  541. <li>Check if the coins is damage or hard to recognize.</li>
  542. <li>You forgot to click the <button type="button" class="btn btn-success btn-sm btn-faq">Insert Coin</button> button.</li>
  543. <li>Wait for 30 seconds, the machine might still be booting.</li>
  544. </ul>
  545. </li>
  546.  
  547. <li><b>The inserted coins was accepted but was not credited?</b>
  548. <ul>
  549. <li>You inserted the coins quickly. Please wait at least 1 second before inserting the next coin.</li>
  550. <li>Before pressing the <button type="button" class="btn btn-success btn-sm btn-faq">Start Internet</button> button, please check if the amount was displayed on the page itself. </li>
  551. </ul>
  552. </li>
  553.  
  554. <li><b>When I click the Insert Coin button, the Insert Coin instruction page did not appear. Why?</b>
  555. <ul>
  556. <li>There might be still other customers who pressed the Insert Coin Button on their own device. Wait for at least 30 seconds. <small>Our vending machine can detect if other user has still pending "Insert Coin" session.</small></li>
  557. <li>Try to refresh the page.</li>
  558. </ul>
  559. </li>
  560.  
  561. <li><b>Can I pause my time?</b>
  562. <ul>
  563. <li>Yes you can pause your own time. Please click the <button type="button" class="btn btn-danger btn-sm btn-faq">Pause Time</button> button before disconnecting the WiFI.</li>
  564. <li>When there is no internet connection, please pause your time.</li>
  565. </ul>
  566. </li>
  567.  
  568. <li><b>I paused my time, how do I connect again?</b>
  569. <ul>
  570. <li>Please click the <button type="button" class="btn btn-danger btn-sm btn-faq">Resume Time</button> button to continue.</li>
  571. </ul>
  572. </li>
  573.  
  574. <li><b>What is a Voucher?</b>
  575. <ul>
  576. <li>You can purchase a voucher so that you can use it later. This is useful so that you don't have to go physically in the vending machine every time. To avail this, click the <button type="button" class="btn btn-success btn-sm btn-faq">Buy Voucher</button> button.</li>
  577. <li>During promos we may send you a voucher code. Please type in the voucher code text box and click submit.</li>
  578. </ul>
  579. </li>
  580.  
  581.  
  582. </ol>
  583. </div>
  584.  
  585. </div>
  586. <div class="modal-footer">
  587. <button id="policy_agree" type="button" class="btn btn-success" data-dismiss="modal">I Agree</button>
  588. <button id="policy_disagree" type="button" class="btn btn-danger" data-dismiss="modal">I don't Agree</button>
  589. </div>
  590. </div>
  591.  
  592. </div>
  593.  
  594.  
  595. </div>
  596. <!-- END Policy Modal -->
  597.  
  598. <!--
  599. <!-- START FAQ - Time Notifier -->
  600. <div id="notifier" class="modal fade" role="dialog">
  601. <div class="modal-dialog modal-dialog-centered">
  602.  
  603. <!-- Modal content-->
  604. <div class="modal-content">
  605. <div class="modal-header">
  606. <h5 class="modal-title">FAQ - Time Notifier (AVAILABLE SOON)</h5>
  607.  
  608.  
  609. </div>
  610. <div class="modal-body text-left" style="font-size:80%">
  611. <div class="alert alert-info isPush-true hidden"></div>
  612. <div class="alert alert-danger isPush-false hidden"></div>
  613.  
  614. <h6>I want to be notified, how?</h6>
  615. <p>The time notifier is not automatic. When you first connect to the Vending Machine's router you will be prompted in the Captive Web Portal. CWP may not support notifcations. <b>You have to manually enable the notifications.</b></p>
  616.  
  617.  
  618. <h6>How do I enable notifications?</h6>
  619. <p>You may open your browser (please see below the list of browsers supported). In the address bar type <b>192.168.25.1</b>, Multiple alerts will appear, just click Allow.</p>
  620. <p align="center"><img src="images/allow_notification.jpg" class="img-fluid"></p>
  621. <p><i>Please note when you subscribed, you will receive remaining time notifications, announcements, promos, and the likes.</i></p>
  622.  
  623. <h6>When will I be notified with my remaining time?</h6>
  624. <p>You will be notified when your time is 3 minutes before your time ends.</p>
  625.  
  626. <h6>I wasn't notified with my remaining time, why?</h6>
  627. <p>Please check the following reasons:</p>
  628. <ul>
  629. <li><u>Browsers on iOS</u> do NOT support Web Push.</li>
  630. <li>You are offline. You don't have an internet connection.</li>
  631. <li>You haven't click the subscribed button shown on the lower right of the page.</li>
  632. <li>Incognito / Private Browsing mode isn't supported in browsers.</li>
  633. <li>Please check if your browser is supported.</li>
  634.  
  635. </ul>
  636. <p align="center"><img src="images/browser_support.jpg" class="img-fluid"></p>
  637. <h6>I don't want to receive notifications anymore?</h6>
  638. <p>On the lower right of the page, click <img src="images/bell.jpg" class="img-fluid"> to unsubscribed.</p>
  639. </div>
  640. <div class="modal-footer">
  641. <button type="button" class="btn btn-success" data-dismiss="modal">Okay</button>
  642. </div>
  643. </div>
  644.  
  645. </div>
  646.  
  647.  
  648. </div>
  649. <!-- END FAQ - Time Notifier -->
  650.  
  651.  
  652. <div id="info_disagree" class="hidden text-center" style="max-width:500px;margin:auto">
  653. <h4 class="text-danger">You have to agree with our Terms of Service to have an internet access.</h4>
  654. <h6 class="text-info">Please contact the owner if you have special concerns.</h6>
  655. <br>
  656. <div class="row">
  657. <div class="col-md-12">
  658. <button type="button" class="btn btn-info button-rnd policy_view" data-toggle="modal" data-target="#policy">Click Here to View Terms of Service</button>
  659. </div>
  660. </div>
  661. <br><br>
  662. </div>
  663. <footer class="footer" style="margin:auto;max-width: 500px;position: relative;">
  664. Powered By: <a href="http://www.ajelx.com" target="_blank" >AJ ELX</a>
  665.  
  666. <div class="text-left" style="font-size:80%;">
  667. <div class="row">
  668. <div class="col-xs-6 footer-desc" style="width:50%">
  669. <i class="fa fa-file-o"></i> <a class="policy_view" href="#" data-toggle="modal" data-target="#policy">Terms of Service</a><br>
  670. <i class="fa fa-bell"></i><a href="#" data-toggle="modal" data-target="#notifier"> FAQ - Time Notifier</a><br>
  671. <i class="fa fa-facebook-f"></i> <a href="http://facebook.com/mahalku08" target="_blank">facebook.com/mahalku08</a><br>
  672.  
  673. </div>
  674.  
  675. <div class="col-xs-6 footer-desc" style="width:50%">
  676. <i class="fa fa-phone-square"></i> 09469751912<br>
  677. <i class="fa fa-at"></i> arieljayhilot09@gmail.com<br>
  678. <i class="fa fa-map-marker"></i> Kidapawan City, North Cotabato<br>
  679.  
  680. </div>
  681. </div>
  682.  
  683.  
  684. </div>
  685.  
  686. </footer>
  687. </div><!-- End Container -->
  688.  
  689. <script>
  690. $(document).ready(function() {
  691.  
  692. var status_style_connected = "<span class='text-success'><i class='fa fa-wifi'></i> Connected</span>";
  693. var status_style_notime = "<img width=45 src='images/disabled2.png' style='margin-top:-3px;'><span class='text-danger'> Disconnected</span>";
  694. var status_style_pause = "<span class='text paused'><i class='fa fa-pause blink pause-button'></i> <span class=''>Time Pause</span></span>";
  695.  
  696. $(".conn_status").hide();
  697. $('.btn-blocks').addClass('disabled');
  698. if($.trim($(".conn_status").text().toLowerCase()) == "no-time"){
  699.  
  700. //show policy modal if not registered
  701. $('#policy').modal({
  702. backdrop: 'static',
  703. keyboard: false,
  704. show: true
  705. });
  706.  
  707. //change button text for insert coin
  708. $('#insert_coin_button').text("Insert Coin");
  709. $('#insert_coin_button').addClass("button-animate");
  710.  
  711. $(".conn_status2").html(status_style_notime);
  712.  
  713. }
  714. else if($.trim($(".conn_status").text().toLowerCase()) == "connected"){
  715. $(".conn_status2").html(status_style_connected);
  716. $('#insert_coin_button').text("Insert Additional Coins");
  717. }
  718. else if($.trim($(".conn_status").text().toLowerCase()) == "paused"){
  719. $(".conn_status2").html(status_style_pause);
  720. $('#insert_coin_button').text("Insert Additional Coins");
  721. }
  722. else {
  723. $('#insert_coin_button').text("Insert Coin");
  724. $('#insert_coin_button').removeClass("button-animate");
  725. $(".conn_status2").html($.trim($(".conn_status").text()));
  726. }
  727.  
  728.  
  729. $('#policy_agree').on('click', function(e) {
  730. e.preventDefault();
  731. $('.btn-blocks').removeClass('disabled');
  732. $('#info_disagree').addClass('hidden');
  733. $('#default_container').removeClass('hidden');
  734. });
  735.  
  736. $('#policy_disagree').on('click', function(e) {
  737. e.preventDefault();
  738. $('.btn-blocks').addClass('disabled');
  739. $('#default_container').addClass('hidden');
  740. $('#info_disagree').removeClass('hidden');
  741. });
  742.  
  743. $('.policy_view').on('click', function(e) {
  744. e.preventDefault();
  745. $('.btn-blocks').addClass('disabled');
  746. $('#info_disagree').addClass('hidden');
  747. $('#default_container').removeClass('hidden');
  748. });
  749.  
  750.  
  751.  
  752.  
  753. // add spinner and disable button when click
  754. $(".btn-spinner").on('click', function(e) {
  755. //e.preventDefault();
  756. $(".btn-spinner").attr("disabled", "disabled");
  757. //$(".btn-no-spinner").attr("disabled", false);
  758. $(this).prepend('<i class="fa fa-spinner fa-spin"></i> ');
  759. });
  760.  
  761.  
  762. }); //end document ready
  763.  
  764.  
  765. </script>
  766. </body>
  767. </html>
Add Comment
Please, Sign In to add comment