MediaWiki:PreMarkup.js: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "$(document).ready(function () { $('pre').each(function () { var $this = $(this) var OriginalText = $this.html(); $this.parent(".mw-collapsible-content").show(); /// temporary show collapsible content to read its location.... function returnBoxedText(match, p1) { return '' + p1 + ''; } function returnSpanPosStr(match, p1) { var MarginTop = 0; var MarginLeft = 0; var Rotation = 0;..." |
Caleb Cooper (talk | contribs) No edit summary |
||
Line 2:
$('pre').each(function () {
var $this = $(this)
var OriginalText = $this.html();
$this.parent(".mw-collapsible-content").show(); /// temporary show collapsible content to read its location....
$this.parent().parent(".mw-collapsible-content").show(); /// temporary show collapsible content to read its location....
function returnBoxedText(match, p1) { return '' + p1 + ''; }
Line 63 ⟶ 61:
$this.append('<div style="padding:1px; padding-left:2px; border: 2px solid red; border-radius: 5px; box-shadow: 0.5px 0.5px 5px 0.5px red; position: absolute; left: ' + posLeft + 'px; top: ' + posTop + 'px; width:' + boxWidth + 'px;"> </div>');
});
});
});
| |||