Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
mw.loader.load('https://github.com/processing/p5.js/releases/download/v1.4.0/p5.js'); | mw.loader.load('https://github.com/processing/p5.js/releases/download/v1.4.0/p5.js'); | ||
+ | mw.loader.load('https://gitlab.com/aesthetic-programming/book/-/raw/ca5a10fafd50abfb3837ec44bf30be4b71346a71/public/p5_SampleCode/ch2_VariableGeometry/sketch.js'); | ||
+ | |||
$(function () { | $(function () { |
Revision as of 10:50, 29 September 2021
/* Any JavaScript here will be loaded for all users on every page load. */ mw.loader.load('https://github.com/processing/p5.js/releases/download/v1.4.0/p5.js'); mw.loader.load('https://gitlab.com/aesthetic-programming/book/-/raw/ca5a10fafd50abfb3837ec44bf30be4b71346a71/public/p5_SampleCode/ch2_VariableGeometry/sketch.js'); $(function () { var myElement = document.getElementById('variable-geometry'); myElement.innerHTML = 'TESTTTT'; }());