This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
OLD-GZod01.fr_Source_Code-OLD/main-site/uscpm/texttoshare.html

20 lines
637 B
HTML
Raw Permalink Normal View History

2023-03-25 09:29:34 +00:00
<form>
<input type="text" name="text" id="text" onkeyup="showindiv()">
</form>
<div id="content"></div>
<script>
window.onload= function(){
if(document.getElementById('text').value ===''){}
else{
let text = document.getElementById('text').value
let ntext = text.replace('\n','<br>')
document.getElementById('content').innerHTML = ntext
}
}
function showindiv(){
let text = document.getElementById('text').value
let ntext = text.replace('\n','<br>')
document.getElementById('content').innerHTML = ntext
}
</script>