~~NOTOC~~
====== L'argot des typographes ====== ===== Type.wiki =====
CSS Print
{{page>fr:argot.md&nodate&nouser&nolink&noform}}
jQuery( '.plugin_include_content a' ).each(function() { if( location.hostname === this.hostname || !this.hostname.length ) { jQuery(this).addClass('local'); jQuery(this).attr('href', '#' + jQuery(this).attr('href')); // $(this).attr('href', href.substring(href.indexOf('.md'))); var newHref = jQuery(this).attr("href").replace("http://type.wiki/fr/", "").replace("../sources/", "").replace(".md", "").replace("oe", "œ"); //var newHref2 = jQuery(this).attr("href").replace("/sources/", ""); jQuery(this).attr("href", newHref); } else { jQuery(this).addClass('external'); } }); jQuery( document ).ready(function() { var newlink2 = document.createElement("link"); newlink2.rel = "stylesheet"; newlink2.type = "text/css"; newlink2.href = "http://type.wiki/lib/tpl/typewikis/css/argot.css"; document.head.appendChild(newlink2); if ( jQuery( "div.dokuwiki" ).hasClass( "export" ) ) { changeCSS('http://type.wiki/lib/tpl/typewikis/css/print.css', 0); var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://type.wiki/lib/tpl/typewikis/paged.polyfill.js"; document.getElementsByTagName("head")[0].appendChild(script); return false; } else { } }); var myLink = document.getElementById('mylink'); myLink.onclick = function(){ changeCSS('http://type.wiki/lib/tpl/typewikis/css/print.css', 0); var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://type.wiki/lib/tpl/typewikis/paged.polyfill.js"; document.getElementsByTagName("head")[0].appendChild(script); return false; } function changeCSS(cssFile, cssLinkIndex) { var oldlink = document.getElementsByTagName("link").item(cssLinkIndex); var newlink = document.createElement("link"); newlink.setAttribute("rel", "stylesheet"); newlink.setAttribute("type", "text/css"); newlink.setAttribute("href", cssFile); document.getElementsByTagName("head").item(0).replaceChild(newlink, oldlink); }