From 0716316fa2f85f9e0d50b53d78bbef1d9200f101 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 1 Dec 2015 08:38:09 +0000 Subject: [PATCH] JS Formatting --- static/src/js/app.js | 1 + static/src/js/utils.js | 1 + 2 files changed, 2 insertions(+) diff --git a/static/src/js/app.js b/static/src/js/app.js index 7d93c95..85ca3eb 100644 --- a/static/src/js/app.js +++ b/static/src/js/app.js @@ -1,4 +1,5 @@ /* global $ */ + require('./utils.js'); var React = require('react'); diff --git a/static/src/js/utils.js b/static/src/js/utils.js index 3b7ba93..c651ba4 100644 --- a/static/src/js/utils.js +++ b/static/src/js/utils.js @@ -1,4 +1,5 @@ /* global $ */ + $(function() { // https://css-tricks.com/snippets/jquery/smooth-scrolling/ $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '')