mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 07:54:11 -05:00
Add site-vars.js containing site-wide javascript variables, and add the current page from the URL to it
This commit is contained in:
parent
61ca7022fb
commit
7c47ebe8f4
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ elixir.config.autoprefix = { remove: false, cascade: false, browsers: ['last 2 v
|
|||
|
||||
// javascript files in resources/assets/js/
|
||||
var jsLocal = [
|
||||
'site-vars.js',
|
||||
'app.js'
|
||||
];
|
||||
|
||||
|
|
4
resources/assets/js/site-vars.js
Normal file
4
resources/assets/js/site-vars.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
var SiteVars = {
|
||||
page: location.href.replace(/https*:\/\/[^\/]*\//, '').replace(/(#|\?).*/, '')
|
||||
};
|
||||
|
Loading…
Reference in a new issue