Advertisement
1xptolevitico69

Javascript OOP MP3 Player ( txt+html )

Nov 3rd, 2022 (edited)
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.44 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: relative;
  9.       left: 0;
  10.       margin:40px 0;
  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.       position:sticky;
  37.       width: 100%;
  38.       border: 0;
  39.       outline: 0;
  40.       background-color: transparent;
  41.     }
  42.  
  43.     #input {
  44.       box-sizing: border-box;
  45.       height: 50px;
  46.       width: 50%;
  47.       font-size: 1.5vw;
  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: 1.5vw;
  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.  
  107.     @media all and (orientation:landscape) and (max-width:768px) {
  108.       .avatar {
  109.         display: none;
  110.       }
  111.  
  112.       h1 {
  113.         font-size: 5vw;
  114.       }
  115.  
  116.       #input {
  117.         width: 70%;
  118.         font-size: 3vw;
  119.         border-radius: 10px;
  120.       }
  121.  
  122.       .search {
  123.         font-size: 3vw;
  124.         margin: 5px 0;
  125.         width: 150px;
  126.         border-radius: 10px;
  127.       }
  128.  
  129.       .topnave a {
  130.         color: red;
  131.         text-decoration: underline;
  132.         font-family: verdana;
  133.         font-weight: 900;
  134.         font-size: 5vw;
  135.       }
  136.     }
  137.   </style>
  138. </head>
  139.  
  140. <body>
  141.  
  142.  
  143.   <button class='top'>
  144.  
  145.     <div class='topnave'>
  146.       <a href='https://1xpto.netlify.app/'>Home</a>
  147.       <a href='https://1xpto.netlify.app/media/'>Media</a>
  148.       <img class='avatar' src='https://1xpto.netlify.app/pic/moi.jpg' />
  149.     </div>
  150.  
  151.     <h1>Organic Search</h1>
  152.     <input id='input' type='text' placeholder='Player Mp3' readonly />
  153.     <input class='search' onclick='source()' type='button' value='TXT'/><p>
  154.     <input id='input' type='text' placeholder='Player Mp3' readonly />
  155.     <input class='search' onclick='web()' type='button' value='HTML' />
  156.   </button>
  157.  
  158.   <script>
  159.     function source() {
  160.       window.open('https://1xpto.netlify.app/posts/Player Mp3/local/index.txt');
  161.     }
  162.     function web() {
  163.       window.open('https://1xpto.netlify.app/posts/Player Mp3/local/index.html');
  164.     }
  165.   </script>
  166. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement