feat: menyesuaikan kembali untuk fitur bilingual
This commit is contained in:
+17
-9
@@ -919,11 +919,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>This page was last updated on: <span id="last-updated"></span></p>
|
||||
<script>
|
||||
const modificationDate = document.lastModified;
|
||||
document.getElementById("last-updated").innerHTML = new Date(modificationDate).toLocaleString();
|
||||
</script>
|
||||
<p><span data-i18n="lastUpdatedText">This page was last updated on: </span><span id="last-updated"></span></p>
|
||||
|
||||
<div id="riset-count-info"
|
||||
class="mt-3 sm:mt-3.5 md:mt-4 lg:mt-3 xl:mt-4 text-[10px] sm:text-[10px] md:text-[11px] lg:text-[11px] xl:text-[11px] font-medium text-slate-400 uppercase tracking-widest">
|
||||
@@ -972,7 +968,7 @@
|
||||
<div class="max-w-2xl">
|
||||
<h2 class="text-2xl sm:text-2.5xl md:text-3xl lg:text-4xl xl:text-5xl font-bold font-condensed text-untan-navy mb-5 sm:mb-6 md:mb-7 lg:mb-8 xl:mb-8 leading-tight"
|
||||
data-i18n="labTitle">Laboratorium Pendukung Riset</h2>
|
||||
<p class="text-slate-500 text-xs sm:text-sm md:text-base lg:text-base xl:text-lg leading-relaxed">5 laboratorium modern dengan 93 unit PC All-in-One
|
||||
<p class="text-slate-500 text-xs sm:text-sm md:text-base lg:text-base xl:text-lg leading-relaxed" data-i18n="labDesc">5 laboratorium modern dengan 93 unit PC All-in-One
|
||||
yang mendukung kegiatan riset strategis dan pengembangan teknologi dosen serta mahasiswa.
|
||||
</p>
|
||||
</div>
|
||||
@@ -1384,7 +1380,10 @@
|
||||
ctaBtn: 'Hubungi Kami',
|
||||
viewAll: 'Lihat Semua',
|
||||
facultyDirectory: 'Direktori Dosen',
|
||||
expertise: 'Keahlian'
|
||||
expertise: 'Keahlian',
|
||||
lastUpdatedText: 'Halaman ini terakhir diperbarui pada: ',
|
||||
showingPubs: 'Menampilkan {0} dari {1} publikasi',
|
||||
labDesc: '5 laboratorium modern dengan 93 unit PC All-in-One yang mendukung kegiatan riset strategis dan pengembangan teknologi dosen serta mahasiswa.'
|
||||
},
|
||||
en: {
|
||||
info: 'LATEST INFO',
|
||||
@@ -1440,7 +1439,10 @@
|
||||
ctaBtn: 'Contact Us',
|
||||
viewAll: 'View All',
|
||||
facultyDirectory: 'Faculty Directory',
|
||||
expertise: 'Expertise'
|
||||
expertise: 'Expertise',
|
||||
lastUpdatedText: 'This page was last updated on: ',
|
||||
showingPubs: 'Showing {0} of {1} publications',
|
||||
labDesc: '5 modern laboratories with 93 All-in-One PCs supporting strategic research and technological development for faculty and students.'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1702,7 +1704,8 @@
|
||||
// Update info jumlah data yang ditampilkan
|
||||
const countInfo = document.getElementById('riset-count-info');
|
||||
if (countInfo) {
|
||||
countInfo.innerText = `Menampilkan ${itemsToShow.length} dari ${filteredItems.length} publikasi`;
|
||||
const template = translations[currentLang].showingPubs || `Menampilkan {0} dari {1} publikasi`;
|
||||
countInfo.innerText = template.replace('{0}', itemsToShow.length).replace('{1}', filteredItems.length);
|
||||
}
|
||||
|
||||
// Tampilkan/Sembunyikan tombol "Lihat Semua" berdasarkan sisa data
|
||||
@@ -1926,6 +1929,11 @@
|
||||
renderKbkInsight();
|
||||
renderRisetCards();
|
||||
renderDosenCards();
|
||||
|
||||
const lastUpdatedEl = document.getElementById("last-updated");
|
||||
if (lastUpdatedEl) {
|
||||
lastUpdatedEl.innerHTML = new Date(document.lastModified).toLocaleString(lang === 'id' ? 'id-ID' : 'en-US');
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener('error', (event) => {
|
||||
|
||||
Reference in New Issue
Block a user