forked from hchapman/WBOR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
212 lines (196 loc) · 8.86 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{% block title %}WBOR{% endblock %}</title>
<link rel="icon" type="image/png" href="/static/images/favicon.png">
<link rel="stylesheet" href="/static/css/reset.css" />
<link rel="stylesheet" href="/static/css/text.css" />
<link rel="stylesheet" href="/static/css/960.css" />
<link rel="stylesheet" href="/static/css/page.css" />
<link rel="stylesheet" href="/static/css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="/static/css/lightbox.css" media="screen" />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js'></script>
<script type='text/javascript' src='/static/js/jquery-ui.js'></script>
<script type='text/javascript' src='/static/js/jquery.autocomplete.js'></script>
<script type='text/javascript' src='/static/js/jquery.lightbox.js'></script>
<script type='text/javascript' src='/static/js/jquery.tinymce.js'></script>
<script type='text/javascript' src='/static/js/jquery.form.js'></script>
<script type='text/javascript'>
background = function() {
document.body.style.background = 'url(/static/images/bg/' + (Math.round(Math.random() * 21) + 1) + '.gif)';
}
$(document).ready(function() {
if ($('textarea.tinymce').length > 0) {
$('textarea.tinymce').tinymce({
script_url: '/static/js/tiny_mce.js',
theme: "advanced",
});
}
$(".chart-toggler").click(function() {
$(".chart-toggler").removeClass("chart-selected");
$(this).addClass("chart-selected");
if ($.trim($(this).html()) == "Songs") {
$("#albumtable").hide();
$("#songtable").show();
} else {
$("#songtable").hide();
$("#albumtable").show();
}
});
$("#nowplaying").mouseenter(function() {
$("#showdeschidden").slideDown("medium");
});
$("#nowplaying").mouseleave(function() {
$("#showdeschidden").slideUp("medium");
});
$(".datepicker").datepicker();
nowPlaying();
if ($("#delete-button")) {
$("#delete-button").click(function() {
return confirm("Are you sure you want to do this?");
});
}
if ($(".artist-autocomplete").length > 0) {
$(".artist-autocomplete").autocomplete({
serviceUrl: '/ajax/artistcomplete',
minChars: 1,
width: $(".artist-autocomplete").width(),
maxHeight: 400,
onSelect: function(value, data) {
},
});
}
if ($(".dj-autocomplete").length > 0) {
$(".dj-autocomplete").each(function(index) {
var p_key = $(this).attr("key");
$(this).autocomplete({
serviceUrl: '/ajax/djcomplete',
minChars: 1,
width: $(".dj-autocomplete").width(),
maxHeight: 400,
onSelect: function(value, data) {
$.post("/dj/permissions",
{
'dj_key': data,
'permission_key': p_key,
'action': "add",
},
function(data) {
if (data.err) {
alert(data.err);
} else {
var li = document.createElement("li");
li.innerHTML = value;
$("#" + p_key).append(li);
$("#msgbox").html(data.msg);
}
}, "json");
},
});
});
}
if ($("#albumlist li a").length > 0) {
$("#albumlist li a").lightBox({
imageLoading: '/static/images/lightbox-ico-loading.gif',
imageBtnClose: '/static/images/lightbox-btn-close.gif',
imageBtnPrev: '/static/images/lightbox-btn-prev.gif',
imageBtnNext: '/static/images/lightbox-btn-next.gif',
imageBlank: '/static/images/lightbox-blank.gif',
});
}
});
function nowPlaying() {
// request currently-playing information; update page accordingly.
// requests both now-playing box and recently-played box, if you're on the main page.
$.get('/updateinfo', function(data) {
$("#currentsong").html(data.song_string);
$("#currentshow").html(data.program_title);
$("#currentshow").attr('href', '/programs/' + data.program_slug);
$("#currentshowdesc").html(data.program_desc + "<hr />" + data.top_played);
if ($("#latestplays")) {
$("#latestplays").html(data.recent_songs_html);
}
}, "json");
nowPlayingTimer = setTimeout("nowPlaying()", 30000);
}
</script>
{% block extra_scripts %}{% endblock %}
</head>
<body onLoad="background();">
<div id='outer-wrap'>
<div id='wrap' class='container_12'>
<div id='header'>
<div class='grid_6' id='logo'><!-- Start header -->
<a title='May 9, 7:00 pm' href='/'><img src='/static/images/transparentlogo.png'></a>
</div>
<div class='grid_3 header' id='voicewidget'>
<object type="application/x-shockwave-flash" data="https://clients4.google.com/voice/embed/webCallButton" width="230" height="85"><param name="movie" value="https://clients4.google.com/voice/embed/webCallButton" /><param name="wmode" value="transparent" /><param name="FlashVars" value="id=149751eac6a0d999583c849fb23a20e411e05cf7&style=0" /></object>
</div>
<div class='grid_3 header'>
<div id='download-m3u'>
<a href='/static/wbor.m3u'>
<strong>Listen now</strong>
<br>
Live internet stream
</a>
</div>
</div><!-- End header -->
</div>
<div class='clear'></div>
<!-- This is for the "floating" navbar -->
<div class='navbar_clear grid_12'></div>
<div class='clear'></div>
{% block main_content %}
<div class='grid_12 flash-msg' id='msgbox'>
{% for msg in flash %}
{{ msg.0|safe }}
{% endfor %}
</div>
{% block top_row %}{% endblock %}
<div class='grid_7 left'><!-- Left-hand column on front page -->
{% block left_column %}
{% endblock %}
</div><!-- End left-hand column -->
<!-- Right-hand column on front page -->
<div class='grid_5 right'>
{% block right_column %}
{% endblock %}
</div><!-- End right-hand column -->
{% endblock %}
<div class='clear'></div>
<div id='footer'>
{% block footer %}<!-- footer, obviously -->
© 2010-2011, WBOR Brunswick, 91.1 FM
{% endblock %}
</div><!-- end footer -->
<div id='navigation'>
<ul>
<li {% if news_selected %}class='selected'{% endif %}><a href='/'>News</a></li>
<li {% if events_selected %}class='selected'{% endif %}><a href='/events'>Events</a></li>
<li {% if schedule_selected %}class='selected'{% endif %}><a href='/schedule'>Schedule</a></li>
<li {% if playlists_selected %}class='selected'{% endif %}><a href='/playlists'>Playlists</a></li>
<li {% if charts_selected %}class='selected'{% endif %}><a href='/charts'>Charts</a></li>
<li {% if fun_selected %}class='selected'{% endif %}><a href='/fun'>Fun</a></li>
<li {% if history_selected %}class='selected'{% endif %}><a href='/history'>History</a></li>
<li {% if contact_selected %}class='selected'{% endif %}><a href='/contact'>Contact</a></li>
<li><a href='/dj/login'>DJ Login</a></li>
</ul>
<div id='nowplaying'>
<strong>♫ NOW PLAYING ♫</strong>
<br>
<span id='currentsong'>gathering info...</span>
<br>
on <a href='show/hitgitsplit' id='currentshow'>wait for it...</a>
<div id='showdeschidden'>
<hr>
<p id='currentshowdesc'>
<!-- The Hit Git & Split is celebrating Tom Wait's 60th birthday for this college season. The theme is "Just Another Dime Store Novel". From "Pasties and a G-string", an adventure in tassel twirling, along with "Hang on St. Christopher", we'll take you "Straight to the Top" of "Frank's Wild Years". "Jesus Gonna Be Here", along with "Chocolate Jesus", because "God's Away on Business". The AWB will prevail as your "Late Night Evening Prostitute". A good gardener knows when to put his hose down and roll it up. "Well, that ain't half of it, man, you know - boy have I got a show for you!" --> loading show description
</p>
</div>
</div>
</div>
</div><!-- End wrap -->
</div><!-- End outer wrap -->
</body>
</html>