Skip to content

Commit

Permalink
Merge pull request #48 from dewv/gregWIP
Browse files Browse the repository at this point in the history
#43 Broswer register form
  • Loading branch information
tydingsl authored Feb 22, 2019
2 parents 1a54c75 + 4f4f97b commit fa82aa9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions views/pages/StaffRegisterBrowser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<html>

<head>
<title>Naylor Learning Center - Register Browser</title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<script type="text/javascript">
function validateForm() {
var d = new Date();
d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000));
document.cookie = "location=" + myForm.location.value + "; expires=" + d.toUTCString() + "; path=/";
}
</script>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>

</head>

<body>

<h1>Naylor Learning Center - Register Browser</h1>

<p>This form will register this browser to permit NLC attendance tracking.</p>
<p>When a student checks in with this browser, their visit will be marked with the location that you enter below.</p>

<script src="/javascripts/formCheck.js"></script>

<form name="myForm" onsubmit="return validateForm()" method="post" action="#">
Location Name:
<input type="text" autofocus name="location" maxlength="255" required>
<input type="submit" value="Submit">
</form>

</body>

</html>

0 comments on commit fa82aa9

Please sign in to comment.