Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
prayogak authored Dec 30, 2024
1 parent 0d8e5bb commit 3b250ea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="id">
<head>
<title>ChatGPT</title>
<title>AI Asisten</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-adsense-account" content="ca-pub-1811586010937090">
Expand Down Expand Up @@ -204,6 +204,17 @@ <h1 id="ai-header">AI Asisten</h1> <!-- Tambahkan ID ke elemen ini -->
if (e.key === 'Enter') sendMessage();
});

addMessage('Saweria click', 'bot');

// Tambahkan elemen link dan buka di tab baru
const saweriaLink = document.createElement('a');
saweriaLink.href = 'https://saweria.co/P44ndu';
saweriaLink.target = '_blank'; // Membuka di tab baru
saweriaLink.rel = 'noopener noreferrer'; // Menambah keamanan
saweriaLink.textContent = 'Klik di sini untuk Saweria';

// Misalnya tambahkan ke dalam sebuah elemen kontainer
document.body.appendChild(saweriaLink); // Append link ke body atau elemen lain
addMessage('Halo! Saya AI asisten. Ada yang bisa saya bantu?', 'bot');
</script>
</body>
Expand Down

0 comments on commit 3b250ea

Please sign in to comment.