mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-25 21:39:21 +00:00
Create space in HTML elements correctly
This commit is contained in:
parent
fb1f702c77
commit
370d39f153
@ -384,3 +384,18 @@ function check_url(url){
|
||||
|
||||
return url.match(regex) == null ? false : true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a space in an HTML element
|
||||
*
|
||||
* @param {HTMLElement} target The target element for the space
|
||||
*/
|
||||
function add_space(target){
|
||||
|
||||
createElem2({
|
||||
appendTo: target,
|
||||
type: "span",
|
||||
innerHTML: " "
|
||||
});
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user