MediaWiki:Common.js: Difference between revisions

From BibleVerseWiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
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. */
var current_search;


$(function() {
 
$("window").on("keydown", alert("hey"));
window.addEventListener('keydown',function(e)
     //$("[name=search]").on("input",alert("hey"));
{
});
alert("df");
    // e = e || window.event;
    // var target = e.target || e.srcElement;
    // console.log('window noticed you clicked something');
     // console.log(target);//<-- this is the element that was clicked
}, false);//<-- we'll get to the false in a minute

Revision as of 04:12, 29 April 2024

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


window.addEventListener('keydown',function(e)
{
	alert("df");
    // e = e || window.event;
    // var target = e.target || e.srcElement;
    // console.log('window noticed you clicked something');
    // console.log(target);//<-- this is the element that was clicked
}, false);//<-- we'll get to the false in a minute