-
Notifications
You must be signed in to change notification settings - Fork 0
/
includeJS.js
89 lines (70 loc) · 2.24 KB
/
includeJS.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//function object to use for generating random IDS
function MakeRandomId(){
var startseed=(Math.random())*1000;
var endseed=startseed.toPrecision(3);
return endseed;
}
/**
* Loading Tiers
* Loads scripts using the JQ .getScript()
*
*
*/
//FIRST TIER OF LOADING
//$.getScript("./lib/ArchWorkspace/ArchWorkspace.js",function(){
//SECOND TIER OF LOADING
$(function(){
//create a loadscreen for users
var load=$("<div class=\"load\"><p>Loading Interface...</p></div>");
$("#workspace").append(load);
var loadprogress=$("<div id=\"loadpBar\" class=\"testPBAR\"></div>");
load.append(loadprogress);
loadprogress.progressbar({value:25});
/*
$.getScript("./lib/StateMgr/stateMgr.js");
$.getScript("./lib/ArchieLightbox/ArchieLightbox.js");
$.getScript("./lib/ArchSelect/ArchSelect.js");
$.getScript("./lib/ArchProjectBar/ArchProjectBar.js");
$.getScript("./lib/ArchDropDown/ArchDropDown.js");
$("#loadpBar").progressbar('option','value','45');
$.getScript("./lib/Archie_Panel/ArchiePanel.js");
$.getScript("./lib/Crop/crop.js");
$.getScript("./lib/CropLayerBox/CropLayerBox.js");
$("#loadpBar").progressbar('option','value','55');
$.getScript("./lib/ArchPageText/ArchPageText.js");
$.getScript("./lib/OverMap/ArchOverMap.js");
$.getScript("./lib/OverlaySwitcher/OverlaySwitcher.js");
$.getScript("./lib/ArchiePanelContent/TMSContent.js");
$.getScript("./lib/TMSLayer/TMSLayer.js");
$("#loadpBar").progressbar('option','value','75');
$.getScript("./lib/CropLayer/CropLayer.js");
*/
/*
$.getScript("./lib/TMSLayer/SubLayer.js",function(){
*/
$("#loadpBar").progressbar('option','value','98');
setTimeout(function(){
$(function(){
var data = $.ajax({
async: false,
dataType: "text",
url: "./Global_Files/findDomain.php"
}).responseText;
data=data.split("%");
var rp = data[0];
IMGDIR = data[1];
var xpath = data[2];
//header=document.getElementById("header");
$(".load").remove();
var desktop = new ArchWorkspace({
loc: "workspace",
regpath: rp,
imgdir: IMGDIR,
xmlpath: xpath
});
});
}, 200);
});
//});
//});
//$.getScript("./lib/ArchieLoad/ArchieGlobalFunctions.js");