Update blog.html
This commit is contained in:
parent
6b3776e654
commit
35157ed8e5
@ -26,7 +26,7 @@ layout: default
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="elevator-button"><i class="fa fa-arrow-up"></i></div>
|
<div class="elevator-button" onclick="elevator.elevate();"><i class="fa fa-arrow-up"></i></div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<script src="js/elevator.min.js"></script>
|
<script src="js/elevator.min.js"></script>
|
||||||
@ -34,7 +34,6 @@ layout: default
|
|||||||
// Elevator script: https://github.com/tholman/elevator.js
|
// Elevator script: https://github.com/tholman/elevator.js
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
var elevator = new Elevator({
|
var elevator = new Elevator({
|
||||||
element: document.querySelector('.elevator-button'),
|
|
||||||
mainAudio: '/media/elevator-music.mp3', // Music from http://www.bensound.com/
|
mainAudio: '/media/elevator-music.mp3', // Music from http://www.bensound.com/
|
||||||
endAudio: '/media/ding.mp3', // Music from http://www.bensound.com/
|
endAudio: '/media/ding.mp3', // Music from http://www.bensound.com/
|
||||||
duration: 20000 // milliseconds
|
duration: 20000 // milliseconds
|
||||||
|
Loading…
Reference in New Issue
Block a user