Skip to Content

JavaScript File

URL: https://www.hereward.ac.uk/athCms/js/athPaths.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Mon, 01 Jan 1601 00:00:00 GMT
Download Time: Less than a second
Cookies: None
Size: 1 KB
HTTP Headers:  5 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1function AthPaths() {

2

3};

4

5AthPaths.getRootUrl = function () {

6 if (AthPaths.rootUrl == undefined) {

7 var scripts = document.getElementsByTagName('link');

8 $.each(scripts, function (index, element) {

9 var idx = element.href.indexOf('athCms/css/athCmsCss.css', 0);

10 if (idx != -1) {

11 AthPaths.rootUrl = element.href.substring(0, idx);

12 return false;

13 };

14 });

15 };

16 return AthPaths.rootUrl;

17};