Commit c06d5988 authored by DZywolf's avatar DZywolf 🐺

Cleanup

parent 08a884b2
$(function() {
// Sidebar Toggler
function sidebarToggle(toogle) {
var sidebar = $('#sidebar');
var padder = $('.content-padder');
if (toogle) {
$('.notyf').removeAttr( 'style' );
sidebar.css({'display': 'block', 'x': -300});
sidebar.transition({opacity: 1, x: 0}, 250, 'in-out', function(){
sidebar.css('display', 'block');
});
if ($(window).width() > 960 ) {
padder.transition({marginLeft: sidebar.css('width')}, 250, 'in-out');
}
}
else
{
$('.notyf').css({width: '90%', margin: '0 auto', display:'block', right: 0, left: 0});
sidebar.css({'display': 'block', 'x': '0px'});
sidebar.transition({x: -300, opacity: 0}, 250, 'in-out', function(){
sidebar.css('display', 'none');
});
padder.transition({marginLeft: 0}, 250, 'in-out');
}
}
$('#sidebar_toggle').click(function() {
var sidebar = $('#sidebar');
var padder = $('.content-padder');
if (sidebar.css('x') == '-300px' || sidebar.css('display') == 'none') {
sidebarToggle(true)
}
else
{
sidebarToggle(false)
}
});
function resize()
{
var sidebar = $('#sidebar');
var padder = $('.content-padder');
padder.removeAttr( 'style' );
if ($(window).width() < 960 && sidebar.css('display') == 'block') {
sidebarToggle(false);
}
else if ($(window).width() > 960 && sidebar.css('display') == 'none') {
sidebarToggle(true);
}
}
if ($(window).width() < 960) {
sidebarToggle(false);
}
$(window).resize(function() {
resize()
});
$('.content-padder').click(function() {
if ($(window).width() < 960) {
sidebarToggle(false);
}
});
// Counter
$('.counter').each(function() {
var $this = $(this),
countTo = $this.attr('data-count');
......
......@@ -680,13 +680,12 @@ CREATE TABLE `fx_slides` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`title` varchar(100) DEFAULT NULL,
`image` varchar(100) NOT NULL DEFAULT 'image.jpg' COMMENT 'assets/images/slides',
`mobile_image` varchar(100) DEFAULT 'imagemobile.jpg' COMMENT 'assets/images/slides',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*Data for the table `fx_slides` */
insert into `fx_slides`(`id`,`title`,`image`,`mobile_image`) values (1,'BlizzCMS','slide1.jpg','slide1_mobile.jpg'),(2,'Constant updates!','slide2.jpg','slide2_mobile.jpg');
insert into `fx_slides`(`id`,`title`,`image`) values (1,'BlizzCMS','slide1.jpg'),(2,'Constant updates!','slide2.jpg');
/*Table structure for table `fx_tags` */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment