diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-25 14:30:49 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-25 14:30:49 -0700 |
commit | f35939ce42ca9244468434f93dbd705e02911623 (patch) | |
tree | f473434ce37f4844e288489452d1773c03511736 /app/src/main/assets/js/search.js | |
parent | e502ea8cd77357c1e9a6680d912252524f2950f0 (diff) | |
download | frost-f35939ce42ca9244468434f93dbd705e02911623.tar.gz frost-f35939ce42ca9244468434f93dbd705e02911623.tar.bz2 frost-f35939ce42ca9244468434f93dbd705e02911623.zip |
Test kau update
Diffstat (limited to 'app/src/main/assets/js/search.js')
-rw-r--r-- | app/src/main/assets/js/search.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/assets/js/search.js b/app/src/main/assets/js/search.js new file mode 100644 index 00000000..3d10e6f5 --- /dev/null +++ b/app/src/main/assets/js/search.js @@ -0,0 +1,10 @@ +//binds callbacks to an invisible webview to take in the search events +console.log('Binding Search'); +var page = document.querySelector('#page'); +var x = new MutationObserver(function(mutations) { + Frost.handleHtml(page.innerHTML); +}); +x.observe(page, { + childList: true, + subtree: true +}); |