Skip to content

Commit c1cc2cf

Browse files
author
dsward2
committed
In this commit, the performance of the web user interface is improved with a dynamic content loading script. The visual appearance of the user interface is mostly unchanged. These changes should reduce some unnecessary audio re-buffering.
1 parent add64ab commit c1cc2cf

36 files changed

Lines changed: 408 additions & 1366 deletions

β€ŽLocalRadio.xcodeproj/project.pbxprojβ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@
195195
0EF173891F653C130067E8C0 /* applymp3settings.html in Resources */ = {isa = PBXBuildFile; fileRef = 0EF173881F653C130067E8C0 /* applymp3settings.html */; };
196196
0EF2A9431F39BB8F009DB5C8 /* tuner_wbfm.html in Resources */ = {isa = PBXBuildFile; fileRef = 0EF2A9421F39BB8F009DB5C8 /* tuner_wbfm.html */; };
197197
0EF2A9461F3B19DA009DB5C8 /* settings.html in Resources */ = {isa = PBXBuildFile; fileRef = 0EF2A9451F3B19DA009DB5C8 /* settings.html */; };
198+
0EF598F320FF3F2400BD2C76 /* LocalRadio-animation.svg in Resources */ = {isa = PBXBuildFile; fileRef = 0EF598F220FF3F2300BD2C76 /* LocalRadio-animation.svg */; };
199+
0EF598F520FF42BC00BD2C76 /* info.html in Resources */ = {isa = PBXBuildFile; fileRef = 0EF598F420FF42BC00BD2C76 /* info.html */; };
200+
0EF598F720FF4C5100BD2C76 /* info.svg in Resources */ = {isa = PBXBuildFile; fileRef = 0EF598F620FF4C5100BD2C76 /* info.svg */; };
198201
0EF746551F4ECE920008546F /* tuner_advanced.html in Resources */ = {isa = PBXBuildFile; fileRef = 0EF746541F4ECE920008546F /* tuner_advanced.html */; };
199202
0EFFD1211EAE08A60041D2F5 /* icecast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 0EFFD1201EAE08A60041D2F5 /* icecast.xml */; };
200203
0EFFD1231EAE33190041D2F5 /* ezstream_mp3.xml in Resources */ = {isa = PBXBuildFile; fileRef = 0EFFD1221EAE33190041D2F5 /* ezstream_mp3.xml */; };
@@ -2198,6 +2201,9 @@
21982201
0EF2A9421F39BB8F009DB5C8 /* tuner_wbfm.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = tuner_wbfm.html; sourceTree = "<group>"; };
21992202
0EF2A9441F3B1240009DB5C8 /* gear.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = gear.svg; sourceTree = "<group>"; };
22002203
0EF2A9451F3B19DA009DB5C8 /* settings.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = settings.html; sourceTree = "<group>"; };
2204+
0EF598F220FF3F2300BD2C76 /* LocalRadio-animation.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = "LocalRadio-animation.svg"; sourceTree = "<group>"; };
2205+
0EF598F420FF42BC00BD2C76 /* info.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = info.html; sourceTree = "<group>"; };
2206+
0EF598F620FF4C5100BD2C76 /* info.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = info.svg; sourceTree = "<group>"; };
22012207
0EF746541F4ECE920008546F /* tuner_advanced.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = tuner_advanced.html; sourceTree = "<group>"; };
22022208
0EFFD1201EAE08A60041D2F5 /* icecast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = icecast.xml; sourceTree = "<group>"; };
22032209
0EFFD1221EAE33190041D2F5 /* ezstream_mp3.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = ezstream_mp3.xml; sourceTree = "<group>"; };
@@ -4097,6 +4103,7 @@
40974103
0E0FD9FF1EF658F600FEEA06 /* editfavorite.html */,
40984104
0E84C9B91ED926890065864B /* favorites.html */,
40994105
0E4461951F472370003C7851 /* frequencylistenbuttonclicked.html */,
4106+
0EF598F420FF42BC00BD2C76 /* info.html */,
41004107
0E84C9861ED8FD1B0065864B /* index.html */,
41014108
0ED12CEA1F35A86800D9DCDC /* index2.html */,
41024109
0E688FFD1F3C460D00F34AE4 /* insertnewfrequency.html */,
@@ -4142,6 +4149,8 @@
41424149
0EF2A9441F3B1240009DB5C8 /* gear.svg */,
41434150
0E84C9BA1ED92A020065864B /* tuner.svg */,
41444151
0E84C97F1ED8FD1B0065864B /* categories.svg */,
4152+
0EF598F620FF4C5100BD2C76 /* info.svg */,
4153+
0EF598F220FF3F2300BD2C76 /* LocalRadio-animation.svg */,
41454154
);
41464155
path = images;
41474156
sourceTree = "<group>";
@@ -6503,14 +6512,17 @@
65036512
0EF2A9461F3B19DA009DB5C8 /* settings.html in Resources */,
65046513
0ED12CEB1F35A86800D9DCDC /* index2.html in Resources */,
65056514
0E84C9C91ED945E90065864B /* data_skeleton.sqlite3 in Resources */,
6515+
0EF598F320FF3F2400BD2C76 /* LocalRadio-animation.svg in Resources */,
65066516
0ED12CF01F35CD6600D9DCDC /* ofl_license.txt in Resources */,
65076517
0E0FDA001EF658F600FEEA06 /* editfavorite.html in Resources */,
6518+
0EF598F720FF4C5100BD2C76 /* info.svg in Resources */,
65086519
0EF746551F4ECE920008546F /* tuner_advanced.html in Resources */,
65096520
0EFFD1211EAE08A60041D2F5 /* icecast.xml in Resources */,
65106521
0E4461921F4420A9003C7851 /* scannerlistenbuttonclicked.html in Resources */,
65116522
0ED6C77220AE69B500D82331 /* devicelistenbuttonclicked.html in Resources */,
65126523
0EF173871F6410B70067E8C0 /* LocalRadio Clean-Up.workflow in Resources */,
65136524
0E02EC771F4D8446008BAC27 /* tuner_aviation.html in Resources */,
6525+
0EF598F520FF42BC00BD2C76 /* info.html in Resources */,
65146526
0E0936C91F42E3E400BF2B46 /* nowplayingstatus.html in Resources */,
65156527
0EB8CB691F794A2B004B6D05 /* LocalRadio-animation.svg in Resources */,
65166528
0EB5B0F51F6B89D5008DBE9A /* Assets.xcassets in Resources */,
Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,3 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
5-
<meta http-equiv="cache-control" content="max-age=0" />
6-
<meta http-equiv="cache-control" content="no-cache" />
7-
<meta http-equiv="expires" content="0" />
8-
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
9-
<meta http-equiv="pragma" content="no-cache" />
10-
11-
<meta name="format-detection" content="telephone=no">
12-
13-
<!-- Basic Page Needs
14-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
15-
<meta charset="utf-8">
16-
<title>LocalRadio</title>
17-
<meta name="description" content="">
18-
<meta name="author" content="">
19-
20-
<!-- Mobile Specific Metas
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
23-
24-
<!-- CSS
25-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
26-
<link rel="stylesheet" href="dist/css/normalize.css">
27-
<link rel="stylesheet" href="dist/css/skeleton.css">
28-
<link rel="stylesheet" href="css/custom.css">
29-
30-
<!-- Scripts
31-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
32-
<script src="js/jquery.min.js"></script>
33-
<!-- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> -->
34-
<link rel="stylesheet" href="css/github-prettify-theme.css">
35-
<script src="js/site.js"></script>
36-
37-
<script src="js/localradio.js"></script>
38-
39-
<!-- Favicon
40-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
41-
<link rel="icon" type="image/png" href="dist/images/favicon.png">
42-
43-
</head>
44-
45-
<body class="code-snippets-visible" onload="resizeIframe(this)">
461

