Skip to content

Commit

Permalink
www: work around some Webkit quirks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone committed Jun 4, 2024
1 parent 4b51e8d commit 128a39b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions teslausb-www/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@
}

.settingsbutton {
width: 100%;
width: 22px;
height: 100%;
fill: grey;
stroke: grey;
Expand All @@ -606,7 +606,7 @@
}

.settingsbutton:hover {
width: 100%;
width: 22px;
height: 100%;
fill: black;
stroke: black;
Expand Down Expand Up @@ -1005,6 +1005,7 @@
}

var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
var isWebkit = navigator.userAgent.toLowerCase().indexOf('applewebkit') > -1;

var DEBUG = false;
function log(what) {
Expand Down Expand Up @@ -2022,7 +2023,7 @@
this.isplaying = false;
var b = document.getElementById('playpause');
b.classList.remove("pause");
if (isFirefox) {
if (isFirefox || isWebkit) {
b.firstElementChild.firstChild.setAttribute('d', 'M 8,30 30,18 8,6 z');
}
}
Expand Down Expand Up @@ -2296,7 +2297,7 @@
segment.play();
var b = document.getElementById('playpause');
b.classList.add("pause");
if (isFirefox) {
if (isFirefox || isWebkit) {
b.firstElementChild.firstChild.setAttribute('d', 'M 8,30 14,30 14,6 8,6 z M 24,30 30,30 30,6 24,6 z');
}
}
Expand All @@ -2307,7 +2308,7 @@
segment.pause();
var b = document.getElementById('playpause');
b.classList.remove("pause");
if (isFirefox) {
if (isFirefox || isWebkit) {
b.firstElementChild.firstChild.setAttribute('d', 'M 8,30 30,18 8,6 z');
}
}
Expand Down

0 comments on commit 128a39b

Please sign in to comment.