Form:Inscription: Difference between revisions
From Cives
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 56: | Line 56: | ||
targetDiv.removeChild(targetDiv.lastElementChild); | targetDiv.removeChild(targetDiv.lastElementChild); | ||
let inputSpan = document.getElementById("inputSpan"). | let inputSpan = document.getElementById("inputSpan").value; | ||
let regex = /<img[^>]*>/g; | let regex = /<img[^>]*>/g; | ||
let imgTags = inputSpan.match(regex); | let imgTags = inputSpan.match(regex); | ||
imgTags = imgTags.slice(0, -1); | imgTags = imgTags.slice(0, -1); | ||
inputSpan.textContent = '<div id="slikce">' + imgTags + | inputSpan.textContent = '<div id="slikce">' + imgTags + '</div>'; | ||
}); | }); | ||
document.getElementById( "letterA" ).onclick = function() { | document.getElementById( "letterA" ).onclick = function() { | ||
var slika = document.createElement("img"); | var slika = document.createElement("img"); | ||
Revision as of 16:41, 3 April 2024
This is the "Inscription" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.