Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hactoberfest #15

Merged
merged 1 commit into from
Oct 2, 2021
Merged
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Trust me it is looking cool.

### Please find the screenshots for the same.
<!-- i have added a dark mode feature in this website some one please set the button position accordingly i have just made it simple and light -->

![alt text](https://github.com/kavyanshpandey/Sneha-cafe-FRONT-END/blob/master/images/pic1.png)
![alt text](https://github.com/kavyanshpandey/Sneha-cafe-FRONT-END/blob/master/images/pic2.png)
Expand Down
26 changes: 26 additions & 0 deletions combo.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@
</div>
</header>

<!-- Dark Mode -->
<script type = "text/javascript">
function king() {

if (document.body.style.backgroundColor =="grey"){
document.body.style.backgroundColor = "white"
document.body.style.Color = "black"

}
else{
document.body.style.backgroundColor = "grey";
document.body.style.Color = "blue"

}
}
</script>



<button class="btn" type="button" onclick= "king()" >Dark Mode</button>






<section>
<div class="title">
<h1>Special Combo's</h1>
Expand Down
25 changes: 25 additions & 0 deletions combo_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,31 @@
</div>
</header>

<script type = "text/javascript">
function king() {

if (document.body.style.backgroundColor =="grey"){
document.body.style.backgroundColor = "white"
document.body.style.Color = "black"

}
else{
document.body.style.backgroundColor = "grey";
document.body.style.Color = "blue"

}
}
</script>



<button class="btn" type="button" onclick= "king()" >Dark Mode</button>






<section class="home">
<img src="images/InShot_20210327_035901232.jpg" class="home-img" alt="" />

Expand Down
25 changes: 25 additions & 0 deletions combo_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,31 @@
</div>
</header>

<!-- Dark Mode -->
<script type = "text/javascript">
function king() {

if (document.body.style.backgroundColor =="grey"){
document.body.style.backgroundColor = "white"
document.body.style.Color = "black"

}
else{
document.body.style.backgroundColor = "grey";
document.body.style.Color = "blue"

}
}
</script>



<button class="btn" type="button" onclick= "king()" >Dark Mode</button>





<section class="home">
<img src="images/InShot_20210327_040052670.jpg" class="home-img" alt="" />

Expand Down
28 changes: 28 additions & 0 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,34 @@
</div>
</header>


<!-- Dark Mode -->
<script type = "text/javascript">
function king() {

if (document.body.style.backgroundColor =="grey"){
document.body.style.backgroundColor = "white"
document.body.style.Color = "black"

}
else{
document.body.style.backgroundColor = "grey";
document.body.style.Color = "blue"

}
}
</script>



<button class="btn" type="button" onclick= "king()" >Dark Mode</button>







<section>
<div class="title">
<h1>Contact us</h1>
Expand Down
30 changes: 30 additions & 0 deletions dishes.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,36 @@
</div>
</header>



<!-- Dark Mode -->
<script type = "text/javascript">
function king() {

if (document.body.style.backgroundColor =="grey"){
document.body.style.backgroundColor = "white"
document.body.style.Color = "black"

}
else{
document.body.style.backgroundColor = "grey";
document.body.style.Color = "blue"

}
}
</script>



<button class="btn" type="button" onclick= "king()" >Dark Mode</button>








<section>
<div class="title">
<h1>Select your favourite food, and trust me you will like it.</h1>
Expand Down
28 changes: 28 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,34 @@
</div>
</header>


<!-- Dark Mode -->
<script type = "text/javascript">
function king() {

if (document.body.style.backgroundColor =="grey"){
document.body.style.backgroundColor = "white"
document.body.style.Color = "black"

}
else{
document.body.style.backgroundColor = "grey";
document.body.style.Color = "blue"

}
}
</script>



<button class="btn" type="button" onclick= "king()" >Dark Mode</button>







<section class="home">
<img src="images/food.jpeg" class="home-img" alt="" />

Expand Down