Skip to content

Commit

Permalink
Change URL for Google Maps API to new proxy that hides the API key. R…
Browse files Browse the repository at this point in the history
…e-establish support for IE 11 and other ES5 browsers.
  • Loading branch information
kshetline committed Jun 13, 2019
1 parent 9a0a7f2 commit c157d21
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 32 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Sky View Café

Copyright © 2017-2018 Kerry Shetline, [email protected]
Copyright © 2017-2019 Kerry Shetline, [email protected]

### Licensing

Expand Down
3 changes: 2 additions & 1 deletion browserslist
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
IE 11
not IE 9-10
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "svc-ng",
"version": "1.7.1",
"version": "1.7.2",
"license": "MIT AND GPL-3.0-or-later",
"author": "Kerry Shetline <[email protected]>",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"build": "ng build --prod --sourceMap=true",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="about-dialog">
<img src="/assets/resources/svc_lunar_eclipse.png" alt="lunar eclipse" width="64" height="64">
<h2>Sky View Café NP</h2>
Version 1.7.1<br><br>
Version 1.7.2<br><br>
Copyright © 2016-2019 Kerry Shetline.
</div>
</p-dialog>
Expand Down
5 changes: 4 additions & 1 deletion src/assets/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@
<h2 class="header-sans"><a name="history">What's New / Version History</a></h2>
<div style="padding-left: 1em; text-indent: -1em">

<p><b>1.7.2, 2019-06-12:</b> Updated access to Google Maps. Regained ability to support Internet Explorer 11 and
other ES5-level web browsers.</p>

<p><b>1.7.1, 2019-06-12:</b> Fixed broken support for Edge web browser. Fixed touch interface access to clock,
latitude, and longitude.</p>

<p><b>1.7.0, 2019-06-09:</b> Update to use Angular 8, and to use ES6 (ES2017) for up-to-date web browsers. Internet
<p><b>1.7.0, 2019-06-09:</b> Update to use Angular 8, and to use ES6 (ES2015) for up-to-date web browsers. Internet
Explorer and other older browsers are no longer supported.</p>

<p><b>1.6.0, 2019-06-08:</b> Various behind-the-scenes updates.</p>
Expand Down
27 changes: 2 additions & 25 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,37 +74,14 @@
}
}
</script>
<!-- If you copy the code below you MUST REPLACE the API key with YOUR OWN key. -->
<script type="text/javascript" async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCUwvZPoiKPTs-yTaAf3jh2O6ysNTmG-X8&callback=initGoogleMaps"></script>
src="https://skyviewcafe.com/maps/"></script>
</head>
<body>
<div class="appWrapper"><svc-app>
<div style="font: 14px Arial, Helvetica, sans-serif; text-align: center;
position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 3em;">
<i class="fas fa-spinner fa-pulse fa-2x fa-fw"></i> Loading...</div>
</svc-app></div><script>
var supportsES6 = function() {
try {
new Function("(a = 0) => a");
return true;
}
catch (err) {
return false;
}
}();

if (!supportsES6) {
var appParent = document.querySelector('.appWrapper');

if (appParent) {
appParent.children[0].style.display = 'none';
var message = document.createElement('p');
message.textContent = 'Sky View Café requires an up-to-date ES6 (ES2015)-capable web browser. Internet Explorer \
and other older web browsers are not supported.';
appParent.appendChild(message);
}
}
</script>
</svc-app></div>
</body>
</html>

0 comments on commit c157d21

Please sign in to comment.