Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
</head>
<body>
<!-- Head and subhead -->
<h1>Programming and Data for Policymakers [DPI-691M]</h1>
<h2>Welcome to shopping days!</h2>
<h1>Welcome to My Enhanced Website</h1>
<h2>This Website is being enhanced with new features</h2>

<button id ="myButton">Click Me!</button>

<!-- Image -->
<img src="https://www.hks.harvard.edu/sites/default/files/images/paragraph_footer/harvard-kennedy-school-logo_1.png"/>

<!-- Paragraphs of text -->
<p>You should take this course whether or not you plan to code for a living.</p>
<p>It will help you:</p>
<p>The new generation is technology so taking this course is very benefical!</p>

<!-- Unordered List (bullet points) -->
<ul>
Expand Down
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ var logo = document.querySelector('img');

// Assign the function to the onclick event on that element
logo.onclick = sayOuch;

console.log('Website enhancement script loaded!');
document.getElementById('myButton').addEventListener('click', function() {
alert('Button clicked!');
});
18 changes: 16 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* Set background */
html {
background-color: maroon;
background-color: beige;
font-family: 'Courier New', Courier, monospace;
}

/* styles for the body of the site */
body {
width: 60%;
background-color: orange;
background-color: lightblue;
border: 5px solid black;
padding: 0 20px 20px 20px;
margin-top: 25px;
Expand Down Expand Up @@ -37,3 +38,16 @@ img {
height: auto;

}

#myButton {
background-color: rgb(14, 92, 160); /* Green */
border: none;
color: black;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}