-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsgo.js
62 lines (54 loc) · 839 Bytes
/
jsgo.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
var jsgoPrivate=
{
isEmpty:function(par, val)
{
if (par===undefined)
{return val;}
return par;
}
}
function output(content,endl)
{
enel=jsgoPrivate.isEmpty(endl,true);
if(enel)
{
document.write(content+"<br/>");
}
else
{
document.write(content);
}
}
function getPath()
{
var lcal= location.href;
var ary=lcal.split("/");
lcal="";
for(var i=3;i<ary.length-1;i++)
{lcal+=ary[i]+"/";}
return lcal;
}
function outpic(path)
{
document.write("<body><img src='"+path+"'></body>"+"<br/>");
}
function wrap()
{
document.write("<br/>");
}
function msgbox(content)
{
alert(content);
}
function selbox(content)
{
return confirm(content);
}
function input(inform)
{
return prompt(inform);
}
function exitPage()
{
window.close();
}