forked from gertie-sheshe/techinpink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#118543823] Refactors code - Move html from script.js to index.html
- Loading branch information
Eric Gichuri
committed
Apr 29, 2016
1 parent
93dad3e
commit eef450d
Showing
2 changed files
with
48 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css"> | ||
<link rel="stylesheet" href="css/style.css"> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Tech In Pink</title> | ||
</head> | ||
|
||
|
@@ -21,9 +21,11 @@ | |
<ul id="nav-mobile" class="right hide-on-med-and-down"> | ||
<li><a id="get-started">GET STARTED</a></li> | ||
</ul> | ||
<ul id="nav-side" class="side-nav"> | ||
<li><a id="get-started">GET STARTED</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<div id="o" class="row"> | ||
<div id="black"> | ||
<div id="back"></div> | ||
|
@@ -37,7 +39,48 @@ <h4 id="font">Register all the awesome ladies at Start from Scratch</h4> | |
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="p" class='row'> | ||
<h4 class='col s12' id='register'>Register Attendee: </h4> | ||
<form class='col s12'> | ||
<div class='row'> | ||
<div class='input-field col s6'> | ||
<input type='text' id='attendee'> | ||
<label for='attendee'> Attendee </label> | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class='input-field col s6'> | ||
<input type='email' id='email'> | ||
<label for='email'> Email </label> | ||
<a id='post-button' class='waves-effect waves-light btn #880e4f pink darken-4'>Add</a> | ||
</div> | ||
</div> | ||
</form> | ||
<div class='container centered'><a id='get-button' class='waves-effect waves-light btn #880e4f pink darken-4'>View all</a></div> | ||
<br/> | ||
<hr> | ||
<div class='col s12'> | ||
<table class='striped' id='list'> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Email</th> | ||
<th>Venue</th> | ||
<th>Day</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td class='name'>Gertrude</td> | ||
<td>[email protected]</td> | ||
<td>Andela</td> | ||
<td>Saturday</td> | ||
<td><i class='material-icons delete'>delete</i></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,44 +66,8 @@ $(function () { | |
|
||
// GET STARTED button function | ||
$('#get-started').on('click', function() { | ||
document.getElementById('o').innerHTML = "<div class='row'><h4 class='col s12' id='register'>Register Attendee: </h4> " + | ||
"<form class='col s12'> " + | ||
"<div class='row'> " + | ||
"<div class='input-field col s6'> " + | ||
"<input type='text' id='attendee'> " + | ||
"<label for='attendee'> Attendee </label>" + | ||
"</div> " + | ||
"</div>" + | ||
"<div class='row'> " + | ||
"<div class='input-field col s6'> " + | ||
"<input type='email' id='email'> " + | ||
"<label for='email'> Email </label>" + | ||
"<a id='post-button' class='waves-effect waves-light btn #880e4f pink darken-4'>Add</a>" + | ||
"</div> " + | ||
"</div>" + | ||
"</form> " + | ||
"<div class='container centered'><a id='get-button' class='waves-effect waves-light btn #880e4f pink darken-4'>View all</a></div><br/><hr>" + | ||
"<div class='col s12'> " + | ||
"<table class='striped' id='list'> " + | ||
"<thead> " + | ||
"<tr> " + | ||
"<th>Name</th> " + | ||
"<th>Email</th> " + | ||
"<th>Venue</th> " + | ||
"<th>Day</th>" + | ||
"</tr> " + | ||
"</thead> " + | ||
"<tbody> " + | ||
"<tr> " + | ||
"<td class='name'>Gertrude</td> " + | ||
"<td>[email protected]</td>" + | ||
"<td>Andela</td>" + | ||
"<td>Saturday</td> " + | ||
"<td><i class='material-icons delete'>delete</i></td> " + | ||
"</tr> " + | ||
"</tbody> " + | ||
"</table> " + | ||
"</div></div>"; | ||
$('#o').fadeOut(); | ||
$('#p').show(); | ||
$('#get-started').text(''); | ||
}); | ||
}); |