A better, stronger, faster website loading

This commit is contained in:
Yann Esposito (Yogsototh) 2012-12-12 22:23:02 +01:00
parent 478aba0657
commit e50d16c21e
6 changed files with 642 additions and 625 deletions

7
content/css/cmu.sass Normal file
View file

@ -0,0 +1,7 @@
-----
-----
pre, code, a.cut
font-family: "cmuntt",Incosolata, Monaco, monospace
body
font-family: "ComputerModern", Georgia, Palatino, "Century Schoolbook L", "Times New Roman", Times, serif

View file

@ -170,7 +170,7 @@ body
color: $base01
pre, code, a.cut
font-family: "cmuntt",Incosolata, Monaco, monospace
font-family: Incosolata, Monaco, monospace
pre
&::selection
@ -230,7 +230,7 @@ body, h1, h2, h3, h4, #entete, .tagname
line-height: 1.5em
body
font-family: "ComputerModern", Georgia, Palatino, "Century Schoolbook L", "Times New Roman", Times, serif
font-family: Georgia, Palatino, "Century Schoolbook L", "Times New Roman", Times, serif
/* Header Numbering */
.article #afterheader

View file

@ -0,0 +1 @@
pre,code,a.cut{font-family:"cmuntt",Incosolata,Monaco,monospace}body{font-family:"ComputerModern",Georgia,Palatino,"Century Schoolbook L","Times New Roman",Times,serif}

File diff suppressed because one or more lines are too long

View file

@ -66,20 +66,20 @@ function detectClient() {
return userAgent;
}
$(document).ready(function(){
var msgh1=$('#titre h1').html();
var msgh2=$('#titre h2').html();
var msgintro=$('.corps').html();
if (!msgh1) { msgh1=""; }
if (!msgh2) { msgh2=""; }
if (!msgintro) { msgintro=""; }
$('#blackpage').prepend('<div class="preh1">'+msgh1+'</div>');
$('#blackpage').prepend('<div class="preh2">'+msgh2+'</div>');
$('#blackpage').append('<div class="preintro"><div class="corps">'+msgintro+'</div></div>');
});
// $(document).ready(function(){
// var msgh1=$('#titre h1').html();
// var msgh2=$('#titre h2').html();
// var msgintro=$('.corps').html();
// if (!msgh1) { msgh1=""; }
// if (!msgh2) { msgh2=""; }
// if (!msgintro) { msgintro=""; }
// $('#blackpage').prepend('<div class="preh1">'+msgh1+'</div>');
// $('#blackpage').prepend('<div class="preh2">'+msgh2+'</div>');
// $('#blackpage').append('<div class="preintro"><div class="corps">'+msgintro+'</div></div>');
// });
// Ce que l'on va lancer à l'init.
$(window).bind("load", function() {
$(document).ready(function() {
var client=detectClient();
if ( ! /msie/.test(client) ) {
initCode();
@ -91,6 +91,11 @@ $(window).bind("load", function() {
analytics();
});
$(window).bind("load", function() {
// lorsque toutes les ressources ont ete chargees
$('head').append('<link rel="stylesheet" type="text/css" href="/Scratch/assets/css/cmu.css"/>');
});
// --- Google Analytics ---
if ( ! $.cookie('admin') ) {

File diff suppressed because it is too large Load diff