Skip to content

Commit 236e5f0

Browse files
committed
Initial commit
0 parents  commit 236e5f0

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

index.html

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Superˢᶜʳᶦᵖᵗ Generator</title>
6+
</head>
7+
<body>
8+
<h1>Super<sup>script</sup> Generator</h1>
9+
<!--<input type="text" oninput="newTextEntered(this)"/>-->
10+
<textarea placeholder="Enter text here" oninput="newTextEntered(this)"></textarea>
11+
12+
<br>
13+
<br>
14+
<!--<p>Text in sup: <sup id="supText">hi</sup></p>-->
15+
<div>
16+
Before Superscript<sup id="supText">{text will show up here}</sup>
17+
<br>
18+
</div>
19+
</body>
20+
<script src="script.js"></script>
21+
<style>
22+
body{
23+
text-align: center;
24+
background-color: #ffdd82;
25+
}
26+
textarea{
27+
width: 100%;
28+
height: 400px;
29+
resize: none;
30+
border: darkorange 3px solid;
31+
border-radius: 10px;
32+
}
33+
h1{
34+
font-family: Arial, Helvetica, sans-serif;
35+
}
36+
div{
37+
background-color: yellow;
38+
border-color: orange;
39+
border-radius: 10px;
40+
}
41+
</style>
42+
</html>

script.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function newTextEntered(el) {
2+
document.getElementById("supText").innerHTML = el.value
3+
}

0 commit comments

Comments
 (0)