diff --git a/homepage/views.php b/homepage/views.php index 10a356a..6f18786 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -184,6 +184,21 @@ function myFunction() { x.className = "topnav"; } } +function setLiveStreamVolume(vol) { + var audioelement = window.parent.document.getElementsByTagName("audio")[0]; + if (typeof(audioelement) != 'undefined' && audioelement != null) + { + audioelement.volume = vol + } +} +window.onbeforeunload = function(event) { + // if the user is playing a video and then navigates away mid-play, the live stream audio should be unmuted again + var audioelement = window.parent.document.getElementsByTagName("audio")[0]; + if (typeof(audioelement) != 'undefined' && audioelement != null) + { + audioelement.volume = 1 + } +} diff --git a/scripts/overview.php b/scripts/overview.php index 49657af..00991ee 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -122,7 +122,7 @@ if (file_exists('./Charts/'.$chart)) {
Confidence:
- + diff --git a/scripts/play.php b/scripts/play.php index 8efb947..e9d385b 100644 --- a/scripts/play.php +++ b/scripts/play.php @@ -145,7 +145,7 @@ if(isset($_POST['species'])){ $confidence = $results['Confidence']; echo " $date $time
$confidence
- + "; }echo "";}?> diff --git a/scripts/stats.php b/scripts/stats.php index eaed49f..e2ff7fb 100644 --- a/scripts/stats.php +++ b/scripts/stats.php @@ -95,7 +95,7 @@ while($results=$result3->fetchArray(SQLITE3_ASSOC)){ Max Confidence: $maxconf
Best Recording: $date $time
All About Birds
- +

Loading Images from Wikimedia Commons

", '6096'); @@ -127,7 +127,7 @@ $filename = "/By_Date/".$results['Date']."/".$comname."/".$results['File_Name'];
Occurrences:
Max Confidence:
- Best Recording:
+ Best Recording:


Confidence:
- +