var App = function () { function handleIEFixes() { //fix html5 placeholder attribute for ie7 & ie8 if (jQuery.browser.msie && jQuery.browser.version.substr(0, 1) < 9) { // ie7&ie8 jQuery('input[placeholder], textarea[placeholder]').each(function () { var input = jQuery(this); jQuery(input).val(input.attr('placeholder')); jQuery(input).focus(function () { if (input.val() == input.attr('placeholder')) { input.val(''); } }); jQuery(input).blur(function () { if (input.val() == '' || input.val() == input.attr('placeholder')) { input.val(input.attr('placeholder')); } }); }); } } function handleBootstrap() { jQuery('.carousel').carousel({ interval: 15000, pause: 'hover' }); jQuery('.tooltips').tooltip(); jQuery('.popovers').popover(); } function handleMisc() { jQuery('.top').click(function () { jQuery('html,body').animate({ scrollTop: jQuery('body').offset().top }, 'slow'); }); //move to top navigator } function handleSearch() { jQuery('.search').click(function () { if(jQuery('.search-btn').hasClass('icon-search')){ jQuery('.search-open').fadeIn(200); jQuery('.search-btn').removeClass('icon-search'); jQuery('.search-btn').addClass('icon-remove'); } else { jQuery('.search-open').fadeOut(200); jQuery('.search-btn').addClass('icon-search'); jQuery('.search-btn').removeClass('icon-remove'); } }); } function handleSwitcher() { var panel = $('.style-switcher'); $('.style-switcher-btn').click(function () { $('.style-switcher').show(); }); $('.theme-close').click(function () { $('.style-switcher').hide(); }); $('li', panel).click(function () { var color = $(this).attr("data-style"); var data_header = $(this).attr("data-header"); setColor(color, data_header); $('.unstyled li', panel).removeClass("theme-active"); $(this).addClass("theme-active"); }); var setColor = function (color, data_header) { $('#style_color').attr("href", "assets/css/themes/" + color + ".css"); if(data_header == 'light'){ $('#style_color-header-1').attr("href", "assets/css/themes/headers/header1-" + color + ".css"); $('#logo-header').attr("src", "assets/img/logo1-" + color + ".png"); $('#logo-footer').attr("src", "assets/img/logo2-" + color + ".png"); } else if(data_header == 'dark'){ $('#style_color-header-2').attr("href", "assets/css/themes/headers/header2-" + color + ".css"); $('#logo-header').attr("src", "assets/img/logo2-" + color + ".png"); $('#logo-footer').attr("src", "assets/img/logo2-" + color + ".png"); } } } function dropdownOnHover() { // Bootstrap dropdown menu on hover // ----------------------------------------------------------------------------- $('.nav li').hover(function() { $(this).addClass('open'); }, function() { $(this).removeClass('open'); }); $('.navbar li').hover(function() { $(this).find('.dropdown-menu').first().stop(true, true).slideToggle(400); }, function() { $(this).find('.dropdown-menu').first().stop(true, true).slideToggle(400) }); } function dropdownMobile() { $('.dropdown-toggle').click(function(e) { //window.scrollTo(0,0); e.preventDefault(); setTimeout($.proxy(function() { if ('ontouchstart' in document.documentElement) { $(this).siblings('.dropdown-backdrop').off().remove(); } }, this), 0); }); } function stickyMenu () { // make main menu sticky if ( ! /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { $(".header").sticky({topSpacing: 0}); } else {} } function myAccordion () { // Accordion settings $('.accordion').on('show', function (e) { $(e.target).prev('.accordion-heading').find('i').removeClass('icon-plus'); $(e.target).prev('.accordion-heading').find('i').addClass('icon-minus'); $(e.target).prev('.accordion-heading').find('.accordion-toggle').addClass('active'); }); $('.accordion').on('hide', function (e) { $(e.target).prev('.accordion-heading').find('i').removeClass('icon-minus'); $(e.target).prev('.accordion-heading').find('i').addClass('icon-plus'); $(e.target).prev('.accordion-heading').find('.active').removeClass('active'); }); } return { init: function () { handleBootstrap(); handleIEFixes(); handleMisc(); handleSearch(); handleSwitcher(); //dropdownOnHover(); dropdownMobile(); stickyMenu(); myAccordion(); }, initSliders: function () { $('#clients-flexslider').flexslider({ animation: "slide", easing: "swing", animationLoop: true, itemWidth: 1, itemMargin: 1, minItems: 2, maxItems: 9, controlNav: false, directionNav: false, move: 2 }); $('#photo-flexslider').flexslider({ animation: "slide", controlNav: false, animationLoop: false, itemWidth: 80, itemMargin: 0 }); $('#testimonal_carousel').collapse({ toggle: false }); }, initFancybox: function () { jQuery(".fancybox-button").fancybox({ groupAttr: 'data-rel', prevEffect: 'none', nextEffect: 'none', closeBtn: true, helpers: { title: { type: 'inside' } } }); }, initBxSlider: function () { $('.bxslider').bxSlider({ minSlides: 3, maxSlides: 3, slideWidth: 360, slideMargin: 10 }); }, initBxSlider1: function () { $('.bxslider').bxSlider({ minSlides: 4, maxSlides: 4, slideWidth: 360, slideMargin: 10 }); } }; }(); slot lobster bob s sea food and win it video game rocket dice slot mega fire blaze 3 wizards slot big fruit show live dealer games with best odds merlin s fortune oksport betting contests slot spirits of the prairies oksport betting platform live casino hotel room deals live casino with hotel video game happy fishing lightning slot piggy bankers bonus buy games big game fishing tophit rainbow wilds megaways slot dwarf dragon rabbits rabbits rabbits slot gacor pragmatic zeus 2023 bonus buy games ocean catch bonus buy bonus buy games xmas lightning slot book of atlas bonus buy games story of the samurai blade of destiny video game maestro bonus buy games the wild four bonus buy games ice number one OK sport