Compare commits

..

1 Commits

Author SHA1 Message Date
1df74e274d Fix: Update form title and remove unused user details code
This commit updates the form title in index.html to "Mayagen Demo Gratis". It also removes unused code related to user details from script.js, which was likely leftover from a previous feature and is no longer needed.
2025-07-21 22:05:41 +07:00
2 changed files with 1 additions and 10 deletions

View File

@@ -23,7 +23,7 @@
</ul>
<div class="form-container" id="form-section">
<form id="demo-form">
<h2>Dapatkan Demo Gratis</h2>
<h2>Mayagen Demo Gratis</h2>
<p>Silakan isi formulir di bawah ini untuk melanjutkan ke halaman demo.</p>
<div class="input-group">

View File

@@ -278,15 +278,6 @@ document.addEventListener('DOMContentLoaded', function() {
window.addEventListener('resize', setVh);
window.addEventListener('load', setVh);
const userNameElement = document.querySelector('.user-details h2');
if (userNameElement) {
userNameElement.textContent = nama; // Set user name in chat header
}
const userInitialElement = document.querySelector('.avatar');
if (userInitialElement) {
userInitialElement.textContent = nama.split(' ').map(n => n[0]).join('').substring(0, 1);
}
toggleAttachmentIcons(true);
const chatArea = document.querySelector('.chat-area');
if (chatArea) {