Skip to content

Commit

Permalink
Added an HTML form reader.
Browse files Browse the repository at this point in the history
This is for my extension named "HTML".
  • Loading branch information
samuellouf authored Jan 23, 2024
1 parent 49f4969 commit 4115b15
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions turbowarp_extensions/html_form/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>TWConnect - Sign up</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
font-family: Arial, Helvetica, sans-serif;
background-color: aqua;
}

input.password{
-webkit-text-security: disc !important;
}

#info{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 10px;
border: 5px solid rgb(88, 88, 255);
}

#info .content{
margin: 50px;
}
</style>
</head>
<body>
<script>
const queryString = window.location.search;
const params = new URLSearchParams(queryString);
</script>
<div id="info">
<div class="content">
<h1>Hi <script>document.write(params.get('first_name'));</script> <script>document.write(params.get('last_name'));</script> (<script>document.write(params.get('username'));</script>)!</h1>
<p>Your e-mail is "<b><script>document.write(params.get('email'));</script></b>" .</p>
<p>Here's your password : <span class="password"></span><script>var password = document.createElement('input'); password.value = params.get('password'); password.type = 'text'; password.classList.add('password'); document.querySelector('span.password').appendChild(password);</script><button title="Show/Hide password" onclick="document.querySelector('span.password input').classList.toggle('password');">👁️</button></p>
<p>You are in <b><script>document.write(params.get('country'));</script></b>.</p>
<p>You were born the <b><script>document.write(params.get('dob').replaceAll('-', '/'));</script></b>.</p>
</div>
</div>
</body>
</html>

0 comments on commit 4115b15

Please sign in to comment.