Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- This is the OFFICIAL HTML document used in the Shortcut "Check For Update" located at: https://routinehub.co/shortcut/20984/
- All assets used in my shortcuts and all other platforms are free to use... please remember to give credit to me so that others too can make super nice and easy shortcuts, assets, and html pages! Thanks! :)
- -->
- <script>
- function getWeather() {
- if (document.getElementById('search').value === "New York") {
- document.getElementById("demo1").innerHTML = "Loading weather for New York...";
- } else {
- document.getElementById("demo1").innerHTML = "City name isn't valid. Try again";
- }
- }
- </script>
- <style>
- a {
- color: rgb(12, 254, 170);
- background-color: transparent;
- text-decoration: none;
- }
- a.TOC2 {
- color: rgb(163,26,247);
- }
- img {
- max-width: 100%;
- height: auto;
- padding-top: 0px;
- padding-bottom: 0px;
- position: center;
- }
- code {
- color: rgb(230, 153, 168);
- background-color: rgb(36, 36, 36);
- text-decoration: none;
- font-family: monospace;
- padding-top: 2px;
- padding-right: 3px;
- padding-bottom: 2px;
- padding-left: 3px;
- }
- h1 {
- color: rgb(172, 172, 172);
- background-color: transparent;
- text-decoration: none;
- text-align: center;
- font-size: 35px;
- padding-top: 0px;
- padding-bottom: 0px;
- position: relative;
- margin: 10px;
- }
- h2 {
- color: rgb(172, 172, 172);
- background-color: transparent;
- text-decoration: none;
- text-align: center;
- font-size: 25px;
- padding-top: 0px;
- padding-bottom: 0px;
- position: relative;
- margin: 5px;
- }
- h2.toppy {
- color: rgb(172, 172, 172);
- text-decoration: none;
- text-align: center;
- font-size: 28px;
- padding-top: 0px;
- padding-bottom: 0px;
- height: 30px;
- background: linear-gradient(to right, rgb(38,216,255), rgb(201,201,201), rgb(38,216,255));
- position: relative;
- margin: 5px;
- }
- h3 {
- color: rgb(179, 189, 187);
- background-color: transparent;
- text-decoration: none;
- text-align: center;
- font-size: 22px;
- padding-top: 5px;
- padding-bottom: 5px;
- position: relative;
- margin: 5px;
- }
- h3.toppy {
- color: rgb(172, 172, 172);
- text-decoration: none;
- text-align: center;
- font-size: 20px;
- padding-top: 0px;
- padding-bottom: 0px;
- height: 30px;
- background: linear-gradient(to right, rgb(38,216,255), rgb(201,201,201), rgb(38,216,255));
- position: relative;
- margin: 5px;
- }
- h4 {
- color: rgb(179, 189, 187);
- background-color: transparent;
- text-decoration: none;
- font-size: 20px;
- padding-top: 5px;
- padding-bottom: 5px;
- position: relative;
- margin: 5px;
- }
- body {
- color: rgb(255, 255, 255);
- background-color: rgb(0, 0, 0);
- text-decoration: none;
- }
- ul {
- padding-right: 8px;
- padding-left: 15px;
- position: relative;
- margin: 5px;
- }
- ol {
- padding-right: 8px;
- padding-left: 30px;
- position: relative;
- margin: 5px;
- }
- li {
- padding-top: 4px;
- padding-bottom: 4px;
- }
- p {
- background-color: transparent;
- text-decoration: none;
- font-size: 15px;
- }
- button {
- color: rgb(37,32,37);
- background-color: rgb(205,156,204);
- font-size: 14px;
- padding-top: 0px;
- padding-bottom: 0px;
- border: none;
- }
- p.title {
- color: rgb(203,204,204);
- background-color: transparent;
- text-decoration: none;
- font-weight: bold;
- font-size: 14px;
- padding-top: 0px;
- padding-bottom: 0px;
- padding-right: 5px;
- padding-left: 10px;
- }
- p.notes {
- color: rgb(164,164,164);
- font-size: 12px;
- padding-top: 0px;
- padding-bottom: 0px;
- padding-right: 5px;
- padding-left: 10px;
- }
- hr.dashed {
- border: none;
- border-top: 4px dashed #bbb;
- background-color: transparent;
- text-decoration: none;
- border: none;
- }
- hr.dotted {
- border: none;
- border-top: 4px dotted #bbb;
- background-color: transparent;
- text-decoration: none;
- border: none;
- }
- hr.solid {
- border: none;
- border-top: 4px solid #bbb;
- background-color: transparent;
- text-decoration: none;
- border: none;
- }
- hr.rounded {
- border: none;
- border-top: 4px solid #bbb;
- border-radius: 4px;
- background-color: transparent;
- text-decoration: none;
- }
- hr.gradient {
- border: none;
- height: 3px;
- background: linear-gradient(to right, rgb(38,216,255), rgb(201,201,201), rgb(38,216,255));
- }
- hr.surround_grad {
- border: none;
- height: 3px;
- background: linear-gradient(to right, rgb(195,40,153), rgb(201,201,201), rgb(195,40,153));
- }
- .gradient-underline {
- padding-bottom: 4px;
- position: relative;
- display:table;
- margin:auto;
- }
- .gradient-underline::after {
- background: linear-gradient(300deg, rgba(104, 85, 211, 0.9) 10%, red 100%);
- content: "";
- position: absolute;
- bottom: 0;
- left: 0;
- height: 2px;
- width: 100%;
- /* we show from 0 to 7px then a gap until 9px (2px gap)*/
- -webkit-mask:repeating-linear-gradient(to right,#fff 0 7px,transparent 0 9px);
- mask:repeating-linear-gradient(to right,#fff 0 7px,transparent 0 9px);
- }
- .down_grad {
- color: rgb(214, 92, 92);
- padding-bottom: 4px;
- position: relative;
- margin:auto;
- }
- .down_grad::after {
- background: linear-gradient(300deg, rgba(154, 0, 255, 0.8) 12%, cyan 100%);
- content: "";
- position: absolute;
- bottom: 0;
- left: 0;
- height: 2px;
- width: 100%;
- /* we show from 0 to 7px then a gap until 9px (2px gap)*/
- -webkit-mask:repeating-linear-gradient(to right,#fff 0 7px,transparent 0 9px);
- mask:repeating-linear-gradient(to right,#fff 0 7px,transparent 0 9px);
- }
- .guide {
- color: rgb(56, 218, 228);
- background-color: transparent;
- text-decoration: none;
- text-align: center;
- padding-top: 4px;
- }
- .guide1 {
- text-align: center;
- }
- .under {
- text-align: center;
- font-weight: 800;
- font-size: 15px;
- }
- .under1 {
- text-align: center;
- font-size: 15px;
- }
- .ios {
- color: rgb(172, 172, 172);
- background-color: transparent;
- text-decoration: none;
- font-weight: bold;
- }
- .verNdate {
- font-weight: bold;
- font-size: 18px;
- }
- .TOC {
- padding-right: 5px;
- padding-left: 45px;
- padding-top: 8px;
- padding-bottom: 8px;
- }
- .TOC1 {
- padding-top: 4px;
- padding-bottom: 4px;
- }
- </style>
- <html>
- <head>
- <title>Check For Update - More Information</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- </head>
- <body>
- <h2>My First JavaScript</h2>
- <button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display Date and Time.</button>
- <p id="demo"></p>
- <hr class="rounded">
- <input id="search" type="text" name="input" placeholder="Search City...">
- <button onclick="document.getElementById('demo1').innerHTML = getWeather()">Get weather</button>
- <p id="demo1"></p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement