text-decoration: none;
font-weight: 600;
}
+#kiosk-verification-reqs {
+ padding: 8px;
+ border: 1px solid black;
+}
</style>
</head>
[% IF ctx.register.success %]
<h2>[% l('Registration successful!') %]<h3>
+ [% IF !kiosk %]
<a href='[% redo_url | html %]'><button
id='submit-another'>Submit Another Application</button></a>
<br/>
+ [% END %]
<br/>
<div class='success-minus-2'>
[% IF kiosk %]
[% IF kiosk %]
<h3>Verification Requirements</h3>
+ <div id='kiosk-verification-reqs'>
<p>
1. Photo identification with birth date (one piece required for adults).
Acceptable examples are as follows and may be current or expired:
You may get a library card today without address verification, but you will be limited to checking
out 2 items. If you do not bring address verification, the card will expire after 90 days.
</p>
+ </div>
[% END %]
[% ELSE %]
<div class="grid">
[% FOR ctype IN wallet_cards %]
<div class="grid-cell">
- <div><img class="card-img" src="[% card_url _ ctype _ '.png' %]"/></div>
+ <div><img class="card-img" src="[% card_url _ ctype _ '.png' %]"
+ onclick="select_card('[% ctype %]')"/></div>
<div class="card-style-option">
<input [% IF loop.first %]id='first-wallet-card'[% END %]
type="radio" name="stgsc.10" value="[% ctype %]"/>
<div class="grid">
[% FOR ctype IN keychain_cards %]
<div class="grid-cell">
- <div><img class="card-img" src="[% card_url _ ctype _ '.png' %]"/></div>
+ <div><img class="card-img" src="[% card_url _ ctype _ '.png' %]"
+ onclick="select_card('[% ctype %]')"/></div>
<div class="card-style-option">
<input [% IF loop.first %]id='first-keychain-card'[% END %]
type="radio" name="stgsc.10" value="[% ctype %]"/>
document.getElementById('first-'+type+'-card').checked = 'checked';
}
+function select_card(type) {
+ last_activity = new Date();
+ console.log('selecting card: ' + type);
+ $("input[value='" + type + "']").prop('checked', true);
+}
+
function check_juvenile(dobString) {
var dobDate = Date.parse(dobString);
var ageDate = new Date(); // minimum age for non-juvenile