472
<!-- Primary Page Layout
483
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
@@ -64,7 +19,3 @@ <h3 class="title">Add New Category</h3>
6419
</section>
6520
</div>
6621

67-
<!-- End Document
68-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
69-
</body>
70-
</html>
Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,4 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
41

5-
<meta http-equiv="cache-control" content="max-age=0" />
6-
<meta http-equiv="cache-control" content="no-cache" />
7-
<meta http-equiv="expires" content="0" />
8-
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
9-
<meta http-equiv="pragma" content="no-cache" />
10-
11-
<meta name="format-detection" content="telephone=no">
12-
13-
<!-- Basic Page Needs
14-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
15-
<meta charset="utf-8">
16-
<title>LocalRadio</title>
17-
<meta name="description" content="">
18-
<meta name="author" content="">
19-
20-
<!-- Mobile Specific Metas
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
23-
24-
<!-- CSS
25-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
26-
<link rel="stylesheet" href="dist/css/normalize.css">
27-
<link rel="stylesheet" href="dist/css/skeleton.css">
28-
<link rel="stylesheet" href="css/custom.css">
29-
30-
<!-- Scripts
31-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
32-
<script src="js/jquery.min.js"></script>
33-
<!-- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> -->
34-
<link rel="stylesheet" href="css/github-prettify-theme.css">
35-
<script src="js/site.js"></script>
36-
37-
<script src="js/localradio.js"></script>
38-
39-
<!-- Favicon
40-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
41-
<link rel="icon" type="image/png" href="dist/images/favicon.png">
42-
43-
</head>
44-
45-
<body class="code-snippets-visible" onload="resizeIframe(this)">
462

