File Manager
function detectMobile(){if(navigator.userAgent.match(/(Android|iPhone|iPad|iPod|Blackberry|Dolphin|IEMobile|Kindle|Mobile|MMP|MIDP|Pocket|PSP|Symbian|Smartphone|Sreo|Up.Browser|Up.Link|Vodafone|WAP|Opera Mini)/)){return true}else{return false}}var mobileMenu={init:function(){var e=$("#nav ul > li.parent");e.each(function(){var t=$(this);this.addEventListener("touchstart",function(n){if(n.touches.length===1){n.stopPropagation();if(!t.hasClass("active")){if(n.target===this||n.target.parentNode===this){n.preventDefault()}e.removeClass("active");e.not(".active").children("ul").hide();t.addClass("active");t.children("ul").show();t.children("ul").append('<span class="close-button">close</span>');closeButton=$(".close-button");closeDropdown=function(e){e.stopPropagation();t.removeClass("active");t.not(".active").children("ul").hide();closeButton.hide();document.removeEventListener("touchstart",closeDropdown)};document.addEventListener("touchstart",closeDropdown);closeButton.on("click",closeDropdown)}}},false)})}};var simpleSlide={init:function(){var e=$(".banner-image"),t=$(".banner-text");e.height(t.height());$(window).resize(function(){e.height(t.height())});$(".banner-image > div:gt(0)").hide();setInterval(function(){$(".banner-image > div:first").fadeOut(1e3).next().fadeIn(1e3).end().appendTo(".banner-image")},6e3)}};var listClass={init:function(){$("#nav li:first-child").addClass("first");$("#nav li:last-child").addClass("last")}};$(function(){if(detectMobile()){mobileMenu.init()}simpleSlide.init();listClass.init()})
File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com