Tech Tangents:Sandbox: Difference between revisions
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(" | 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: | ||
ext_pos = fileInput.value.lastIndexOf('.'); | |||
ext_pos = | ext = fileInput.value.substring(ext_pos,file.value.length); | ||
ext = | |||
name_input = get_paramter("Photo"); | name_input = get_paramter("Photo"); |
Revision as of 21:13, 7 September 2024