MediaWiki:Common.js: Difference between revisions

mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
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. */
$(function() {
$(function() {
var hid = $('#epiphanyhelptext').attr('data-id');
$('.epiphanyhelptext').each(function(i, ob) {
$.get("https://epiphanywiki.crystalcomputer.com/tests/helptext.php?hid=" + hid, function(data) {
var ht = $(ob).data('helptype');
$('#epiphanyhelptext').html(data);
var id = parseInt($(ob).data('id'));
$.get("https://epiphanywiki.crystalcomputer.com/extensions/EpiphanyHelpText/helptext.php?ht=" + ht + "&hid=" + id, function(htm) {
$(ob).html(htm);
});
});
});
});
});