-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #1, add
package.json
; move Javascript to separate file [iet:101…
…16746]
- Loading branch information
Showing
6 changed files
with
68 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#.gitignore for headstar_web | ||
|
||
*email.* | ||
|
||
oembed.* | ||
|
||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*! | ||
Headstar Javascripts | © 2015-2017 Nick Freear. | ||
*/ | ||
|
||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-7941798-1']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function(document) { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = 'https://www.google-analytics.com/ga.js'; // ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(window.document); | ||
|
||
(function (W, D) { | ||
|
||
var page = W.location.pathname.replace(/.+\//, '').replace(/\..+/, ''), | ||
el = D.querySelector("#foot .y"), | ||
year = 1900 + (new Date()).getYear(); | ||
|
||
el.innerHTML = year; | ||
D.body.className += " pg-" + page; | ||
|
||
if (W.location.href.match(/[&\?]embed=(1|true)/)) { | ||
D.body.className += " pg-embed"; | ||
} | ||
|
||
})(window, window.document); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"private": true, | ||
"name": "headstar-web", | ||
"version": "1.0.0", | ||
"description": "E-Access Bulletin | Copyright © 2000-2017 Headstar Limited. All rights reserved.", | ||
"main": "Gruntfile.js", | ||
"dependencies": { }, | ||
"devDependencies": { | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-contrib-validate-xml": "^0.0.1", | ||
"grunt-exec": "^1.0.1", | ||
"grunt-htmlhint": "^0.9.13", | ||
"grunt-notify": "^0.4.5" | ||
}, | ||
"scripts": { | ||
"test": "grunt" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nfreear/headstar-web.git" | ||
}, | ||
"keywords": [ | ||
"accessibility", "bulletin" | ||
], | ||
"author": "Nick Freear (@nfreear)", | ||
"license": "UNLICENSED", | ||
"bugs": { | ||
"url": "https://github.com/nfreear/headstar-web/issues" | ||
}, | ||
"homepage": "http://headstar.com/eab/" | ||
} |