admin aboose
n o b e e c h
trays
- Option 1
- Option 2
- Comically oversized spoon
- Option 4
0 voters
opton 4
In order to win, take this code written by 75rx.
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Guesser</title>
<style>
.container
{
position: absolute;
height: 98.87038%;
width: 98.9479%;
background-color: lightgray;
display: flex;
justify-content: center;
align-items: center;
}
.container, .main
{
font-family: Arial;
}
.main
{
position: absolute;
height: 75%;
width: 65%;
background-color: white;
border-radius: 0 0 8px 8px;
box-shadow: 0 1.5vh 1.5vh 0 gray, 0 1.5vh 1.5vh 0 gray, 0 1.5vh 1.5vh 0 gray, 0 1.5vh 1.5vh 0 gray;
outline: none;
transition: all 1s;
overflow: auto;
}
.main:focus {
border: 4px solid blue;
}
.topbdr
{
color: white;
font-family: Segoe UI;
font-weight: bold;
background-color: blue;
top: 0;
left: 0;
position: absolute;
z-index: 1;
width: 100%;
height: 15%;
text-align: center;
letter-spacing: 10px;
user-select: none;
}
.UserTypedText
{
background-color: blue;
color: white;
margin-bottom: 16px;
user-select: none;
display: inline-block;
padding: 4px;
}
.BotTypedText
{
background-color: lightgray;
margin-bottom: 16px;
user-select: none;
display: inline-block;
padding: 4px;
}
.btmbar
{
background-color: lightgray;
width: 100%;
position: absolute;
bottom: 0;
height: 15%;
}
.btmbar textarea
{
background-color: #999999;
color: white;
border-radius: 8px;
text-align: center;
overflow: auto;
width: 70%;
border: none;
outline: none;
font-family: Arial;
resize: none;
}
.btmbar textarea:placeholder
{
color: #232323;
}
.btn
{
color: #232323;
text-align: center;
background-color: #999999;
border-radius: 8px;
user-select: none;
padding: 8px;
border: none;
}
.btn:hover
{
opacity: .3;
}
#placeToAppend
{
height: 70%;
overflow: auto;
}
</style>
</head>
<body>
<div class="container">
<div class="main" tabindex="1" id="mainContent">
<div class="topbdr" id="top"><h1>Let's chat!</h1></div>
<div style="top: 20%; position: relative;" id="placeToAppend">
<div style="text-align: center; color: blue;" id="time">Getting time...</div><hr>
</div>
<div class="btmbar">
<textarea placeholder="Your message..." id="usrmsg"></textarea> <button type="button" class="btn" onclick="sendMessage()">Send Message</button>
</div>
</div>
</div>
<script>
var botResponse = "";
var lastMessage = "";
var isOpen = true;
var main = document.getElementById('mainContent');
var top = document.getElementById('top');
const date_iref = new Date();
const year = date_iref.getFullYear();
var month = parseInt(date_iref.getMonth() + 1).toString();
if (month.length == 1) month = "0" + month;
var day = date_iref.getDay().toString();
if (day.length == 1) day = "0" + day;
document.getElementById('time').innerHTML = year + "." + month + "." + day;
document.getElementById('top').addEventListener('click', function() {
if (isOpen)
{
main.style.height = "15%"; document.getElementById('top').innerHTML = ""; isOpen = false;
} else {
main.style.height = "75%"; document.getElementById('top').innerHTML = "<h1>Let's chat!</h1>"; isOpen = true;
}
});
function sendMessage()
{
if (document.getElementById('usrmsg').value.toString() == "")
{
BotResponse = "Please, write a question.";
sendBotMessage();
return;
}
var elem = document.createElement("div");
var text = document.getElementById('usrmsg').value.toString();
lastMessage = text.toLowerCase();
elem.appendChild(document.createTextNode(text));
elem.className = "UserTypedText";
var target = document.getElementById('placeToAppend');
target.appendChild(elem);
var Br = document.createElement("br");
target.appendChild(Br);
target.appendChild(Br);
document.getElementById('usrmsg').value = "";
generateBotResponse();
}
function sendBotMessage()
{
var elem = document.createElement("div");
var text = BotResponse;
elem.appendChild(document.createTextNode(text));
elem.className = "BotTypedText";
var target = document.getElementById('placeToAppend');
target.appendChild(elem);
var Br = document.createElement("br");
target.appendChild(Br);
target.appendChild(Br);
BotResponse = "";
}
function generateBotResponse()
{
if (lastMessage == "rock")
{
BotResponse = "Paper";
} else if (lastMessage == "paper")
{
BotResponse = "Scissors";
} else if (lastMessage == "scissors")
{
BotResponse = "Rock";
} else if (lastMessage == "generate me random number")
{
const rand = Math.floor(Math.random() * 1000) + 1;
BotResponse = "Here I generated a random number between 1000 and 1 for you: " + rand;
} else if (lastMessage == "do you like me?")
{
BotResponse = "I obviously like you. :)";
} else if (lastMessage == "hi" || lastMessage == "hello" || lastMessage == "hey there" || lastMessage == "hey" || lastMessage == "hi there")
{
BotResponse = "Welcome! Ask me questions and I will answer them.";
} else {
BotResponse = "Sorry, I don't understand your question. Please, try asking something else.";
}
sendBotMessage();
}
</script>
</body>
</html>
cringe
feeling silly pilled today
e
slilly
rude x2
no
lol
wowaa
75rx knows nothing to respond, but has to win.
0x4e 0x65 0x76 0x65 0x72 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x67 0x69 0x76 0x65 0x20 0x79 0x6f 0x75 0x20 0x75 0x70 0x2c 0x20 0x6e 0x65 0x76 0x65 0x72 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x6c 0x65 0x74 0x20 0x79 0x6f 0x75 0x20 0x64 0x6f 0x77 0x6e 0x2c 0x20 0x6e 0x65 0x76 0x65 0x72 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x72 0x75 0x6e 0x20 0x61 0x72 0x6f 0x75 0x6e 0x64 0x2c 0x20 0x61 0x6e 0x64 0x20 0x64 0x65 0x73 0x65 0x72 0x74 0x20 0x79 0x6f 0x75 0x21 0x20 0x4e 0x65 0x76 0x65 0x72 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x6d 0x61 0x6b 0x65 0x20 0x79 0x6f 0x75 0x20 0x63 0x72 0x79 0x2c 0x20 0x6e 0x65 0x76 0x65 0x72 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x73 0x61 0x61 0x61 0x61 0x79 0x20 0x67 0x6f 0x6f 0x64 0x62 0x79 0x65 0x2c 0x20 0x6e 0x65 0x76 0x65 0x72 0x20 0x67 0x6f 0x6e 0x6e 0x61 0x20 0x74 0x65 0x6c 0x6c 0x20 0x61 0x20 0x6c 0x69 0x65 0x2c 0x20 0x61 0x6e 0x64 0x20 0x68 0x75 0x72 0x74 0x20 0x79 0x6f 0x75 0x21
Convert each of these ASCII to characters and see what happens:)
Or, run this code in C# online compiler for the program to do it.
using System;
class test {
static void Main() {
string[] chars = {
"0x4e", "0x65", "0x76", "0x65", "0x72", "0x20", "0x67", "0x6f", "0x6e", "0x6e", "0x61", "0x20", "0x67", "0x69", "0x76", "0x65", "0x20", "0x79", "0x6f", "0x75", "0x20", "0x75", "0x70", "0x2c", "0x20", "0x6e", "0x65", "0x76", "0x65", "0x72", "0x20", "0x67", "0x6f", "0x6e", "0x6e", "0x61", "0x20", "0x6c", "0x65", "0x74", "0x20", "0x79", "0x6f", "0x75", "0x20", "0x64", "0x6f", "0x77", "0x6e", "0x2c", "0x20", "0x6e", "0x65", "0x76", "0x65", "0x72", "0x20", "0x67", "0x6f", "0x6e", "0x6e", "0x61", "0x20", "0x72", "0x75", "0x6e", "0x20", "0x61", "0x72", "0x6f", "0x75", "0x6e", "0x64", "0x2c", "0x20", "0x61", "0x6e", "0x64", "0x20", "0x64", "0x65", "0x73", "0x65", "0x72", "0x74", "0x20", "0x79", "0x6f", "0x75", "0x21", "0x20", "0x4e", "0x65", "0x76", "0x65", "0x72", "0x20", "0x67", "0x6f", "0x6e", "0x6e", "0x61", "0x20", "0x6d", "0x61", "0x6b", "0x65", "0x20", "0x79", "0x6f", "0x75", "0x20", "0x63", "0x72", "0x79", "0x2c", "0x20", "0x6e", "0x65", "0x76", "0x65", "0x72", "0x20", "0x67", "0x6f", "0x6e", "0x6e", "0x61", "0x20", "0x73", "0x61", "0x61", "0x61", "0x61", "0x79", "0x20", "0x67", "0x6f", "0x6f", "0x64", "0x62", "0x79", "0x65", "0x2c", "0x20", "0x6e", "0x65", "0x76", "0x65", "0x72", "0x20", "0x67", "0x6f", "0x6e", "0x6e", "0x61", "0x20", "0x74", "0x65", "0x6c", "0x6c", "0x20", "0x61", "0x20", "0x6c", "0x69", "0x65", "0x2c", "0x20", "0x61", "0x6e", "0x64", "0x20", "0x68", "0x75", "0x72", "0x74", "0x20", "0x79", "0x6f", "0x75", "0x21"
};
foreach(string item in chars)
{
int @int = Convert.ToInt32(item, 16);
Console.Write((char) @int);
}
}
}




