Tech Tangents:Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<script> | <script> | ||
window.addEventListener("load", () => { | window.addEventListener("load", () => { | ||
let button = document.getElementById("tt-button"); | |||
button.addEventListener("click", () => { | |||
const api = new mw.Api(); | |||
let param = { | let param = { | ||
filename: "File_1.jpg", | filename: "File_1.jpg", |
Revision as of 20:42, 6 September 2024