2017-03-01 19:02:57 +00:00
|
|
|
import 'bootstrap';
|
|
|
|
import $ from 'jquery';
|
|
|
|
import 'tablesorter/dist/js/jquery.tablesorter';
|
|
|
|
import 'tablesorter/dist/js/widgets/widget-uitheme.min.js';
|
2017-03-01 19:21:28 +00:00
|
|
|
import 'tablesorter/dist/js/widgets/widget-resizable.min.js';
|
2017-03-01 19:02:57 +00:00
|
|
|
import 'tablesorter/dist/css/theme.bootstrap_3.min.css';
|
|
|
|
import './table.css';
|
|
|
|
|
|
|
|
// Dereferrer
|
|
|
|
$(document).on("click", "a", function(e) {
|
|
|
|
var el = $(this);
|
|
|
|
var href = el.attr("href");
|
|
|
|
if(href && href.match(/^\s*(https?:)?\/\//i)) {
|
|
|
|
el.attr("href", "deref.html?"+encodeURIComponent(href));
|
|
|
|
|
|
|
|
setTimeout(function() {
|
|
|
|
el.attr("href", href);
|
|
|
|
}, 0);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).ready(() => {
|
|
|
|
$("table.tablesorter").tablesorter({
|
|
|
|
theme: "bootstrap",
|
|
|
|
headerTemplate: "{content} {icon}",
|
2017-03-01 19:21:28 +00:00
|
|
|
widgets: ["uitheme", "resizable"]
|
2017-03-01 19:02:57 +00:00
|
|
|
});
|
|
|
|
});
|