206 lines
8.3 KiB
HTML
206 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Yummy Everywhere</title>
|
|
|
|
<!-- CSS -->
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />
|
|
<link href="css/style.css" type="text/css" rel="stylesheet" />
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
|
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
|
<script src="js/materialize.js"></script>
|
|
<script src="js/init.js"></script>
|
|
</head>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$.getRestanauent();
|
|
var foodText = GetURLParameter('food');
|
|
$("#foodSearch").val(foodText);
|
|
$("#foodSearch").keyup(function() {
|
|
|
|
$("#searchMessage").html("");
|
|
foodText = $("#foodSearch").val();
|
|
$(".searchRest").hide().filter(":contains('" + foodText + "')").show();
|
|
if($(".searchRest:hidden").length >= $(".searchRest").length){
|
|
$("#searchMessage").html("<h4>Sorry, not found about "+ foodText+ " Restanauent. <a href='search.html'>Click Here to see All Restanauent</a></h4>'");
|
|
}
|
|
});
|
|
|
|
function GetURLParameter(sParam) {
|
|
var sPageURL = window.location.search.substring(1);
|
|
var sURLVariables = sPageURL.split('&');
|
|
for (var i = 0; i < sURLVariables.length; i++) {
|
|
var sParameterName = sURLVariables[i].split('=');
|
|
if (sParameterName[0] == sParam)
|
|
return sParameterName[1];
|
|
}
|
|
}
|
|
|
|
});
|
|
</script>
|
|
|
|
<body>
|
|
<nav>
|
|
<div class="nav-wrapper container">
|
|
<a id="logo-container" href="index.html" class="brand-logo ">Yummy Everywhere</a>
|
|
|
|
<ul class="right">
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<ul id="slide-out" class="sidenav">
|
|
</ul>
|
|
<!--- Fav Box -->
|
|
<div id="modal_box" class="bottom-sheet"></div>
|
|
<div id="filter" class="modal" style="width: 400px">
|
|
<div class="modal-content">
|
|
<h4 style="border-bottom: 0.3px solid">Types of food Select</h4>
|
|
<p style="margin-top: 30px">
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterNoodles" value="Noodles" />
|
|
<span>Noodles</span>
|
|
</label>
|
|
</p>
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterKoeran" value="Koeran"/>
|
|
<span>Koeran</span>
|
|
</label>
|
|
</p>
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterTaiwanese" value="Taiwanese"/>
|
|
<span>Taiwanese</span>
|
|
</label>
|
|
</p>
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterRice" value="Rice"/>
|
|
<span>Rice</span>
|
|
</label>
|
|
</p>
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterChinese" value="Chinese"/>
|
|
<span>Chinese</span>
|
|
</label>
|
|
</p>
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterWestern" value="Western"/>
|
|
<span>Western</span>
|
|
</label>
|
|
</p>
|
|
<p style="margin-left: 10px">
|
|
<label>
|
|
<input type="checkbox" id="filterDimSum" value="Dim Sum"/>
|
|
<span>Dim Sum</span>
|
|
</label>
|
|
</p>
|
|
</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a href="#!" class="modal-close waves-effect waves-green btn-flat" id="filterClear">Clear All</a>
|
|
<a href="#!" class="modal-close waves-effect waves-green btn-flat" id="filterApply">Apply</a>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="index-banner" class="parallax-container">
|
|
<div class="parallax"><img src="images/background1.jpg"></div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row" id="menu">
|
|
<div class="row">
|
|
<div class="col s12 m8 l7">
|
|
|
|
<div class="card-panel grey lighten-5 ">
|
|
<div class="row" style="height: 50px; margin-top: -15px; margin-right:0">
|
|
<div class="input-field col s9 m8">
|
|
<i class="material-icons prefix">search</i>
|
|
<input placeholder="Restaurant Name or Food" id="foodSearch" type="text" id="foodSearch" class="validate">
|
|
</div>
|
|
|
|
<div class="col s3 m3" style="margin-top: 20px;">
|
|
<a class="waves-effect waves-light btn modal-trigger" href="#filter" style="width:51px"><i class="material-icons medium">offline_pin</i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="searchMessage"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<iv class="container">
|
|
<div class="section">
|
|
<div class="row">
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- Modal Structure -->
|
|
<div id="modal1" class="modal" style="width: 400px;">
|
|
<div class="row center-align">
|
|
<div class="col s12 modal-content">
|
|
<span class="flow-text" id="loginInfo">
|
|
<div id="loginAlert"></div>
|
|
<h4 style="border-bottom: 1px solid #ebebeb; height: 50px;">LOGIN</h4>
|
|
<div class="input-field col s12">
|
|
<i class="material-icons prefix">account_circle</i>
|
|
<input id="loginEmail" type="text" class="validate" required>
|
|
<label for="loginEmail">Email</label>
|
|
</div><br>
|
|
<div class="input-field col s12">
|
|
<i class="material-icons prefix">vpn_key</i>
|
|
<input id="loginPwd" type="password" class="validate" required>
|
|
<label for="loginPwd">Password</label>
|
|
</div>
|
|
|
|
<a class="waves-effect waves-light btn col s10 offset-s1" style="margin-top: 50px" id="btnSubmitLogin">LOGIN</a>
|
|
<h6 class=" col s12">Don"t have an account? <a href="#" id="createAccount">Sign up here</a></h6>
|
|
</span>
|
|
<span class="flow-text" id="createInfo">
|
|
<div id="pwdAlert"></div>
|
|
<h4 style='border-bottom: 1px solid #ebebeb; height: 50px;'>REGISTER</h4><div class='input-field col s6'><input id='first_name' type='text' class='validate' required><label for='first_name'>First Name</label></div><div class='input-field col s6'><input id='last_name' type='text' class='validate' required><label for='last_name'>Last Name</label></div><div class='input-field col s12'><input id='regEmail' type='email' class='validate' required><label for='regEmail'>Email</label></div><div class='input-field col s12'><input id='regPassword' type='password' class='validate' required><label for='regPassword'>Password</label></div><div class='input-field col s12'><input id='checkPassword' type='password' class='validate' required><label for='checkPassword'>Confirm Password</label></div><a class='waves-effect waves-light btn col s10 offset-s1' style='margin-top: 50px' id='btnSubmitRegister'>REGISTER</a><h6 class='col s12' id="changeLogin">You have an account? <a href='#' id='loginAccount'>Login</a></h6>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Close</a>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="page-footer teal">
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
<div class="col l3 s12">
|
|
<h5 class="white-text">Connect</h5>
|
|
<ul>
|
|
<li><a class="white-text" href="aboutus.html">About Us</a></li>
|
|
<li><a class="white-text" href="userGuide.html">User Guide</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="footer-copyright">
|
|
<div class="container">Copyright © 2019 InnoTech HK Inc. All rights reserved</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Scripts-->
|
|
|
|
</body>
|
|
|
|
</html>
|