fix: move `build directory to resources/shop`

This commit is contained in:
Valentin Lab
2025-10-04 10:00:24 +02:00
parent 34fc1c33bf
commit 7a189abf0b
93 changed files with 26 additions and 25 deletions

View File

@@ -0,0 +1,15 @@
function initAnimate()
{
/*
var wew = new Wew({
target: '.wow',
keyword: 'wow',
});
wew.init();
*/
wow = new WOW({animateClass: 'animated', live: true});
wow.init();
}

View File

@@ -0,0 +1,9 @@
function errorMessage(message)
{
var message = (typeof(message) != 'undefined') ? message : translate.getText.please_contact_the_administrator;
if ( typeof(screenErrors) != 'undefined' ) {
screenErrors.execute('error', translate.getText.an_error_occured+'.<br>'+message+'.');
}
}

View File

@@ -0,0 +1,37 @@
function openModal(title, route, params)
{
var params = (typeof(params) == 'undefined') ? [] : params;
var message = (typeof(params['preload']) == 'undefined') ? '<p><i class="fa fa-spin fa-spinner"></i> Loading...</p>' : params['preload'];
var callback_apply = (typeof(params['onApply']) == 'undefined') ? false : params['onApply'];
var callback_open = (typeof(params['onOpen']) == 'undefined') ? false : params['onOpen'];
var dialog = bootbox.dialog({
title: title,
message: message,
buttons: getModalButtons(callback_apply),
callback: function() {
if (callback_open) {
callback_open();
}
}
});
dialog.init(function(){
dialog.find('.bootbox-body').load(route);
});
}
function getModalButtons(callback) {
return {
ok: {
label: "Apply",
className: 'btn-info',
callback: function() {
if (typeof(callback) !== 'undefined') {
callback();
}
}
}
}
}

View File

@@ -0,0 +1,24 @@
function initScroll(selector)
{
if (typeof(selector) == 'undefined')
{
selector = ('.nicescrollable');
}
$(selector).niceScroll({
horizrailenabled: false,
cursorborder: "0",
cursorwidth: "8px",
cursorcolor: "#fff",
zindex: "5555",
autohidemode: true,
bouncescroll: true,
mousescrollstep: 40,
scrollspeed: 100,
background: "#cdcdcd",
cursoropacitymin: 0.3,
cursoropacitymax: 0.7,
cursorborderradius: 0,
railpadding: {top:0,right:1,left:0,bottom:0}
});
}

View File

@@ -0,0 +1,7 @@
function initTooltip()
{
$('[data-toggle="tooltip"]').tooltip({
trigger : 'hover',
delay: { "show": 500, "hide": 100 }
});
}