show a message when cammie is down
This commit is contained in:
parent
233477e937
commit
875dc90a6e
3 changed files with 148 additions and 1 deletions
143
content/assets/images/cammie_down.svg
Normal file
143
content/assets/images/cammie_down.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 57 KiB |
|
@ -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() {
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue