With your script i was able to create static pages but ran into issues when we started using hashes to contain everything in a single page and use hashes to load the content.
Below you will find the script we leveraged to allow for this. On mac no issues however on windows we run into the requested unknown parameter from all browsers.
<script>
$(document).ready(function() {
var descriptions = {
"HostGeneralInfo.csv": "<h3> Description </h3> <p>This report is utilized to understand what type of physical hosts are in your environment. "
}
$('.nav .dropdown-menu a').click(function(event) {
event.preventDefault();
location.hash = $(this).attr('href');
var description = descriptions[$(this).attr('href')];
$('#description').html(description);
init_table({
csv_path: '../rawdata/' + $(this).attr('href'),
element: 'table-container',
allow_download: true,
csv_options: {
separator: ',',
delimiter: '"'
},
datatables_options: {
"paging": true,
"deferRender": true,
"searching": true
}
});
});
if (window.location.hash) {
$('a[href="' + window.location.hash.substring(1) + '"]').click();
}
});
</script>