Skip to content

Commit

Permalink
fixed sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
GregCart committed Oct 8, 2020
1 parent 6ac61de commit 1e02f26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LightSwitch.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<title>Light Switch</title>
<style>
#bulb {
width: 67;
height: 103;
width: 133px;
height: 200px;
}
.sOn {
transform: rotate(180deg);
}
</style>
<script>
const on = "file:///D:/Programming/Repositories/HTML-JS-Examples/on.jpg", off = "file:///D:/Programming/Repositories/HTML-JS-Examples/off.jpg";
const on = "file:///C:/Users/daddi/Pictures/programming/WebDevClub/LightSwitch.html/on.jpg", off = "file:///C:/Users/daddi/Pictures/programming/WebDevClub/LightSwitch.html/off.jpg";

function switchLight() {
var img = document.getElementsByTagName("img");
Expand All @@ -30,10 +30,10 @@
</head>
<body>
<div id="bulb">
<img src="D:\Programming\Repositories\HTML-JS-Examples\off.jpg"/>
<img src="C:/Users/daddi/Pictures/programming/WebDevClub/LightSwitch.html/off.jpg"/>
</div>
<div id="switch">
<img src="switch.png" onclick="switchLight()"/>
<img src="C:/Users/daddi/Pictures/programming/WebDevClub/LightSwitch.html/switch.png" onclick="switchLight()"/>
</div>
</body>
</html>
Binary file removed off.jpg
Binary file not shown.
Binary file removed on.jpg
Binary file not shown.
Binary file removed switch.png
Binary file not shown.

0 comments on commit 1e02f26

Please sign in to comment.