$(function () {
skinChanger();
activateNotificationAndTasksScroll();
setSkinListHeightAndScroll();
setSettingListHeightAndScroll();
$(window).resize(function () {
setSkinListHeightAndScroll();
setSettingListHeightAndScroll();
});
});
//Skin changer
function skinChanger() {
$('.right-sidebar .demo-choose-skin li').on('click', function () {
var $body = $('body');
var $this = $(this);
var existTheme = $('.right-sidebar .demo-choose-skin li.active').data('theme');
$('.right-sidebar .demo-choose-skin li').removeClass('active');
$body.removeClass('theme-' + existTheme);
$this.addClass('active');
$body.addClass('theme-' + $this.data('theme'));
});
}
//Skin tab content set height and show scroll
function setSkinListHeightAndScroll() {
var height = $(window).height() - ($('.navbar').innerHeight() + $('.right-sidebar .nav-tabs').outerHeight());
var $el = $('.demo-choose-skin');
$el.slimScroll({ destroy: true }).height('auto');
$el.parent().find('.slimScrollBar, .slimScrollRail').remove();
$el.slimscroll({
height: height + 'px',
color: 'rgba(0,0,0,0.5)',
size: '4px',
alwaysVisible: false,
borderRadius: '0',
railBorderRadius: '0'
});
}
//Setting tab content set height and show scroll
function setSettingListHeightAndScroll() {
var height = $(window).height() - ($('.navbar').innerHeight() + $('.right-sidebar .nav-tabs').outerHeight());
var $el = $('.right-sidebar .demo-settings');
$el.slimScroll({ destroy: true }).height('auto');
$el.parent().find('.slimScrollBar, .slimScrollRail').remove();
$el.slimscroll({
height: height + 'px',
color: 'rgba(0,0,0,0.5)',
size: '4px',
alwaysVisible: false,
borderRadius: '0',
railBorderRadius: '0'
});
}
//Activate notification and task dropdown on top right menu
function activateNotificationAndTasksScroll() {
$('.navbar-right .dropdown-menu .body .menu').slimscroll({
height: '254px',
color: 'rgba(0,0,0,0.5)',
size: '4px',
alwaysVisible: false,
borderRadius: '0',
railBorderRadius: '0'
});
}
////Google Analiytics ======================================================================================
//addLoadEvent(loadTracking);
//var trackingId = 'UA-30038099-6';
//function addLoadEvent(func) {
// var oldonload = window.onload;
// if (typeof window.onload != 'function') {
// window.onload = func;
// } else {
// window.onload = function () {
// oldonload();
// func();
// }
// }
//}
//function loadTracking() {
// (function (i, s, o, g, r, a, m) {
// i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
// (i[r].q = i[r].q || []).push(arguments)
// }, i[r].l = 1 * new Date(); a = s.createElement(o),
// m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
// })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
// ga('create', trackingId, 'auto');
// ga('send', 'pageview');
//}
//========================================================================================================video game wild west claw x5500
bonus buy games europe transit bonus buy
slot wolf reels rapid link
vegas moose popular games
slot big bad wolf pigs of steel
bonus buy games sizzling sevens special
slot football hooligans
slot saldo gratis di awal login lazawin
live casino hotel with private rooms
calcio live game streaming
lazawin demo slot pg bet sejuta
gacor slot progressive jackpots
kelauran sgp hariini slot
bonus buy games big burger load it up with xtra cheese
slot joker stoker
glory casino live blackjack
slot gacor hari ini casino lazawin
primal spirits
lazawin free spin jili slot
slot demo roulette
lazawin game slot playstore yang menghasilkan uang
bonus buy games queen of the amazon
slot demo zeus 88
slot j mania turkey chef
video game jewel clicker