lib.itmens/common/templates/common_libs.html

74 lines
2.4 KiB
HTML
Raw Normal View History

2022-12-25 13:45:24 -05:00
{% load static %}
{% load sass_tags %}
2023-01-10 22:36:13 -05:00
{% load tz_detect %}
{% if request.user.is_authenticated %}
{% tz_detect %}
2022-12-25 13:45:24 -05:00
{% endif %}
2024-04-06 22:52:35 -04:00
<script src="{{ cdn_url }}/npm/cash-dom@8.1.5/dist/cash.min.js"></script>
<script type="text/javascript">
2023-04-20 23:02:29 -04:00
if (!$.fn.is_visible) $.fn.is_visible = function () {
return this.filter((_, elt) => (elt.offsetWidth || elt.offsetHeight || elt.getClientRects().length)).length > 0;
};
if (!$.fn.submit) $.fn.submit = function () {
this.each(function () {
$(this).trigger('submit');
this.submit();
});
return this;
};
</script>
<script src="{{ cdn_url }}/npm/htmx.org@2.0.4/dist/htmx.min.js"></script>
<script src="{{ cdn_url }}/npm/hyperscript.org@0.9.13"></script>
<!-- link rel="stylesheet"
href="{{ cdn_url }}/npm/@yohns/picocss@2.2.1/css/pico.{{site_color}}.min.css" /-->
2025-01-03 12:17:52 -05:00
{% if site_color == 'azure' %}
<link rel="stylesheet"
href="{{ cdn_url }}/npm/@picocss/pico@2/css/pico.min.css" />
{% else %}
<link rel="stylesheet"
href="{{ cdn_url }}/npm/@picocss/pico@2/css/pico.{{ site_color }}.min.css" />
2025-01-03 12:17:52 -05:00
{% endif %}
<style>
:where(nav li)::before {
float: none;
content: " ";
}
</style>
<link href="{% sass_src 'scss/neodb.scss' %}"
rel="stylesheet"
type="text/css" />
<link href="{{ cdn_url }}/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"
rel="stylesheet"
type="text/css">
<link rel="search"
type="application/opensearchdescription+xml"
title="{{ site_name }}"
href="{% static 'opensearch.xml' %}">
2023-06-01 14:35:45 -04:00
<script defer>
(function(){
const s = localStorage.getItem("user_style");
if (s) {
const style = document.createElement("style");
style.innerHTML = s;
document.head.appendChild(style);
}
2023-06-09 10:30:55 -04:00
const solo = localStorage.getItem("solo_mode")=="1";
if (solo) {
const style = document.createElement("style");
style.innerHTML = ".solo-hidden {display: none;}";
document.head.appendChild(style);
}
2024-04-14 18:40:45 -04:00
$('html').attr('data-theme', localStorage.getItem("theme_color")||null)
2023-06-01 14:35:45 -04:00
})();
</script>
2023-08-24 05:48:14 +00:00
<link rel="icon" href="{{ site_icon }}">
2024-04-07 16:50:26 -04:00
<link rel="apple-touch-icon" href="{{ site_icon }}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="{{ site_name }}">
2024-04-06 11:53:31 -04:00
{% if request.META.HTTP_HOST == site_domain %}
<style type="text/css">.hide_unless_alter_domain{display:none;}</style>
2024-04-06 11:53:31 -04:00
{% else %}
<meta name="robots" content="noindex">
2024-04-06 11:53:31 -04:00
{% endif %}
2023-12-01 18:09:49 -05:00
{{ site_head|safe }}