app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
$(document).ready(function () {
if (window.location.href.lastIndexOf('libr.herokuapp.com') !== -1) {
if (confirm('此网站已经迁移至: http://librme.com,点击确定跳转到该网站')) {
window.location.href = 'http://librme.com'
}
}
if ($('.full-page').length !== 0) {
$('.full-page').fullpage({
slidesColor: ['9370db', '#6abce1', '#00ced1', '#6495ed'],
verticalCentered: true,
resize: true,
navigation: true,
scrollingSpeed: 800,
css3: true,
loopHorizontal: true,
autoScrolling: true,
paddingBottom: '10px'
});
}
});