-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
73 lines (69 loc) · 3.53 KB
/
header.php
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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( ' | ', true, 'right' ); ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed">
<header id="header" role="banner">
<section id="branding">
<div id="site-title"><a id="site-title-link" href="/"><?php bloginfo( 'name' ); ?></a></div>
<div class="sun"></div>
<div class="bar bar1"></div>
<div class="bar bar2"></div>
<div class="bar bar3"></div>
<div class="bar bar4"></div>
<div class="bar bar5"></div>
</section>
<ul id='social'>
<li><a href='https://www.facebook.com/KSDT-UCSD-College-Radio-449663035074953/timeline/'><i class="fa fa-facebook-f fa-2x"></i></a></li>
<li><a href='https://twitter.com/radioksdt'><i class="fa fa-twitter fa-2x"></i></a></li>
<li><a href='https://instagram.com/ksdt_radio/'><i class="fa fa-instagram fa-2x"></i></a></li>
</ul>
<nav id="menu" role="navigation">
<div class="navlinks">
<a class="navlink" id="listen" href="#" >click to listen</a>
<a class="navlink" href="?page_id=25">about us</a>
<a class="navlink" href="?page_id=28">shows</a>
<!--<a class="navlink" href="?page_id=30">blog</a>-->
<a class="navlink" href="?page_id=32">get involved</a>
<a class="navlink" href="?page_id=34">musicdb</a>
<a class="navlink" href="?page_id=54">contact us</a>
<!--<a class="navlink" href="?page_id=36">vault</a>-->
</div>
<?php //wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?>
</nav>
<script>
$(document).ready(function() {
var audio;
var title;
function generateTitle() {
if (!audio) {
if (title) {
}
}
$('#listen').click(function() {
if (!audio || audio && audio.paused) {
audio = new Audio('//ksdt.ucsd.edu/listen/stream');
$(this).text('loading...');
audio.addEventListener('canplay', function() { audio.play(); $('#listen').text('click to pause'); });
audio.addEventListener('playing', function() { $('#listen').text('click to pause'); });
audio.addEventListener('pause', function() { $('#listen').text('click to listen'); });
} else {
audio.pause();
}
});
(function updateSong() {
$.get('https://ksdt.ucsd.edu/status', function (data) {
var title = data.icestats.source.title;
});
setTimeout(updateSong, 1000);
})();
});
</script>
</header>
<div id="container">