version fonctionnelle enfin\!
5
.gitignore
vendored
|
@ -1,4 +1,7 @@
|
|||
*.swp
|
||||
.DS_Store
|
||||
output/
|
||||
output/Scratch/assets
|
||||
output/Scratch/en
|
||||
output/Scratch/fr
|
||||
output/Scratch/map.yrf
|
||||
tmp/
|
||||
|
|
16
Rules
|
@ -12,9 +12,23 @@ compile '/css/*' do
|
|||
filter :sass
|
||||
end
|
||||
route '/css/*' do
|
||||
'/Scratch' + item.identifier.chop + '.css'
|
||||
'/Scratch/assets' + item.identifier.chop + '.css'
|
||||
end
|
||||
|
||||
compile '/css/raw/*' do
|
||||
end
|
||||
route '/css/raw/*' do
|
||||
'/Scratch' + item.identifier.sub(/raw\//,'').chop + '.css'
|
||||
end
|
||||
|
||||
# JS
|
||||
compile '/js/*' do
|
||||
end
|
||||
route '/js/*' do
|
||||
'/Scratch/assets' + item.identifier.chop + '.js'
|
||||
end
|
||||
|
||||
|
||||
# HTML
|
||||
compile '/html/*' do
|
||||
filter :erb
|
||||
|
|
15
config.yaml
|
@ -47,3 +47,18 @@ translations:
|
|||
loading:
|
||||
fr: "Chargement en cours..."
|
||||
en: "loading..."
|
||||
entirely_done_with:
|
||||
en: "Entirely done with"
|
||||
fr: "Site entièrement réalisé avec"
|
||||
and:
|
||||
en: "and"
|
||||
fr: "et"
|
||||
last_modified:
|
||||
en: "Last modified"
|
||||
fr: "dernière modification "
|
||||
copyright:
|
||||
en: "<a href=\"http://creativecommons.org/licenses/by-sa/2.5/deed.en\">Copyright©</a>"
|
||||
fr: "<a href=\"http://creativecommons.org/licenses/by-sa/2.5/deed.fr\">Droits de reproduction ©</a>"
|
||||
subscribe:
|
||||
en: "Subscribe"
|
||||
fr: "s'abonner"
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
-----
|
||||
# Built-in
|
||||
filters:
|
||||
- sass
|
||||
binary: false
|
||||
|
||||
# Custom
|
||||
|
||||
-----
|
||||
!rouge_clair = #cc0000
|
||||
!rouge_fonce = #6c0000
|
||||
|
@ -29,13 +22,12 @@ binary: false
|
|||
:style solid
|
||||
:width 1px
|
||||
:color = !texte_normal
|
||||
a,
|
||||
a:link
|
||||
a, a:link
|
||||
color: #a00
|
||||
&:visited
|
||||
color: #a00
|
||||
&:active, &:hover
|
||||
color: #f00
|
||||
a:visited
|
||||
color: #a00
|
||||
a:active, a:hover
|
||||
color: #f00
|
||||
|
||||
=black
|
||||
:text-shadow 0 1px #000
|
||||
|
@ -48,13 +40,12 @@ binary: false
|
|||
:style solid
|
||||
:width 1px
|
||||
color: #eee
|
||||
a,
|
||||
a:link
|
||||
a, a:link
|
||||
:color #ddd
|
||||
&:visited
|
||||
:color = !blanc_fonce
|
||||
&:active, &:hover
|
||||
:color #cc0000
|
||||
a:visited
|
||||
:color = !blanc_fonce
|
||||
a:active, a:hover
|
||||
:color #cc0000
|
||||
|
||||
=red
|
||||
:background
|
||||
|
@ -63,15 +54,14 @@ binary: false
|
|||
:color = !rouge_fonce
|
||||
:border-color = !rouge_fonce
|
||||
color: #fff
|
||||
a,
|
||||
a:link
|
||||
a, a:link
|
||||
:font-weight bold
|
||||
:text-decoration none
|
||||
:color #eee
|
||||
&:visited
|
||||
:color = !blanc_fonce
|
||||
&:active, &:hover
|
||||
:color #fff
|
||||
a:visited
|
||||
:color = !blanc_fonce
|
||||
a:active, a:hover
|
||||
:color #fff
|
||||
|
||||
=smallblock
|
||||
background-position: 50% 50%
|
||||
|
@ -181,23 +171,20 @@ binary: false
|
|||
+white
|
||||
:text-weight bold
|
||||
:font-size 1.3em
|
||||
a,
|
||||
a:link,
|
||||
a, a:link
|
||||
:color = !texte_attenue
|
||||
a:visited
|
||||
:color = !texte_attenue
|
||||
&:active, &:hover
|
||||
color = !rouge_clair
|
||||
a:active, a:hover
|
||||
color = !rouge_clair
|
||||
|
||||
.corps
|
||||
+white
|
||||
a,
|
||||
a:link,
|
||||
a:visited
|
||||
a, a:link, a:visited
|
||||
color = !rouge_fonce
|
||||
font-weight: normal
|
||||
&:active,
|
||||
&:hover
|
||||
color: #f00
|
||||
a:active, a:hover
|
||||
color: #f00
|
||||
|
||||
a.navigationprev,
|
||||
a.navigationnext
|
||||
|
@ -353,8 +340,8 @@ table.description tr td,
|
|||
text-shadow: 0px -1px 1px #333
|
||||
|
||||
.corps h2
|
||||
color: #999
|
||||
text-shadow: 0 1px #ccc
|
||||
color: #ddd
|
||||
text-shadow: 0 -1px #999
|
||||
|
||||
.corps h2 a,
|
||||
.corps h3 a,
|
||||
|
@ -381,19 +368,18 @@ body
|
|||
// :image url('../../css/img/background.jpg')
|
||||
// :attachment fixed
|
||||
|
||||
a,
|
||||
a:link
|
||||
a
|
||||
:font-weight bold
|
||||
:text-decoration none
|
||||
a, a:link
|
||||
color: #a00
|
||||
outline: none
|
||||
&:visited
|
||||
color: #a00
|
||||
outline: none
|
||||
&:active,
|
||||
&:hover
|
||||
color: #f00
|
||||
outline: none
|
||||
a:visited
|
||||
color: #a00
|
||||
outline: none
|
||||
a:active, a:hover
|
||||
color: #f00
|
||||
outline: none
|
||||
|
||||
ul
|
||||
:list-style square
|
||||
|
@ -423,11 +409,11 @@ ul
|
|||
a,
|
||||
a:link
|
||||
:color #ddd
|
||||
&:visited
|
||||
:color = !blanc_fonce
|
||||
&:active,
|
||||
&:hover
|
||||
color: #cc0000
|
||||
a:visited
|
||||
:color = !blanc_fonce
|
||||
a:active,
|
||||
a:hover
|
||||
color: #cc0000
|
||||
|
||||
// --- les fontes
|
||||
#boutonMessage
|
||||
|
@ -444,6 +430,10 @@ body, h1, h2, h3, h4, #entete
|
|||
font-family: Georgia, "Times New Roman", Times, serif
|
||||
line-height: 1.6em
|
||||
|
||||
pre, code
|
||||
:font
|
||||
:family monaco, monospace
|
||||
|
||||
p
|
||||
margin-bottom: 1.2em
|
||||
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
-----
|
||||
# Built-in
|
||||
filters:
|
||||
- sass
|
||||
binary: false
|
||||
|
||||
# Custom
|
||||
|
||||
-----
|
||||
// /*
|
||||
// La dedans, seulement ce qui concerne le layout
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
---
|
||||
title: Titre principal
|
||||
multiTitle:
|
||||
fr: Titre en français
|
||||
en: English Title
|
||||
title: English title
|
||||
---
|
||||
<h1>A Brand New nanoc Site</h1>
|
||||
|
||||
|
|
|
@ -45,17 +45,16 @@ puts conf.to_s
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/Scratch/img/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/css/twilight.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/css/layout.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/assets/css/layout.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/css/shadows.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/css/gen.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/assets/css/gen.css" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/yannespositocom<%= language %>">
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/css/js.css" />
|
||||
<% @conf.languages.collect do |lang| %>
|
||||
<link rel="alternate" lang="<%= lang %>" xml:lang="<%= lang %>" title="<%= item_of_language(lang)[:title] %>" type="text/html" hreflang="<%= lang %>" href="<%= item_of_language(lang)[:path] %>" />
|
||||
<link rel="alternate" lang="<%= lang %>" xml:lang="<%= lang %>" title="<%= item_of_language(lang)[:title] %>" type="text/html" hreflang="<%= lang %>" href="<%= item_of_language(lang).reps[0].path %>" />
|
||||
<% end %>
|
||||
<script type="text/javascript" src="/Scratch/js/jquery-1.3.1.min.js"></script>
|
||||
<script type="text/javascript" src="/Scratch/js/jquery.cookie.js"></script>
|
||||
<script type="text/javascript" src="/Scratch/js/jquery.ga.js"></script>
|
||||
<script type="text/javascript" src="/Scratch/js/index.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="/Scratch/css/nojs.css" />
|
||||
|
@ -67,37 +66,38 @@ puts conf.to_s
|
|||
document.write('<div id="blackpage"><p><%= tradOf(:loading) %></p><img src="/Scratch/img/loading.gif" alt="loading logo"/></div>');
|
||||
</script>
|
||||
|
||||
<div id="entete">
|
||||
<div id="rss">
|
||||
<span>
|
||||
<a href="http://feeds.feedburner.com/yannespositocom<%= language %>">
|
||||
<img src="/Scratch/img/menu/rss-128.png" alt="rss" height="32"/>
|
||||
</a>
|
||||
<sup>
|
||||
<a href="/Scratch/multi/rss"><%= tradOf('whatsthis') %></a>
|
||||
</sup>
|
||||
</span>
|
||||
</div>
|
||||
<div id="choix">
|
||||
<%= puts %{tradOf(:langue)} %>
|
||||
<div id="choixlang">
|
||||
<ul>
|
||||
<% languages.each do |l| %>
|
||||
<li><%= l %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div id="content">
|
||||
<div id="entete">
|
||||
<div id="rss">
|
||||
<span>
|
||||
<a href="http://feeds.feedburner.com/yannespositocom<%= language %>">
|
||||
<%= tradOf(:subscribe) %>
|
||||
<img src="/Scratch/img/menu/rss-128.png" alt="rss" height="32"/>
|
||||
</a>
|
||||
<sup>
|
||||
<a href="/Scratch/multi/rss"><%= tradOf(:whatsthis) %></a>
|
||||
</sup>
|
||||
</span>
|
||||
</div>
|
||||
<div id="choix">
|
||||
<%= puts %{tradOf(:langue)} %>
|
||||
<div id="choixlang">
|
||||
<ul>
|
||||
<% languages.each do |l| %>
|
||||
<li><%= l %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="liens">
|
||||
<% if article %>
|
||||
<%= puts %{generateMenuForBlog} %>
|
||||
<% else %>
|
||||
<%= puts %{generateMenu} %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div id="liens">
|
||||
<% if article %>
|
||||
<%= puts %{generateMenuForBlog} %>
|
||||
<% else %>
|
||||
<%= puts %{generateMenu} %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<div id="titre">
|
||||
<h1>
|
||||
<%= @item[:title] %>
|
||||
|
@ -144,10 +144,9 @@ puts conf.to_s
|
|||
|
||||
<div id="bottom">
|
||||
<div>
|
||||
en:Entirely done with::
|
||||
fr:Site entièrement réalisé avec::
|
||||
<%= tradOf(:entirely_done_with) %>
|
||||
<a href="http://www.vim.org">Vim</a>
|
||||
fr:et::en:and::
|
||||
<%= tradOf(:and) %>
|
||||
<a href="http://nanoc.stoneship.org">nanoc</a>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -161,12 +160,10 @@ puts conf.to_s
|
|||
<a href="http://validator.w3.org/feed/check.cgi?url=http%3A//yannesposito.com/Scratch/fr/blog/feed/feed.xml" class="fr">[rss]</a>
|
||||
</div>
|
||||
<div>
|
||||
<en><a href="http://creativecommons.org/licenses/by-sa/2.5/deed.en">Copyright©</a></en>
|
||||
<fr><a href="http://creativecommons.org/licenses/by-sa/2.5/deed.fr">Droits de reproduction ©</a></fr>
|
||||
<%=tradOf(:copyright) %>
|
||||
</div>
|
||||
<div id="lastmod">
|
||||
<en>Last modified: <%= @item.mtime.strftime("%m/%d/%Y") %> </en>
|
||||
<fr>dernière modification: <%= @item.mtime.strftime("%d/%m/%Y") %> </fr>
|
||||
<%=tradOf(:last_modified)%>: <%= @item.mtime.strftime(@config[:dateFormat][language.intern]) %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
|
|
@ -24,6 +24,6 @@ end
|
|||
|
||||
def item_of_language(language)
|
||||
searched_path=@item_rep.path.sub(@conf.language,language)
|
||||
puts %{source path = #{@item_rep.path}, searched_path = #{searched_path}}
|
||||
# puts %{source path = #{@item_rep.path}, searched_path = #{searched_path}}
|
||||
@items.find { |i| i.reps[0].path == searched_path }
|
||||
end
|
||||
|
|
0
output/Scratch/blank.html
Normal file
216
output/Scratch/css/blue.css
Normal file
|
@ -0,0 +1,216 @@
|
|||
/* pour supprimer les warnings */
|
||||
|
||||
#choixlang, #entete, #sousliens {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* body */
|
||||
body {
|
||||
margin: 0 10px;
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 1em ;
|
||||
}
|
||||
|
||||
/* links */
|
||||
a:link {
|
||||
color: #00f;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #00a;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #f60;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:active {
|
||||
color: #f60;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* html tags */
|
||||
th, td, ul, ol, li {
|
||||
font-size: 1em ;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
/* Work around IE/Win code size bug - courtesy Jesper, waffle.wootest.net */
|
||||
|
||||
* html code {
|
||||
font-size: 101%;
|
||||
}
|
||||
|
||||
* html pre {
|
||||
font-size: 101%;
|
||||
}
|
||||
|
||||
h1 code, h2 code, h3 code, h4 code, th code, ol.faq li code { font-size: 95%; font-weight: normal; }
|
||||
|
||||
h1 {
|
||||
margin: 0 0 15px 0;
|
||||
padding: 0.5em;
|
||||
font-size: 2em ;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0 0 5px 0;
|
||||
padding: 0;
|
||||
font-size: 1.3em;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#header h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p + h2 {
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
ol + h2 {
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
ul + h2 {
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
h6 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 1em ;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0;
|
||||
font-size: 1em ;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
cite {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 3px 0 10px 0;
|
||||
}
|
||||
|
||||
/* lists */
|
||||
ul {
|
||||
list-style: square outside;
|
||||
margin: 0 0 0 30px;
|
||||
padding: 0 0 1em 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
ul ul {
|
||||
margin-left: 40px;
|
||||
}
|
||||
|
||||
ul.compressed {
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
ul.compressed li {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
ul.marketing {
|
||||
padding-left: 0;
|
||||
margin: 0 0 16px 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul.marketing li {
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
margin-bottom: 2px;
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 0 0 10px 1.5em;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
ul.inline, ol.inline, p.inline {
|
||||
margin-top: -7px;
|
||||
}
|
||||
|
||||
ul.inline ul, ul.inline ol, ol.inline ul, ol.inline ol {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
ol.faq li {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ol.steps li {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.nav {
|
||||
margin: 8px 0 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul.nav li {
|
||||
margin-top: 4px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
ul.nobullet {
|
||||
list-style-type: none;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
ul.nobullet li {
|
||||
margin: 3px 0 5px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* images */
|
||||
.leftinline {
|
||||
margin: 0 10px 5px 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rightinline {
|
||||
margin: 0 0 5px 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
||||
#choixlang, #choix, #liens, #sousliens, #address, #presentation, #Menu, #bottom, #entete, h4 {
|
||||
border-color: #000 ;
|
||||
}
|
||||
#presentation, #Menu, #entete {
|
||||
background-color : #f1F7F9;
|
||||
}
|
229
output/Scratch/css/default.css
Normal file
|
@ -0,0 +1,229 @@
|
|||
/* pour supprimer les warnings */
|
||||
|
||||
#choixlang, #entete, #sousliens {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* body */
|
||||
body {
|
||||
margin: 0 10px;
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 1em ;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
color: #f60;
|
||||
}
|
||||
|
||||
|
||||
/* links */
|
||||
a:link {
|
||||
color: #00f;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #00a;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #f60;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:active {
|
||||
color: #f60;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* html tags */
|
||||
th, td, ul, ol, li {
|
||||
font-size: 1em ;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
/* Work around IE/Win code size bug - courtesy Jesper, waffle.wootest.net */
|
||||
|
||||
* html code {
|
||||
font-size: 101%;
|
||||
}
|
||||
|
||||
* html pre {
|
||||
font-size: 101%;
|
||||
}
|
||||
|
||||
h1 code, h2 code, h3 code, h4 code, th code, ol.faq li code { font-size: 95%; font-weight: normal; }
|
||||
|
||||
h1 {
|
||||
margin: 0 0 15px 0;
|
||||
padding: 0.5em;
|
||||
font-size: 2em ;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0 0 5px 0;
|
||||
padding: 0;
|
||||
font-size: 1.3em;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#header h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p + h2 {
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
ol + h2 {
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
ul + h2 {
|
||||
margin: 20px 0 5px 0;
|
||||
}
|
||||
|
||||
h6 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 1em ;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0;
|
||||
font-size: 1em ;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
cite {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
margin: 3px 0 10px 0;
|
||||
}
|
||||
|
||||
/* lists */
|
||||
ul {
|
||||
list-style: square outside;
|
||||
margin: 0 0 0 30px;
|
||||
padding: 0 0 1em 0;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
ul ul {
|
||||
margin-left: 40px;
|
||||
}
|
||||
|
||||
ul.compressed {
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
ul.compressed li {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
ul.marketing {
|
||||
padding-left: 0;
|
||||
margin: 0 0 16px 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul.marketing li {
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
margin-bottom: 2px;
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 0 0 10px 1.5em;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
ul.inline, ol.inline, p.inline {
|
||||
margin-top: -7px;
|
||||
}
|
||||
|
||||
ul.inline ul, ul.inline ol, ol.inline ul, ol.inline ol {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
ol.faq li {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ol.steps li {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.nav {
|
||||
margin: 8px 0 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul.nav li {
|
||||
margin-top: 4px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
ul.nobullet {
|
||||
list-style-type: none;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
ul.nobullet li {
|
||||
margin: 3px 0 5px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* images */
|
||||
.leftinline {
|
||||
margin: 0 10px 5px 0;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rightinline {
|
||||
margin: 0 0 5px 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
||||
#choixlang, #choix, #liens, #sousliens, #address, #presentation, #Menu, #bottom, #entete, h4 {
|
||||
border-color: #000 ;
|
||||
}
|
||||
#presentation, #Menu, #entete {
|
||||
background-color : #f1F7F9;
|
||||
}
|
||||
/*
|
||||
h1, h2, #choixlang, #choix, #liens, #sousliens {
|
||||
background-color: #F0F5F9 ;
|
||||
}
|
||||
h3, h4, h5, h6 {
|
||||
background-color: #FFF ;
|
||||
}
|
||||
*/
|
48
output/Scratch/css/disqus.css
Normal file
|
@ -0,0 +1,48 @@
|
|||
#disqus_thread .dsq-by img {
|
||||
display: inline;
|
||||
float: right;
|
||||
text-align: right;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
#disqus_thread img {
|
||||
display: inline;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.dsq-post-avatar {
|
||||
float: left;
|
||||
margin-left: 0;
|
||||
margin-right: 3em;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
#disqus_thread ul {
|
||||
margin-left: 8em;
|
||||
}
|
||||
#dsq-toolbar-item {
|
||||
clear: both;
|
||||
}
|
||||
#disqus_thread input.dsq-trackback-url {
|
||||
width: 30em;
|
||||
}
|
||||
#disqus_thread #dsq-content #dsq-post-add iframe {
|
||||
width: 100%;
|
||||
height: 18em;
|
||||
}
|
||||
#disqus_thread h3 {
|
||||
clear: none;
|
||||
}
|
||||
.dsq-item-feed a {
|
||||
background-image: url("/Scratch/img/bullet-feed.png");
|
||||
background-repeat: no-repeat;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
#disqus_thread .dsq-item-feed a img {
|
||||
display: none;
|
||||
}
|
72
output/Scratch/css/iPhone.css
Normal file
|
@ -0,0 +1,72 @@
|
|||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td, #content {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-size: 100%;
|
||||
vertical-align: baseline;
|
||||
background: transparent;
|
||||
}
|
||||
html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6, #content {
|
||||
-webkit-text-size-adjust:none; }
|
||||
body { font-size: 12px; }
|
||||
code { font-size: 12px; }
|
||||
#content { width: 98%; margin-left: 1%; }
|
||||
.corps { padding-right: 2em; padding-left: 2em;}
|
||||
ol, ul { list-style: none; }
|
||||
blockquote, q { quotes: none; }
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after { content: ''; content: none; }
|
||||
|
||||
/* remember to define focus styles! */
|
||||
:focus { outline: 0; }
|
||||
|
||||
/* remember to highlight inserts somehow! */
|
||||
ins { text-decoration: none; }
|
||||
del { text-decoration: line-through; }
|
||||
|
||||
/* tables still need 'cellspacing="0"' in the markup */
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
|
||||
/* --- recuperation des couleurs --- */
|
||||
|
||||
body {
|
||||
font-family: "Sabon LT Std","Hoefler Text","Palatino Linotype","Book Antiqua",serif;
|
||||
background-color: #fff;
|
||||
color: #000; }
|
||||
|
||||
a {
|
||||
font-weight: bold;
|
||||
text-decoration: none; }
|
||||
|
||||
a, a:link {
|
||||
color: #a00;
|
||||
outline: none; }
|
||||
|
||||
a:visited {
|
||||
color: #a00;
|
||||
outline: none; }
|
||||
|
||||
a:active, a:hover {
|
||||
color: #f00;
|
||||
outline: none; }
|
||||
|
||||
ul {
|
||||
list-style: square; }
|
||||
|
||||
.corps {
|
||||
text-align: justify; }
|
||||
|
||||
#corps { margin-left: 0 }
|
||||
#corps { margin-right: 0 }
|
||||
#iphone { display: none; }
|
||||
#entete { min-width: 0; font-size: .8em ;}
|
||||
#liens ul li {margin: 2px; }
|
8
output/Scratch/css/idc.css
Normal file
|
@ -0,0 +1,8 @@
|
|||
#idc-container-parent h3 {
|
||||
display: inline;
|
||||
left: auto;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
}
|
216
output/Scratch/css/ie.css
Normal file
|
@ -0,0 +1,216 @@
|
|||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-size: 100%;
|
||||
vertical-align: baseline;
|
||||
background: transparent;
|
||||
}
|
||||
body { line-height: 1; }
|
||||
ol, ul { list-style: none; }
|
||||
blockquote, q { quotes: none; }
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after { content: ''; content: none; }
|
||||
|
||||
/* remember to define focus styles! */
|
||||
:focus { outline: 0; }
|
||||
|
||||
/* remember to highlight inserts somehow! */
|
||||
ins { text-decoration: none; }
|
||||
del { text-decoration: line-through; }
|
||||
|
||||
/* tables still need 'cellspacing="0"' in the markup */
|
||||
table { border-collapse: collapse; border-spacing: 0; }
|
||||
|
||||
/* --- recuperation des couleurs --- */
|
||||
|
||||
body {
|
||||
font-family: "Sabon LT Std","Hoefler Text","Palatino Linotype","Book Antiqua",serif;
|
||||
background-color: #fff;
|
||||
color: #000; }
|
||||
|
||||
a {
|
||||
font-weight: bold;
|
||||
text-decoration: none; }
|
||||
|
||||
a, a:link {
|
||||
color: #a00;
|
||||
outline: none; }
|
||||
|
||||
a:visited {
|
||||
color: #a00;
|
||||
outline: none; }
|
||||
|
||||
a:active, a:hover {
|
||||
color: #f00;
|
||||
outline: none; }
|
||||
|
||||
ul {
|
||||
list-style: square; }
|
||||
|
||||
.corps {
|
||||
text-align: justify; }
|
||||
|
||||
#liens {
|
||||
border-top: dotted 1px #cacaca; }
|
||||
|
||||
#liens ul {
|
||||
list-style: none;
|
||||
padding-left: 0px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px; }
|
||||
|
||||
#choix ul,
|
||||
#sousliens ul {
|
||||
list-style: none;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px; }
|
||||
|
||||
#liens,
|
||||
#sousliens {
|
||||
font-weight: bold; }
|
||||
|
||||
#entete {
|
||||
background-color: #333;
|
||||
color: #ddd;
|
||||
text-align: right;
|
||||
top: 2em;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
z-index: 2000;
|
||||
}
|
||||
#entete img {
|
||||
background-color: transparent;
|
||||
}
|
||||
#entete a, #entete a:link {
|
||||
color: #d33;
|
||||
outline: none; }
|
||||
|
||||
#entete a:visited {
|
||||
color: #d33;
|
||||
outline: none; }
|
||||
|
||||
#entete a:active, #entete a:hover {
|
||||
color: #f33;
|
||||
outline: none; }
|
||||
|
||||
#menuButton {
|
||||
top: 2em;
|
||||
left: 0;
|
||||
height: 22em;
|
||||
width: 10em;
|
||||
line-height: 3em;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
#content {
|
||||
margin-left: 12em;
|
||||
width: 52em;
|
||||
}
|
||||
pre {
|
||||
margin-top: 2em;
|
||||
margin-bottom: 2em;
|
||||
width: 100%;
|
||||
font-family: "Courrier New", fixed;
|
||||
font-size: 1em;
|
||||
line-height: 1.2em;
|
||||
background-color: #333; }
|
||||
.corps {
|
||||
padding: 3em 5em;
|
||||
margin: 3em 0; }
|
||||
body { font-size: 1em; line-height: 1.5em; }
|
||||
h1 { color: #800; font-size: 1.5em; line-height: 1.5em; padding: .5em; margin: .5em; text-align: center;}
|
||||
h2,h3,h4 { font-size: 1.2em; line-height: 1.2em; padding: .3em; margin: .3em; text-align: center;}
|
||||
#liens {
|
||||
width: 10em ;
|
||||
text-align: right ;
|
||||
padding-top: .5em ; }
|
||||
#liens ul {
|
||||
padding-right: .3em ; }
|
||||
#liens ul li a,
|
||||
#liens ul li span {
|
||||
width: 100%;
|
||||
display: block;
|
||||
line-height: 2em }
|
||||
#choixlang ul {
|
||||
display: inline;
|
||||
padding-left: 0 }
|
||||
#choixlang ul li {
|
||||
display: inline;
|
||||
padding-left: .3em;
|
||||
padding-right: .3em;
|
||||
margin-left: .5em;
|
||||
margin-right: .5em;
|
||||
font-size: 1.2em }
|
||||
#iemessage {
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
font-weight: bold; }
|
||||
#choix ul li.activelang {
|
||||
border: dotted 1px;
|
||||
border-color: #ddd;
|
||||
}
|
||||
#sousliens {
|
||||
background-color: #333;
|
||||
color: #ddd;
|
||||
}
|
||||
.red, .black, .encadre {
|
||||
padding: 2em;
|
||||
margin: 2em;
|
||||
}
|
||||
.red {
|
||||
font-weight: bold;
|
||||
color: #300;
|
||||
}
|
||||
.black {
|
||||
font-weight: bold;
|
||||
}
|
||||
.encadre {
|
||||
border: solid #800 3px;
|
||||
}
|
||||
/* LAYOUT */
|
||||
pre {
|
||||
overflow: hidden; }
|
||||
|
||||
.withfile pre {
|
||||
overflow: hidden;
|
||||
width: 96.6%; }
|
||||
|
||||
.navigationprev, .navigationnext {
|
||||
padding: 0px;
|
||||
margin-left: .2em;
|
||||
margin-right: .2em;
|
||||
margin-bottom: 0;
|
||||
margin-top: 3em;
|
||||
width: 45%; }
|
||||
|
||||
.navigation .navigationprev,
|
||||
.navigation .navigationnext {
|
||||
width: 30%;
|
||||
margin-top: 0; }
|
||||
|
||||
.navigation {
|
||||
font-size: 2em; }
|
||||
|
||||
.presarticleleft,
|
||||
.presarticleright {
|
||||
font-size: 1em; }
|
||||
|
||||
.navigationprev {
|
||||
float: left;
|
||||
text-align: left; }
|
||||
|
||||
.navigationnext {
|
||||
float: right;
|
||||
text-align: right; }
|
||||
|
BIN
output/Scratch/css/img/background.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
output/Scratch/css/img/black.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
output/Scratch/css/img/black600.jpg
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
output/Scratch/css/img/ombre.jpg
Normal file
After Width: | Height: | Size: 304 B |
BIN
output/Scratch/css/img/ombre.png
Normal file
After Width: | Height: | Size: 166 B |
BIN
output/Scratch/css/img/red.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
output/Scratch/css/img/reflet.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
output/Scratch/css/img/reflet10.png
Normal file
After Width: | Height: | Size: 157 B |
BIN
output/Scratch/css/img/reflet20.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
output/Scratch/css/img/sombre10percent.png
Normal file
After Width: | Height: | Size: 144 B |
BIN
output/Scratch/css/img/sombre20percent.png
Normal file
After Width: | Height: | Size: 144 B |
BIN
output/Scratch/css/img/white.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
4
output/Scratch/css/js.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
.en, .fr {
|
||||
display: none;
|
||||
}
|
||||
|
21
output/Scratch/css/nojs.css
Normal file
|
@ -0,0 +1,21 @@
|
|||
.navigationprev, .navigationnext {
|
||||
text-shadow: 0 0 8px #666;
|
||||
}
|
||||
.corps, #bottom, #sousliens {
|
||||
box-shadow: 0px 5px 20px #333;
|
||||
-moz-box-shadow: 0px 5px 20px #333;
|
||||
-webkit-box-shadow: 0px 5px 20px #333;
|
||||
}
|
||||
#titre {
|
||||
box-shadow: 0px 0px 20px #000;
|
||||
-moz-box-shadow: 0px 0px 20px #000;
|
||||
-webkit-box-shadow: 0px 0px 20px #000;
|
||||
}
|
||||
#entete {
|
||||
position: relative;
|
||||
top: -1.5em;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: 2em;
|
||||
}
|
1446
output/Scratch/css/originaldisqus.css
Normal file
14
output/Scratch/css/shadows.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
.navigationprev, .navigationnext {
|
||||
text-shadow: 0 0 3px #aaa;
|
||||
}
|
||||
#titre, h1 {
|
||||
text-shadow: 0px 0px 3px #333;
|
||||
}
|
||||
.corps, #bottom, #sousliens {
|
||||
box-shadow: 0px 2px 5px #333;
|
||||
-moz-box-shadow: 0px 2px 5px #333;
|
||||
-webkit-box-shadow: 0px 2px 5px #333; }
|
||||
#titre, #entete {
|
||||
box-shadow: 0px 0px 5px #000;
|
||||
-moz-box-shadow: 0px 0px 5px #000;
|
||||
-webkit-box-shadow: 0px 0px 5px #000; }
|
147
output/Scratch/css/twilight.css
Normal file
|
@ -0,0 +1,147 @@
|
|||
pre.twilight {
|
||||
padding: .8em;
|
||||
}
|
||||
.withfile pre.twilight {
|
||||
padding-top: 3ex;
|
||||
padding-bottom: .8em;
|
||||
padding-right: .8em;
|
||||
padding-left: .8em;
|
||||
}
|
||||
|
||||
pre.twilight .DiffInserted {
|
||||
/* background-color: #253B22; */
|
||||
color: #F8F8F8;
|
||||
}
|
||||
pre.twilight .DiffHeader {
|
||||
/* background-color: #0E2231; */
|
||||
color: #F8F8F8;
|
||||
font-style: italic;
|
||||
}
|
||||
pre.twilight .CssPropertyValue {
|
||||
color: #F9EE98;
|
||||
}
|
||||
pre.twilight .CCCPreprocessorDirective {
|
||||
color: #AFC4DB;
|
||||
}
|
||||
pre.twilight .Constant {
|
||||
color: #CF6A4C;
|
||||
}
|
||||
pre.twilight .DiffChanged {
|
||||
/* background-color: #4A410D; */
|
||||
color: #F8F8F8;
|
||||
}
|
||||
pre.twilight .EmbeddedSource {
|
||||
/* background-color: #A3A6AD; */
|
||||
}
|
||||
pre.twilight .Support {
|
||||
color: #9B859D;
|
||||
}
|
||||
pre.twilight .MarkupList {
|
||||
color: #F9EE98;
|
||||
}
|
||||
pre.twilight .CssConstructorArgument {
|
||||
color: #8F9D6A;
|
||||
}
|
||||
pre.twilight .Storage {
|
||||
color: #F9EE98;
|
||||
}
|
||||
pre.twilight .line-numbers {
|
||||
/* background-color: #DDF0FF; */
|
||||
color: #000000;
|
||||
}
|
||||
pre.twilight .CssClass {
|
||||
color: #9B703F;
|
||||
}
|
||||
pre.twilight .StringConstant {
|
||||
color: #DDF2A4;
|
||||
}
|
||||
pre.twilight .CssAtRule {
|
||||
color: #8693A5;
|
||||
}
|
||||
pre.twilight .MetaTagInline {
|
||||
color: #E0C589;
|
||||
}
|
||||
pre.twilight .MarkupHeading {
|
||||
color: #CF6A4C;
|
||||
}
|
||||
pre.twilight .CssTagName {
|
||||
color: #CDA869;
|
||||
}
|
||||
pre.twilight .SupportConstant {
|
||||
color: #CF6A4C;
|
||||
}
|
||||
pre.twilight .DiffDeleted {
|
||||
/* background-color: #420E09; */
|
||||
color: #F8F8F8;
|
||||
}
|
||||
pre.twilight .CCCPreprocessorLine {
|
||||
color: #8996A8;
|
||||
}
|
||||
pre.twilight .StringRegexpSpecial {
|
||||
color: #CF7D34;
|
||||
}
|
||||
pre.twilight .EmbeddedSourceBright {
|
||||
/* background-color: #9C9EA4; */
|
||||
}
|
||||
pre.twilight .InvalidIllegal {
|
||||
/* background-color: #241A24; */
|
||||
color: #F8F8F8;
|
||||
}
|
||||
pre.twilight .SupportFunction {
|
||||
color: #DAD085;
|
||||
}
|
||||
pre.twilight .CssAdditionalConstants {
|
||||
color: #CA7840;
|
||||
}
|
||||
pre.twilight .MetaTagAll {
|
||||
color: #AC885B;
|
||||
}
|
||||
pre.twilight .StringRegexp {
|
||||
color: #E9C062;
|
||||
}
|
||||
pre.twilight .StringEmbeddedSource {
|
||||
color: #DAEFA3;
|
||||
}
|
||||
pre.twilight .EntityInheritedClass {
|
||||
color: #9B5C2E;
|
||||
font-style: italic;
|
||||
}
|
||||
pre.twilight .CssId {
|
||||
color: #8B98AB;
|
||||
}
|
||||
pre.twilight .CssPseudoClass {
|
||||
color: #8F9D6A;
|
||||
}
|
||||
pre.twilight .StringVariable {
|
||||
color: #8A9A95;
|
||||
}
|
||||
pre.twilight .String {
|
||||
color: #8F9D6A;
|
||||
}
|
||||
pre.twilight .Keyword {
|
||||
color: #CDA869;
|
||||
}
|
||||
pre.twilight {
|
||||
/* background-color: #141414; */
|
||||
color: #F8F8F8;
|
||||
}
|
||||
pre.twilight .CssPropertyName {
|
||||
color: #C5AF75;
|
||||
}
|
||||
pre.twilight .DoctypeXmlProcessing {
|
||||
color: #494949;
|
||||
}
|
||||
pre.twilight .InvalidDeprecated {
|
||||
color: #D2A8A1;
|
||||
font-style: italic;
|
||||
}
|
||||
pre.twilight .Variable {
|
||||
color: #7587A6;
|
||||
}
|
||||
pre.twilight .Entity {
|
||||
color: #9B703F;
|
||||
}
|
||||
pre.twilight .Comment {
|
||||
color: #5F5A60;
|
||||
font-style: italic;
|
||||
}
|
267
output/Scratch/css/y.css
Normal file
|
@ -0,0 +1,267 @@
|
|||
/* Les couleurs */
|
||||
body {
|
||||
background-color: #444;
|
||||
background-image: url("img/bords.jpg");
|
||||
color: #fff;
|
||||
font-size: 1em ;
|
||||
}
|
||||
a {font-weight: bold; text-decoration: none; }
|
||||
|
||||
.corps h1 { font-variant: small-caps; }
|
||||
|
||||
#lastmod {
|
||||
color: #999;
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
#content {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
|
||||
/* Basé sur 3 couleurs, gris foncé, gris clair et rouge foncé */
|
||||
/* noir: #222 */
|
||||
/* rouge: #a00 */
|
||||
/* blanc: #ccc */
|
||||
|
||||
/* fond blancs */
|
||||
#liens,
|
||||
#sousliens,
|
||||
#choix,
|
||||
.corps {
|
||||
background-image: url("img/white.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-color: #ccc;
|
||||
border-color: #ddd;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
/* centré verticalement et horizontalement */
|
||||
#liens,
|
||||
#sousliens,
|
||||
#choix {
|
||||
background-position: 50% 50%;
|
||||
}
|
||||
/* centré horizontalement en haut */
|
||||
.corps {
|
||||
background-position: 50% 0%;
|
||||
}
|
||||
|
||||
#liens a,
|
||||
#sousliens a,
|
||||
#choix a,
|
||||
.corps a,
|
||||
#liens a:link,
|
||||
#sousliens a:link,
|
||||
#choix a:link,
|
||||
.corps a:link { color: #a00 ; }
|
||||
|
||||
#liens a:visited,
|
||||
#sousliens a:visited,
|
||||
#choix a:visited,
|
||||
.corps a:visited { color: #a00 ; }
|
||||
|
||||
#liens a:active,
|
||||
#liens a:hover,
|
||||
#sousliens a:active,
|
||||
#sousliens a:hover,
|
||||
#choix a:active,
|
||||
#choix a:hover,
|
||||
.corps a:active,
|
||||
.corps a:hover { color: #f00; }
|
||||
|
||||
|
||||
|
||||
/* fond noir */
|
||||
pre.twilight,
|
||||
.corps h2,
|
||||
.corps h3,
|
||||
.corps h4,
|
||||
#bottom {
|
||||
background-image: url("img/black.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-color: #000;
|
||||
border-color: #000;
|
||||
color: #eee
|
||||
}
|
||||
|
||||
/* image centree verticalement */
|
||||
.corps h2,
|
||||
.corps h3,
|
||||
.corps h4,
|
||||
#bottom {
|
||||
background-position: 50% 50%;
|
||||
}
|
||||
/* image en haut */
|
||||
pre.twilight {
|
||||
background-position: 50% 50%;
|
||||
}
|
||||
|
||||
.withfile pre.twilight {
|
||||
background-position: 50% -10%;
|
||||
}
|
||||
|
||||
#entete {
|
||||
background-image: url("img/black600.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50% 50%;
|
||||
background-color: #111111;
|
||||
border-color: #111111;
|
||||
color: #eee
|
||||
}
|
||||
.file a,
|
||||
.corps h2 a,
|
||||
.corps h3 a,
|
||||
.corps h4 a,
|
||||
#entete > a,
|
||||
#bottom a,
|
||||
.file a:link,
|
||||
.corps h2 a:link,
|
||||
.corps h3 a:link,
|
||||
.corps h4 a:link,
|
||||
#entete > a:link,
|
||||
#bottom a:link { color: #ddd ; }
|
||||
|
||||
.file a:visited,
|
||||
.corps h2 a:visited,
|
||||
.corps h3 a:visited,
|
||||
.corps h4 a:visited,
|
||||
#entete > a:visited,
|
||||
#bottom a:visited,
|
||||
{ color: #ccc ;}
|
||||
|
||||
.file a:active, .file a:hover,
|
||||
.corps h2 a:active, .corps h2 a:hover,
|
||||
.corps h3 a:active, .corps h3 a:hover,
|
||||
.corps h4 a:active, .corps h4 a:hover,
|
||||
#bottom a:active, #bottom a:hover { color: #cc0000; }
|
||||
|
||||
/* fond rouge */
|
||||
.corps h1,
|
||||
#titre,
|
||||
#blocMessage {
|
||||
background-image: url("img/red.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50% 50%;
|
||||
color: #fff;
|
||||
background-color: #6c0000;
|
||||
border-color: #6c0000
|
||||
}
|
||||
.corps h1 a,
|
||||
#titre a,
|
||||
#blocMessage a {font-weight: bold; text-decoration: none; }
|
||||
.corps h1 a:link,
|
||||
#titre a:link,
|
||||
#blocMessage a:link { color: #ccc ; }
|
||||
.corps h1 a:visited,
|
||||
#titre a:visited,
|
||||
#blocMessage a:visited { color: #aaa ; }
|
||||
.corps h1 a:active,
|
||||
#titre a:active,
|
||||
#blocMessage a:active { color: #000; }
|
||||
.corps h1 a:hover,
|
||||
#titre a:hover,
|
||||
#blocMessage a:hover { color: #000; }
|
||||
|
||||
/* les fontes */
|
||||
#boutonMessage {color: black; font-size: 10px; font-family: sans-serif; }
|
||||
body {
|
||||
font-family: Optima, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
a { text-decoration: none; }
|
||||
#liens, #choix, #sousliens { font-weight: bold; }
|
||||
|
||||
ul {
|
||||
list-style: square;
|
||||
}
|
||||
|
||||
/* le style des blocs de liens */
|
||||
#liens ul,
|
||||
#choix ul,
|
||||
#sousliens ul {
|
||||
list-style: none;
|
||||
padding-left: 10px;
|
||||
margin-top:0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
/* les borders (pas les couleurs) */
|
||||
/* bord arrondi avec reflet taille 10 */
|
||||
pre.twilight, #bottom, #blocMessage, #choix, #liens, #sousliens, #presentation,
|
||||
#presentation, #Menu, .corps h1, .corps h2,
|
||||
.corps h3, .corps h4, .corps, #photos {
|
||||
border-style: solid;
|
||||
border-width: 1px 1px 1px 1px;
|
||||
/* background-image: url("img/reflet10.png") ; */
|
||||
/*background-repeat: repeat-x; */
|
||||
/*
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
*/
|
||||
-moz-border-radius-topleft: 0px;
|
||||
-moz-border-radius-topright: 10px;
|
||||
-moz-border-radius-bottomleft: 10px;
|
||||
-moz-border-radius-bottomright: 10px;
|
||||
-webkit-border-top-left-radius: 0px;
|
||||
-webkit-border-bottom-left-radius: 10px;
|
||||
-webkit-border-top-right-radius: 10px;
|
||||
-webkit-border-bottom-right-radius: 10px;
|
||||
}
|
||||
|
||||
#content {
|
||||
-moz-border-radius-bottomleft: 20px;
|
||||
-moz-border-radius-bottomright: 20px;
|
||||
-webkit-border-bottom-left-radius: 20px;
|
||||
-webkit-border-bottom-right-radius: 20px;
|
||||
border-bottom-left-radius: 20px;
|
||||
border-bottom-right-radius: 20px;
|
||||
border-style: none;
|
||||
}
|
||||
/* bord arrondi avec reflet taille 20 */
|
||||
#titre, .corps {
|
||||
-moz-border-radius-topleft: 0px;
|
||||
-moz-border-radius-topright: 20px;
|
||||
-moz-border-radius-bottomleft: 20px;
|
||||
-moz-border-radius-bottomright: 20px;
|
||||
-webkit-border-top-left-radius: 0px;
|
||||
-webkit-border-bottom-left-radius: 20px;
|
||||
-webkit-border-top-right-radius: 20px;
|
||||
-webkit-border-bottom-right-radius: 20px;
|
||||
border-radius: 20px;
|
||||
border-style: none;
|
||||
border-width: 2px ;
|
||||
/* background-image: url("img/reflet20.png") ; */
|
||||
/* background-repeat: repeat-x; */
|
||||
}
|
||||
|
||||
#blocMessage {
|
||||
border-style: solid;
|
||||
border-width: 1px 1px 1px 1px;
|
||||
|
||||
-moz-border-radius-topleft: 0px;
|
||||
-moz-border-radius-topright: 0px;
|
||||
-moz-border-radius-bottomleft: 20px;
|
||||
-moz-border-radius-bottomright: 20px;
|
||||
-webkit-border-top-left-radius: 0px;
|
||||
-webkit-border-top-right-radius: 0px;
|
||||
-webkit-border-bottom-left-radius: 10px;
|
||||
-webkit-border-bottom-right-radius: 10px;
|
||||
}
|
||||
|
||||
#boutonMessage {
|
||||
-moz-border-radius: .5em;
|
||||
-webkit-border-radius: .5em;
|
||||
border-radius: .5em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* les ombres */
|
||||
.ombre {
|
||||
background-image: url("img/ombre.jpg");
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
|
BIN
output/Scratch/files/cv.pdf
Normal file
BIN
output/Scratch/files/cv_en.pdf
Normal file
BIN
output/Scratch/img/about/avatar.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
output/Scratch/img/about/cv/cv.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
output/Scratch/img/about/yann1.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
output/Scratch/img/blog/03_losthighway/intro.jpg
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
output/Scratch/img/blog/03_losthighway/mysteryman.jpg
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
output/Scratch/img/blog/03_losthighway/rorschach.gif
Normal file
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 151 KiB |
BIN
output/Scratch/img/blog/mvc/Screenshot_v0.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
output/Scratch/img/bullet-feed.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
output/Scratch/img/favicon.ico
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
output/Scratch/img/loading.gif
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
output/Scratch/img/menu/rss-128.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
output/Scratch/img/menu/rss-32.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
output/Scratch/img/menu/rss-48.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
output/Scratch/img/menu/rss-64.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
1575
output/Scratch/js/disqus.js
Normal file
23
output/Scratch/js/genericCommentWrapperV2.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
if(document.getElementById("IDCommentsPostTitle") && document.getElementById("IDCommentsPostTitle").innerHTML.length>0)
|
||||
idcomments_post_title = document.getElementById("IDCommentsPostTitle").innerHTML;
|
||||
else
|
||||
idcomments_post_title = document.title;
|
||||
if(idcomments_post_title.length==0)
|
||||
idcomments_post_title = "Post";
|
||||
|
||||
idcomments_post_title = idcomments_post_title.replace(/#/, "%23");
|
||||
|
||||
if(null==idcomments_post_url || idcomments_post_url==='')
|
||||
idcomments_post_url = window.location.href;
|
||||
if(null==idcomments_post_id)
|
||||
idcomments_post_id = window.location.href;
|
||||
idcomments_post_id = encodeURIComponent(idcomments_post_id);
|
||||
idcomments_post_url = encodeURIComponent(idcomments_post_url);
|
||||
idcomments_post_title = encodeURIComponent(idcomments_post_title);
|
||||
var commentScript = document.createElement("script");
|
||||
commentScript.type = "text/javascript";
|
||||
commentScript.src = "http://intensedebate.com/js/genericCommentWrapper2.php?acct="+idcomments_acct+"&postid="+idcomments_post_id+"&title="+idcomments_post_title+"&url="+idcomments_post_url;
|
||||
|
||||
$(document).ready( function() {
|
||||
document.getElementsByTagName("head")[0].appendChild(commentScript);
|
||||
});
|
8
output/Scratch/js/ie.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
$('link[rel=stylesheet]').each(function(i)
|
||||
{
|
||||
if (this.getAttribute('href') == '/Scratch/assets/css/layout.css') this.disabled = true;
|
||||
if (this.getAttribute('href') == '/Scratch/css/shadows.css') this.disabled = true;
|
||||
if (this.getAttribute('href') == '/Scratch/assets/css/gen.css') this.disabled = true;
|
||||
}) ;
|
||||
$('head').append('<link rel="stylesheet" type="text/css" href="/Scratch/css/ie.css"/>');
|
||||
$('body').prepend('<div id="iemessage"><p><span class="fr"><em>Avec <a href="http://www.firefox.com"> Firefox </a> et <a href="http://www.apple.com/safari">Safari</a> cette page est bien plus jolie !</em></span><span class="en"><em>This page is far nicer with <a href="http://www.firefox.com"> Firefox </a> and <a href="http://www.apple.com/safari">Safari</a>!</em></span></p></div>');
|
108
output/Scratch/js/index.js
Normal file
|
@ -0,0 +1,108 @@
|
|||
// Message en fonction du browser
|
||||
function detectIE() {
|
||||
if ($.browser["msie"]) {
|
||||
$('head').append('<script type="text/javascript" src="/Scratch/js/ie.js"></script>');
|
||||
}
|
||||
}
|
||||
|
||||
// --- fin pour la contribution de la fin de IE ---
|
||||
|
||||
// Cache les div des classes langue non choisie
|
||||
// et affiche les div de la classe choisie
|
||||
// en gros si on choisi la langue fr et que l'on
|
||||
var currentLanguage="fr";
|
||||
var languagesSet=[ 'fr', 'en' ];
|
||||
function setLanguage(lang) {
|
||||
currentLanguage=lang;
|
||||
$.cookie('language',lang, { path: '/Scratch'});
|
||||
document.title = 'Yann Esposito - ' + $('#titre h1 .' + lang).text() ;
|
||||
$('.activelang').removeClass("activelang");
|
||||
$('#lang_'+lang).addClass("activelang");
|
||||
$('.'+lang).hide();
|
||||
$('.'+lang).fadeIn();
|
||||
jQuery.each(
|
||||
jQuery.grep(languagesSet, function(a) { return a != lang }),
|
||||
function (i,val) {
|
||||
$('.'+val).hide();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function setLanguageFromCookie() {
|
||||
language = $.cookie('language');
|
||||
if (! language) {
|
||||
if ( (navigator) &&
|
||||
(navigator.language) &&
|
||||
(navigator.language.substring(0,2) == 'fr' ) ) {
|
||||
language='fr';
|
||||
} else {
|
||||
language='en';
|
||||
}
|
||||
}
|
||||
setLanguage(language);
|
||||
}
|
||||
|
||||
function detectiPhone() {
|
||||
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
|
||||
$('head').append('<link rel="stylesheet" type="text/css" href="/Scratch/css/iphone.css"/>');
|
||||
$('head').append('<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">');
|
||||
// $('head').append('<link rel="apple-touch-icon" href="images/template/engage.png"/>');
|
||||
$('head').append('<link rel="stylesheet" type="text/css" href="/Scratch/css/iphone.css"/>');
|
||||
// $('body').attr('onorientation','updateOrientation();');
|
||||
decalageTop=0;
|
||||
initMenu=function(){};
|
||||
}
|
||||
}
|
||||
|
||||
var decalageTop = 10;
|
||||
function entete_height() {
|
||||
return $('#entete').height() - $('#menuMessage').height() + decalageTop;
|
||||
}
|
||||
|
||||
function hideMenu() {
|
||||
$('#content').animate({top: - entete_height()}, 500 );
|
||||
$('#menuMessage').html('↓ Menu ↓')
|
||||
}
|
||||
function showMenu() {
|
||||
$('#content').animate({top:"-1em"}, 500 );
|
||||
$('#menuMessage').html('↑ Menu ↑').click(hideMenu);
|
||||
last+=1;
|
||||
autoHideMenu(last);
|
||||
}
|
||||
function toggleMenu() {
|
||||
if ( $('#entete').css('top')==entete_height() ) {
|
||||
showMenu();
|
||||
} else {
|
||||
hideMenu();
|
||||
}
|
||||
}
|
||||
|
||||
// initialisation du menu
|
||||
var last=0;
|
||||
|
||||
function autoHideMenu(value) {
|
||||
setTimeout(function(){
|
||||
if ( last == value ) {
|
||||
hideMenu();
|
||||
}
|
||||
},5000);
|
||||
}
|
||||
|
||||
function initMenu() {
|
||||
$('#titre').css({top: -entete_height});
|
||||
$('#entete').append('<div id="menuMessage">↓ Menu ↓</div>');
|
||||
$('#entete').hover(showMenu);
|
||||
$('#entete').hover(function(){last+=1;}, function(){autoHideMenu(last);});
|
||||
autoHideMenu(0);
|
||||
hideMenu();
|
||||
}
|
||||
|
||||
// Ce que l'on va lancer à l'init.
|
||||
$(document).ready( function() {
|
||||
detectIE();
|
||||
detectiPhone();
|
||||
setLanguageFromCookie();
|
||||
initMenu();
|
||||
// affiche la page une fois propre
|
||||
$('#blackpage').fadeOut();
|
||||
});
|
19
output/Scratch/js/jquery-1.3.1.min.js
vendored
Normal file
123
output/Scratch/js/jquery.color.js
Normal file
|
@ -0,0 +1,123 @@
|
|||
/*
|
||||
* jQuery Color Animations
|
||||
* Copyright 2007 John Resig
|
||||
* Released under the MIT and GPL licenses.
|
||||
*/
|
||||
|
||||
(function(jQuery){
|
||||
|
||||
// We override the animation for all of these color styles
|
||||
jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
|
||||
jQuery.fx.step[attr] = function(fx){
|
||||
if ( fx.state == 0 ) {
|
||||
fx.start = getColor( fx.elem, attr );
|
||||
fx.end = getRGB( fx.end );
|
||||
}
|
||||
|
||||
fx.elem.style[attr] = "rgb(" + [
|
||||
Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
|
||||
Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
|
||||
Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
|
||||
].join(",") + ")";
|
||||
}
|
||||
});
|
||||
|
||||
// Color Conversion functions from highlightFade
|
||||
// By Blair Mitchelmore
|
||||
// http://jquery.offput.ca/highlightFade/
|
||||
|
||||
// Parse strings looking for color tuples [255,255,255]
|
||||
function getRGB(color) {
|
||||
var result;
|
||||
|
||||
// Check if we're already dealing with an array of colors
|
||||
if ( color && color.constructor == Array && color.length == 3 )
|
||||
return color;
|
||||
|
||||
// Look for rgb(num,num,num)
|
||||
if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
|
||||
return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
|
||||
|
||||
// Look for rgb(num%,num%,num%)
|
||||
if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
|
||||
return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
|
||||
|
||||
// Look for #a0b1c2
|
||||
if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
|
||||
return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
|
||||
|
||||
// Look for #fff
|
||||
if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
|
||||
return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
|
||||
|
||||
// Otherwise, we're most likely dealing with a named color
|
||||
return colors[jQuery.trim(color).toLowerCase()];
|
||||
}
|
||||
|
||||
function getColor(elem, attr) {
|
||||
var color;
|
||||
|
||||
do {
|
||||
color = jQuery.curCSS(elem, attr);
|
||||
|
||||
// Keep going until we find an element that has color, or we hit the body
|
||||
if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
|
||||
break;
|
||||
|
||||
attr = "backgroundColor";
|
||||
} while ( elem = elem.parentNode );
|
||||
|
||||
return getRGB(color);
|
||||
};
|
||||
|
||||
// Some named colors to work with
|
||||
// From Interface by Stefan Petre
|
||||
// http://interface.eyecon.ro/
|
||||
|
||||
var colors = {
|
||||
aqua:[0,255,255],
|
||||
azure:[240,255,255],
|
||||
beige:[245,245,220],
|
||||
black:[0,0,0],
|
||||
blue:[0,0,255],
|
||||
brown:[165,42,42],
|
||||
cyan:[0,255,255],
|
||||
darkblue:[0,0,139],
|
||||
darkcyan:[0,139,139],
|
||||
darkgrey:[169,169,169],
|
||||
darkgreen:[0,100,0],
|
||||
darkkhaki:[189,183,107],
|
||||
darkmagenta:[139,0,139],
|
||||
darkolivegreen:[85,107,47],
|
||||
darkorange:[255,140,0],
|
||||
darkorchid:[153,50,204],
|
||||
darkred:[139,0,0],
|
||||
darksalmon:[233,150,122],
|
||||
darkviolet:[148,0,211],
|
||||
fuchsia:[255,0,255],
|
||||
gold:[255,215,0],
|
||||
green:[0,128,0],
|
||||
indigo:[75,0,130],
|
||||
khaki:[240,230,140],
|
||||
lightblue:[173,216,230],
|
||||
lightcyan:[224,255,255],
|
||||
lightgreen:[144,238,144],
|
||||
lightgrey:[211,211,211],
|
||||
lightpink:[255,182,193],
|
||||
lightyellow:[255,255,224],
|
||||
lime:[0,255,0],
|
||||
magenta:[255,0,255],
|
||||
maroon:[128,0,0],
|
||||
navy:[0,0,128],
|
||||
olive:[128,128,0],
|
||||
orange:[255,165,0],
|
||||
pink:[255,192,203],
|
||||
purple:[128,0,128],
|
||||
violet:[128,0,128],
|
||||
red:[255,0,0],
|
||||
silver:[192,192,192],
|
||||
white:[255,255,255],
|
||||
yellow:[255,255,0]
|
||||
};
|
||||
|
||||
})(jQuery);
|
97
output/Scratch/js/jquery.cookie.js
Normal file
|
@ -0,0 +1,97 @@
|
|||
/**
|
||||
* Cookie plugin
|
||||
*
|
||||
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a cookie with the given name and value and other optional parameters.
|
||||
*
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Set the value of a cookie.
|
||||
* @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
|
||||
* @desc Create a cookie with all available options.
|
||||
* @example $.cookie('the_cookie', 'the_value');
|
||||
* @desc Create a session cookie.
|
||||
* @example $.cookie('the_cookie', null);
|
||||
* @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
|
||||
* used when the cookie was set.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @param String value The value of the cookie.
|
||||
* @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
|
||||
* @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
|
||||
* If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
|
||||
* If set to null or omitted, the cookie will be a session cookie and will not be retained
|
||||
* when the the browser exits.
|
||||
* @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
|
||||
* @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
|
||||
* @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
|
||||
* require a secure protocol (like HTTPS).
|
||||
* @type undefined
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the value of a cookie with the given name.
|
||||
*
|
||||
* @example $.cookie('the_cookie');
|
||||
* @desc Get the value of a cookie.
|
||||
*
|
||||
* @param String name The name of the cookie.
|
||||
* @return The value of the cookie.
|
||||
* @type String
|
||||
*
|
||||
* @name $.cookie
|
||||
* @cat Plugins/Cookie
|
||||
* @author Klaus Hartl/klaus.hartl@stilbuero.de
|
||||
*/
|
||||
jQuery.cookie = function(name, value, options) {
|
||||
if (typeof value != 'undefined') { // name and value given, set cookie
|
||||
options = options || {};
|
||||
if (value === null) {
|
||||
value = '';
|
||||
options = $.extend({}, options); // clone object since it's unexpected behavior if the expired property were changed
|
||||
options.expires = -1;
|
||||
}
|
||||
var expires = '';
|
||||
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
|
||||
var date;
|
||||
if (typeof options.expires == 'number') {
|
||||
date = new Date();
|
||||
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
|
||||
} else {
|
||||
date = options.expires;
|
||||
}
|
||||
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
|
||||
}
|
||||
// NOTE Needed to parenthesize options.path and options.domain
|
||||
// in the following expressions, otherwise they evaluate to undefined
|
||||
// in the packed version for some reason...
|
||||
var path = options.path ? '; path=' + (options.path) : '';
|
||||
var domain = options.domain ? '; domain=' + (options.domain) : '';
|
||||
var secure = options.secure ? '; secure' : '';
|
||||
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
|
||||
} else { // only name given, get cookie
|
||||
var cookieValue = null;
|
||||
if (document.cookie && document.cookie != '') {
|
||||
var cookies = document.cookie.split(';');
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = jQuery.trim(cookies[i]);
|
||||
// Does this cookie string begin with the name we want?
|
||||
if (cookie.substring(0, name.length + 1) == (name + '=')) {
|
||||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return cookieValue;
|
||||
}
|
||||
};
|
1279
output/Scratch/js/jquery.urlrewrite.js
Normal file
7
tasks/resetWebSite.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
for rep in output/Scratch/{en,fr,assets}(/N); do
|
||||
print -- "Suppression de $rep"
|
||||
\rm -rf $rep
|
||||
done
|
||||
print -- "Le site est complètement nettoyé"
|