Spaces:
Running
Running
Create strip.html
Browse files- strip.html +28 -0
strip.html
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Stripper Name Generator</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h1>Stripper Name Generator</h1>
|
8 |
+
<p>Enter your name below to generate your stripper name:</p>
|
9 |
+
<form>
|
10 |
+
<label>Name: <input type="text" id="name"></label><br>
|
11 |
+
<button type="button" onclick="generateStripperName()">Generate Stripper Name</button>
|
12 |
+
</form>
|
13 |
+
<p>Your stripper name is: <strong><span id="stripperName"></span></strong></p>
|
14 |
+
<script>
|
15 |
+
function generateStripperName() {
|
16 |
+
// Get the user-provided name
|
17 |
+
const name = document.getElementById("name").value;
|
18 |
+
|
19 |
+
// Generate a stripper name by taking the first three letters of the name
|
20 |
+
// and adding "xxx" to the end
|
21 |
+
const stripperName = name.substring(0, 3) + "xxx";
|
22 |
+
|
23 |
+
// Display the stripper name
|
24 |
+
document.getElementById("stripperName").innerText = stripperName;
|
25 |
+
}
|
26 |
+
</script>
|
27 |
+
</body>
|
28 |
+
</html>
|