473
<!-- Primary Page Layout
484
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
@@ -54,9 +10,3 @@ <h3 class="title">Categories</h3>
5410
%%CATEGORIES_TABLE%%
5511

5612
</div>
57-
58-
59-
<!-- End Document
60-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
61-
</body>
62-
</html>

β€ŽLocalRadio/Web/category.htmlβ€Ž

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,3 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
5-
<meta http-equiv="cache-control" content="max-age=0" />
6-
<meta http-equiv="cache-control" content="no-cache" />
7-
<meta http-equiv="expires" content="0" />
8-
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
9-
<meta http-equiv="pragma" content="no-cache" />
10-
11-
<meta name="format-detection" content="telephone=no">
12-
13-
<!-- Basic Page Needs
14-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
15-
<meta charset="utf-8">
16-
<title>LocalRadio</title>
17-
<meta name="description" content="">
18-
<meta name="author" content="">
19-
20-
<!-- Mobile Specific Metas
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
23-
24-
<!-- CSS
25-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
26-
<link rel="stylesheet" href="dist/css/normalize.css">
27-
<link rel="stylesheet" href="dist/css/skeleton.css">
28-
<link rel="stylesheet" href="css/custom.css">
29-
30-
<!-- Scripts
31-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
32-
<script src="js/jquery.min.js"></script>
33-
<!-- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> -->
34-
<link rel="stylesheet" href="css/github-prettify-theme.css">
35-
<script src="js/site.js"></script>
36-
37-
<script src="js/localradio.js"></script>
38-
39-
<!-- Favicon
40-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
41-
<link rel="icon" type="image/png" href="dist/images/favicon.png">
42-
43-
</head>
44-
45-
<body class="code-snippets-visible" onload="resizeIframe(this)">
461

472
<!-- Primary Page Layout
483
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
@@ -58,8 +13,3 @@ <h3 class="title" id="listen_title">%%CATEGORY_NAME%%</h3>
5813
</section>
5914
</div>
6015

61-
62-
<!-- End Document
63-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
64-
</body>
65-
</html>

β€ŽLocalRadio/Web/credits.htmlβ€Ž

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
<!DOCTYPE html>
2-
<html>
3-
4-
<head>
5-
6-
<meta charset="utf-8">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8-
<title>CREDITS</title>
91

102

113
<style type="text/css">
@@ -877,8 +869,8 @@ <h2 id="toc_14">GNU GENERAL PUBLIC LICENSE</h2>
877869
convey the exclusion of warranty; and each file should have at least
878870
the &quot;copyright&quot; line and a pointer to where the full notice is found.</p>
879871

