Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 2 #9

Open
wants to merge 5 commits into
base: step-1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
##Getting started
* `npm i`

##Todo

create a basic web server with expressthat can handle a GET request for whatever resource you'd like and whatever url you want. Navigate to that url in the browser and see if yuor resource is there. The solution is on the `step-1-fix` branch
##Solution to step-1
542 changes: 542 additions & 0 deletions client/app.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<title>Lions</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<main>
<h1>Lions</h1>

<form name="lions">
<div class="textbox">
<input
type="text"
required
name="lion-name"/>
<span class="highlight"></span>
<span class="bar"></span>
<label>lion name</label>
</div>

<div class="textbox">
<input
type="text"
required
name="lion-pride"/>
<span class="highlight"></span>
<span class="bar"></span>
<label>lion pride</label>
</div>


<input type="number" name="lion-age">
<select name="select">
<option value="female" selected>female</option>
<option value="male">male</option>
</select>
<button>submit</button>
</form>

<div class="content">
<ul class="lion-list"></ul>
</div>
</main>
<script src="app.js"></script>
</body>
</html>
Loading