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