Difference between revisions of "Team:TUDelft/Header"

Line 1: Line 1:
 
<html>
 
<html>
      <meta name="viewport" content="width=device-width, initial-scale=1">
+
   
 
<script>
 
<script>
 +
 +
    /*  -------------------------------------- to remove the MediaWiki style */
 
         $(document).ready(function() {
 
         $(document).ready(function() {
 
             $("#HQ_page").removeAttr('id');
 
             $("#HQ_page").removeAttr('id');
Line 9: Line 11:
 
             $("#mw-content-text").removeAttr('id');
 
             $("#mw-content-text").removeAttr('id');
 
         });
 
         });
 +
 +
 +
 
     </script>
 
     </script>
 
    
 
    
Line 43: Line 48:
  
  
         /*   font voor alles*/
+
         /* --------------------------------------------- font voor alles*/
 
         * {
 
         * {
 
             font-family: "Trebuchet MS", Helvetica, sans-serif;
 
             font-family: "Trebuchet MS", Helvetica, sans-serif;
 
         }     
 
         }     
  
         /*    menu bar */
+
         /*    ---------------------------------------------- menu bar */
 
         .navbar {
 
         .navbar {
 
             background-color: #def4fa;
 
             background-color: #def4fa;
Line 122: Line 127:
 
         }
 
         }
  
 +
 +
 +
 +
 +
<!----- RANDOM--->
  
 
         #logo {
 
         #logo {
Line 143: Line 153:
 
}
 
}
  
 +
 +
 +
<!------- Top button--->
 +
#myBtn {
 +
  display: none; /* Hidden by default */
 +
  position: fixed; /* Fixed/sticky position */
 +
  bottom: 20px; /* Place the button at the bottom of the page */
 +
  right: 30px; /* Place the button 30px from the right */
 +
  z-index: 99; /* Make sure it does not overlap */
 +
  border: none; /* Remove borders */
 +
  outline: none; /* Remove outline */
 +
  background-color: red; /* Set a background color */
 +
  color: white; /* Text color */
 +
  cursor: pointer; /* Add a mouse pointer on hover */
 +
  padding: 15px; /* Some padding */
 +
  border-radius: 10px; /* Rounded corners */
 +
  font-size: 18px; /* Increase font size */
 +
}
 +
 +
#myBtn:hover {
 +
  background-color: #555; /* Add a dark-grey background on hover */
 +
}
  
 
     </style>
 
     </style>
Line 246: Line 278:
 
         </div>
 
         </div>
  
 
+
<button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
 
    
 
    
  
 
     </body>
 
     </body>
 
</html>
 
</html>

Revision as of 09:32, 21 June 2019