feat/hapus-breadcrumb-timestamp-responsive-device #2

Closed
superbia wants to merge 3 commits from feat/hapus-breadcrumb-timestamp-responsive-device into prod
+20 -12
View File
@@ -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.'
}
};
@@ -1660,7 +1662,7 @@
: '<span class="font-normal text-white">ID</span> <span class="text-white/40 mx-2">|</span> <span class="font-bold text-white">EN</span>';
}
const mobileButton = document.getElementById('mobile-lang-toggle-btn');
const mobileButton = document.getElementById('lang-toggle-mobile');
if (mobileButton) {
mobileButton.textContent = currentLang === 'id' ? 'Bahasa: ID' : 'Language: EN';
}
@@ -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
@@ -1761,7 +1764,7 @@
const rank = currentLang === 'id' ? leader.badge_id : leader.badge_en;
return `
<a href="dosen_kbk.html?kbk=${kbk}&lang=${currentLang}" class="group block rounded-2xl sm:rounded-2.5xl md:rounded-3xl lg:rounded-3xl xl:rounded-3xl overflow-hidden border border-slate-100 bg-white shadow-soft hover:-translate-y-2 hover:shadow-soft-lg transition-all duration-500">
<a href="https://informatika.untan.ac.id/people-based-on-kk.html" class="group block rounded-2xl sm:rounded-2.5xl md:rounded-3xl lg:rounded-3xl xl:rounded-3xl overflow-hidden border border-slate-100 bg-white shadow-soft hover:-translate-y-2 hover:shadow-soft-lg transition-all duration-500">
<div class="p-5 sm:p-6 md:p-7 lg:p-8 xl:p-8 bg-gradient-to-br ${meta.accent} border-b border-slate-100">
<div class="flex items-start justify-between gap-3 sm:gap-4">
<div>
@@ -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) => {
@@ -2127,4 +2135,4 @@
</script>
</body>
</html>
</html>