Difference between revisions of "Template:Fudan/JS"

(Created page with " //Slider Init (Index Only) $(document).ready(function(){ $('.slider').slider({ height: 400 }); }); //Dropdown Init $(".dropdown-trigger").dropdown({ cove...")
 
 
Line 1: Line 1:
 +
//Sidenav Init
 +
$(document).ready(function(){
 +
    $('.sidenav').sidenav({
 +
        edge:'right',
 +
        inDuration: 250,
 +
        outDuration: 350
 +
    });
 +
});
  
 
//Slider Init (Index Only)
 
//Slider Init (Index Only)

Latest revision as of 09:01, 26 July 2018

//Sidenav Init $(document).ready(function(){

   $('.sidenav').sidenav({
       edge:'right',
       inDuration: 250,
       outDuration: 350
   });

});

//Slider Init (Index Only) $(document).ready(function(){

   $('.slider').slider({
       height: 400
   });

});

//Dropdown Init $(".dropdown-trigger").dropdown({

   coverTrigger: false,
   hover: true,
   inDuration: 250,
   outDuration: 350

});

//Floating Btn Init $(document).ready(function(){

   $('.fixed-action-btn').floatingActionButton({
       toolbarEnabled: true
   });

});

//Tabs Init $(document).ready(function(){

   $('.tabs').tabs();

});