Comments around some legacy functions

This commit is contained in:
bluesaxman 2022-03-22 15:17:00 -06:00
parent 1469e59e97
commit 3e61a339e4

View File

@ -49,6 +49,7 @@ function getHTMLfrag(url,targetNode) {
getData(url,addHTMLfrag,target); getData(url,addHTMLfrag,target);
} }
/// Legacy functions for backwards compatibility, no reason for this abstraction
function elementMake (ID,Class,element) { //new and improved, I can use more than just divs for things now. function elementMake (ID,Class,element) { //new and improved, I can use more than just divs for things now.
ID = "string" == typeof ID ? ID.replace(/ /g,"_") : ID; ID = "string" == typeof ID ? ID.replace(/ /g,"_") : ID;
return (function (myElement) { return (function (myElement) {
@ -84,6 +85,7 @@ function titledContainer (ParentID,ID,Class,Element,Position,Title) {
outer.innerHTML = '<p class="title">'+Title+'</p>'; outer.innerHTML = '<p class="title">'+Title+'</p>';
return elementPlace("#outer_"+ID,ID,Class,Element); return elementPlace("#outer_"+ID,ID,Class,Element);
} }
/// end of legacy
function numberShorten (Value,Accuricy) { function numberShorten (Value,Accuricy) {
var level = 0; var level = 0;