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("input_16").value;
   let inputSpan = document.getElementById("input_16");
  let inputValue = inputSpan.value;
   let regex = /<img[^>]*>/g;
   let regex = /<img[^>]*>/g;
   let imgTags = inputSpan.match(regex);
   let imgTags = inputValue.match(regex);
   console.log(imgTags);
   console.log(imgTags);
   imgTags = imgTags.slice(0, -1);
   imgTags = imgTags.slice(0, -1);
   console.log(imgTags);
   console.log(imgTags);
   inputSpan.value = '<div id="slikce">' + imgTags.join("") + '</div>';
   inputSpan.value = '<div id="slikce">' + imgTags.join("") + '</div>';
  console.log('<div id="slikce">' + imgTags.join("") + '</div>')
});
});



Revision as of 16:51, 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.