880-
<p><one line to give the program's name and a brief idea of what it does.>
881-
Copyright (C) <year> <name of author></p>
872+
<p>&lt;one line to give the program's name and a brief idea of what it does.&gt;
873+
Copyright (C) &lt;year&gt; &lt;name of author&gt;</p>
882874

883875
<p>This program is free software; you can redistribute it and/or modify
884876
it under the terms of the GNU General Public License as published by
@@ -1089,8 +1081,3 @@ <h2 id="toc_15">GNU Free Documentation License</h2>
10891081
<p>All trademarks are the property of their respective holders.</p>
10901082

10911083

1092-
1093-
1094-
</body>
1095-
1096-
</html>

β€ŽLocalRadio/Web/devices.htmlβ€Ž

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,3 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
5-
<meta http-equiv="cache-control" content="max-age=0" />
6-
<meta http-equiv="cache-control" content="no-cache" />
7-
<meta http-equiv="expires" content="0" />
8-
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
9-
<meta http-equiv="pragma" content="no-cache" />
10-
11-
<meta name="format-detection" content="telephone=no">
12-
13-
<!-- Basic Page Needs
14-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
15-
<meta charset="utf-8">
16-
<title>LocalRadio</title>
17-
<meta name="description" content="">
18-
<meta name="author" content="">
19-
20-
<!-- Mobile Specific Metas
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
23-
24-
<!-- CSS
25-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
26-
<link rel="stylesheet" href="dist/css/normalize.css">
27-
<link rel="stylesheet" href="dist/css/skeleton.css">
28-
<link rel="stylesheet" href="css/custom.css">
29-
30-
<!-- Scripts
31-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
32-
<script src="js/jquery.min.js"></script>
33-
<!-- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> -->
34-
<link rel="stylesheet" href="css/github-prettify-theme.css">
35-
<script src="js/site.js"></script>
36-
37-
<script src="js/localradio.js"></script>
38-
39-
<!-- Favicon
40-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
41-
<link rel="icon" type="image/png" href="dist/images/favicon.png">
42-
43-
</head>
44-
45-
<body class="code-snippets-visible" onload="resizeIframe(this)">
461

472
<!-- Primary Page Layout
483
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
@@ -58,7 +13,3 @@ <h3 class="title" id="listen_title">Audio Devices</h3>
5813
</section>
5914
</div>
6015

61-
<!-- End Document
62-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
63-
</body>
64-
</html>
Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,3 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
5-
<meta http-equiv="cache-control" content="max-age=0" />
6-
<meta http-equiv="cache-control" content="no-cache" />
7-
<meta http-equiv="expires" content="0" />
8-
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
9-
<meta http-equiv="pragma" content="no-cache" />
10-
11-
<meta name="format-detection" content="telephone=no">
12-
13-
<!-- Basic Page Needs
14-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
15-
<meta charset="utf-8">
16-
<title>LocalRadio</title>
17-
<meta name="description" content="">
18-
<meta name="author" content="">
19-
20-
<!-- Mobile Specific Metas
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
23-
24-
<!-- CSS
25-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
26-
<link rel="stylesheet" href="dist/css/normalize.css">
27-
<link rel="stylesheet" href="dist/css/skeleton.css">
28-
<link rel="stylesheet" href="css/custom.css">
29-
30-
<!-- Scripts
31-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
32-
<script src="js/jquery.min.js"></script>
33-
<!-- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script> -->
34-
<link rel="stylesheet" href="css/github-prettify-theme.css">
35-
<script src="js/site.js"></script>
36-
37-
<script src="js/localradio.js"></script>
38-
39-
<!-- Favicon
40-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
41-
<link rel="icon" type="image/png" href="dist/images/favicon.png">
42-
43-
</head>
44-
45-
<body class="code-snippets-visible" onload="resizeIframe(this)">
461

472
<!-- Primary Page Layout
483
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
@@ -56,8 +11,3 @@ <h3 class="title">%%EDIT_CATEGORY_NAME%%</h3>
5611
</section>
5712
</div>
5813

59-
60-
<!-- End Document
61-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
62-
</body>
63-
</html>

0 commit comments

Comments
Β (0)