MediaWiki:Common.js: Difference between revisions
From Epiphany
Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(function (data) { data.replace("\n","<br/>"); document.write data; }());" |
mNo edit summary |
||
| (8 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() { | ||
data. | $('.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); | |||
}); | |||
}); | |||
}); | |||
Latest revision as of 20:17, 28 April 2021
/* Any JavaScript here will be loaded for all users on every page load. */
$(function() {
$('.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);
});
});
});