2021-07-23 17:30:15 -04:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2021-07-24 01:08:18 -04:00
|
|
|
<link rel="stylesheet" type="text/css" href="
|
|
|
|
{{ url_for('static', filename='styles.css') }}">
|
2021-07-24 14:51:13 -04:00
|
|
|
<meta name="viewport" content="user-scalable=no">
|
|
|
|
<script type="text/javascript">
|
|
|
|
function getCookie(cname) {
|
|
|
|
let name = cname + "=";
|
|
|
|
let decodedCookie = decodeURIComponent(document.cookie);
|
|
|
|
let ca = decodedCookie.split(';');
|
|
|
|
for(let i = 0; i <ca.length; i++) {
|
|
|
|
let c = ca[i];
|
|
|
|
while (c.charAt(0) == ' ') {
|
|
|
|
c = c.substring(1);
|
|
|
|
}
|
|
|
|
if (c.indexOf(name) == 0) {
|
|
|
|
return c.substring(name.length, c.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
function loadCookies() {
|
|
|
|
console.log(document.cookie);
|
|
|
|
cookies = [
|
|
|
|
'username',
|
|
|
|
'company',
|
|
|
|
'jobandpronoun',
|
|
|
|
'skilltypes',
|
|
|
|
'myskills',
|
|
|
|
'closingtext',
|
|
|
|
'body',
|
|
|
|
]
|
|
|
|
for(let i = 0; i < cookies.length; i++) {
|
|
|
|
console.log(cookies[i]);
|
|
|
|
c = getCookie(cookies[i]);
|
|
|
|
console.log(c);
|
|
|
|
if (c) {
|
|
|
|
document.getElementById(cookies[i]).value=c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
window.onload = loadCookies;
|
|
|
|
</script>
|
2021-07-23 17:30:15 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-07-24 01:08:18 -04:00
|
|
|
<h1>UnderCover</h1>
|
|
|
|
<h2>The secret cover letter generator</h2>
|
2021-07-23 17:30:15 -04:00
|
|
|
|
|
|
|
{% from "_formhelpers.html" import render_field %}
|
|
|
|
<form method=post>
|
|
|
|
<dl>
|
|
|
|
{{ render_field(form.username) }}
|
|
|
|
{{ render_field(form.company) }}
|
|
|
|
{{ render_field(form.jobandpronoun) }}
|
|
|
|
{{ render_field(form.skilltypes) }}
|
|
|
|
{{ render_field(form.myskills) }}
|
2021-07-24 01:08:18 -04:00
|
|
|
{{ render_field(form.body, 'class=bigtext') }}
|
2021-07-23 17:30:15 -04:00
|
|
|
{{ render_field(form.closingtext) }}
|
|
|
|
</dl>
|
|
|
|
<p><input type=submit value="Submit"></p>
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|