RPGs3_card_insanity/templates/card_header.html.j2

46 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-09-18 22:46:23 +02:00
{% set async = "media=\"none\" onload=\"if(media!='all')media='all'\"" -%}
2019-09-19 01:00:54 +02:00
{% if is_local %}
2019-09-19 02:43:21 +02:00
{#
<meta http-equiv="refresh" content="1.0">
2019-09-19 01:00:54 +02:00
<script type="text/javascript" src="http://livejs.com/live.js"></script>
2019-09-19 02:43:21 +02:00
#}
2019-10-15 21:20:37 +02:00
<script type="text/javascript">
var selected = 0;
document.onkeydown = function(e) {
if (e.which == 39) {
if (document.getElementById("card_container_" + (selected+1))) {
selected += 1;
}
document.getElementById("card_container_" + selected).scrollIntoView();
}
if (e.which == 37) {
if (selected > 0) {
selected -= 1;
}
document.getElementById("card_container_" + selected).scrollIntoView();
}
};
</script>
2019-09-19 01:00:54 +02:00
{% endif %}
2019-09-18 22:46:23 +02:00
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.13.1/js-yaml.min.js"></script>
<script type="text/javascript" src="https://mozilla.github.io/nunjucks/files/nunjucks.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/9.1.0/markdown-it.min.js"></script>
<!--fonts, loaded asyncronously-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/open-iconic/1.1.1/font/css/open-iconic.min.css" {{async}}/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" {{async}}/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" {{async}}/>
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/2.0.46/css/materialdesignicons.min.css" {{async}}/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" {{async}}/>
<link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css" {{async}}/>
{% if css_data %}
<style type="text/css">
{{ css_data.strip() }}
</style>
{% endif %}