Advertisement
1xptolevitico69

Intro to OOP(audio constructor related)

Jul 26th, 2024
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.64 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.    <head>
  4.       <meta charset="UTF-8" />
  5.       <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6.       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7.       <title>SETUP</title>
  8.       <style>
  9.  
  10.  
  11.          body {
  12.             margin: 0;
  13.          }
  14.  
  15.          * {
  16.             box-sizing: border-box;
  17.             font-family: arial black;
  18.          }
  19.  
  20.          .top {
  21.             width: 100%;
  22.             height: 100vh;
  23.             border: 0;
  24.             outline: 0;
  25.             background-color: white;
  26.          }
  27.  
  28.          .top a {
  29.             display: block;
  30.             color: red;
  31.             margin: 0 5px;
  32.             text-decoration: none;
  33.             font-weight: 900;
  34.             font-size: 25px;
  35.          }
  36.  
  37.          .top input {
  38.             display: inline-block;
  39.             margin: 3px;
  40.          }
  41.  
  42.          h1 {
  43.             margin: 30px 0;
  44.          }
  45.  
  46.          .search {
  47.             outline: 3px solid red;
  48.             font-size: 20px;
  49.             width: 150px;
  50.             text-align: center;
  51.             border: 2px solid white;
  52.             color: red;
  53.             background-color: red;
  54.             color: white;
  55.          }
  56.  
  57.          @media (orientation: portrait) and (max-width:425px){
  58.             .top input {
  59.                display: block;
  60.                margin: 9px auto;
  61.             }
  62.  
  63.             h1 {
  64.                font-size: 20px;
  65.             }
  66.          }
  67.  
  68.          @media (orientation: landscape) and (max-width: 640px) {
  69.             h1 {
  70.                font-size: 20px;
  71.             }
  72.  
  73.             .avatar {
  74.                margin: auto;
  75.             }
  76.          }
  77.       </style>
  78.    </head>
  79.  
  80.    <body>
  81.       <audio id="audio" loop src="https://1xpto.netlify.app/audio/trance.mp3"></audio>
  82.  
  83.       <button class="top">
  84.          <a href="https://1xpto.netlify.app/">Home</a>
  85.          <a href="https://www.facebook.com/ManuelJSAndrade/">Facebook</a>
  86.  
  87.          <h1>Intro to OOP(audio constructor related)</h1>
  88.  
  89.          <input class="search" onclick="Style()" type="button" value="Src Code" />
  90.          <input class="search" onclick="web()" type="button" value="HTML" />
  91.       </button>
  92.  
  93.       <script>
  94.          function Style() {
  95.             audio.play();
  96.             foo = window.open("https://1xpto.netlify.app/articles/javascript%20audio%20constructor/local/index.txt");
  97.          }
  98.  
  99.          function web() {
  100.             audio.pause();
  101.             window.open("https://1xpto.netlify.app/articles/javascript%20audio%20constructor/local", "_self");
  102.             foo.close();
  103.          }
  104.       </script>
  105.    </body>
  106. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement