vov-mobile

Check-in [57b6e0deee]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Move radio JS to its own source file. Put calendar into optional second half of window when there's room.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:57b6e0deee01af8a7025711186d385acddb254f5ae32440b78acf92536174ad4
User & Date: ajv-899-334-8894@vsta.org 2016-07-26 05:09:55
Context
2016-07-29
19:18
Integrate Ajax Now Playing. Try to keep touch events from bleeding through. check-in: 8bbdac7c0a user: ajv-899-334-8894@vsta.org tags: master, trunk
19:02
removed share and star buttons check-in: a761b0dd08 user: snowneck@gmail.com tags: master, trunk
2016-07-26
05:09
Move radio JS to its own source file. Put calendar into optional second half of window when there's room. check-in: 57b6e0deee user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-07-22
20:57
Oopsie, put Amri's change back in check-in: 22deec2272 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to index.html.

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
...
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
</head>

<link rel="stylesheet" href="style.css">

<body>

<audio id="radio1"></audio>

<script>
var playing = false, rolling = false;

// Preroll finished, play actual media
function doneRoll() {
    // Done waiting for termination of preroll
    radio1.removeEventListener("ended", doneRoll);
    rolling = false;

    // Choose actual content
    radio1.pause()
    if (kvshbtn.checked) {
	radio1.src = "http://VoiceOfVashon.serverroom.us:4256/;";
    } else {
	radio1.src = "http://voiceofvashon2.serverroom.us:5670/;";
    }

    // Away we go...
    radio1.play()
}

function playBtn() {
    // If playing, turn it off & update play button
    if (playing) {
	radio1.pause();
	playing = rolling = false;
	playmode.src = "http://amrivalencia.com/icon/play.svg";
	return false;
    }

    // Update icon; clicking now stops us
    playmode.src = "http://amrivalencia.com/icon/pause.svg";

    // Start playing with preroll
    playing = rolling = true;
    if (kvshbtn.checked) {
	radio1.src = "http://voiceofvashon.org/APP/PreRoll_KVSH.mp3";
    } else {
	radio1.src = "http://voiceofvashon.org/APP/PreRoll_1650.mp3";
    }
    radio1.addEventListener("ended", doneRoll);
    radio1.play()

    return false;
}
</script>

<div class="shadowed" style="text-align: center; background: #1a75ff;">
<table style="width: 100%;">
<tr>
  <td width="30%"></td>
  <td width= "40%">

................................................................................
</div>

<div style="padding-bottom: 15px"></div>

<table id="eventsTable">
<tr>
<td class="col_1">
<iframe
src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FVoiceOfVashon&tabs=timeline&height=900&small_header=true&adapt_container_width=true&hide_cover=true&show_facepile=true&appId"
width="auto" height="900" style="border:none;overflow:hidden" scrolling="no"
frameborder="0" allowTransparency="true"></iframe>
</td>
<td class="col_2">
<ul>
<li>This is a second column of text</li>
<li>Hi, Mom.</li>

</ul>

</td>
</tr>
</table>

<script src="imgs.js"></script>

</body>
</html>







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|







 







|
|




|
|
<
>
|
>








6
7
8
9
10
11
12














































13
14
15
16
17
18
19
20
..
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
</head>

<link rel="stylesheet" href="style.css">

<body>

<audio id="radio1"></audio>














































<script src="radio.js"></script>

<div class="shadowed" style="text-align: center; background: #1a75ff;">
<table style="width: 100%;">
<tr>
  <td width="30%"></td>
  <td width= "40%">

................................................................................
</div>

<div style="padding-bottom: 15px"></div>

<table id="eventsTable">
<tr>
<td class="col_1">
<iframe width="100%" height="500" src=
"https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FVoiceOfVashon&tabs=timeline&height=900&small_header=true&adapt_container_width=true&hide_cover=true&show_facepile=true&appId"
width="auto" height="900" style="border:none;overflow:hidden" scrolling="no"
frameborder="0" allowTransparency="true"></iframe>
</td>
<td class="col_2">
<iframe width="100%" height="500" src=
"https://calendar.google.com/calendar/embed?mode=AGENDA&wkst=1&src=voiceofvashon.org_tgh7u93g8a8gspk8k3b1sj1cmc%40group.calendar.google.com"

>
</iframe>

</td>
</tr>
</table>

<script src="imgs.js"></script>

</body>
</html>

Added radio.js.

























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
var playing = false, rolling = false;

// Preroll finished, play actual media
function doneRoll() {
    // Done waiting for termination of preroll
    radio1.removeEventListener("ended", doneRoll);
    rolling = false;

    // Choose actual content
    radio1.pause()
    if (kvshbtn.checked) {
	radio1.src = "http://VoiceOfVashon.serverroom.us:4256/;";
    } else {
	radio1.src = "http://voiceofvashon2.serverroom.us:5670/;";
    }

    // Away we go...
    radio1.play()
}

function playBtn() {
    // If playing, turn it off & update play button
    if (playing) {
	radio1.pause();
	playing = rolling = false;
	playmode.src = "http://amrivalencia.com/icon/play.svg";
	return false;
    }

    // Update icon; clicking now stops us
    playmode.src = "http://amrivalencia.com/icon/pause.svg";

    // Start playing with preroll
    playing = rolling = true;
    if (kvshbtn.checked) {
	radio1.src = "http://voiceofvashon.org/APP/PreRoll_KVSH.mp3";
    } else {
	radio1.src = "http://voiceofvashon.org/APP/PreRoll_1650.mp3";
    }
    radio1.addEventListener("ended", doneRoll);
    radio1.play()

    return false;
}