Form:Inscription: Difference between revisions

From Cives
Jump to navigationJump to search
No edit summary
No edit summary
Line 10: Line 10:


<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<input type="hidden" id="html_input" name="html_input">
{{{for template|Inscription}}}
{{{for template|Inscription}}}
<html>
<html>
Line 48: Line 47:


</div>
</div>
<input type="hidden" id="html_input" name="html_input">


<script type="text/javascript">
<script type="text/javascript">
Line 61: Line 61:
};
};


 
var divContent = document.getElementById('IDfield').innerHTML;
    // Get the HTML content of the div
document.getElementById('html_input').value = divContent;
    var divContent = document.getElementById('IDfield').innerHTML;
 
    // Set the value of the hidden input field to the HTML content of the div
    document.getElementById('html_input').value = divContent;


</script>
</script>

Revision as of 13:30, 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.