added popup for small screens

This commit is contained in:
alicestrt 2021-03-04 20:34:35 +01:00
parent 9af4d6f660
commit fb46a9d819
2 changed files with 27 additions and 4 deletions

View File

@ -33,6 +33,22 @@
<a href="#" >how to use</a> <a href="#" >how to use</a>
</span> </span>
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">This website is better viewed on desktop</h5>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<p>Sorry for that.</p>
</div>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -188,7 +204,7 @@ $(document).ready(function() {
<script> <script>
// function popup_bg(start,end) { // function popup_bg(start,end) {
// var myIcon = document.querySelector(".audioBG"); // var myIcon = document.querySelector(".audioBG");
// var box = document.getElementById("audioBG"); // var box = document.getElementById("audioBG");
// if (box.paused) { // if (box.paused) {
@ -201,7 +217,7 @@ $(document).ready(function() {
// } // }
// // box.currentTime = start; // // box.currentTime = start;
// // console.log(start); // // console.log(start);
// } // }
@ -337,7 +353,13 @@ $("#about").click(function(){
</script> </script>
<script>
$(document).ready(function(){
if (screen.width < 768) {
$("#myModal").modal('show');
}
});
</script>
</div> </div>

View File

@ -458,6 +458,7 @@ color: #d81159;
font-size: 16px; font-size: 16px;
} }
/*#colophon { /*#colophon {
position: absolute; position: absolute;
left: 50px; left: 50px;
@ -482,7 +483,6 @@ font-size: 16px;
======= =======
}*/ }*/
>>>>>>> a4c562a74b0d98a69fcba45d31accdddf753cd2e
#about a { #about a {
text-decoration: none; text-decoration: none;
@ -569,6 +569,7 @@ color: #d81159;
#box1 { #box1 {
margin-left: 10px; margin-left: 10px;
} }
} }
.logo { .logo {