Browse Source

added popup for small screens

master
alicestrt 3 years ago
parent
commit
fb46a9d819
  1. 24
      index.html
  2. 3
      static/css/style.css

24
index.html

@ -33,6 +33,22 @@
<a href="#" >how to use</a>
</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>
@ -337,7 +353,13 @@ $("#about").click(function(){
</script>
<script>
$(document).ready(function(){
if (screen.width < 768) {
$("#myModal").modal('show');
}
});
</script>
</div>

3
static/css/style.css

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

Loading…
Cancel
Save