Form Pemesanan Makanan dan Minuman tugaspraktikum.js function hapus() { document.mnda.reset(); } function total() { var a1 = eval (document.mnda.menu1.value) var a2 = eval (document.mnda.pesan1.value) var a3 = a1*a2 var b1=eval(document.mnda.menu2.value) var b2=eval(document.mnda.pesan2.value) var b3=b1*b2 var c1=eval(document.mnda.menu3.value) var c2=eval(document.mnda.pesan3.value) var c3=c1*c2 var d1=eval(document.mnda.menu4.value) var d2=eval(document.mnda.pesan4.value) var d3=d1*d2 var e1=eval(document.mnda.menu5.value) var e2=eval(document.mnda.pesan5.value) var e3=e1*e2 var f1=eval(document.mnda.menu6.value) var f2=eval(document.mnda.pesan6.value) var f3=f1*f2 var g1=eval(document.mnda.menu7.value) var g2=eval(document.mnda.pesan7.value) var g3=g1*g2 var h1=eval(document.mnda.menu8.value) var h2=eval(document.mnda.pesan8.value) var h3=h1*h2 var i1=eval(document.mnda.menu9.value) var i2=eval(document.mnda.pesan9.value) var i3=i1*i2 var j1=eval(document.mnda.menu10.value) var j2=eval(document.mnda.pesan10.value) var j3=j1*j2 var jml=a3+b3+c3+d3+e3+f3+g3+h3+i3+j3 document.mnda.total_bayar.value = jml } function nol1() { document.mnda.pesan1.value="" } function nol2() { document.mnda.pesan2.value="" } function nol3() { document.mnda.pesan3.value="" } function nol4() { document.mnda.pesan4.value="" } function nol5() { document.mnda.pesan5.value="" } function nol6() { document.mnda.pesan6.value="" } function nol7() { document.mnda.pesan7.value="" } function nol8() { document.mnda.pesan8.value="" } function nol9() { document.mnda.pesan9.value="" } function nol10() { document.mnda.pesan10.value="" } function diskon() { var con = 0 var jmlh = eval (document.mnda.total_bayar.value) if (jmlh >= 50000) { con = 10000 } document.mnda.pot_har.value = con } function bayar() { var hrg = eval (document.mnda.total_bayar.value) var diskon = eval (document.mnda.pot_har.value) var byr = hrg-diskon document.mnda.Jum_bayar.value = byr } tugaspraktikum.html Tugas PraktikumForm Pemesanan Berbasis JavaScript No Makanan/Minuman Harga Pesan 1. Bakso @ 2. Mie Goreng @ 3. Mie Ayam @ 4. Nasi Goreng @ 5. Telur Asin @ 6. Air Putih @ 7. Es Teh Anget @ 8. Es Jeruk Anget @ 9. Teh Panas @ 10. SoGem @ Total Bayar Diskon Jumlah Bayar Gak jadi : © Septiana Winda Maulida
© Septiana Winda Maulida
You can replace this text by going to "Layout" and then "Page Elements" section. Edit " About "
Tidak ada komentar:
Posting Komentar