-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
SystemAnimator_browse.html
99 lines (80 loc) · 2.72 KB
/
SystemAnimator_browse.html
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<html>
<head>
<script type="text/javascript" language="javascript" src="js/SA_dialog.js"></script>
<script type="text/javascript">
/*
Native dialog in WebKit mode (v0.8.0-rc1):
- "self.xxx" and "var xxx" are messed up sometimes. Some variables declared in a block may disappear in another block for unknown reasons.
*/
self.returnValue = null
if (opener)
opener.returnValue = null
var webkit_mode = /WebKit/i.test(navigator.userAgent)
function _ok() {
self.returnValue = LBFF_browse.value;
if (opener) opener.returnValue = LBFF_browse.value;
_finish()
if (parent.use_inline_dialog) {
self.location.replace("z_blank.html")
}
else {
self.close()
}
}
function _cancel() {
_finish()
if (parent.use_inline_dialog) {
self.location.replace("z_blank.html")
}
else {
self.close()
}
}
function _finish() {
if (parent.use_inline_dialog) {
SA_dialog_restore_parent_size()
parent.document.getElementById("Idialog").style.visibility = "hidden"
parent.AudioFFT_active && parent.AudioFFT_active.restartCaptureAudioWE && parent.AudioFFT_active.restartCaptureAudioWE()
var v = self.returnValue
if (v) {
if (/folder/.test(title))
parent.SA_DragDropEMU((new parent.Shell_OBJ._Folder({path:v})).Self.Path)
else {
parent.SA_DragDropEMU(LBFF_browse.files[0])
}
}
}
}
</script>
</head>
<body style="font-family: Segoe UI; overflow:hidden">
<div id="Lsettings_main" style="position:absolute; top:0px; left:0px;">
<div id="Lbrowse_for_file" style="position:absolute; left:0px; top:0px; height:24px; width:100%; background-color:white; z-index:999; padding:5px">
<span style="position:relative">
<span id="Stitle" style="font-family:Arial; font-size:12px; font-weight:bold"></span>
<script type="text/javascript">
var title = (/title\=([^\&]+)/.test(location.search)) ? decodeURIComponent(RegExp.$1) : "Dialog"
document.write('<input style="font-family:Arial; font-size:12px; width:150px" id="LBFF_browse" type="file" ' + ((webkit_mode && /folder/.test(title)) ? 'nwdirectory ' : '') + '/>')
</script>
</span>
<span id="Lbuttons" style="position:relative">
<input style="font-family:Arial; font-size:12px" type="button" value="OK" onclick="_ok()">
<input style="font-family:Arial; font-size:12px" type="button" value="Cancel" onclick="_cancel()">
</span>
</div>
</div>
<script type="text/javascript">
if (opener)
Lbuttons.style.left = "60px"
if (webkit_mode)
Lbrowse_for_file.style.top = "20px"
var w = 405+((opener)?60:0)
var h = 24+((opener)?0:14)
document.getElementById("Lsettings_main").style.width = w + "px"
SA_dialog_resize(w, h + ((parent.use_inline_dialog) ? 50 : 0))
onload = function () {
document.getElementById("Stitle").innerHTML = title
}
</script>
</body>
</html>