From eaa08ba3015fcf14006deba8524ddbe64e3ea451 Mon Sep 17 00:00:00 2001 From: ostertun Date: Mon, 5 Oct 2020 11:53:54 +0200 Subject: [PATCH 1/5] Custom log function => log current time --- client/scripts/custom.js.php | 274 ++++++++++++++++---------------- client/scripts/database.js | 82 +++++----- client/scripts/mobileconsole.js | 47 +++++- client/scripts/pwa.js.php | 28 ++-- client/scripts/regatten.js.php | 45 ++++-- server/scripts/boats.js | 52 +++--- server/scripts/contact.js | 4 +- server/scripts/sailors.js | 52 +++--- 8 files changed, 313 insertions(+), 271 deletions(-) diff --git a/client/scripts/custom.js.php b/client/scripts/custom.js.php index 51efae7..308f4a4 100644 --- a/client/scripts/custom.js.php +++ b/client/scripts/custom.js.php @@ -1,9 +1,9 @@ var loaderCount = 2; @@ -29,17 +29,17 @@ $(window).on('load',function(){ $(document).ready(function(){ 'use strict' - + var isAJAX = false; //Enables or disable AJAX page transitions and loading. var isDevelopment = false; // Enables development mode. Clean cache & Stops BG & Highlights from changing defaults. - + function init_template(){ - + //ADD YOUR CUSTOM JAVASCRIPT CODES HERE! //Do not put inside HTML files. //The init_template() function will be triggered when pages open. - - + + //Generating Dynamic Styles to decrease CSS size and execute faster loading times. var colorsArray = [ //colors must be in HEX format. @@ -93,24 +93,24 @@ $(document).ready(function(){ ["skype","#12A5F4"], ["instagram","#e1306c"] ]; - - + + //Back Button Scroll Stop //if ('scrollRestoration' in history) {history.scrollRestoration = 'manual';} - + //Disable Page Jump on Empty Links. $('a').on('click', function(){var attrs = $(this).attr('href'); if(attrs === '#'){return false;}}); - + //Adding Background for Gradient if(!$('.menu-hider').length){$('#page').append('