Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title></title>
- <style>
- body {
- margin: 0;
- }
- .top {
- width: 100%;
- height: 100vh;
- border: 0;
- outline: 0;
- background-color: white;
- }
- #input {
- width: 50%;
- font-size: 3vw;
- padding: 0 10px;
- outline: 0;
- border: 1px solid;
- }
- .search {
- outline: 0;
- font-size: 3vw;
- width: 150px;
- text-align: center;
- border: 1px solid black;
- color: red;
- background-color: white;
- }
- #input::placeholder {
- color: red;
- }
- h1 {
- font-size: 3vw;
- }
- @media all and (orientation:portrait) and (max-width:425px) {
- h1 {
- font-size: 9vw;
- }
- #input {
- width: 90%;
- font-size: 7vw;
- }
- .search {
- font-size: 7vw;
- margin: 5px 0;
- width: 150px;
- }
- }
- @media all and (orientation:landscape) and (max-width:768px) {
- h1 {
- font-size: 5vw;
- }
- #input {
- width: 90%;
- font-size: 4vw;
- }
- .search {
- font-size: 4vw;
- margin: 5px 0;
- width: 150px;
- }
- }
- </style>
- </head>
- <body>
- <button class='top'>
- <h1>Organic Search</h1>
- <input id='input' type='text' placeholder='Javascript Audio bars animation' readonly />
- <input class='search' onclick='foo()' type='button' value='Search' />
- </button>
- <script>
- function foo() {
- location.href = 'https://1xpto.netlify.app/posts/javascript%20audio%20bars%20animation/local/index.html';
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement