]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/party.html
ccfb42d6f0f3cc008897e97f48eb2743a7359b93
[panikweb.git] / panikweb_templates / templates / party.html
1 {% extends "base.html" %}
2 {% load thumbnails paniktags %}
3 {% block bodyID %}Party{% endblock %}
4 {% block title %}Party{% endblock %}
5
6 {% block extrascripts %}
7 <script>
8 var timer = null;
9 function reload() {
10   if (location.href.indexOf('/party') == -1) {
11     clearInterval(timer);
12     return;
13   }
14   if (location.href.indexOf('?') == -1) {
15     href = location.href;
16   } else {
17     href = location.href.substring(0, location.href.indexOf('?'));
18   }
19   href = href + '?' + new Date().getTime()
20   $('#Changing').fadeOut();
21
22   $('#Changing').load(href + " #Changing>*", null, function() {$('#Changing').fadeIn();});
23 }
24
25 $(function() {
26   timer = setInterval(reload, 10000);
27 });
28 </script>
29 {% endblock %}
30
31 {% block main %}
32
33 <div id="party" class="news">
34
35   <div class="content content-inline cf special">
36     <a class="block cf" href="{{ focus|get_focus_url}}">
37       {% if focus.content_category_title %}
38         <div class="label labels absolute">
39           <span class="item inBlock">{{ focus.content_category_title }}</span>
40         </div>
41       {% endif %}
42       <div class="logo">
43         <img class="normal" src="{{ focus.content_image|thumbnail:'500x375' }}"/>
44       </div>
45       <div class="title"><div>{{ focus.focus_title }}</div></div>
46     </a>
47   </div>
48
49   <style>
50 #metaNav, #Footer, .metas { display: none; }
51 .special .title {
52         opacity:0.9;
53         width: 482px;
54         background: black;
55         color: white;
56         position: absolute;
57         bottom: 0;
58         font-family: "RegloBold";
59         padding: 10px;
60 }
61
62 body {
63         height: 90%;
64         overflow: hidden;
65 }
66
67 #Changing,
68 #Commons {
69         float: none;
70         height: 200px;
71         width: 500px;
72         margin: 0 auto 0 auto;
73 }
74 #backgroundBox {
75         margin: auto 0;
76 }
77
78 #Commons > .wrapper {
79         position: relative;
80 }
81
82 #Player {
83         width: 200px;
84         position: absolute;
85         top: 50px;
86         left: 200px;
87 }
88
89   </style>
90
91 {% endblock %}