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.
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="form-container" id="form-section">
|
<div class="form-container" id="form-section">
|
||||||
<form id="demo-form">
|
<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>
|
<p>Silakan isi formulir di bawah ini untuk melanjutkan ke halaman demo.</p>
|
||||||
|
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|||||||
@@ -278,15 +278,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
window.addEventListener('resize', setVh);
|
window.addEventListener('resize', setVh);
|
||||||
window.addEventListener('load', 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);
|
toggleAttachmentIcons(true);
|
||||||
const chatArea = document.querySelector('.chat-area');
|
const chatArea = document.querySelector('.chat-area');
|
||||||
if (chatArea) {
|
if (chatArea) {
|
||||||
|
|||||||
Reference in New Issue
Block a user