MediaWiki:Common.js: Difference between revisions
From Epiphany
mNo edit summary |
mNo edit summary |
||
| Line 2: | Line 2: | ||
$(function() { | $(function() { | ||
var hid = $('#epiphanyhelptext').attr('data-id'); | var hid = $('#epiphanyhelptext').attr('data-id'); | ||
alert(hid); | |||
$.get("http://epiphanywiki.crystalcomputer.com/tests/helptext.php?hid=" + hid, function(data) { | $.get("http://epiphanywiki.crystalcomputer.com/tests/helptext.php?hid=" + hid, function(data) { | ||
alert(data); | |||
$('#epiphanyhelptext').html(data); | $('#epiphanyhelptext').html(data); | ||
}); | }); | ||
}); | }); | ||
Revision as of 21:31, 1 February 2021
/* Any JavaScript here will be loaded for all users on every page load. */
$(function() {
var hid = $('#epiphanyhelptext').attr('data-id');
alert(hid);
$.get("http://epiphanywiki.crystalcomputer.com/tests/helptext.php?hid=" + hid, function(data) {
alert(data);
$('#epiphanyhelptext').html(data);
});
});