aa2460fea50af56a06872277e3958d3db14335b7
[booh] / www / themes / cardu / Home / index.html
1 <html>
2         <head>
3                 <script language="JavaScript1.1" type="text/JavaScript">
4
5 var sizes = new Array("medium", "large");
6
7 function getPreferredSize() {
8     if (document.cookie) {
9         var index = document.cookie.indexOf('booh-preferred-size-cardu');
10         if (index != -1) {
11             var oleft = document.cookie.indexOf('=', index) + 1;
12             var oright = document.cookie.indexOf(';', index);
13             if (oright == -1) {
14                 oright = document.cookie.length;
15             }
16             size = document.cookie.substring(oleft, oright);
17             for (i = 0; i < sizes.length; i++) {
18                 if (sizes[i] == size) {
19                     return 'thumbnails-' + size + '-0.html';
20                 }
21             }
22         }
23     }
24     w = document.body.offsetWidth;
25     if (w + 50 > 1280) { return 'thumbnails-large-0.html'; }
26 if (w + 50 > 1024) { return 'thumbnails-medium-0.html'; }
27
28     return 'thumbnails-medium-0.html';
29 }
30
31
32         </script>
33
34         <meta http-equiv="refresh" content="0.1;url=thumbnails-medium-nojs-0.html">
35 </head>
36 <body onload="window.location.href = getPreferredSize()">
37 </body>
38 </html>