Form:Inscription: Difference between revisions

From Cives
Jump to navigationJump to search
No edit summary
No edit summary
Line 60: Line 60:
   let regex = /<img[^>]*>/g;
   let regex = /<img[^>]*>/g;
   let imgTags = inputValue.match(regex);
   let imgTags = inputValue.match(regex);
  console.log(imgTags);
   imgTags = imgTags.slice(0, -1);
   imgTags = imgTags.slice(0, -1);
  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>')
 
   if (imgTags.length >= 0) {
      inputSpan.textContent = "";
    } else {
      inputSpan.textContent = '<div id="slikce">' + imgTags.join("") + "</div>";
    }
});
});



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