fix lihat video

parent 7e5f92c2
...@@ -49,7 +49,7 @@ class LoginController extends Controller ...@@ -49,7 +49,7 @@ class LoginController extends Controller
try { try {
$clientbiodata = new Client(); $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()); $aksessso = json_decode($apiRequestbiodata->getBody()->getContents());
} catch (\Exception $apiRequestbiodata) { } catch (\Exception $apiRequestbiodata) {
$gagal_login = 'Data Tidak Ditemukan'; $gagal_login = 'Data Tidak Ditemukan';
......
...@@ -239,8 +239,9 @@ ...@@ -239,8 +239,9 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script> <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 --> <!-- Kode JavaScript untuk Magnific Popup -->
<script> @if (count($proposal) > 0)
$(document).ready(function() { <script>
$(document).ready(function() {
// Event handler untuk tombol "Lihat Video" dengan ID preview-video // Event handler untuk tombol "Lihat Video" dengan ID preview-video
$('#preview-video').on('click', function() { $('#preview-video').on('click', function() {
var videoUrl = $(this).data('video'); var videoUrl = $(this).data('video');
...@@ -288,9 +289,10 @@ $(document).ready(function() { ...@@ -288,9 +289,10 @@ $(document).ready(function() {
console.error('URL video tidak valid:', videoUrl); console.error('URL video tidak valid:', videoUrl);
} }
}); });
}); });
</script> </script>
@endif
{{-- <script> {{-- <script>
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function() {
......
...@@ -51,10 +51,10 @@ ...@@ -51,10 +51,10 @@
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr style="text-align: center"> <tr style="text-align: center">
<th style="width: 70%">Komponen</th> <th>Komponen</th>
<th style="width: 10%">Bobot</th> {{-- <th style="width: 10%">Bobot</th> --}}
<th style="width: 10%">Skor</th>
<th style="width: 10%">Nilai</th> <th style="width: 10%">Nilai</th>
{{-- <th style="width: 10%">Nilai</th> --}}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<input type="hidden" name="jenis_penilaian_id[]" value="{{ $val->jenis_penilaian_monev_id }}"> <input type="hidden" name="jenis_penilaian_id[]" value="{{ $val->jenis_penilaian_monev_id }}">
<span>{{ $val->nama }}</span> <span>{{ $val->nama }}</span>
</td> </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> <td>
<select name="skor[]" class="hitung_skor" data-id="{{ $val->jenis_penilaian_monev_id }}"> <select name="skor[]" class="hitung_skor" data-id="{{ $val->jenis_penilaian_monev_id }}">
<option value="1" @if($skor == '1') selected="selected" @endif>1</option> <option value="1" @if($skor == '1') selected="selected" @endif>1</option>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<option value="7" @if($skor == '7') selected="selected" @endif>7</option> <option value="7" @if($skor == '7') selected="selected" @endif>7</option>
</select> </select>
</td> </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> </tr>
@php @php
$total += $nilai; $total += $nilai;
...@@ -149,8 +149,8 @@ ...@@ -149,8 +149,8 @@
function sum(){ function sum(){
var sum = 0; var sum = 0;
$('.clsNilai').each(function () { $('.hitung_skor').each(function () {
sum += Number($(this).text()); sum += Number($(this).val());
}); });
$('#varTotalNilai').text(sum); $('#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