mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Create <p> tags quickly
This commit is contained in:
		@@ -460,6 +460,21 @@ function add_space(target){
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Create and append a new paragraph
 | 
			
		||||
 * 
 | 
			
		||||
 * @param {HTMLElement} target The target for the new paragraph
 | 
			
		||||
 * @param {String} content The new content for the paragraph
 | 
			
		||||
 * @returns {HTMLElement} Generated element
 | 
			
		||||
 */
 | 
			
		||||
function add_p(target, content){
 | 
			
		||||
	return createElem2({
 | 
			
		||||
		appendTo: target,
 | 
			
		||||
		type: "p",
 | 
			
		||||
		innerHTML: content
 | 
			
		||||
	});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Get the current absolute position bottom of the screen
 | 
			
		||||
 * 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user