fix lihat video

parent 7e5f92c2
......@@ -49,7 +49,7 @@ class LoginController extends Controller
try {
$clientbiodata = new Client();
$apiRequestbiodata = $clientbiodata->request('GET', 'https://sso.unesa.ac.id/userid/'.'muhammadjava@mhs.unesa.ac.id');
$apiRequestbiodata = $clientbiodata->request('GET', 'https://sso.unesa.ac.id/userid/'.'ranum.18066@mhs.unesa.ac.id');
$aksessso = json_decode($apiRequestbiodata->getBody()->getContents());
} catch (\Exception $apiRequestbiodata) {
$gagal_login = 'Data Tidak Ditemukan';
......
......@@ -239,8 +239,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
<!-- Kode JavaScript untuk Magnific Popup -->
<script>
$(document).ready(function() {
@if (count($proposal) > 0)
<script>
$(document).ready(function() {
// Event handler untuk tombol "Lihat Video" dengan ID preview-video
$('#preview-video').on('click', function() {
var videoUrl = $(this).data('video');
......@@ -288,9 +289,10 @@ $(document).ready(function() {
console.error('URL video tidak valid:', videoUrl);
}
});
});
});
</script>
</script>
@endif
{{-- <script>
document.addEventListener("DOMContentLoaded", function() {
......
......@@ -51,10 +51,10 @@
<table class="table table-striped">
<thead>
<tr style="text-align: center">
<th style="width: 70%">Komponen</th>
<th style="width: 10%">Bobot</th>
<th style="width: 10%">Skor</th>
<th>Komponen</th>
{{-- <th style="width: 10%">Bobot</th> --}}
<th style="width: 10%">Nilai</th>
{{-- <th style="width: 10%">Nilai</th> --}}
</tr>
</thead>
<tbody>
......@@ -75,7 +75,7 @@
<input type="hidden" name="jenis_penilaian_id[]" value="{{ $val->jenis_penilaian_monev_id }}">
<span>{{ $val->nama }}</span>
</td>
<td><span id="varBobot-{{ $val->jenis_penilaian_monev_id }}">{{ $val->bobot }}</span></td>
{{-- <td><span id="varBobot-{{ $val->jenis_penilaian_monev_id }}">{{ $val->bobot }}</span></td> --}}
<td>
<select name="skor[]" class="hitung_skor" data-id="{{ $val->jenis_penilaian_monev_id }}">
<option value="1" @if($skor == '1') selected="selected" @endif>1</option>
......@@ -86,7 +86,7 @@
<option value="7" @if($skor == '7') selected="selected" @endif>7</option>
</select>
</td>
<td><span id='varNilai-{{ $val->jenis_penilaian_monev_id }}' class="clsNilai">{{ $nilai }}</span></td>
{{-- <td><span id='varNilai-{{ $val->jenis_penilaian_monev_id }}' class="clsNilai">{{ $nilai }}</span></td> --}}
</tr>
@php
$total += $nilai;
......@@ -149,8 +149,8 @@
function sum(){
var sum = 0;
$('.clsNilai').each(function () {
sum += Number($(this).text());
$('.hitung_skor').each(function () {
sum += Number($(this).val());
});
$('#varTotalNilai').text(sum);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment