Difference between revisions of "MediaWiki:Common.js/ftoc.js"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { $('.ftoc_content').slimScroll({ color: '#5bc0de', height: '390'...")
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
 
 
$(document).ready(function() {
 
$(document).ready(function() {
  
 
  $('.ftoc_content').slimScroll({
 
  $('.ftoc_content').slimScroll({
   color: '#5bc0de',
+
   color: '#ff9900',
 
   height: '390',
 
   height: '390',
 
   railVisible: true,
 
   railVisible: true,

Latest revision as of 17:35, 28 August 2022

$(document).ready(function() {

 $('.ftoc_content').slimScroll({
  color: '#ff9900',
  height: '390',
  railVisible: true,
  railOpacity: 0.2,
  allowPageScroll: false,
  alwaysVisible: true,
  disableFadeOut: true
 });

$(".ftoc").hover(function() {
 $(".ftoc").stop().animate({left:'0px'}, 250, function() {
 $(".ftoc_content").stop().animate({left:'5px'}, 500);
  });
 }, function() {
 $(".ftoc").stop().animate({left:'-250px'}, 250);
 $(".ftoc_content").stop().animate({left:'-500px'}, 250);
 });

});