This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
| </head> | |
| <body> | |
| <div class='container'> | |
| <form> | |
| <div class='form-group'> | |
| <label for='nama'>Nama</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function doGet(request) { | |
| var template = HtmlService.createTemplateFromFile('Index') //Membuat halaman HTML dari file Index.html | |
| var pageData = template.evaluate() | |
| .setTitle("Web Apps Responsive") // Judul web App | |
| .addMetaTag("viewport","width=device-width, initial-scale=1") //Kode tambahan agar web app responsif | |
| .setSandboxMode(HtmlService.SandboxMode.IFRAME) | |
| .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL) | |
| return pageData; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
| </head> | |
| <body onload="getLocation()"> | |
| <div class='container'> | |
| <form> | |
| <p class='h4 mb-4 text-center'>Klik 'Mulai' untuk melanjutkan!!</p> | |
| <p>Aktifkan GPS SmartPhone kalian dan izinkan akses lokasi untuk mendapatkan unique id, silakan reload jika anda belum mengizinkan akses lokasi.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function orgIP(ip) { | |
| var url = "http://ipinfo.io/"+ ip +"?token=12f70b0a35a87f"; | |
| var response = UrlFetchApp.fetch(url); | |
| var json = JSON.parse(response.getContentText()); | |
| return json.org; | |
| } | |
| function cekIP() { | |
| var url = "http://api.ipify.org/?format=json"; | |
| var response = UrlFetchApp.fetch(url); |