feat: integrasi modul FAQ accordion native dan input jam kerja multi-baris
This commit is contained in:
+4
-11
@@ -37,7 +37,7 @@ if ( substr( $wa_clean, 0, 1 ) === '0' ) {
|
||||
<span class="hours-icon">🕒</span>
|
||||
<div>
|
||||
<div style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.8;">Jam Layanan</div>
|
||||
<div style="font-weight: 600; font-size: 13px; color: #fff;"><?php echo esc_html( $jam ); ?></div>
|
||||
<div style="font-weight: 600; font-size: 13px; color: #fff; line-height: 1.6;"><?php echo nl2br( esc_html( $jam ) ); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -136,7 +136,7 @@ if ( substr( $wa_clean, 0, 1 ) === '0' ) {
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- FLOATING WHATSAPP HOTLINE PPDB -->
|
||||
<!-- FLOATING WHATSAPP -->
|
||||
<?php if ( ! empty( $wa_clean ) ) : ?>
|
||||
<a href="https://wa.me/<?php echo esc_attr( $wa_clean ); ?>?text=Halo%20Admin%20EduKarsa,%20saya%20ingin%20bertanya%20mengenai%20pendaftaran." target="_blank" rel="noopener" class="edukarsa-wa-float" title="Chat WhatsApp Panitia PMB">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="#ffffff"><path d="M12.031 6.172c-3.181 0-5.767 2.586-5.768 5.766-.001 1.298.38 2.27 1.019 3.287l-.711 2.598 2.664-.699c.971.53 1.777.82 2.796.82h.005c3.18 0 5.767-2.586 5.768-5.766 0-3.18-2.587-5.806-5.773-5.806zm3.376 8.214c-.149.42-.767.781-1.072.829-.304.048-.687.069-2.203-.559-1.933-.801-3.178-2.775-3.275-2.905-.095-.129-.778-1.036-.778-1.975 0-.94.492-1.401.667-1.593.175-.192.383-.24.512-.24.129 0 .258.006.371.012.12.006.279-.045.436.334.164.397.558 1.365.607 1.465.049.099.082.217.017.348-.065.131-.098.212-.195.328-.098.115-.205.258-.293.346-.098.098-.201.205-.087.401.115.196.512.846 1.099 1.368.756.673 1.393.882 1.59.98.196.098.312.082.426-.049.115-.131.492-.573.623-.77.131-.196.262-.164.442-.098.18.065 1.147.541 1.344.639.196.098.328.147.377.229.049.082.049.475-.1.895z"/></svg>
|
||||
@@ -144,13 +144,11 @@ if ( substr( $wa_clean, 0, 1 ) === '0' ) {
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- TOMBOL BACK TO TOP -->
|
||||
<!-- BACK TO TOP -->
|
||||
<button id="back-to-top" class="back-to-top-btn" aria-label="Kembali ke atas">▲</button>
|
||||
|
||||
<!-- NATIVE VANILLA SCRIPT: HAMBURGER & BACK-TO-TOP -->
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// 1. Toggle Mobile Menu Drawer
|
||||
const toggleBtn = document.getElementById("mobile-menu-toggle");
|
||||
const navMenu = document.getElementById("site-navigation");
|
||||
if (toggleBtn && navMenu) {
|
||||
@@ -160,15 +158,10 @@ if ( substr( $wa_clean, 0, 1 ) === '0' ) {
|
||||
});
|
||||
}
|
||||
|
||||
// 2. Back to Top Smooth Logic
|
||||
const bttBtn = document.getElementById("back-to-top");
|
||||
if (bttBtn) {
|
||||
window.addEventListener("scroll", function() {
|
||||
if (window.scrollY > 350) {
|
||||
bttBtn.classList.add("show");
|
||||
} else {
|
||||
bttBtn.classList.remove("show");
|
||||
}
|
||||
if (window.scrollY > 350) { bttBtn.classList.add("show"); } else { bttBtn.classList.remove("show"); }
|
||||
});
|
||||
bttBtn.addEventListener("click", function() {
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
|
||||
Reference in New Issue
Block a user