blob: dcd32b5b28a6f79462f7c4eec65c3ed98ea47872 (
plain)
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
(function()
{
var pos = Number(window.location.href.substring(window.location.href.lastIndexOf("/")+1, window.location.href.length-5));
var tnpos = pos + 1;
var tppos = pos - 1;
if (tnpos < 10)
tnpos = String("000" + tnpos)
else if (tnpos < 100)
tnpos = String("00" + tnpos)
else if (tnpos < 1000)
tnpos = String("0" + tnpos)
else
tnpos = String(tnpos)
if (tppos < 10)
tppos = String("000" + tppos)
else if (tppos < 100)
tppos = String("00" + tppos)
else if (tppos < 1000)
tppos = String("0" + tppos)
else
tppos = String(tppos)
document.write('<div id="demoHead">qooxdoo: <span>The new era of web development</span></div>');
document.write('<div id="demoFoot">');
if( /\/showcase\//.test(window.location.href) ) {
document.write('Selected: Showcase | ');
document.write('[<a href="../../index.html">Back to overview</a>]  ');
} else if( /\/example\//.test(window.location.href) ) {
document.write('Selected: Example | ');
document.write('[<a href="../../index.html">Back to overview</a>]  ');
} else if( /\/performance\//.test(window.location.href) ) {
document.write('Selected: Performance | ');
document.write('[<a href="../../index.html">Back to overview</a>]  ');
} else {
document.write('Selected: Test | ');
document.write('[<a href="../../index.html">Back to overview</a>]  ');
};
document.write('[<a href="javascript:qx.dev.Pollution.consoleInfo(\'window\');">Global Pollution</a>]  ');
document.write('[<a href="javascript:qx.core.Object.summary();">Object Summary</a>]  ');
document.write('</div>');
document.write('<div id="demoDebug"></div>');
document.write('<div id="demoFrame"> </div>');
qx.dev.log.Logger.ROOT_LOGGER.removeAllAppenders();
qx.dev.log.Logger.ROOT_LOGGER.addAppender(new qx.dev.log.DivAppender("demoDebug"));
function showTestFiles()
{
var str = "";
if( window.location.href.search(/\/showcase\//)+1 ) {
str = showstr;
}
else if( window.location.href.search(/\/example\//)+1 ) {
str = exastr;
}
else if( window.location.href.search(/\/performance\//)+1 ) {
str = perfstr;
}
else if( window.location.href.search(/\/test\//)+1 ) {
str = teststr;
}
var arr = str.split(" ");
var p = window.location.pathname.replace(/\\/g, "/");
var sel = -1;
document.writeln('<select id="demoFiles" onchange="if(this.options[this.selectedIndex].value)window.location.href=this.options[this.selectedIndex].value">');
document.writeln('<option value=""></option>');
for( var i=1; i<arr.length; i++ ) {
document.write('<option value="' + arr[i] + '"');
if(p.search(new RegExp( "\/" + arr[i]) )+1) {
document.write(' selected="selected"');
sel = i;
}
document.writeln('>' + arr[i].replace(/_/g, " ").replace(/\.html/, "") + '</option>');
}
document.writeln('</select>');
if (sel != -1)
{
document.writeln('<div id="demoJump">');
if (sel > 1) {
document.writeln("<button onclick='window.location.href=\"" + arr[sel-1] + "\"'><</button>");
}
if (sel < arr.length-1) {
document.writeln("<button onclick='window.location.href=\"" + arr[sel+1] + "\"'>></button>");
}
document.writeln('</div>');
};
}
var url = location.href;
var pos = url.indexOf("/html/")+6;
var split = url.substring(pos).split("/");
var category = split[0];
category = category.charAt(0).toUpperCase() + category.substring(1);
var pagename = split[1].replace(".html", "").replace(/_/g, " ");
pagename = pagename.charAt(0).toUpperCase() + pagename.substring(1);
document.title = "qooxdoo » Demo » " + category + " » " + pagename;
if (window.location.href.indexOf("demo.qooxdoo.org") != -1)
{
document.write('<script type="text/javascript">var a_vars = []; var pagename=""; var phpmyvisitesSite = 5; var phpmyvisitesURL = "http://counter.qooxdoo.org/phpmyvisites.php";</script>');
document.write('<script type="text/javascript" src="http://counter.qooxdoo.org/phpmyvisites.js"></script>');
document.write('<script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>');
document.write('<script type="text/javascript">_uacct = "UA-415440-1"; function urchinStart() { urchinTracker() }; if (window.addEventListener)window.addEventListener("load", urchinStart, false); else if(window.attachEvent)window.attachEvent("onload", urchinStart);</script>');
}
//})();
|