2020-03-07 01:27:25 +01:00
|
|
|
<style>
|
|
|
|
|
|
|
|
@page
|
|
|
|
{
|
|
|
|
size: auto;
|
|
|
|
margin: 0.5cm;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background-color: white;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card_wrapper {
|
|
|
|
width: 2.5in;
|
|
|
|
height: 3.5in;
|
|
|
|
float: left;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
page-break-inside: avoid;
|
2020-03-07 02:29:20 +01:00
|
|
|
position: relative;
|
2020-03-07 01:27:25 +01:00
|
|
|
}
|
|
|
|
|
2020-03-07 02:29:20 +01:00
|
|
|
.card_cover,
|
2020-03-07 01:27:25 +01:00
|
|
|
iframe {
|
2020-03-07 02:29:20 +01:00
|
|
|
position: absolute;
|
|
|
|
top:0;
|
|
|
|
left:0;
|
2020-03-07 01:27:25 +01:00
|
|
|
width:2.5in;
|
|
|
|
height:3.5in;
|
2020-03-07 02:29:20 +01:00
|
|
|
margin: none;
|
|
|
|
padding: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
.card_cover {
|
|
|
|
cursor: pointer;
|
2020-03-07 01:27:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{% for cardname in cards %}
|
|
|
|
<div class="card_wrapper">
|
|
|
|
<iframe src="{{ cardname }}" scrolling=no></iframe>
|
2020-03-07 02:29:20 +01:00
|
|
|
<div class="card_cover" onclick='window.location = {{cardname|tojson}}'></div>
|
2020-03-07 01:27:25 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|