Skip to content

Commit

Permalink
made typing faster, added name title, increased font size
Browse files Browse the repository at this point in the history
  • Loading branch information
jchoca committed Jul 15, 2015
1 parent b6e0c7f commit 8f88a5c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<title></title>
</head>
<body>
<h1>James Choca</h1>
<div id="container">
<div id="terminal">
<nav>
Expand Down
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
blog = "Blog",
resume = "Resume",
cursor = "_";
TYPE_INTERVAL = 100;

if (window.sessionStorage) {
visited = sessionStorage.getItem('jamesChocaVisited');
}

if (!visited) {
intervalId = setInterval(typeResume, 250);
intervalId = setInterval(typeResume, TYPE_INTERVAL);
if (window.sessionStorage) {
sessionStorage.setItem('jamesChocaVisited', 1);
}
Expand All @@ -30,7 +31,7 @@
clearInterval(intervalId);
setTimeout(function () {
removeCursor('resume');
intervalId = setInterval(typeBlog, 250);
intervalId = setInterval(typeBlog, TYPE_INTERVAL);
}, 750);
}
}
Expand Down
2 changes: 1 addition & 1 deletion script.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ a {
color: lawngreen;
}

h1 {
text-align: center;
}

#container {
position: relative;
}

#terminal {
font-size: 20px;
max-width: 45%;
margin: auto;
background-color: black;
Expand Down

0 comments on commit 8f88a5c

Please sign in to comment.