mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
migrate js to use prettier
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import $ from 'jquery';
|
import $ from "jquery";
|
||||||
import 'semantic-ui-css';
|
import "semantic-ui-css";
|
||||||
|
|
||||||
// called on document ready
|
// called on document ready
|
||||||
$(function() {
|
$(function () {
|
||||||
importZammadScript();
|
importZammadScript();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user