Advertisement
1xptolevitico69

Audio Fade Out

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