Difference between revisions of "MediaWiki: Common.js"

From Knowledge Federation
Jump to: navigation, search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
  
/*javascript:alert("hello world");*/
+
 
 +
$(document).scroll(function () {
 +
$("#mw-head").animate({margin: "0px 0px 0px 0px"}, 3000);
 +
});
 +
 
 +
 
 +
/*javascript:alert("hello world");
  
 
$(function(){
 
$(function(){
Line 28: Line 34:
 
         }   
 
         }   
 
     }
 
     }
});
+
});*/

Revision as of 16:50, 27 November 2018

/* Any JavaScript here will be loaded for all users on every page load. */


$(document).scroll(function () {
$("#mw-head").animate({margin: "0px 0px 0px 0px"}, 3000);
});


/*javascript:alert("hello world");

$(function(){
    $('#mw-head').data('size','big');
});

$(window).scroll(function(){
    if($(document).scrollTop() > 0)
    {
        if($('#mw-head').data('size') == 'big')
        {
            $('#mw-head').data('size','small');
            $('#mw-head').stop().animate({
                height:'65'
            },600);
        }
    }
    else
    {
        if($('#mw-head').data('size') == 'small')
        {
            $('#mw-head').data('size','big');
            $('#mw-head').stop().animate({
                height:'100px'
            },600);
        }  
    }
});*/