elevator.js 是一个"backtotop"按钮,即点击 "backtotop"按钮即可缓慢的返回网页顶部。
示例:
[removed]
// Elevator script included on the page, already.
window.onload = function() {
var elevator = new Elevator({
mainAudio: '/src/to/audio.mp3',
endAudio: '/src/to/end-audio.mp3'
});
}
// You can run the e