TermSpar

Emily

Nov 25th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.57 KB | None | 0 0
  1. <html lang="en">
  2. <head>
  3. <meta charset="UTF-8">
  4.  
  5. <!-- If IE use the latest rendering engine -->
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.  
  8. <!-- Set the page to the width of the device and set the zoon level -->
  9. <meta name="viewport" content="width = device-width, initial-scale = 1">
  10. <title>About me</title>
  11. <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  12.  
  13. <style>
  14. body{
  15.   font-family: "Georgia";
  16. }
  17.  
  18. .jumbotron{
  19.     background-color:#2E2D88;
  20.     color:white;
  21. }
  22. /* Adds borders for tabs */
  23. .tab-content {
  24.     border-left: 1px solid #ddd;
  25.     border-right: 1px solid #ddd;
  26.     border-bottom: 1px solid #ddd;
  27.     padding: 10px;
  28. }
  29. .nav-tabs {
  30.     margin-bottom: 0;
  31. }
  32.  
  33. .frame1{
  34.   visibility: hidden;
  35. }
  36. </style>
  37. </head>
  38. <body background="https://images.unsplash.com/photo-1535478044878-3ed83d5456ef?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=5627447ed73815773a2fa205a2111ca1&auto=format&fit=crop&w=1369&q=80">
  39. <div class="container">
  40.  
  41.   <div class="page-header">
  42.     <h1>About me</h1>
  43.   </div>
  44.  
  45.   <div class="jumbotron">
  46.     <p id="wait" style="color: red">*Wait for the page to finish loading the audio*</p>
  47.     <div title="You're hovering the text!">
  48.       <p style="color: red">Click the button, hover over me</p>
  49.     </div>
  50.     <p>
  51.       <a href="#" onClick="showText();" class="btn btn-default btn-lg" role="button">
  52.         <img src="https://wallpaperplay.com/walls/full/4/c/b/131767.jpg"
  53.        width="100" border="0" height="72">
  54.       </a>
  55.     </p>
  56.     <p id="changeMe"></p>
  57.   </div>
  58.  
  59.   <div class="jumbotron" style="background-color:#6699ff">
  60.     <img src="https://wallpaper.wiki/wp-content/uploads/2017/05/wallpaper.wiki-HD-Artsy-Desktop-Wallpaper-PIC-WPE0012064-1024x640.jpg" width="500" border="0" height="300">
  61.   </div>
  62.  
  63.   <div class="jumbotron" style="background-color:#cc00cc">
  64.     <img src="https://pbs.twimg.com/media/C-CH2FQXcAAZrS_.jpg" width="200" border="0" height="300">
  65.   </div>
  66.  
  67.   <div class="jumbotron" style="background-color:#cc0000">
  68.     <img src="https://upload.wikimedia.org/wikipedia/commons/6/66/Johannes_Vermeer_%281632-1675%29_-_The_Girl_With_The_Pearl_Earring_%281665%29.jpg" width="300" border="0" height="300">
  69.   </div>
  70.  
  71.   <div class="jumbotron" style="background-color:#336600">
  72.     <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/Piet_Mondriaan_-_03.jpg/800px-Piet_Mondriaan_-_03.jpg" width="500" border="0" height="300">
  73.   </div>
  74.  
  75.   <div class="jumbotron">
  76.     <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Vincent_van_Gogh_-_The_Bedroom_-_Google_Art_Project.jpg/1280px-Vincent_van_Gogh_-_The_Bedroom_-_Google_Art_Project.jpg" width="500" border="0" height="300">
  77.   </div>
  78.  
  79.   <iframe style="width:0;height:0;border:0; border:none;"
  80.  src="https://freemusicdownloads.world/songs/paradise/?player=2147"
  81.  allow="autoplay" loop="true" allow="autoplay"></iframe>
  82.  
  83. </div>
  84. </body>
  85.  
  86. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  87. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  88. <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
  89. <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
  90.  
  91. <script>
  92.   $(window).load(function(){
  93.     document.getElementById("wait").innerHTML = "You can now interact with the page";
  94.     $("p").css("color", "green");
  95.   });
  96.   var count = 0;
  97.   function showText(){
  98.     if(count % 2 == 0){
  99.       document.getElementById("changeMe").innerHTML = "You changed the background! (Click again to change back)";
  100.       count++;
  101.       $(document).ready(function() {
  102.         $('body').css('background-image', 'url(https://images.unsplash.com/photo-1480944657103-7fed22359e1d?ixlib=rb-0.3.5&s=f82b9a82df80817a49829e67cf51351c&auto=format&fit=crop&w=1489&q=80)');
  103.         $('body').css('color', 'white');
  104.       });
  105.     } else {
  106.       document.getElementById("changeMe").innerHTML = "";
  107.       count++;
  108.       $(document).ready(function() {
  109.         $('body').css('background-image', 'url(https://images.unsplash.com/photo-1535478044878-3ed83d5456ef?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=5627447ed73815773a2fa205a2111ca1&auto=format&fit=crop&w=1369&q=80)');
  110.         $('body').css('color', 'black');
  111.       });
  112.  
  113.     }
  114.   }
  115. </script>
  116.  
  117. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  118. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  119. </html>
Add Comment
Please, Sign In to add comment