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

79 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>MEGASTUDIO 🎯</title>
<link rel="stylesheet" type="text/css" href="/static/print.css" />
<link rel="stylesheet" type="text/css" href="/static/pagedjs/interface.css" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="" />
<script src="/static/pagedjs/paged.polyfill.js"></script>
</head>
<body>
{% for key in form_data %}
<div id="{{key}}" class="boxes">
<h1>{{key}}</h1>
{% for z in data[key][showbar]%}
{% if z.endswith("jpg") or z.endswith("jpeg") or z.endswith("png") or z.endswith("JPG") or z.endswith("JPEG") %}
<img src=".{{rut}}{{key}}/{{showbar}}/{{z}}">
{% elif z.endswith("tif")%}
<span></span>
{% else %}
<p>{{z|safe}}</p>
{% endif %}
{% endfor %}
{% for z in data[key][box]%}
{% if z.endswith("jpg") or z.endswith("jpeg") or z.endswith("png") or z.endswith("JPG") or z.endswith("JPEG") %}
<img src=".{{rut}}{{key}}/{{box}}/{{z}}">
{% elif z.endswith("tif")%}
<span></span>
{% else %}
<p>{{z|safe}}</p>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</body>
<script defer async>
let classes = document.getElementsByClassName("boxes")
classes = Array.prototype.slice.call(classes);
classes.forEach(element => {
if (localStorage[element.id]){
console.log(localStorage[element.id])
element.className = localStorage[element.id]
console.log(element)
}
// for (ls in localStorage){
// if (classes.id == ls){
// console.log('yeah')}
// }
});
console.log(localStorage)
</script>
</html>