-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathseadragon-dev.js
executable file
·41 lines (36 loc) · 1.31 KB
/
seadragon-dev.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
(function() {
var PATH = "src/"; // the path to the scripts, relative to HTML page
var SCRIPTS = [ // the script filenames, in dependency order
"Seadragon.Core.js",
"Seadragon.Config.js",
"Seadragon.Strings.js",
"Seadragon.Debug.js",
"Seadragon.Profiler.js",
"Seadragon.Point.js",
"Seadragon.Rect.js",
"Seadragon.Spring.js",
"Seadragon.Utils.js",
"Seadragon.MouseTracker.js",
"Seadragon.EventManager.js",
"Seadragon.ImageLoader.js",
"Seadragon.Buttons.js",
"Seadragon.TileSource.js",
"Seadragon.DisplayRect.js",
"Seadragon.DeepZoom.js",
"Seadragon.Viewport.js",
"Seadragon.Drawer.js",
"Seadragon.Viewer.js"
];
var html = [];
for (var i = 0; i < SCRIPTS.length; i++) {
html.push('<script type="text/javascript" src="');
html.push(PATH);
html.push(SCRIPTS[i]);
html.push('"></script>\n');
}
// "defer" attr is needed here otherwise IE executes this too early
html.push('<script type="text/javascript" defer="defer">\n');
html.push(' Seadragon.Config.debugMode = true;\n');
html.push('</script>\n');
document.write(html.join(''));
})();