From 3b71f3d707d4c2dba362512f86ca529328f17f69 Mon Sep 17 00:00:00 2001 From: ostertun Date: Wed, 14 Oct 2020 12:35:15 +0200 Subject: [PATCH] Better logging --- client/scripts/custom.js.php | 83 ++++++++++++++---------- client/scripts/database.js | 112 ++++++++++++++++----------------- client/scripts/pwa.js.php | 18 +++--- client/scripts/regatten.js.php | 36 +++++------ service-worker.js.php | 6 +- 5 files changed, 137 insertions(+), 118 deletions(-) diff --git a/client/scripts/custom.js.php b/client/scripts/custom.js.php index 575d8a8..28ccc75 100644 --- a/client/scripts/custom.js.php +++ b/client/scripts/custom.js.php @@ -6,14 +6,14 @@ ?> -log('Script "custom.js" loaded'); +log('[tpl] Script "custom.js" loaded'); var loaderCount = 2; var showLoader = function() { if (loaderCount < 1) { $('#preloader').removeClass('preloader-hide'); loaderCount = 0; - log('Loader shown'); + log('[tpl] Loader shown'); } loaderCount ++; } @@ -22,7 +22,7 @@ var hideLoader = function() { if (loaderCount < 1) { $('#preloader').addClass('preloader-hide'); loaderCount = 0; - log('Loader hidden'); + log('[tpl] Loader hidden'); } } @@ -39,11 +39,11 @@ function eraseCookie(e) {createCookie(e, "", -1)} $(document).ready(function(){ 'use strict' - log('Document ready'); + log('[tpl] Document ready'); function init_template(){ - log('Initializing template...'); + log('[tpl] Initializing template...'); //ADD YOUR CUSTOM JAVASCRIPT CODES HERE! //Do not put inside HTML files. @@ -111,21 +111,23 @@ $(document).ready(function(){ //Disable Page Jump on Empty Links. $('a').on('click', function(){var attrs = $(this).attr('href'); if(attrs === '#'){return false;}}); + log('[tpl] init menus'); + //Adding Background for Gradient if(!$('.menu-hider').length){$('#page').append('