Advertisement
1xptolevitico69

Javascript intro to events

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