Skip to Content

JavaScript File

URL: https://www.hereward.ac.uk/athCms/js/athCms.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: 4 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

1/*

2var newscript = document.createElement('script');

3newscript.type = 'text/javascript';

4newscript.async = false;

5newscript.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js';

6(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(newscript);

7*/

8

9$(document).ready(function () {

10

11 var type = typeof (AthCmsType);

12 var notLoaded = typeof (AthCmsType) == 'undefined';

13

14 if (AthAdmin.isAdmin() && notLoaded) {

15

16

17 if (!jQuery().tinymce) {

18 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.tinymce.js', async: false, dataType: 'script', cache: true });

19 };

20 if (!jQuery().validate) {

21 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.validate.js', async: false, dataType: 'script', cache: true });

22 };

23 if (!jQuery().ajaxSubmit) {

24 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.form.js', async: false, dataType: 'script', cache: true });

25 };

26 if (!jQuery().blockUI) {

27 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.blockUI.js', async: false, dataType: 'script', cache: true });

28 };

29 if (!jQuery().contextMenu) {

30 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.contextMenu.js', async: false, dataType: 'script', cache: true });

31 };

32 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsType.js', async: false, dataType: 'script', cache: true });

33 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsEditors.js', async: false, dataType: 'script', cache: true });

34 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsImage.js', async: false, dataType: 'script', cache: true });

35 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsFile.js', async: false, dataType: 'script', cache: true });

36 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsImageType.js', async: false, dataType: 'script', cache: true });

37 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsFileType.js', async: false, dataType: 'script', cache: true });

38 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsEntry.js', async: false, dataType: 'script', cache: true });

39 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsElement.js', async: false, dataType: 'script', cache: true });

40

...

</html>