About b.js
b.JS provides additional functions and prototypes for javascript To use b.JS in your project, just add the following script reference to your project:
basis functions #
clsBasis functions #
clsDOM functions #
custom Elements #
basis functions
functions that enhance the functionality of javascript for easier development and are not directly related to the user experience.
typ ()
wenn ()
assert ()
allEqual ()
byVal ()
clsBasis
function that will in general directly affect the user experience.
download ()
upload ()
debounce ()
formatBracketText ()
formatTagText ()
popup ()
clsDOM
functions that will in general directly affect the user experience. See clsDOM for more details
AutoFill ()
1) Reads div(elementId).innerHTML as template
2) Clears div(elementId).innerHTML = ''
3) Fills everything in one pass by replacing {{key}} with the corresponding value from each dictionary
Options:
- append: boolean, if true, appends to existing content instead of clearing it first
DownloadHTML ()
ExposeHTML ()
RemoveWithClass ()
Custom Elements
custom HTML elements that can be used in your project.