cyber/technofeminist cross-reader
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

95 lines
2.5 KiB

<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8" />
<title>{% block title %}cyber/technofeminist cross-readings{% endblock %}</title>
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/stylesheet.css')}}" />
<script type="text/javascript" src="{{ url_for('static', filename='js/jquery-3.3.1.min.js')}}"></script>
</head>
<body>
<div id="txt-list">
<p>List of manifestos:</p>
<ul>
{% for filename in filenames | sort %}
<li>
<a href="/{{ lang }}/manifesto/{{ filename | replace('.txt','') }}">{{ filename | prettyfilename }}</a>
<a class="contrast" href="/{{ lang }}/mappings/{{ filename | replace('.txt','') }}"><i></i></a>
</li>
{% endfor %}
<ul>
{% block txtlist %}
{% endblock %}
</div>
<div id="wrapper">
<div id="nav-wrapper">
<div id="colophon_button">
EN / <a href="/fr">FR</a>
&nbsp;
<a href="/{{ lang }}/about">about</a>
</div>
<div id="logo">
<a href="/{{ lang }}/">cyber/technofeminist <br>cross-readings</a>
</div>
{% block search %}
<div id="search">
<form id="submitform" action="" method="GET" onsubmit="this.setAttribute('isSubmitting', 'true');">
<input id="query" name="q" value="{{query}}"/>
<input id="submit" type="submit" value="search"/>
</form>
<script>
(function () {
var searching = false,
button = document.querySelector('#search #submit'),
submitting = document.querySelector('#submitform').getAttribute('isSubmitting');
button.addEventListener('click', function (e) {
if (!searching) {
searching = true;
}
else {
e.preventDefault();
alert('Already searching ...');
}
})
})();
</script>
</div>
{% endblock %}
{% block nav %}
{% endblock %}
</div>
<div id="content">
{% block content %}
{% endblock %}
{% block results %}
{% endblock %}
{% block manifesto %}
{% endblock %}
{% block suggestions %}
{% endblock %}
</div>
</div>
</body>
<script>
// refresh when there is no (mouse or keyboard) activity for 5 minutes
var time = new Date().getTime();
$(document.body).bind("mousemove keypress", function(e) {
time = new Date().getTime();
});
function refresh() {
if(new Date().getTime() - time >= 300000){
console.log('refresh!');
window.location.href = '/fr/';
} else {
setTimeout(refresh, 300000);
}
}
setTimeout(refresh, 300000);
// prevent links from opening in new tab
var links = document.links;
for (var i = 0; i < links.length; i++) {
links[i].target = "_self";
}
</script>
</html>