Skip to content

Commit

Permalink
dragged old register browser form from old app into this new one
Browse files Browse the repository at this point in the history
  • Loading branch information
brosekerg committed Feb 20, 2019
1 parent 6953833 commit 305438a
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 305438a

Please sign in to comment.