1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-17 22:06:41 +02:00
TableFilter/static/partials/pre-inline-script.html

18 lines
397 B
HTML
Raw Permalink Normal View History

2015-07-10 01:21:11 +02:00
<!--
DO NOT COPY: NOT PART OF TABLEFILTER
-->
2015-06-08 12:21:50 +02:00
<script>
var configs = document.querySelectorAll('script[data-config]');
2015-06-08 12:21:50 +02:00
var pre = document.body.getElementsByTagName('pre')[0];
[].forEach.call(configs, function(config) {
if(pre){
pre.innerHTML +=
config.innerHTML.replace('<', '&lt;').replace('>', '&gt;');
}
});
2015-06-08 12:21:50 +02:00
</script>
2015-07-10 01:21:11 +02:00
<!-- -->