Advertisement
1xptolevitico69

Javascript audio animation

Aug 22nd, 2022
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.75 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5.   <title></title>
  6.   <style>
  7.     body {
  8.       margin: 0;
  9.     }
  10.  
  11.     .top {
  12.       width: 100%;
  13.       height: 100vh;
  14.       border: 0;
  15.       outline: 0;
  16.       background-color: white;
  17.     }
  18.  
  19.     #input {
  20.       width: 50%;
  21.       font-size: 3vw;
  22.       padding: 0 10px;
  23.       outline: 0;
  24.       border: 1px solid;
  25.     }
  26.  
  27.     .search {
  28.       outline: 0;
  29.       font-size: 3vw;
  30.       width: 150px;
  31.       text-align: center;
  32.       border: 1px solid black;
  33.       color: red;
  34.       background-color: white;
  35.     }
  36.  
  37.     #input::placeholder {
  38.       color: red;
  39.     }
  40.  
  41.     h1 {
  42.       font-size: 3vw;
  43.     }
  44.  
  45.     @media all and (orientation:portrait) and (max-width:425px) {
  46.       h1 {
  47.         font-size: 9vw;
  48.       }
  49.  
  50.       #input {
  51.         width: 90%;
  52.         font-size: 7vw;
  53.       }
  54.  
  55.       .search {
  56.         font-size: 7vw;
  57.         margin: 5px 0;
  58.         width: 150px;
  59.       }
  60.     }
  61.  
  62.     @media all and (orientation:landscape) and (max-width:768px) {
  63.       h1 {
  64.         font-size: 5vw;
  65.       }
  66.  
  67.       #input {
  68.         width: 90%;
  69.         font-size: 4vw;
  70.       }
  71.  
  72.       .search {
  73.         font-size: 4vw;
  74.         margin: 5px 0;
  75.         width: 150px;
  76.       }
  77.     }
  78.   </style>
  79. </head>
  80. <body>
  81.  
  82.   <button class='top'>
  83.  
  84.     <h1>Organic Search</h1>
  85.     <input id='input' type='text' placeholder='Javascript Audio bars animation' readonly />
  86.     <input class='search' onclick='foo()' type='button' value='Search' />
  87.  
  88.   </button>
  89.  
  90.   <script>
  91.     function foo() {
  92.       location.href = 'https://1xpto.netlify.app/posts/javascript%20audio%20bars%20animation/local/index.html';
  93.     }
  94.   </script>
  95. </body>
  96. </html>
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement