jQuery(document).foundation(); jQuery(document).ready(function(){ var $slider = jQuery(".slider"); if ($slider.length > 0) { $slider.slick({ arrows: true, dots: true, slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 6000, responsive: [ { breakpoint: 640, settings: { arrows: false } } ] }); } var $toc = jQuery("#toc"); if ($toc.length > 0) { $toc.toc({ headers: "#content h2, #content h3, #content h4, #content h5, #content h6", showEffect: "none" }); if ($toc.html() === "") { jQuery(".js-expandToc").remove(); jQuery(".toc-header").remove(); } } var $tables = $("#content table"); $tables.each(function(index, item) { var $table = $(item); $table.wrap("