Tech Tangents:Sandbox: Difference between revisions

From Tech Tangents
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
   <script>
   <script>
     window.addEventListener("load", () => {
     window.addEventListener("load", () => {
       const api = new mw.Api();
       let button = document.getElementById("tt-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