|
1 <script> |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 var list = |
|
7 [ |
|
8 "blueprint/sample.html", |
|
9 "blueprint/forms.html", |
|
10 "blueprint/grid.html", |
|
11 "blueprint/elements.html", |
|
12 "js-input/3d-cube.html", |
|
13 "js-input/3d-morph.html", |
|
14 "js-input/3d-raytrace.html", |
|
15 "js-input/3d-thingy.html", |
|
16 "js-input/access-binary-trees.html", |
|
17 "js-input/access-fannkuch.html", |
|
18 "js-input/access-nbody.html", |
|
19 "js-input/access-nsieve.html", |
|
20 "js-input/bitops-3bit-bits-in-byte.html", |
|
21 "js-input/bitops-bits-in-byte.html", |
|
22 "js-input/bitops-bitwise-and.html", |
|
23 "js-input/bitops-nsieve-bits.html", |
|
24 "js-input/controlflow-recursive.html", |
|
25 "js-input/crypto-aes.html", |
|
26 "js-input/crypto-md5.html", |
|
27 "js-input/crypto-sha1.html", |
|
28 "js-input/crypto-otp.html", |
|
29 "js-input/date-format-tofte.html", |
|
30 "js-input/date-format-xparb.html", |
|
31 "js-input/math-cordic.html", |
|
32 "js-input/math-partial-sums.html", |
|
33 "js-input/math-spectral-norm.html", |
|
34 "js-input/regexp-dna.html", |
|
35 "js-input/string-base64.html", |
|
36 "js-input/string-fasta.html", |
|
37 "js-input/string-tagcloud.html", |
|
38 "js-input/string-unpack-code.html", |
|
39 "js-input/string-validate-input.html" |
|
40 ]; |
|
41 var interval = 3000; // 15000 |
|
42 var idx = 0; |
|
43 var w; |
|
44 |
|
45 window.onload = function () { |
|
46 w = window.open("about:blank"); |
|
47 window.setTimeout(loadURL, interval); |
|
48 }; |
|
49 function loadURL () { |
|
50 w.close(); |
|
51 w = window.open(list[idx++]); |
|
52 if (idx < list.length) { |
|
53 window.setTimeout(loadURL, interval); |
|
54 } else { |
|
55 window.setTimeout(Quitter.quit, interval); |
|
56 } |
|
57 } |
|
58 var i; |
|
59 |
|
60 for(i=0; i < list.length;i++) { |
|
61 document.write(list[i]); |
|
62 document.write("<br>"); |
|
63 } |
|
64 </script> |