-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (152 loc) · 5.21 KB
/
index.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pogram Studi TRKJ Jurusan TIK - Politeknik Negeri Lhokseumawe</title>
<!-- Favicon -->
<link rel="shortcut icon" href="img/logo.ico" type="image/x-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.1/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.3.2/css/buttons.bootstrap4.min.css">
<style type="text/css">
.dataTables_info {
display: none;
}
.dataTables_filter {
float: right;
}
.w-tanggal {
width: 80px;
}
@media screen and (max-width: 768px) {
.prodi {
font-size: .8rem;
}
.w-tanggal {
width: 100px;
}
}
</style>
</head>
<body>
<div class="container-fluid p-2">
<header class="pb-3 mb-3 border-bottom">
<div id="logo" class="d-none d-md-block d-lg-block">
<a href="#">
<img src="img/logo.png" alt="PNL" class="w-25">
</a>
</div>
<div class="fs-4 font-weight-bold prodi">Pogram Studi Teknologi Rekayasa Komputer Jaringan</div>
<div class="fs-4 font-weight-bold">Jurusan Teknologi Informasi dan Kompuer</div>
</header>
<table id="daftar" class="table table-striped table-responsive-sm" style="width:100%">
<thead class="thead-dark">
<tr>
<th class="w-tanggal">Tanggal</th>
<th>Sesi</th>
<th>Ruang</th>
<th>NIM</th>
<th>Nama</th>
<th>DPU</th>
<th>DPP</th>
<th>Ketua</th>
<th>Sekretaris</th>
<!--
<th>Pembahas 1</th>
<th>Pembahas 2</th>
-->
<th>Penguji 1</th>
<th>Penguji 2</th>
<th>Penguji 3</th>
</tr>
</thead>
<tfoot class="thead-dark">
<tr>
<th class="w-tanggal">Tanggal</th>
<th>Sesi</th>
<th>Ruang</th>
<th>NIM</th>
<th>Nama</th>
<th>DPU</th>
<th>DPP</th>
<th>Ketua</th>
<th>Sekretaris</th>
<!--
<th>Pembahas 1</th>
<th>Pembahas 2</th>
-->
<th>Penguji 1</th>
<th>Penguji 2</th>
<th>Penguji 3</th>
</tr>
</tfoot>
</table>
<strong>Keterangan:</strong> <br>
<!-- Proposal
<strong>Sesi</strong> <br>
Sesi 1 = 08.00 - 08.50 <br>
Sesi 2 = 09.00 - 09.50 <br>
Sesi 3 = 10.00 - 10.50 <br>
Sesi 4 = 11.00 - 11.50 <br>
Sesi 5 = 12.00 - 12.50 <br>
Istirahat <br>
Sesi 6 = 13.00 - 13.50 <br>
Sesi 7 = 14.00 - 14.50 <br>
Sesi 8 = 15.00 - 15.50 <br>
Sesi 9 = 16.00 - 16.50 <br>
-->
<!-- Skripsi -->
<strong>Sesi</strong> <br>
Sesi 1 = 08.00 - 10.00 <br>
Sesi 2 = 10.20 - 12.20 <br>
Istirahat <br>
Sesi 3 = 13.30 - 15.30 <br>
Sesi 4 = 15.50 - 17.50 <br>
<strong>Ruangan</strong> <br>
TIK.300A = Ruang Rapat <br>
TIK.300B = Ruang Seminar
</div>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.13.1/js/dataTables.bootstrap4.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.3.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.3.2/js/buttons.bootstrap4.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.3.2/js/buttons.colVis.min.js"></script>
<script>
$(document).ready(function () {
$('#daftar').DataTable({
ajax: 'https://siperi.muhdavi.com/api/jadwals',
deferRender: true, // jika data banyak yang diload sesuia kebutuhan
processing: true,
columns: [
{ data: 'tanggal' },
{ data: 'sesi.id' },
{ data: 'ruangan.kode_ruangan' },
{ data: 'mahasiswa.nim' },
{ data: 'mahasiswa.nama_mahasiswa' },
{ data: 'dpu.nama_lengkap' },
{ data: 'dpp.nama_lengkap' },
{ data: 'ketua.nama_lengkap' },
{ data: 'sekretaris.nama_lengkap' },
{ data: 'p1.nama_lengkap' },
{ data: 'p2.nama_lengkap' },
{ data: 'p3.nama_lengkap' },
],
lengthChange: false,
dom: 'Bfrtip',
scrollY: '400px',
scrollCollapse: true,
paging: false,
buttons: [
{
extend: 'colvis',
collectionLayout: 'fixed columns',
collectionTitle: 'Pilih kolom header/footer'
}
]
});
});
</script>
</body>
</html>