~~NOTOC~~
====== Glossaire Typographique ======
===== Type.wiki =====
{{page>fr:glossary:start&nodate&nouser&nolink&noform}}
{{blog>fr:glossary?105&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/glossary/", "").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(function(){
jQuery(function(){
jQuery(document).ready(function() {
if ( jQuery( "div.dokuwiki" ).hasClass( "export" ) ) {
var alphabeticallyOrderedDivs = jQuery('.lm-col').sort(function(a, b) {
return String.prototype.localeCompare.call(jQuery(a).text().toLowerCase(), jQuery(b).text().toLowerCase());
});
var container = jQuery(".lm-submenu.o");
jQuery(document).ready(function() {
container.detach().empty().append(alphabeticallyOrderedDivs);
jQuery('.lm-menu').append(container);
});
} else { }
});
});
});
====== Sources et références ======
{{blog>fr:sources&nodate&nouser&nolink&noform}}
jQuery(function(){
jQuery(function(){
jQuery( document ).ready(function() {
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);
} else {
}
});
});
});
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);
var newlink2 = document.createElement("link");
newlink2.rel = "stylesheet";
newlink2.type = "text/css";
newlink2.href = "http://type.wiki/lib/tpl/typewikis/css/glossaire.css";
newlink2.media = "print";
document.head.appendChild(newlink2);
}