-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
163 lines (151 loc) · 5.94 KB
/
index.html
File metadata and controls
163 lines (151 loc) · 5.94 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/favicon.ico">
<title>Dictionary of Alec</title>
<!-- Custom styles for this template -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<style>
.fullWidth {
width: 100%;
}
</style>
</head>
<body>
<div class="container">
<header class="header clearfix">
<nav>
<ul class="nav nav-pills float-right">
<li class="nav-item">
<a class="nav-link active" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="aboutBtn">About</a>
</li>
</ul>
</nav>
<h3 class="text-muted">The Dictionary of Alec</h3>
</header>
<main role="main">
<div class="jumbotron">
<h1 class="display-3">The Dictionary of Alec</h1>
<p class="lead">Yeah, this site really exists.</p>
<p><a class="btn btn-lg btn-success" href="#" role="button" id="alecAnyWord">"Alec" a word now</a></p>
</div>
<div class="row marketing">
<div class="col-md-6">
<h4>"Alec" a word!</h4>
<div class="input-group fullWidth" id="theInputWrapper">
<input type="text" class="form-control" placeholder="Enter a word..." id="theInput">
<span class="input-group-btn">
<button class="btn btn-secondary" type="button" id="currentBtn">Current Tense</button>
</span>
<span class="input-group-btn">
<button class="btn btn-secondary" type="button" id="pastBtn">Past Tense</button>
</div>
</div>
<div class="col-md-6">
<h4>The Dictionary!</h4>
<a class="btn btn-primary fullWidth" href="#" id="dictBtn">Click here to View</a>
</div>
</div>
</main>
<footer class="footer">
<p>© Alec G - 2017 | <a href="https://facebook.com/ZytherXYZ" target="_blank">FB</a> | <a href="http://alec.pro" target="_blank">made by alec.pro</a></p>
</footer>
</div> <!-- /container -->
</body>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$("#aboutBtn").click(function(e){
$("#aboutModal").modal('show');
});
$("#dictBtn").click(function(){
$("#dictModal").modal("show");
});
$("#alecAnyWord").click(function(){
$("#theInputWrapper").fadeOut().fadeIn().fadeOut().fadeIn();
});
$("#currentBtn").click(function(){
if ($("#theInput").val() === "") {
alert("enter a word before pressing that!");
$("#theInput").fadeOut().fadeIn();
} else {
$(".theWord").text($("#theInput").val() + "'ing");
$("#tenseModal").modal("show");
}
})
$("#pastBtn").click(function(){
if ($("#theInput").val() === "") {
alert("enter a word before pressing that!");
$("#theInput").fadeOut().fadeIn();
} else {
$(".theWord").text($("#theInput").val() + "'d");
$("#tenseModal").modal("show");
}
})
});
</script>
<div class="modal fade" id="aboutModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">About</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>lmao, this site provides no actual benefit, other than being for the lol's.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="dictModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">The REAL dictionary</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Yeah, no. There is no real dictionary. :b </p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="tenseModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Your word is: <span class="theWord"</span></p><br />
<p>Used in a sentence: <em>Wow, she was really <span class="theWord"></span>!</em></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</html>