Advertisement
1xptolevitico69

30s Countdown timer + snooze

Oct 19th, 2022
962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.30 KB | None | 0 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: absolute;
  9.       left: 0;
  10.       top: 10px;
  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.       border-radius: 50%;
  28.       border: 4px double navy;
  29.     }
  30.  
  31.     body {
  32.       margin: 0;
  33.     }
  34.  
  35.     .top {
  36.       width: 100%;
  37.       height: 100vh;
  38.       border: 0;
  39.       outline: 0;
  40.       background-color: white;
  41.     }
  42.  
  43.     #input {
  44.       box-sizing: border-box;
  45.       height: 50px;
  46.       width: 50%;
  47.       font-size: 2vw;
  48.       padding: 0 10px;
  49.       outline: 0;
  50.       border: 0;
  51.       background-color: red;
  52.       border-radius: 10px 0 0 10px;
  53.     }
  54.  
  55.     .search {
  56.       outline: 0;
  57.       height: 50px;
  58.       font-size: 2vw;
  59.       width: 150px;
  60.       text-align: center;
  61.       border: 0;
  62.       color: red;
  63.       background-color: red;
  64.       color: white;
  65.       border-radius: 0 10px 10px 0;
  66.     }
  67.  
  68.     #input::placeholder {
  69.       color: white;
  70.     }
  71.  
  72.     h1 {
  73.       font-size: 3vw;
  74.       font-family: verdana;
  75.     }
  76.  
  77.     @media all and (orientation:portrait) and (max-width:425px) {
  78.       h1 {
  79.         font-size: 9vw;
  80.       }
  81.  
  82.       #input {
  83.         width: 100%;
  84.         height: 40px;
  85.         font-size: 16px;
  86.         border-radius: 10px;
  87.       }
  88.  
  89.       .search {
  90.         font-size: 16px;
  91.         height: 40px;
  92.         margin: 5px 0;
  93.         width: 150px;
  94.         border-radius: 10px;
  95.       }
  96.  
  97.       .topnave a {
  98.         color: red;
  99.         text-decoration: underline;
  100.         font-family: verdana;
  101.         font-weight: 900;
  102.         font-size: 20px;
  103.       }
  104.     }
  105.  
  106.     @media all and (orientation:landscape) and (max-width:768px) {
  107.       .avatar {
  108.         display: none;
  109.       }
  110.  
  111.       h1 {
  112.         font-size: 5vw;
  113.       }
  114.  
  115.       #input {
  116.         width: 90%;
  117.         font-size: 4vw;
  118.         border-radius: 10px;
  119.       }
  120.  
  121.       .search {
  122.         font-size: 4vw;
  123.         margin: 5px 0;
  124.         width: 150px;
  125.         border-radius: 10px;
  126.       }
  127.  
  128.       .topnave a {
  129.         color: red;
  130.         text-decoration: underline;
  131.         font-family: verdana;
  132.         font-weight: 900;
  133.         font-size: 5vw;
  134.       }
  135.     }
  136.   </style>
  137. </head>
  138.  
  139. <body>
  140.   <audio id='audio' loop src='https://1xpto.netlify.app/audio/mediauto.mp3'></audio>
  141.  
  142.   <button class='top'>
  143.  
  144.     <div class='topnave'>
  145.       <a href='https://1xpto.netlify.app/'>Home</a>
  146.       <a href='https://1xpto.netlify.app/media/'>Media</a>
  147.       <img class='avatar' src='https://1xpto.netlify.app/pic/moi.jpg' />
  148.     </div>
  149.  
  150.     <h1>Organic Search</h1>
  151.     <input id='input' type='text' placeholder='30s Countdown timer + snooze' readonly />
  152.     <input class='search' onclick='foo()' type='button' value='Search' />
  153.  
  154.   </button>
  155.  
  156.   <script>
  157.     function foo() {
  158.       window.open('https://1xpto.netlify.app/posts/30s Countdown timer + snooze/local/index.html');
  159.       audio.play();
  160.     }
  161.   </script>
  162. </body></html>
  163.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement