As I work on creating my own homepage, I came across someone else's page that I really liked. I decided to download the page source and open it locally in my browser. However, I noticed that while the contents were all there, the style (frames, positioning, etc.) was missing. I'm trying to figure out what is needed to restore the style...
I have a feeling it has something to do with the head
section of the source code, specifically the css
or js
file... Here are the relevant parts of the code:
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylev5.css" />
<title>homepage</title>
<meta charset="utf-8" />
<script type="application/javascript" src="jquery-1.7.2.min.js"></script>
<script type="application/javascript">
$(window).ready(function () {
var codes = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65];
// codes = [65];
$(window).keydown(function (event) {
var code = event.keyCode;
if (code == codes.shift()) {
if (codes.length == 0) {
$(".konami").fadeIn("slow");
var h = $(".konami").height() - $(".links").height();
$(".links").css("margin-top", h/2);
}
} else {
codes = [];
}
});
$(".door").click(function () {
$(".konami").fadeOut("slow");
});
});
</script>
</head>
....
Since I am not familiar with javascript
, I could really use some assistance. Can anyone help me out?