Log updates
[beagleboard.org.git] / db / 2204.xml
blobb0d0a467e04c8a9625d5e25e9ff47846ea9bec17
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <?xml-stylesheet type="text/xsl" href="helma.xsl"?>
3 <xmlroot xmlns:hop="http://www.helma.org/docs/guide/features/database">
4   <hopobject id="2204" name="Page" prototype="Page" created="1350683344092" lastModified="1351022248779">
5   <hop:parent idref="0" prototyperef="Root"/>
6     <is_xhtml type="boolean">true</is_xhtml>
7     <http_remotehost>127.0.0.1</http_remotehost>
8     <oauth2-token></oauth2-token>
9     <http_language>en-US,en;q=0.8</http_language>
10     <uri>rotate-test</uri>
11     <http_browser>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4</http_browser>
12     <time type="date">23.10.2012 14:57:28 CDT</time>
13     <hopsession>127.0.0.107.5.165.95krpamcv4vp</hopsession>
14     <body>&lt;div id=&quot;rotate-items&quot; style=&apos;width: 800px; height: 600px;&apos;&gt;\r
15  &lt;img id=&quot;a&quot; src=&quot;/static/images/bone.jpg&quot; style=&apos;height: 500px; position: absolute; left: 250px; top: 100px; z-index: 3;&apos; /&gt; \r
16  &lt;img id=&quot;b&quot; src=&quot;/static/images/board.jpg&quot; style=&apos;height: 80px; position: absolute; left: 50px; top: 50px; z-index: 1;&apos; /&gt; \r
17  &lt;img id=&quot;c&quot; src=&quot;/static/images/xm.jpg&quot; style=&apos;height: 80px; position: absolute; left: 800px; top: 50px; z-index: 2;&apos;  /&gt;\r
18 &lt;/div&gt;\r
19 &lt;p&gt;&lt;/p&gt;\r
20 &lt;div&gt;\r
21 &lt;ul id=&quot;slider&quot;&gt;\r
22 &lt;/ul&gt;\r
23 &lt;/div&gt;\r
24 &lt;script&gt;\r
25  var onleft = {\r
26   height: &quot;80px&quot;,\r
27   left: &quot;50px&quot;,\r
28   top: &quot;50px&quot;\r
29  };\r
30  var oncenter = {\r
31   height: &quot;500px&quot;,\r
32   left: &quot;250px&quot;,\r
33   top: &quot;100px&quot;\r
34  };\r
35  var onright = {\r
36   height: &quot;80px&quot;,\r
37   left: &quot;800px&quot;,\r
38   top: &quot;50px&quot;\r
39  };\r
40  doRotate = function() {\r
41   if($(&apos;#a&apos;).css(&apos;left&apos;) == onleft.left) {\r
42    $(&apos;#a&apos;).animate(onright, 1000);\r
43    $(&apos;#a&apos;).css(&apos;z-index&apos;, &apos;1&apos;);\r
44    $(&apos;#b&apos;).animate(oncenter, 1000);\r
45    $(&apos;#b&apos;).css(&apos;z-index&apos;, &apos;3&apos;);\r
46    $(&apos;#c&apos;).animate(onleft, 1000);\r
47    $(&apos;#c&apos;).css(&apos;z-index&apos;, &apos;2&apos;);\r
48   } else  if($(&apos;#a&apos;).css(&apos;left&apos;) == oncenter.left) {\r
49    $(&apos;#a&apos;).animate(onleft, 1000);\r
50    $(&apos;#a&apos;).css(&apos;z-index&apos;, &apos;2&apos;);\r
51    $(&apos;#b&apos;).animate(onright, 1000);\r
52    $(&apos;#b&apos;).css(&apos;z-index&apos;, &apos;1&apos;);\r
53    $(&apos;#c&apos;).animate(oncenter, 1000);\r
54    $(&apos;#c&apos;).css(&apos;z-index&apos;, &apos;3&apos;);\r
55 } else {\r
56    $(&apos;#a&apos;).animate(oncenter, 1000);\r
57    $(&apos;#a&apos;).css(&apos;z-index&apos;, &apos;3&apos;);\r
58    $(&apos;#b&apos;).animate(onleft, 1000);\r
59    $(&apos;#b&apos;).css(&apos;z-index&apos;, &apos;2&apos;);\r
60    $(&apos;#c&apos;).animate(onright, 1000);\r
61    $(&apos;#c&apos;).css(&apos;z-index&apos;, &apos;1&apos;);\r
62   }\r
63  };\r
64  setInterval(doRotate, 5000);\r
65 &lt;/script&gt;\r
66 &lt;script&gt;\r
67 function handleResponse(resp) {\r
68     for(item in resp.items) {\r
69             $(&apos;#slider&apos;).append(&apos;&lt;li class=&quot;results_item&quot; id=&quot;results_&apos; + item + &apos;&quot; class=&quot;arrow&quot;&gt;&lt;/li&gt;&apos;);\r
70             $(&apos;#results_&apos; + item).append(&apos;&lt;h4&gt;&apos; + resp.items[item].title + &apos;&lt;/h4&gt;&apos;);\r
71             $(&apos;#results_&apos; + item).append(&apos;&lt;a href=&quot;&apos; + resp.items[item].url + &apos;&quot;&gt; more&lt;/a&gt;&apos;);\r
72             try {\r
73             for(i in resp.items[item].object.attachments) {\r
74             if(resp.items[item].object.attachments[i].image) {\r
75             $(&apos;#results_&apos; + item).prepend(&apos;&lt;img class=&quot;results_image&quot; id=&quot;results_image_&apos; + item + &apos;&quot; src=&quot;&apos; \r
76             + resp.items[item].object.attachments[i].image.url + &apos;&quot; /&gt;&apos;);\r
77             break;\r
78             }\r
79             }\r
80             } catch(ex) {\r
81         }\r
82     }\r
84    $(&apos;#slider&apos;).movingBoxes({\r
85         startPanel   : 1,\r
86         reducedSize  : 0.8,\r
87         wrap         : true,\r
88         buildNav     : true,\r
89         navFormatter : function(){ return &quot;&amp;#9679;&quot;; },\r
90         width        : 300,\r
91         panelWidth   : 0.9\r
92         });\r
93 }\r
95 function makeRequest() {\r
96 var request = gapi.client.plus.activities.list(\r
97     {\r
98         &apos;userId&apos;: &apos;104712705716996155416&apos;, \r
99         &apos;collection&apos;: &apos;public&apos;, \r
100         &apos;maxResults&apos;: 12\r
101     });\r
102 request.execute(handleResponse);\r
105 function load() {\r
106     gapi.client.setApiKey(&apos;AIzaSyDB9-M-HaJ1GtB8j8EppCLsdpzLwW5Y4IE&apos;);\r
107     gapi.client.load(&apos;plus&apos;, &apos;v1&apos;, makeRequest);\r
109 &lt;/script&gt;\r
110 &lt;script src=&quot;https://apis.google.com/js/client.js?onload=load&quot;&gt;&lt;/script&gt;</body>
111     <pseudoparent idref="0" prototyperef="Root"/>
112     <render_skin>index_test</render_skin>
113     <edit_skin>edit</edit_skin>
114     <skin_is_outer>1</skin_is_outer>
115     <http_referer>http://beagleboard.org/rotate-test/edit</http_referer>
116     <http_host>beagleboard.org</http_host>
117     <user>blog.hangerhead.com</user>
118     <lang>en-us</lang>
119   </hopobject>
120 </xmlroot>