Skip to content

Instantly share code, notes, and snippets.

@isrd1
isrd1 / utilities.js
Created February 27, 2018 13:20
Highlights any menu item which links to the current page and deactivates it. Use it by adding ROB.utils.setCurrentPageActive()
/**
* @author Rob Davis
* @licence CC-BY
*/
var ROB = ROB || {};
/**
* create an IIFE which extends a 'ROB' module if it already exists and creates
* a submodule called 'utils'.
*/
ROB.utils = (function (oldModule) {