Skip to content

Commit

Permalink
초기 페이지 구현 - 활용
Browse files Browse the repository at this point in the history
  • Loading branch information
egoing committed Apr 17, 2018
1 parent 70873c8 commit 3b59034
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 10 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<script src="colors.js"></script>
</head>
<body>
<h1><a href="index.html">WEB</a></h1>
<h1><a href="#!welcome">WEB</a></h1>
<input id="night_day" type="button" value="night" onclick="
nightDayHandler(this);
">
<ol>
<li><a onclick="fetchPage('html')">HTML</a></li>
<li><a onclick="fetchPage('css')">CSS</a></li>
<li><a onclick="fetchPage('javascript')">JavaScript</a></li>
<ol id="nav">
<li><a href="#!html" onclick="fetchPage('html')">html</a></li>
<li><a href="#!css" onclick="fetchPage('css')">css</a></li>
<li><a href="#!javascript" onclick="fetchPage('javascript')">javascript</a></li>
</ol>
<article>

Expand All @@ -27,6 +27,11 @@ <h1><a href="index.html">WEB</a></h1>
})
});
}
if(location.hash){
fetchPage(location.hash.substr(2));
} else {
fetchPage('welcome');
}
</script>
</body>
</html>
2 changes: 2 additions & 0 deletions welcome
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h2>Welcome</h2>
Hello, Ajax

0 comments on commit 3b59034

Please sign in to comment.