X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/origin/html/js
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
origin
/
html
/
js
/
📁
..
📄
bootstrap.min.js
(38.75 KB)
📄
bootstrap.min_4.js
(58.6 KB)
📄
effect.js
(4 KB)
📁
fancybox
📄
jquery.appear.js
(2.7 KB)
📄
jquery.easing.1.3.js
(7.91 KB)
📄
jquery.flexslider-min.js
(20.92 KB)
📄
jquery.isotope.min.js
(15.66 KB)
📄
jquery.js
(90.92 KB)
📄
jquery.localScroll.min.js
(1.36 KB)
📄
jquery.nicescroll.min.js
(58.6 KB)
📄
jquery.scrollTo-1.4.3.1-min.js
(2.38 KB)
📄
jquery.scrollTo.min.js
(2.38 KB)
📄
main.js
(687 B)
📄
skrollr.min.js
(10.95 KB)
📄
stellar.js
(22.74 KB)
Editing: effect.js
$(document).ready(function(){ //header 選單特效 var last_x=0,last_y=0; $("#header-ul li,#index-ul li").mouseenter(function(e){ var mouseX = e.pageX || e.clientX + scrollX; var itemLeft = $(this).context.offsetLeft; var itemWitdth = $(this).context.offsetWidth; if(mouseX<=(itemLeft+itemWitdth/2)){ $(this).removeClass("fRight").addClass("fLeft"); }else{ $(this).removeClass("fLeft").addClass("fRight"); } }).mouseout(function(e){ var mouseX = e.pageX || e.clientX + scrollX; var itemLeft = $(this).context.offsetLeft; var itemWitdth = $(this).context.offsetWidth; if(mouseX<=(itemLeft+itemWitdth/2)){ $(this).removeClass("fLeft").addClass("fRight"); }else{ $(this).removeClass("fRight").addClass("fLeft"); } }) $(window).scroll(function() { //淡出特效 $(".slideanim").each(function(){ var pos = $(this).offset().top; var winTop = $(window).scrollTop(); if (pos < winTop + 700) { $(this).addClass("slide"); } }); //navbar fixed特效 var navbar = $("#header_div>div.navbar"); if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { $(navbar).addClass("w3-bar w3-card w3-animate-top w3-white"); } else { $(navbar).removeClass("w3-bar w3-card w3-animate-top w3-white"); } var navbar = $("#index_navbar"); if (document.body.scrollTop > 84 || document.documentElement.scrollTop > 84) { $(navbar).addClass("w3-bar w3-card w3-animate-top w3-white show"); } else { $(navbar).removeClass("w3-bar w3-card w3-animate-top w3-white show"); } }); $(window).resize(function() { if($('.index_square_7').length>0){ var offsetTop=$('.index_square_7').offset().top; var width=$('.index_square_7').width(); $(".index_header_div2").css("height",offsetTop+width*1.414+"px"); $(".index_content_title").css("width",width*1.414+"px"); } if($(".index_main_div_mobile").length>0){ var width=$(window).width(); $(".index_main_div_mobile").css("height",width*2+"px"); if(width>650){ $(".index_main_div2_mobile").css("bottom","95px"); }else if(width>=400 && width<=650){ var bottom = (550-width)/10*-1+20; $(".index_main_div2_mobile").css("bottom",bottom+"px"); }else if(width<400){ var bottom = (550-width)/5*-1; $(".index_main_div2_mobile").css("bottom",bottom+"px"); } } }); function first_resize(){ if($('.index_square_7').length>0){ var offsetTop=$('.index_square_7').offset().top; var width=$('.index_square_7').width(); $(".index_header_div2").css("height",offsetTop-(width*0.125)+width*1.414+"px"); $(".index_content_title").css("width",width*1.414+"px"); } if($(".index_main_div_mobile").length>0){ var width=$(window).width(); $(".index_main_div_mobile").css("height",width*2+"px"); if(width>650){ $(".index_main_div2_mobile").css("bottom","95px"); }else if(width>=400 && width<=650){ var bottom = (550-width)/10*-1+20; $(".index_main_div2_mobile").css("bottom",bottom+"px"); }else if(width<400){ var bottom = (550-width)/5*-1; $(".index_main_div2_mobile").css("bottom",bottom+"px"); } } } first_resize(); $("#dropdown_menu_li,#dropdown_menu").on("mouseover",function(){ $("#dropdown_menu").show(); }); $("#dropdown_menu_li,#dropdown_menu").on("mouseout",function(){ $("#dropdown_menu").hide(); }); $(".navbar-collapse").on('show.bs.collapse', function () { $(".navbar-toggle").css("transform","rotate(0deg)"); }) $('.navbar-collapse').on('hide.bs.collapse', function () { $(".navbar-toggle").css("transform","rotate(45deg)"); }) $("#toggle_icon_mobile").on("click",function(){ $("#toggle_btn").trigger("click"); }); $(".footer_top_div").on("click",function(){ $(window).animate({ scrollTop: 0 }, 2000); }); $(".index_square").addClass("active"); });
Upload File
Create Folder