Advertisement
1xptolevitico69

Javascript animation ( loader + play button )

Nov 17th, 2022
976
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.47 KB | None | 1 0
  1. <!DOCTYPE html><html lang="en">
  2. <head>
  3.   <meta charset="UTF-8">
  4.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.   <style>
  7.     .topnave {
  8.       position: relative;
  9.       left: 0;
  10.       margin:40px 0;
  11.       width: 100%;
  12.     }
  13.  
  14.     .topnave a {
  15.       color: red;
  16.       margin: 0 5px;
  17.       text-decoration: underline;
  18.       font-family: verdana;
  19.       font-weight: 900;
  20.       font-size: 3vw;
  21.     }
  22.  
  23.     .avatar {
  24.       width: 100px;
  25.       display: block;
  26.       margin: 20px auto;
  27.       margin-top: 40px;
  28.       border-radius: 50%;
  29.       border: 4px double navy;
  30.     }
  31.  
  32.     body {
  33.       margin: 0;
  34.     }
  35.  
  36.     .top {
  37.       position:sticky;
  38.       width: 100%;
  39.       border: 0;
  40.       outline: 0;
  41.       background-color: transparent;
  42.     }
  43.  
  44.     #input {
  45.       box-sizing: border-box;
  46.       height: 50px;
  47.       width: 50%;
  48.       font-size: 1.5vw;
  49.       padding: 0 10px;
  50.       outline: 0;
  51.       border: 0;
  52.       background-color: red;
  53.       border-radius: 10px 0 0 10px;
  54.     }
  55.  
  56.     .search {
  57.       outline: 0;
  58.       height: 50px;
  59.       font-size: 1.5vw;
  60.       width: 150px;
  61.       text-align: center;
  62.       border: 0;
  63.       color: red;
  64.       background-color: red;
  65.       color: white;
  66.       border-radius: 0 10px 10px 0;
  67.     }
  68.  
  69.     #input::placeholder {
  70.       color: white;
  71.     }
  72.  
  73.     h1 {
  74.       font-size: 3vw;
  75.       font-family: verdana;
  76.     }
  77.  
  78.     @media all and (orientation:portrait) and (max-width:425px) {
  79.       h1 {  
  80.         font-size: 9vw;
  81.       }
  82.  
  83.       #input {
  84.         width: 100%;
  85.         height: 40px;
  86.         font-size: 16px;
  87.         border-radius: 10px;
  88.       }
  89.  
  90.       .search {
  91.         font-size: 16px;
  92.         height: 40px;
  93.         margin: 5px 0;
  94.         width: 150px;
  95.         border-radius: 10px;
  96.       }
  97.  
  98.       .topnave a {
  99.         color: red;
  100.         text-decoration: underline;
  101.         font-family: verdana;
  102.         font-weight: 900;
  103.         font-size: 20px;
  104.       }
  105.    
  106.     }
  107.  
  108.     @media all and (orientation:landscape) and (max-width:768px) {
  109.       .avatar {
  110.         display: none;
  111.       }
  112.  
  113.       h1 {
  114.         font-size: 5vw;
  115.       }
  116.  
  117.       #input {
  118.         width: 70%;
  119.         font-size: 3vw;
  120.         border-radius: 10px;
  121.       }
  122.  
  123.       .search {
  124.         font-size: 3vw;
  125.         margin: 5px 0;
  126.         width: 150px;
  127.         border-radius: 10px;
  128.       }
  129.  
  130.       .topnave a {
  131.         color: red;
  132.         text-decoration: underline;
  133.         font-family: verdana;
  134.         font-weight: 900;
  135.         font-size: 5vw;
  136.       }
  137.     }
  138.   </style>
  139. </head>
  140.  
  141. <body>
  142. <audio id='audio' loop src='https://1xpto.netlify.app/posts/player%20mp3/local/soundtrack%2025.mp3'></audio>
  143.  
  144.  
  145.   <button class='top'>
  146.  
  147.     <div class='topnave'>
  148.       <a href='https://1xpto.netlify.app/'>Home</a>
  149.       <a href='https://1xpto.netlify.app/media/'>Media</a>
  150.       <img class='avatar' src='https://1xpto.netlify.app/pic/moi.jpg' />
  151.     </div>
  152.  
  153.     <h1>Organic Search</h1>
  154.  
  155.     <input id='input' type='text' placeholder='Javascript animation ( loader + play button )' readonly />
  156.     <input class='search' onclick='Default()' type='button' value='Default'/><p>
  157.  
  158.     <input id='input' type='text' placeholder='Javascript animation ( loader + play button )' readonly />
  159.     <input class='search' onclick='Style()' type='button' value='Style'/><p>
  160.  
  161.     <input id='input' type='text' placeholder='Javascript animation ( loader + play button )' readonly />
  162.     <input class='search' onclick='Script()' type='button' value='Script'/><p>
  163.  
  164.     <input id='input' type='text' placeholder='Javascript animation ( loader + play button )' readonly />
  165.     <input class='search' onclick='web()' type='button' value='HTML' />
  166.  
  167.   </button>
  168.  
  169.  
  170.   <script>
  171.     function Default() {
  172.       window.open('https://1xpto.netlify.app/posts/Javascript animation ( loader + play button )/local/default.css');
  173.      // audio.play();
  174.     }
  175.     function Style() {
  176.       window.open('https://1xpto.netlify.app/posts/Javascript animation ( loader + play button )/local/style.css');
  177.      // audio.play();
  178.     }
  179.     function Script() {
  180.       window.open('https://1xpto.netlify.app/posts/Javascript animation ( loader + play button )/local/script.js');
  181.      // audio.play();
  182.     }
  183.     function web() {
  184.       window.open('https://1xpto.netlify.app/posts/Javascript animation ( loader + play button )/local/index.html');
  185.      // audio.play();
  186.     }
  187.   </script>
  188. </body></html>
  189.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement