<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Lunar Weather</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <meta name="google-site-verification" content="zP5enUZT6qNykG1WKbhKToEj1QbYnEooas0w3w6EwFg" />
    <meta name="description" content="Latest weather data and forecasts around the world. All-in-one weather dashboard & more...">
    <!--CSS & ICON -->
    <link rel='stylesheet' type='text/css' href='/css/styles.css'>
    <link rel="shortcut icon" href="/images/logo-trans.png">
    <script src="https://kit.fontawesome.com/ccbdc28270.js" crossorigin="anonymous"></script>

    <!--Bootstrap & JQuery-->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    
</head>
<body>
    <section id="top">
        <div class="container-fluid container-fullwidth padding-top:20px">
            <!--Navigation Bar-->
            <nav class="navbar navbar-expand-lg navbar-dark">
                <a class="navbar-brand" style="font-family: 'Indie Flower', cursive;font-size:35px;padding-left:5%;" href="#">
                    <img src="/images/logo-trans.png" width="90" height="90">
                    Lunar Weather
                </a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="form-main">

            </div>         
                <div class="collapse navbar-collapse navbar-mn" id="navbarTogglerDemo01">
                    <ul class="navbar-nav ml-auto"> 
                        <li class="nav-item"><a class="nav-link" href=""><i class="fas fa-map-marker-alt"></i> location</a></li>
                        <li class="nav-item"><a class="nav-link" href=""></i>About</a></li>
                    </ul>
                </div>
            </nav>
        </div>
    </section>    
    <section id="weather-data">
        <div class="form-main">
            <form class="form-inline my-2 my-lg-0 search-grp" method="POST" action="/search">
                <input class="form-control mr-sm-2" name="search" size="50" type="search" placeholder="Search Cities" aria-label="Search">
                <button class="btn btn-warning" type="submit"><i class="fas fa-search"></i> Search</button>
            </form>
        </div>
        <div class="container weather-boxes">
            <div class="w-box-1">
                <% if(Temp1==""){ %>
                    <img src="/images/loading.gif">
                
                <% }else{ %>
                    <h2><i class="fas fa-map-marker-alt"></i> <%=Location1 %></h2>
                    <h4><img src="<%=Img_url1 %>"><%=Temp1 %>°C</h4>
                    <h4><%=Description1 %></h4>
                    <h4><i class="fas fa-wind"></i> <%=WindSpeed1 %>km/h</h4>
                <% } %>
            </div>
            <div class="w-box-2">
                <% if(Location==""){ %>
                    <img src="/images/loading.gif">
                
                <% }else{ %>
                    <h2><i class="fas fa-map-marker-alt"></i> <%=Location %></h2>
                    <h4><img src="<%=Img_url %>"><%=Temp %>°C</h4>
                    <h4><%=Description %></h4>
                    <h4><i class="fas fa-wind"></i> <%=WindSpeed %>km/h</h4>
                <% } %>
            </div>
            <div class="w-box-3">
                <% if(Temp3==""){ %>
                    <img src="/images/loading.gif">
                
                <% }else{ %>
                    <h2><i class="fas fa-map-marker-alt"></i> <%=Location3 %></h2>
                    <h4><img src="<%=Img_url1 %>"><%=Temp3 %>°C</h4>
                    <h4><%=Description3 %></h4>
                    <h4><i class="fas fa-wind"></i> <%=WindSpeed3 %>km/h</h4>
                <% } %>
            </div>
        </div>
    </section>

    <script src='/JS/main.js'></script>
</body>
</html>