Tech Tangents:Sandbox: Difference between revisions

From Tech Tangents
Jump to navigation Jump to search
No edit summary
No edit summary
Line 90: Line 90:
     wikitext+="}}";
     wikitext+="}}";
     console.log( wikitext );
     console.log( wikitext );
   
 
     let params = {
     let params = {
         action: 'edit',
         action: 'edit',
Line 103: Line 103:
         console.log( data );
         console.log( data );
     } );
     } );
   
 
}
}


function upload_file()
function upload_file()
{
{
     let fileInput = document.getElementById("tt-input");
     let fileInput = document.getElementById("sc-file");
     let license = "=={{int:license-header}}==\n{{Non-free game cover}}",
     let license = "=={{int:license-header}}==\n{{Non-free game cover}}",


Line 114: Line 114:




    file = document.getElementById("sc-file");
     ext_pos = fileInput.value.lastIndexOf('.');
     ext_pos = file.value.lastIndexOf('.');
     ext = fileInput.value.substring(ext_pos,file.value.length);
     ext = file.value.substring(ext_pos,file.value.length);


     name_input = get_paramter("Photo");
     name_input = get_paramter("Photo");

Revision as of 21:13, 7 September 2024

Photo
Software Info
Media Format:
Platform: