lib/starter_web/assets/themes/j1/adapter/js/toccer.js in j1_template-2019.4.11 vs lib/starter_web/assets/themes/j1/adapter/js/toccer.js in j1_template-2019.4.12

- old
+ new

@@ -172,13 +172,13 @@ logger.info('module initialized successfully'); return true; }, // END init - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- // Set Toccer options - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- initToccerCore: function ( options ) { if (options !== undefined) { var settings = $.extend({}, options); } else { @@ -225,14 +225,14 @@ } return true; }, // END initToccerCore - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- // Calculate|Set Affix offset Top|Bottom of the Toccer menu // depending on the size of the page header (attic) - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- initAffix: function () { var nav_bar = $('nav.navbar'); var side_bar = $('#j1-sidebar'); var header = $('.attic'); // var disqus_id = $('#disqus'); @@ -265,14 +265,14 @@ }); return true; }, // END initAffix - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- // Calculate|Set Top position of the Toccer menu // depending on the size of the page header (attic) - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- setTop: function (options) { $(window).scroll(function(event){ var navbar = $('nav.navbar.navigator'); var adblock = $('#adblock'); var pagehead = $('.attic'); @@ -291,12 +291,12 @@ }); return true; }, // END setTop - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- // Set dynamic styles - // --------------------------------------------------------------------- + // ------------------------------------------------------------------------- setCss: function () { var bg_primary = j1.getStyleValue('bg-primary', 'background-color'); $('head').append('<style>.is-active-link::before { background-color: ' +bg_primary+ ' !important; }</style>');