1 | <html>
|
---|
2 | <head>
|
---|
3 | <title>Open Community Camp 2011 - Live Page</title>
|
---|
4 | <script src="js/jquery.min.js" type="text/javascript"></script>
|
---|
5 | <script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
---|
6 | <script src="js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
|
---|
7 | <script src="js/jquery.localscroll-1.2.7-min.js" type="text/javascript"></script>
|
---|
8 | <script src="js/jquery.jcarousel.min.js" type="text/javascript"></script>
|
---|
9 |
|
---|
10 | <link rel="stylesheet" href="css/jquery-ui.css" type="text/css" media="all" />
|
---|
11 | <link rel="stylesheet" href="css/skin.css" type="text/css" media="all" />
|
---|
12 |
|
---|
13 | <script type="text/javascript">
|
---|
14 | $(function() {
|
---|
15 | $( "#tab-set" ).tabs();
|
---|
16 | });
|
---|
17 |
|
---|
18 | function mycarousel_initCallback(carousel)
|
---|
19 | {
|
---|
20 | // Disable autoscrolling if the user clicks the prev or next button.
|
---|
21 | carousel.buttonNext.bind('click', function() {
|
---|
22 | carousel.startAuto(0);
|
---|
23 | });
|
---|
24 |
|
---|
25 | carousel.buttonPrev.bind('click', function() {
|
---|
26 | carousel.startAuto(0);
|
---|
27 | });
|
---|
28 |
|
---|
29 | // Pause autoscrolling if the user moves with the cursor over the clip.
|
---|
30 | carousel.clip.hover(function() {
|
---|
31 | carousel.stopAuto();
|
---|
32 | }, function() {
|
---|
33 | carousel.startAuto();
|
---|
34 | });
|
---|
35 | };
|
---|
36 |
|
---|
37 | $(document).ready(function(){
|
---|
38 | $(".tab-set").tabs();
|
---|
39 | if($("#tab-set") && document.location.hash){
|
---|
40 | $("#tab-set").scrollTo("#tab-set");
|
---|
41 | }
|
---|
42 | $("#tab-set").localScroll({
|
---|
43 | target:"#tab-set",
|
---|
44 | hash: true,
|
---|
45 | duration : 0,
|
---|
46 | });
|
---|
47 | $('#mycarousel').jcarousel({
|
---|
48 | auto: 1,
|
---|
49 | wrap: 'last',
|
---|
50 | initCallback: mycarousel_initCallback
|
---|
51 | });
|
---|
52 | });
|
---|
53 | </script>
|
---|
54 | </head>
|
---|
55 | <body>
|
---|
56 |
|
---|
57 | <div id="tab-set">
|
---|
58 | <ul>
|
---|
59 | <li><a href="#main">Main Page</a></li>
|
---|
60 | <li><a href="#telex">IRC Telex</a></li>
|
---|
61 | <li><a href="#noc">NOC</a></li>
|
---|
62 | <li><a href="#webcam">Live WebCams</a></li>
|
---|
63 | <li><a href="#room1">Live Room1</a></li>
|
---|
64 | <li><a href="#about">Join in! Use hashtag #occ2011</a></li>
|
---|
65 | </ul>
|
---|
66 | <div id="main">
|
---|
67 | <table>
|
---|
68 | <tr><td colspan="3">
|
---|
69 | <!-- Start of Flickr Badge -->
|
---|
70 | <style type="text/css">
|
---|
71 | #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;}
|
---|
72 | #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
|
---|
73 | #flickr_icon_td {padding:0 5px 0 0 !important;}
|
---|
74 | .flickr_badge_image {text-align:center !important;}
|
---|
75 | .flickr_badge_image img {border: 1px solid black !important;}
|
---|
76 | #flickr_www {display:block; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;}
|
---|
77 | #flickr_badge_uber_wrapper a:hover,
|
---|
78 | #flickr_badge_uber_wrapper a:link,
|
---|
79 | #flickr_badge_uber_wrapper a:active,
|
---|
80 | #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#3993ff;}
|
---|
81 | #flickr_badge_wrapper {background-color:#ffffff;border: solid 1px #000000}
|
---|
82 | #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;}
|
---|
83 | </style>
|
---|
84 | <style type="text/css">
|
---|
85 | .titlec {
|
---|
86 | font-size: small;
|
---|
87 | }
|
---|
88 | ul.videos li {
|
---|
89 | float: left;
|
---|
90 | width: 10em;
|
---|
91 | margin-bottom: 1em;
|
---|
92 | }
|
---|
93 | ul.videos
|
---|
94 | {
|
---|
95 | margin-bottom: 1em;
|
---|
96 | padding-left : 0em;
|
---|
97 | margin-left: 0em;
|
---|
98 | list-style: none;
|
---|
99 | }
|
---|
100 | </style>
|
---|
101 |
|
---|
102 | <table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0"><tr>
|
---|
103 | <td>
|
---|
104 | <a href="http://www.flickr.com" id="flickr_www">www.<strong style="color:#3993ff">flick<span style="color:#ff1c92">r</span></strong>.com</a>
|
---|
105 | <table cellpadding="0" cellspacing="10" border="0" id="flickr_badge_wrapper">
|
---|
106 | <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=5&display=latest&size=m&layout=h&source=all_tag&user=70375122%40N00&tag=occ2011"></script>
|
---|
107 | </table>
|
---|
108 | </td>
|
---|
109 | </tr></table>
|
---|
110 | <!-- End of Flickr Badge -->
|
---|
111 |
|
---|
112 | </td>
|
---|
113 | </tr><tr>
|
---|
114 | <td>
|
---|
115 | <script src="http://widgets.twimg.com/j/2/widget.js"></script>
|
---|
116 | <script type="text/javascript">
|
---|
117 | new TWTR.Widget({
|
---|
118 | version: 2,
|
---|
119 | type: 'search',
|
---|
120 | search: '#occ2011',
|
---|
121 | interval: 6000,
|
---|
122 | title: 'Open Community Camp 2011',
|
---|
123 | subject: 'http://opencommunitycamp.org',
|
---|
124 | width: 300,
|
---|
125 | height: 300,
|
---|
126 | theme: {
|
---|
127 | shell: {
|
---|
128 | background: '#8ec1da',
|
---|
129 | color: '#ffffff'
|
---|
130 | },
|
---|
131 | tweets: {
|
---|
132 | background: '#ffffff',
|
---|
133 | color: '#444444',
|
---|
134 | links: '#1985b5'
|
---|
135 | }
|
---|
136 | },
|
---|
137 | features: {
|
---|
138 | scrollbar: true,
|
---|
139 | loop: true,
|
---|
140 | live: true,
|
---|
141 | hashtags: true,
|
---|
142 | timestamp: true,
|
---|
143 | avatars: true,
|
---|
144 | toptweets: true,
|
---|
145 | behavior: 'all'
|
---|
146 | }
|
---|
147 | }).render().start();
|
---|
148 | </script>
|
---|
149 | </td>
|
---|
150 | <td>
|
---|
151 | <div style="background-color: #00FFFF;width:647px;height:400px">
|
---|
152 | <iframe src="http://webchat.freenode.net?channels=occ&uio=d4" width="647px" height="400px"></iframe>
|
---|
153 | </div>
|
---|
154 | </td>
|
---|
155 | <td>
|
---|
156 | <div id="playerContainer" style="width: 320px; height: 260px;">
|
---|
157 | <object id="player"></object>
|
---|
158 | </div>
|
---|
159 | <div id="videos2"></div>
|
---|
160 | <script type="text/javascript" src="http://swfobject.googlecode.com/svn/trunk/swfobject/swfobject.js"></script>
|
---|
161 | <script type="text/javascript">
|
---|
162 | function loadVideo(playerUrl, autoplay) {
|
---|
163 | swfobject.embedSWF(
|
---|
164 | playerUrl + '&rel=1&border=0&fs=1&autoplay=' +
|
---|
165 | (autoplay?1:0), 'player', '320', '260', '9.0.0', false,
|
---|
166 | false, {allowfullscreen: 'true'});
|
---|
167 | }
|
---|
168 |
|
---|
169 | function showMyVideos2(data) {
|
---|
170 | var feed = data.feed;
|
---|
171 | var entries = feed.entry || [];
|
---|
172 | var html = ['<ul id="mycarousel" class="jcarousel-skin-tango videos">'];
|
---|
173 | for (var i = 0; i < entries.length; i++) {
|
---|
174 | var entry = entries[i];
|
---|
175 | var title = entry.title.$t.substr(0, 20);
|
---|
176 | var thumbnailUrl = entries[i].media$group.media$thumbnail[0].url;
|
---|
177 | var playerUrl = entries[i].media$group.media$content[0].url;
|
---|
178 | html.push('<li onclick="loadVideo(\'', playerUrl, '\', true)">',
|
---|
179 | '<img src="', thumbnailUrl, '" width="75" height="75" alt="',title ,'..."/>', '</li>');
|
---|
180 | }
|
---|
181 | html.push('</ul><br style="clear: left;"/>');
|
---|
182 | document.getElementById('videos2').innerHTML = html.join('');
|
---|
183 | if (entries.length > 0) {
|
---|
184 | loadVideo(entries[0].media$group.media$content[0].url, false);
|
---|
185 | }
|
---|
186 | }
|
---|
187 | </script>
|
---|
188 | <script type="text/javascript" src="https://gdata.youtube.com/feeds/api/videos?strict=true&max-results=10&category=occ2011&alt=json-in-script&callback=showMyVideos2">
|
---|
189 | </script>
|
---|
190 | </td>
|
---|
191 | </tr></table>
|
---|
192 |
|
---|
193 | </div>
|
---|
194 | <div id="telex">
|
---|
195 | <table><tr><td>
|
---|
196 | <iframe src="http://webchat.freenode.net?channels=occ&uio=d4" width="647" height="400"></iframe></td><td>
|
---|
197 | <img src="http://live.occ2011.org:9999/cam4/video" />
|
---|
198 | </td></tr></table>
|
---|
199 | </div>
|
---|
200 | <div id="noc">
|
---|
201 | <iframe src="http://noc.occ2011.org" width="100%" height="100%"></iframe>
|
---|
202 | </div>
|
---|
203 | <div id="webcam">
|
---|
204 | <iframe src="http://live.occ2011.org:9999/browser.html" width="100%" height="100%"></iframe>
|
---|
205 | </div>
|
---|
206 | <div id="room1">
|
---|
207 | <iframe src="http://live.occ2011.org:9999/room1.html" width="100%" height="100%"></iframe>
|
---|
208 | </div>
|
---|
209 | </div>
|
---|
210 |
|
---|
211 |
|
---|
212 |
|
---|
213 | </body>
|
---|
214 | </html>
|
---|