mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Added additional javascript file that is loaded into android app
This commit is contained in:
parent
aca353b989
commit
7ae42510f8
12
assets/www/js/jsfile.js
Normal file
12
assets/www/js/jsfile.js
Normal 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();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user