Added additional javascript file that is loaded into android app

This commit is contained in:
Isaac 2016-04-03 13:28:57 +03:00
parent aca353b989
commit 7ae42510f8

12
assets/www/js/jsfile.js Normal file
View File

@ -0,0 +1,12 @@
function() {
window.onload = onLoad();
function onLoad() {
window.HTMLUtils.start();
for (i=0; i<document.querySelectorAll('h1, h2, h3, h4, h5, h6').length; i++) {
headerObject = document.querySelectorAll('h1, h2, h3, h4, h5, h6')[i];
window.HTMLUtils.parse(headerObject.textContent, headerObject.tagName, headerObject.id);
}
window.HTMLUtils.stop();
}
}