Skip to content

Commit 29d5cdb

Browse files
authored
Merge pull request #6 from thedevlabs/addJavascript
start JS
2 parents 57bd518 + 8592309 commit 29d5cdb

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

public_html/app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Grab the intro element
2+
// https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
3+
var intro = document.getElementById("intro");
4+
5+
// Put some text in there
6+
intro.textContent = "Hi. I'm in here.";
7+
intro.textContent += "This just got added";
8+
9+
//for debugging
10+
console.log('Im in your console. Inspect Element > Console.');

public_html/features.js

Whitespace-only changes.

public_html/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
<head>
44
<title>San Francisco</title>
55
<link rel="stylesheet" href="style.css">
6+
<script type="text/javascript" src="app.js"></script>
7+
<script type="text/javascript" src="features.js"></script>
68
</head>
79

810
<body>
911
<h1>A Guide to Exploring San Francisco</h1>
12+
<p id="intro"></p>
1013
<nav>
1114
<ul>
1215
<li>Best Time to Visit</li>
@@ -15,6 +18,7 @@ <h1>A Guide to Exploring San Francisco</h1>
1518
<li>Food and Drinks</li>
1619
</ul>
1720
</nav>
21+
<div id="start_sections"></div>
1822
<h2>Best Time to Visit</h2>
1923
<p>San Francisco has a mediterranean climate. Being a peninsula, it remains pretty cool throughout the year, with most of the rainfall occurring during the winter and spring seasons. You should visit the city during the summer and fall seasons, but keep in mind that this is also peak tourist season.</p>
2024
<h2>Places to See</h2>

0 commit comments

Comments
 (0)