-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
80 lines (77 loc) · 3.84 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
</head>
<body>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" style="max-width: 60rem;">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Pilih Jurusan</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" style="width: 60rem;">
<!-- testing 3 karakter -->
<div class="d-flex flex-row">
<div class="card mx-2" style="width: 100%;">
<img src="https://akcdn.detik.net.id/visual/2023/06/13/ilustrasi-satelit-satria-1-kominfo_169.png?w=650" class="card-img-top" alt="satelit">
<div class="card-body">
<h5 class="card-title">Jurusan Teknik Akses Telekomunikasi</h5>
<input type="hidden" name="jurusan" id="jurusan" value="telekomunikasi">
<p class="card-text">Prospek lulusan menjadi Teknisi Fiber Optik, Teknik Radio Wireless, Teknik Internet Satelit dan Network Administrator.</p>
<a href="#" class="btn btn-primary">Pilih Jurusan</a>
</div>
</div>
<div class="card mx-2" style="width: 100%;">
<img src="https://smkn1kediri.sch.id/wp-content/uploads/2017/07/Desain-Permodelan-dan-Informasi-Bangunan.jpg" class="card-img-top" alt="bangunan" height="165">
<div class="card-body">
<h5 class="card-title">Jurusan Desain Permodelan dan Informasi Bangunan</h5>
<input type="hidden" name="jurusan" id="jurusan" value="bangunan">
<p class="card-text">Prospek Lulusan menjadi Drafter, Quality Control, Quantity Surveyor, Pelaksana Lapangan, Konsultan Perencana, Kontraktor.</p>
<a href="#" class="btn btn-primary">Pilih Jurusan</a>
</div>
</div>
<div class="card mx-2" style="width: 100%;">
<img src="https://static.wixstatic.com/media/1a34da_d04764e9bea847ea83654727a82d6b3b~mv2.jpg/v1/fill/w_1000,h_625,al_c,q_85,usm_0.66_1.00_0.01/1a34da_d04764e9bea847ea83654727a82d6b3b~mv2.jpg" class="card-img-top" alt="kebun" height="165">
<div class="card-body">
<h5 class="card-title">Jurusan Otomatisasi Perkebunan</h5>
<input type="hidden" name="jurusan" id="jurusan" value="perkebunan">
<p class="card-text">Prospek Lulusan Menjadi Programmer IOT Pertanian, Petani Modern, Perancang Sistem Kontrol dan Pebisnis Pertanian dan Perkebunan.</p>
<a href="#" class="btn btn-primary">Pilih Jurusan</a>
</div>
</div>
</div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<script>
const myModal = document.getElementById('myModal')
const myInput = document.getElementById('myInput')
myModal.addEventListener('shown.bs.modal', () => {
myInput.focus()
})
</script>
</body>
</html>