forked from KendallDoesCoding/backward-text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (60 loc) · 2.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reverse text</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<a href="#" class="logo">ReverseText</a>
<nav class="navbar">
<a class="active" href="#home">Home</a>
<a href="#create">Create</a>
</nav>
<div class="icons">
<i class="fas fa-bars" id="menu-bars"></i>
</div>
</header>
<!-- home section stasrts here -->
<section class="home" id="home">
<div class="container">
<!-- <img src="assets/image3.jpg" alt=""> -->
<div class="containerr">
<div class="wrapper" >
<div class="content">
<h1>REVERSE TEXT</h1>
<h2>Get your text reversed here without writing manually. </h2>
<a href="#create" class="btn" id="get-started-btn">Get Started</a>
</div>
<!-- <div class="image">
<img src="assets/image3.jpg" alt="">
</div> -->
</div>
</div>
</div>
</section>
<section class="create" id="create">
<div class="container">
<!--- Code from https://www.roseindia.net/javascript/javascriptexamples/javascript-reverse-text-string.shtml -->
<h1 class="heading">Type or Copy text here</h1>
<h3 class="sub-heading">
You can reverse a name or any other text of your choice!
</h3>
<form onsubmit="stopRefresh(event)">
<input id="text" type="text" name="rev" />
<input id="reverse-button" class="buttons" type="button" value="REVERSE" onClick="reverse(this.form)" />
<p id="reversed-text" class="sub-heading"> <!--Reversed text appears here..--></p>
<input id="copy-button" class="buttons" type="button" value="COPY" onClick="copyReversedText(this.form)" disabled/>
</form>
<div class="footer">
<p> Credit to <a
href="https://www.roseindia.net/javascript/javascriptexamples/javascript-reverse-text-string.shtml">roseindia.net</a>
for the code! </p>
</div>
</section>
</body>
<script src="index.js"></script>
</html>