migrate js to use prettier

This commit is contained in:
Christoph Ladurner
2022-07-19 22:06:15 +02:00
parent f11facc9d6
commit 0399814fe0

View File

@@ -1,5 +1,5 @@
import $ from 'jquery'; import $ from "jquery";
import 'semantic-ui-css'; import "semantic-ui-css";
// called on document ready // called on document ready
$(function () { $(function () {
@@ -13,23 +13,21 @@ function importZammadScript() {
document.head.appendChild(scriptNode); document.head.appendChild(scriptNode);
$.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => { $.getScript("https://ub-support.tugraz.at/assets/form/form.js", () => {
$('#feedback-form').ZammadForm({ $("#feedback-form").ZammadForm({
messageTitle: 'Contact us', messageTitle: "Contact us",
showTitle: true, showTitle: true,
messageSubmit: 'Submit', messageSubmit: "Submit",
messageThankYou: 'Thank you for your message, (#%s). We will get back to you as quickly as possible!', messageThankYou:
modal: true "Thank you for your message, (#%s). We will get back to you as quickly as possible!",
modal: true,
}); });
}); });
} }
// used for sticky test instance notification // used for sticky test instance notification
$('.ui.sticky.test-instance') $(".ui.sticky.test-instance").sticky({
.sticky({ context: "body",
context: 'body' });
})
;
export function toggleVisibility(id) { export function toggleVisibility(id) {
var element = document.getElementById(id); var element = document.getElementById(id);