Created
January 8, 2020 13:08
-
-
Save Odomhae/a7cd48e211fbcc3e5b099a9cbe75cfa7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- EJS stands for Embedded JavaScript --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test</title> | |
<link rel="stylesheet" type="text/css" href="/css/style.css"> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<div class="container"> | |
<fieldset> | |
<form action="/" method="post"> | |
<input name="city" type="text" class="ghost-input" placeholder=" Enter a City" required> | |
<input type="submit" class="ghost-button" value="Get Weather"> | |
</form> | |
<% if(weather !== null){ %> | |
<p><%= weather %> </p> | |
<% } %> | |
<% if(error !== null) {%> | |
<p><%= error %></p> | |
<% } %> | |
</fieldset> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment