changed locations for static .js/.css files
This commit is contained in:
parent
94a10ec92a
commit
bf9573ba60
@ -8,8 +8,8 @@
|
||||
<meta name="description" content="Frontend für die Verwaltung von Texten und Veröffentlichungen" />
|
||||
<meta name="author" content="Tobias Radloff" />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='pico.azure.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='the_works.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/pico.azure.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/the_works.css') }}">
|
||||
|
||||
{% block head %}{% endblock head %}
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
<p>trololol</p>
|
||||
</footer>
|
||||
|
||||
<script src="{{ url_for('static', filename='SwitchColorMode.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/SwitchColorMode.js') }}"></script>
|
||||
{% block script %}
|
||||
{% endblock script %}
|
||||
</body>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Genres{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Genres{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("genre-table");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Herausgeber:innen{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Herausgeber:innen{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("herausgeber-table");
|
||||
|
||||
@ -1,19 +1,21 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Alles durchsuchen{% endblock title %}
|
||||
|
||||
{% extends 'base.html' %} {% block title %}Alles durchsuchen{% endblock title %}
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Alles durchsuchen{% endblock heading %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% include "_icons.svg" %}
|
||||
<link
|
||||
type="text/css"
|
||||
rel="stylesheet"
|
||||
href="{{ url_for('static', filename='css/datatables.css') }}"
|
||||
/>
|
||||
{% endblock head %} {% block heading %}Alles durchsuchen{% endblock heading %}
|
||||
{% block content %} {% include "_icons.svg" %}
|
||||
<section>
|
||||
<label>
|
||||
<input type="search" id="search_all" aria-label="search" placeholder="Suchbegriff eingeben …" value="" />
|
||||
<input
|
||||
type="search"
|
||||
id="search_all"
|
||||
aria-label="search"
|
||||
placeholder="Suchbegriff eingeben …"
|
||||
value=""
|
||||
/>
|
||||
</label>
|
||||
<label>
|
||||
Groß-/Kleinschreibung beachten
|
||||
@ -21,16 +23,17 @@
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section id="results">
|
||||
</section>
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<section id="results"></section>
|
||||
{% endblock content %} {% block script %}
|
||||
<script src="{{ url_for('static', filename='js/search_all.js') }}"></script>
|
||||
<script>
|
||||
const url = "{{ url_for('home.search_all', _external=True) }}";
|
||||
window.onload = () => {
|
||||
document.getElementById("search_all").addEventListener("input", event => search_all(event.target.value, url));
|
||||
document
|
||||
.getElementById("search_all")
|
||||
.addEventListener("input", (event) =>
|
||||
search_all(event.target.value, url)
|
||||
);
|
||||
};
|
||||
</script>
|
||||
{% endblock script %}
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Pseudonyme{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Pseudonyme{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("pseudonym-table");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Reihen{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Reihen{% endblock heading %}
|
||||
@ -66,8 +66,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("reihe-table");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Sprachen{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Sprachen{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("sprache-table");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Texte{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Texte{% endblock heading %}
|
||||
@ -42,8 +42,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("text-table");
|
||||
|
||||
@ -91,8 +91,8 @@ Text bearbeiten
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/multiselect.js') }}"></script>
|
||||
<script>
|
||||
window.onload = () => initAllDropdownSelects();
|
||||
window.onload = () => initAllMultiselects();
|
||||
</script>
|
||||
{% endblock script %}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Textformen{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Textformen{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("textform-table");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Verlage{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Verlage{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("verlag-table");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Veröffentlichungen{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Veröffentlichungen{% endblock heading %}
|
||||
@ -90,8 +90,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("veroeffentlichung-table");
|
||||
|
||||
@ -64,8 +64,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = () => {
|
||||
initDataTable("werk-table");
|
||||
|
||||
@ -182,70 +182,11 @@ Werk bearbeiten
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/multiselect.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/validate_date.js') }}"></script>
|
||||
<script>
|
||||
function initFileInput(id_stub) {
|
||||
document.getElementById(id_stub + "-upload").addEventListener("change", handleFileInputChange);
|
||||
document.getElementById(id_stub + "-delete").addEventListener("click", handleFileDeleteClick);
|
||||
}
|
||||
|
||||
function handleFileInputChange(event) {
|
||||
console.dir(event);
|
||||
let id_stub = event.target.id.split("-")[0];
|
||||
|
||||
// mark change
|
||||
document.getElementById(id_stub + "-haschanged").value += "+";
|
||||
|
||||
// show placeholder and return if input element is empty
|
||||
if ( ! event.target.files.length ) {
|
||||
showOrHideThumbnail(id_stub, "hide");
|
||||
return true;
|
||||
}
|
||||
|
||||
// set img src to the uploaded file
|
||||
let f = event.target.files[0];
|
||||
let tn = document.getElementById(id_stub + "-thumbnail");
|
||||
tn.src = URL.createObjectURL(f);
|
||||
|
||||
// add some data about the image
|
||||
showOrHideThumbnail(id_stub, "show");
|
||||
document.getElementById(id_stub + "-dateigroesse").innerText = f.size;
|
||||
|
||||
// event handler to remove image object from memory after it has loaded on the page
|
||||
tn.onload = () => {
|
||||
document.getElementById(id_stub + "-breite").innerText = tn.naturalWidth;
|
||||
document.getElementById(id_stub + "-hoehe").innerText = tn.naturalHeight;
|
||||
URL.revokeObjectURL(tn.src);
|
||||
};
|
||||
}
|
||||
|
||||
// event listener for delete element
|
||||
function handleFileDeleteClick(event) {
|
||||
console.dir(event);
|
||||
let id_stub = event.target.id.split("-")[0];
|
||||
// mark change
|
||||
document.getElementById(id_stub + "-haschanged").value += "-";
|
||||
document.getElementById(id_stub + "-upload").value = ""; // clear input element
|
||||
showOrHideThumbnail(id_stub, "hide");
|
||||
}
|
||||
|
||||
function showOrHideThumbnail(id_stub, mode) {
|
||||
if ( mode && mode.toLowerCase() != "hide" ) {
|
||||
document.getElementById(id_stub + "-link").classList.remove("display-none"); // show thumbnail
|
||||
document.getElementById(id_stub + "-placeholder").classList.add("display-none"); // hide placeholder
|
||||
document.getElementById(id_stub + "-info").classList.remove("display-none"); // show info section
|
||||
document.getElementById(id_stub + "-delete").removeAttribute("disabled"); // enable delete link
|
||||
} else {
|
||||
document.getElementById(id_stub + "-link").classList.add("display-none"); // hide thumbnail element
|
||||
document.getElementById(id_stub + "-placeholder").classList.remove("display-none"); // show plaeholder
|
||||
document.getElementById(id_stub + "-info").classList.add("display-none"); // hide info section
|
||||
document.getElementById(id_stub + "-delete").setAttribute("disabled", ""); // disable delete link
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
initAllDropdownSelects();
|
||||
initFileInput("titelbild");
|
||||
initAllMultiselects();
|
||||
}
|
||||
</script>
|
||||
{% endblock script %}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
{% block title %}Werksformen{% endblock title %}
|
||||
|
||||
{% block head %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='datatables.css') }}">
|
||||
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='css/datatables.css') }}">
|
||||
{% endblock head %}
|
||||
|
||||
{% block heading %}Werksformen{% endblock heading %}
|
||||
@ -57,8 +57,9 @@
|
||||
{% endblock content %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ url_for('static', filename='datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='the_works.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/datatables.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/init_dt.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
initDataTable("werksform-table");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user