User:Sokwe/common.js

From LifeWiki
Revision as of 07:00, 31 August 2021 by Sokwe (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
$('#bodyContent').prepend('<p>Hello world!</p>');
$("div#viewer-canvas").wrap("<canvas width=\"200\" height=\"300\" style=\"margin-left:1px;\"></canvas>");

document.getElementById('test').innerHTML = 'test';