-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
231 lines (211 loc) · 9.15 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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html>
<head>
<title>Profile of a Leader</title>
<link rel="stylesheet" href="/css/master.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="/css/home.css">
<link rel="stylesheet" href="/css/projects.css">
<link rel="stylesheet" href="/css/original.css">
<link rel="stylesheet" href="/css/contact.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<ul>
<div class="navigation">
<li id="navHome" onclick="goToPage('navHome', 'home', 1)" class="activeItem">Home</li>
<li id="navProj" onclick="goToPage('navProj', 'projects', 2)">Projects</li>
<li id="navOrig" onclick="goToPage('navOrig', 'original', 3)">Original Thoughts</li>
<li id="navCont" onclick="goToPage('navCont', 'contact', 4)">Contact Me</li>
</div>
<div id="grayBar"></div>
</ul>
<body>
<div id="home" class="activePage">
<div id="thoughtTicker">
<div class="label">Original Thought Ticker</div>
</div>
<div id="info">
<div id="summary">
<div class="label">Summary</div>
<div class="paragraph">
I am intelligent and I have a sharp wit. I learn quickly, listen well, and work hard. I am a peacemaker and a team player,
but I also have excellent leadership skills. I have an Associate of Science Degree from North Central
Texas College. I am a dedicated family man. I am always looking for ways to make things look better,
perform faster, and perform more efficiently.
</div>
</div>
<div id="languages">
<div class="label">Languages</div>
<ul class="languageList">
<li>C</li>
<li>C++</li>
<li>C#</li>
<li>.NET</li>
<li>XAML</li>
</ul>
<ul class="languageList">
<li>HTML5</li>
<li>CSS3</li>
<li>JavaScript</li>
</ul>
<ul class="languageList">
<li>Python</li>
<li>JSON</li>
</ul>
</div>
</div>
<div id="experience">
<div class="label">Experience</div>
<div class="paragraph">
<ul>
</ul>
</div>
</div>
</div>
<div id="projects" class="inactivePage">
<div>
<h1>Projects with which I am involved.</h1>
</div>
<div>
<p>
This is a page that contains all of my current and past projects.
</p>
</div>
</div>
<div id="original" class="inactivePage">
<div>
<h1>Is it possible to have an original thought?</h1>
</div>
<div>
<p>
Eventually I will have a form here where a user can submit his or her "original thought". When the user presses the "submit"
button, the page will submit the thought to the database and it will search the database to see if anyone
has had a similar thought. The page will also eventually look online and return the top 5 google results.
</p>
</div>
</div>
<div id="contact" class="inactivePage">
<div>
<h1>Send me a message!</h1>
<h2 style="padding-left: 30px; color: red;">This form currently does nothing.</h2>
</div>
<form action="" method="POST" enctype="text/plain">
<div><input id="subjectIn" type="text" name="subject" value="" placeholder="Subject"></div>
<div><input id="emailIn" type="email" name="email" placeholder="E-mail"></div>
<div><textarea id="messageIn" name="message" placeholder="What do you need to tell me?"></textarea></div>
<div><input id="submitBtn" type="submit" value="Submit"></div>
</form>
</div>
</body>
</html>
<script>
$(document).ready(function () {
var home = $("#home");
var projects = $("#projects");
var original = $("#original");
var contact = $("#contact");
var navHome = $("#navHome");
var navProj = $("#navProj");
var navOrig = $("#navOrig");
var navCont = $("#navCont");
var width = $("html").width();
var height = $("html").height() - 70;
home.css("width", width);
projects.css("width", width);
original.css("width", width);
contact.css("width", width);
home.css("height", height);
projects.css("height", height);
original.css("height", height);
contact.css("height", height);
home.css("background", "rgba(47,79,79, 1.0)");
projects.css("background", "rgba(0,128,0, 0.0)");
original.css("background", "rgba(147,112,219, 0.0)");
contact.css("background", "rgba(255,127,80, 0.0)");
home.css("opacity", 1.0);
projects.css("opacity", 0.0);
original.css("opacity", 0.0);
contact.css("opacity", 0.0);
projects.css("visibility", "collapse");
original.css("visibility", "collapse");
contact.css("visibility", "collapse");
navHome.css("background", "rgba(47,79,79, 1.0)");
navProj.css("background", "rgba(0,128,0, 0.0)");
navOrig.css("background", "rgba(147,112,219, 0.0)");
navCont.css("background", "rgba(255,127,80, 0.0)");
});
function goToPage(str, pageName, newPage) {
var page = $(pageName);
var home = $("#home");
var projects = $("#projects");
var original = $("#original");
var contact = $("#contact");
var navHome = $("#navHome");
var navProj = $("#navProj");
var navOrig = $("#navOrig");
var navCont = $("#navCont");
if (typeof goToPage.currentPage == 'undefined') {
goToPage.currentPage = 1;
}
if (goToPage.currentPage !== newPage) {
$(".navigation>li").removeClass("activeItem");
$(".navigation>li").css("background", "transparent");
home.removeClass("activePage");
projects.removeClass("activePage");
original.removeClass("activePage");
contact.removeClass("activePage");
$("#" + str).addClass("activeItem");
switch (str) {
case "navHome":
navHome.css("background", "rgba(47,79,79, 1.0)");
home.css("opacity", 1.0);
home.css("visibility", "visible");
original.css("opacity", 0.0);
original.css("visibility", "collapse");
contact.css("opacity", 0.0);
contact.css("visibility", "collapse");
projects.css("opacity", 0.0);
projects.css("visibility", "collapse");
break;
case "navProj":
navProj.css("background", "rgba(0,128,0, 1.0)");
home.css("opacity", 0.0);
home.css("visibility", "collapse");
original.css("opacity", 0.0);
original.css("visibility", "collapse");
contact.css("opacity", 0.0);
contact.css("visibility", "collapse");
projects.css("background", "rgba(0,128,0, 1.0)");
projects.css("opacity", 1);
projects.css("visibility", "visible");
break;
case "navOrig":
navOrig.css("background", "rgba(147,112,219, 1.0)");
home.css("opacity", 0.0);
home.css("visibility", "collapse");
projects.css("opacity", 0.0);
projects.css("visibility", "collapse");
contact.css("opacity", 0.0);
contact.css("visibility", "collapse");
original.css("background", "rgba(147,112,219, 1.0)");
original.css("opacity", 1);
original.css("visibility", "visible");
break;
case "navCont":
navCont.css("background", "rgba(255,127,80, 1.0)");
home.css("opacity", 0.0);
home.css("visibility", "collapse");
projects.css("opacity", 0.0);
projects.css("visibility", "collapse");
original.css("opacity", 0.0);
original.css("visibility", "collapse");
contact.css("background", "rgba(255,127,80, 1.0)");
contact.css("opacity", 1);
contact.css("visibility", "visible");
break;
default:
break;
}
goToPage.currentPage = newPage;
}
}
</script>