$(document).ready(function() { markupTables(); isPrintable(); init_prefs(); }); // Markup the tables in the content with KNMI look and feel. // This markup is not possible with the editors, so it is done with JS function markupTables() { $(".contenttekst table").addClass("realtable"); var r = $('tbody tr:first-child'); if ( r ) { r.addClass('tableheader'); } } // Display a "Print this page" button if the page is printable function isPrintable() { if (document.getElementById('printable')) { var kiekeboe = document.getElementById('printertje'); kiekeboe.style.display = "inline"; } } function printpage() { newwindow = window.open("","Printje","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,width=600,height=600") newwindow.document.open(); newwindow.focus(); newwindow.document.write("
<\/head\>"); newwindow.document.write("href='/cms/styles/rijks/global.css' type='text\/css'\><\/head\>"); newwindow.document.write(""); var body = document.getElementById('printable').innerHTML; newwindow.document.write(body); newwindow.document.write("<\/body\><\/html\>"); newwindow.document.close(); } if (document.getElementById('printable')) { var kiekeboe = document.getElementById('printertje'); kiekeboe.style.display = "inline"; }