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 | $('.epiphanyhelptext').each(function(i, ob) { | ||
var ht = $(ob).data('helptype'); | |||
var id = parseInt($(ob).data('id')); | |||
$.get("https://epiphanywiki.crystalcomputer.com/extensions/EpiphanyHelpText/helptext.php?ht=" + ht + "&hid=" + id, function(htm) { | |||
$(ob).html(htm); | |||
}); | |||
}); | }); | ||
}); | }); | ||