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
| <?php | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| class Send_email extends CI_Controller { | |
| /** | |
| * Kirim email dengan SMTP Gmail. | |
| * | |
| */ | |
| public function index() |
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
| <html> | |
| <head> | |
| <script> | |
| function cek(){ | |
| var bilangan = document.getElementById('input').value; | |
| var notif; | |
| if (bilangan%2==0) { | |
| notif = "Bilangan "+bilangan+" Adalah Bilangan Genap"; | |
| } else { | |
| notif = "Bilangan "+bilangan+" Adalah Bilangan Ganjil"; |
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
| <html> | |
| <head> | |
| <title>Konversi Waktu Dari Detik</title> | |
| <script type="text/javascript"> | |
| function proses(){ | |
| var x; | |
| x = parseInt(document.getElementById("lbldetk").value); | |
| var y; | |
| var jam; | |
| var menit; |
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
| #define LED 13 | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(LED,OUTPUT); | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| // put your main code here, to run repeatedly: |
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
| import serial | |
| arduino = serial.Serial('com4',9600) | |
| def ledController(): | |
| cmd = input('type on/off/dc : ') | |
| cmd = str.lower(cmd) | |
| if(cmd == "on"): | |
| arduino.write('H'.encode()) | |
| print("Lampu Nyala") |
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
| <html> | |
| <head> | |
| <title>Format Rupiah Dengan Javascript</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h3>FORM</h3> | |
| <div>Tanpa Rupiah:</div> |
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
| body { | |
| font: 17px "open sans", "segoe ui", tahoma; | |
| } | |
| .container { | |
| width: 200px; | |
| margin: auto; | |
| margin-top: 15px; | |
| } | |
| input { | |
| padding: 5px 10px; |
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
| /* Tanpa Rupiah */ | |
| var tanpa_rupiah = document.getElementById('tanpa-rupiah'); | |
| tanpa_rupiah.addEventListener('keyup', function(e) | |
| { | |
| tanpa_rupiah.value = formatRupiah(this.value); | |
| }); | |
| /* Dengan Rupiah */ | |
| var dengan_rupiah = document.getElementById('dengan-rupiah'); | |
| dengan_rupiah.addEventListener('keyup', function(e) |
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> | |
| <title>INDEX</title> | |
| <link rel="stylesheet" type="text/css" href="assets/main.css"> | |
| </head> | |
| <body> | |
| <form> | |
| <h4>PEMESANAN TIKET KERETA</h4> | |
| <table> |
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
| var harga = ['25000','100000','50000','75000']; | |
| var kereta = ['PANDANWANGI','MUTIARA TIMUR','LOGAWA','PROBOWANGI']; | |
| function Tujuan() { | |
| // body... | |
| var tujuan = document.getElementById('inp_tujuan').value; | |
| var kereta2 = document.getElementById('kereta2'); | |
| kereta2.innerHTML="<option>--PILIH KERETA--</option>" | |
| if (tujuan=='jmbr') { | |
| for (var i = 0; i < 2; i++) { | |
| result="<option value="+i+">"+kereta[i]+"</option>"; |
OlderNewer