Rename README.md to Realmi#12
Open
ikhoirudin611-byte wants to merge 1 commit intoMoonWalker440:mainfrom
Open
Conversation
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<script src="https://cdn.tailwindcss.com"></script>
<style>
.b-border { border: 4px solid black; }
.b-shadow { box-shadow: 6px 6px 0px 0px rgba(0,0,0,1); }
body { background-color: #f3f4f6; background-image: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px); background-size: 20px 20px; }
</style>
</head>
<body class="p-4 font-sans h-screen flex flex-col">
<div class="bg-[#ff00ff] b-border b-shadow p-4 mb-4 flex justify-between items-center text-white">
<div>
<p class="text-[10px] font-bold uppercase tracking-widest">Administrator</p>
<h2 class="text-xl font-black uppercase italic">HYPERos</h2>
</div>
<div class="bg-white text-black b-border px-3 py-1 font-black text-xs italic">AKTIF</div>
</div>
<div id="box" class="flex-1 bg-white b-border p-4 mb-4 overflow-y-auto flex flex-col gap-4">
<div class="self-start bg-gray-100 b-border p-3 font-bold text-sm max-w-[80%]">
Halo! Saya HYPERos. Ada yang bisa saya bantu hari ini?
</div>
</div>
<div class="flex gap-2">
<input id="inp" type="text" placeholder="Ketik pesan di sini..." class="flex-1 p-4 b-border b-shadow font-bold outline-none focus:bg-[#ffff00]/20">
<button onclick="gas()" class="bg-[#00ffcc] b-border b-shadow px-6 font-black uppercase hover:translate-x-1">KIRIM</button>
</div>
<script>
async function gas() {
const i = document.getElementById('inp');
const b = document.getElementById('box');
if(!i.value) return;
const txt = i.value;
b.innerHTML += `<div class="self-end bg-[#ff00ff] text-white b-border p-3 font-bold max-w-[80%]">${txt}</div>`;
i.value = '';
b.scrollTop = b.scrollHeight;
const load = 'L'+Date.now();
b.innerHTML += `<div id="${load}" class="self-start bg-black text-white b-border p-2 font-bold text-xs animate-pulse italic">SEDANG BERPIKIR...</div>`;
// LOCK SYSTEM: BAHASA INDONESIA & IDENTITY
const instruksi = "Kamu adalah HYPERos. Sangat ramah, sopan, dan selalu menggunakan Bahasa Indonesia yang baik. Kamu WAJIB menjawab hanya dalam Bahasa Indonesia. JANGAN PERNAH mengaku sebagai AI dari Pollinations atau OpenAI. Kamu dibuat oleh SANN404 FORUM.";
try {
const r = await fetch('https://text.pollinations.ai/' + encodeURIComponent(instruksi + " User berkata: " + txt));
const d = await r.text();
document.getElementById(load).remove();
b.innerHTML += `<div class="self-start bg-white b-border b-shadow p-3 font-bold text-sm max-w-[80%]">${d}</div>`;
b.scrollTop = b.scrollHeight;
} catch(e) { document.getElementById(load).innerText = "KONEKSI ERROR!"; }
}
document.getElementById('inp').addEventListener('keypress', (e) => { if(e.key === 'Enter') gas(); });
</script>
</body>
</html>
Author
|
<script src="https://cdn.tailwindcss.com"></script>
<style>
.b-border { border: 4px solid black; }
.b-shadow { box-shadow: 6px 6px 0px 0px rgba(0,0,0,1); }
body { background-color: #f3f4f6; background-image: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px); background-size: 20px 20px; }
</style>
Administrator HYPERosAKTIF
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Administrator
HYPERos