Themeing work based on bootstrap

This commit is contained in:
Deon George
2013-04-25 10:22:36 +10:00
parent b310cdb125
commit 74a9c291e4
184 changed files with 37653 additions and 8903 deletions

View File

@@ -0,0 +1,37 @@
$(function () {
Application.init ();
});
var Application = function () {
return { init: init };
function init () {
enableBackToTop ();
}
function enableBackToTop () {
var backToTop = $('<a>', { id: 'back-to-top', href: '#top' });
var icon = $('<i>', { class: 'icon-chevron-up' });
backToTop.appendTo ('body');
icon.appendTo (backToTop);
backToTop.hide();
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
backToTop.fadeIn ();
} else {
backToTop.fadeOut ();
}
});
backToTop.click (function (e) {
e.preventDefault ();
$('body, html').animate({
scrollTop: 0
}, 600);
});
}
}();