show a message when cammie is down

This commit is contained in:
fklinck 2018-12-14 02:28:35 +01:00
parent 233477e937
commit 875dc90a6e
3 changed files with 148 additions and 1 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 57 KiB

View file

@ -23,6 +23,10 @@ debounce = function(func, wait, initial) {
};
};
function cammie_error() {
$("#cammie-feed").attr("src","/images/cammie_down.svg")
}
$("#cammie-ctrls").mousemove(debounce(function() {
return $(this).removeClass('display');
}, 3000, function() {

View file

@ -11,7 +11,7 @@ title: Cammie
<section id="cammie-section">
<div id="cammie-body">
<figure class="image is-16by9">
<img id="cammie-feed" alt="cammie" src="https://kelder.zeus.ugent.be/webcam/video/mjpg.cgi?profileid=2">
<img id="cammie-feed" alt="cammie" src="https://kelder.zeus.ugent.be/webcam/video/mjpg.cgi?profileid=2" onerror="cammie_error()">
</figure>
<div id="cammie-ctrls">
<div class="columns is-mobile">