Re-theme site

This commit is contained in:
2020-12-13 03:11:29 +00:00
parent 9faeb8ce9f
commit d73d3caf7f
122 changed files with 14452 additions and 4504 deletions

39
assets/js/main.js Normal file
View File

@@ -0,0 +1,39 @@
(function($) {
var $window = $(window),
$banner = $('#banner'),
$body = $('body');
// Play initial animations on page load.
$window.on('load', function() {
window.setTimeout(function() {
$body.removeClass('is-preload');
}, 100);
});
// Menu.
$('#menu')
.append('<a href="#menu" class="close"></a>')
.appendTo($body)
.panel({
target: $body,
visibleClass: 'is-menu-visible',
delay: 500,
hideOnClick: true,
hideOnSwipe: true,
resetScroll: true,
resetForms: true,
side: 'right'
});
})(jQuery);
if (Cookies.get("demo.mgrove.uk-cookies-accepted") != "true") {
$("#cookies").show();
$("#cookies").animate({ bottom: "0px" }, 1000);
$("#close-cookies").click(function () {
$("#cookies").animate({ bottom: "-100px" }, 1000);
setTimeout(function () { $("#cookies").hide() }, 1000);
Cookies.set("demo.mgrove.uk-cookies-accepted", "true", { expires: 30 });
});
}