<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*
 *  jquery-dom-router - v1.0.1
 *  Fire JavaScript based on body classes. Based off the DOM router in the Sage WordPress Theme.
 *  http://jqueryboilerplate.com
 *
 *  Made by Tor Morten Jensen
 *  Under MIT License
 */
!function(a){a.fn.watch||a.fn.unwatch||(a.fn.watch=function(b,c){return this.each(function(){var d=this,e=d[b];a(d).data("watch_timer",setInterval(function(){d[b]!==e&amp;&amp;(c.call(d,b,e,d[b]),e=d[b])},100))})},a.fn.unwatch=function(){return this.each(function(){clearInterval(a(this).data("watch_timer"))})}),a.DOMRouter||(a.DOMRouter={router:function(b,c){var d=this;d.$el=a(b),d.el=b,d.$el.data("DOMRouter.router",d),d.element=d.$el.find(a.DOMRouter.defaults.element),d.element.addClass("dom-router-ready"),d.init=function(){d.routes=c,a(document).ready(d.load),d.executed=[],d.element.watch("className",function(b,c,e){var f=e.replace(/-/g,"_").split(/\s+/);a.each(f,function(a,b){d.routeExecuted(b)||(d.fire(b),d.executed.push(b))})})},d.routeExecuted=function(a){return d.executed.indexOf(a)&gt;-1},d.classes=function(){return d.element.get(0).className.replace(/-/g,"_").split(/\s+/)},d.load=function(){d.fire("common"),a.each(d.classes(),function(a,b){d.fire(b),d.executed.push(b)})},d.fire=function(a,b){var c,e=d.routes;c=""!==a,c=c&amp;&amp;e[a],c=c&amp;&amp;"function"==typeof e[a],c&amp;&amp;e[a](b)},d.init()},defaults:{element:"body"}}),a.fn.router=function(b){return this.each(function(){new a.DOMRouter.router(this,b)})},"undefined"!=typeof module&amp;&amp;module.exports&amp;&amp;(module.exports=a.DOMRouter.router)}(jQuery);</pre></body></html>