Difference between revisions of "MediaWiki:Common.js"

From Conceptual Reconstructionism Project
Tag: Manual revert
Line 2: Line 2:


window.onload = function() {
window.onload = function() {
alert('fine');
$('*[data-def]').click( function(){
$('*[data-def]').click( function(){
     var url = location.href;
     var url = location.href;

Revision as of 09:38, 6 December 2021

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

window.onload = function() {
alert('fine');
$('*[data-def]').click( function(){
    var url = location.href;
    location.href = "#" + this.dataDef;
    history.replaceState(null, null, url);
} );
}