<html> <head> <title>GLink</title> <link rel="stylesheet" href="index.css"> </head> <body> <div id="root"> <h1>Link Shortener</h1> <form id="form" method="GET" action="result.php" onsubmit="return validate()"> <!-- <form id="form"> --> <label for="url">URL:</label><span class="mandatory">*</span> <input type="text" name="url" id="URL" value="https://example.com" required><br><br> <label for="labels">GLink:</label><span class="mandatory">*</span> <label for="GLink" id="labels" class="glink">glink.zip/</label><input type="text" name="glink" id="GLink" class="glink" value="exampleWebsite"> <span role="alert" id="error" aria-hidden="true">Invalid URL</span> <br><br> <label for="restricted">Geo-restricted?: </label> <input type="checkbox" name="restricted" id="restricted"> <span id="loadingText" style="position: relative; left: 20px;"></span> <br><br> <label for="radius" hidden="hidden" id="radius_label">Radius: </label> <span id="mandatory-radius" class="mandatory" hidden="hidden">*</span> <select name="radius" id="radius" hidden="hidden"> <option value="" selected disabled hidden>Select a radius</option> <option value="5">5 mi</option> <option value="10">10 mi</option> <option value="15">15 mi</option> <option value="20">20 mi</option> </select> <br><br> <input type="submit" id="button" value="Zip It!"> <input type="hidden" name="latitude" id="latitude"> <input type="hidden" name="longitude" id="longitude"> </form> <hr> <div> <img src="cat.gif"> </div> <script src="index.js"></script> </div> </body> </html>