first commit

This commit is contained in:
nix
2026-05-16 11:10:19 +02:00
commit 509c9b3737
172 changed files with 14496 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
<!doctype html>
<html lang="en">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="shortcut icon" href="angry_pepe.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<title>Bad Name Selector</title>
</head>
<body>
<div class="main">
<h1 class="roboto center">Please write your name... (good luck)</h1>
<p class="center roboto letter" type="button" id = "letter"></p>
<input type="button" class="center button selectElement" value="<" onclick="GPG_NotFun()">
<input type="button" class="confirm-button center selectElement" value="Ok" id="confirm-btn">
<input type="button" value=">" class="center button selectElement" onclick = "GFG_Fun()" id = "next-btn">
<div>
</div>
</div>
<div class="result">
<p id="full-name" class="roboto textResult" ></p>
<button onclick="verifyName()" class="roboto submitBtn">Submit</button>
<div>
</div>
<script>
function GPG_NotFun(){
var c = letter.innerHTML;
letter.innerHTML = previousCharacter(c);
var e = previousCharacter(c);
console.log(e);
}
var letter = document.getElementById('letter');
letter.innerHTML = 'a';
function previousCharacter(c){
return String.fromCharCode(c.charCodeAt(0) - 1);
}
function nextCharacter(c) {
return String.fromCharCode(c.charCodeAt(0) + 1);
}
function GFG_Fun() {
globalThis.c = letter.innerHTML;
letter.innerHTML = nextCharacter(c);
var d = nextCharacter(c);
console.log(d);
}
var confirmedBtn = document.getElementById('confirm-btn');
var fullName = document.getElementById('full-name');
//fullName.innerHTML ="testing purposes..."
confirmedBtn.addEventListener("click",
function()
{
screenOutput = fullName. innerHTML + letter.innerHTML
fullName.innerHTML = screenOutput;
}
);
function verifyName(){
alert("Are you sure your name is " + screenOutput + "?");
}
</script>
</body>
<footer class="footer roboto">Made by <a href="https://github.com/imansour12/">Mohamed Iyed Mansour</a></footer>
</html>
+123
View File
@@ -0,0 +1,123 @@
.main {
background-color: white;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
border-radius: 5px 5px 5px 5px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
padding: 10px;
}
.main:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@1,300&display=swap");
.center {
text-align: center;
align-content: center;
margin-right: auto;
margin-left: auto;
left: 50%;
display: block;
vertical-align: middle;
align-items: center;
}
.roboto {
font-family: "Roboto", sans-serif;
}
.confirm-button {
background-color: #000000; /* Green */
border: none;
color: #ffffff;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 8px;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.confirm-button:hover {
background-color: #90ee90;
transition: 0.5s;
color: black;
}
body {
background-color: #f0706a;
}
.letter {
font-size: 50px;
}
.button {
background-color: #000000; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
border-radius: 8px;
}
.button:hover {
background-color: #7b9971;
transition: 0.5s;
}
.selectElement {
width: 30%;
}
.footer {
position: fixed;
padding: 10px 10px 0px 10px;
bottom: 0;
width: 100%;
height: 40px;
float: right;
}
a {
color: blue;
}
.result {
background-color: #850101;
width: 50%;
margin: 0 auto;
border-radius: 5px 5px 5px 5px;
margin-top: 20px;
}
.submitBtn {
background-color: #4caf50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
align-content: center;
height: 100%;
display: flex;
cursor: pointer;
}
.textResult {
float: right;
overflow: hidden;
font-size: 20px;
}