[wiki-lenny/static/] ajout des ressources statiques du wiki dans le repo (css)
darcs-hash:20081109214403-bd074-aea913ab711cbdb465ead1d96003dbcf5b52c7c3.gz
452
wiki-lenny/static/common/EventCalendar/EventCalendar.css
Normal file
|
@ -0,0 +1,452 @@
|
||||||
|
/* ======= for EventCalendar ========*/
|
||||||
|
|
||||||
|
TABLE.eventcalendar {
|
||||||
|
/* margin:auto; */
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_yearmonth {
|
||||||
|
border-width:0px;
|
||||||
|
text-align:center;
|
||||||
|
font-size: large;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_weekday {
|
||||||
|
width:14%;
|
||||||
|
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
background-color: #ffeeee;
|
||||||
|
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:10pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_day {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
/* background-color: #FFFFEE; */
|
||||||
|
vertical-align: top;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:10pt;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_day_sunday {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
/* background-color: #FFFFEE; */
|
||||||
|
vertical-align: top;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:10pt;
|
||||||
|
color: #FF3300;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_day_today {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
background-color: #FFFFAA;
|
||||||
|
vertical-align: top;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size:10pt;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_day_nbmonth {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
vertical-align: top;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:left;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_eventbox {
|
||||||
|
line-height: 11px;
|
||||||
|
padding: 1px 3px 1px 3px;
|
||||||
|
margin: 0px 0px 0px 0px;
|
||||||
|
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
border-color:#000000;
|
||||||
|
|
||||||
|
vertical-align: middle;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TABLE.cal_event {
|
||||||
|
width:100%;
|
||||||
|
|
||||||
|
padding:0 0 0 0;
|
||||||
|
margin:0 0 0 0;
|
||||||
|
|
||||||
|
border-width:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_event {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#cccccc;
|
||||||
|
padding:3px;
|
||||||
|
margin:0px;
|
||||||
|
text-align:center;
|
||||||
|
color:#3266cd;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size: 8pt;
|
||||||
|
display: block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_event_append {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#cccccc;
|
||||||
|
border-left-width:0px;
|
||||||
|
padding:3px;
|
||||||
|
margin:0px;
|
||||||
|
text-align:center;
|
||||||
|
color:#3266cd;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size: 8pt;
|
||||||
|
display: block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_event_pending {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#cccccc;
|
||||||
|
border-right-width:0px;
|
||||||
|
padding:3px;
|
||||||
|
margin:0px;
|
||||||
|
text-align:center;
|
||||||
|
color:#3266cd;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size: 8pt;
|
||||||
|
display: block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_event_append_pending {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#cccccc;
|
||||||
|
border-left-width:0px;
|
||||||
|
border-right-width:0px;
|
||||||
|
padding:3px;
|
||||||
|
margin:0px;
|
||||||
|
text-align:center;
|
||||||
|
color:#3266cd;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size: 8pt;
|
||||||
|
display: block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_nbmonth {
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
border-color:#000000;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_noevent {
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
border-color:#000000;
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_last_nbmonth {
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_last_noevent {
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:1px;
|
||||||
|
border-color:#000000;
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TD.list_head {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
font-size: 11pt;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: #cccccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.list_entry {
|
||||||
|
font-size: 10pt;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_dummy_nbmonth {
|
||||||
|
line-height: 5px;
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
border-color:#000000;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.head_dummy {
|
||||||
|
line-height: 5px;
|
||||||
|
border-top-width:0px;
|
||||||
|
border-bottom-width:0px;
|
||||||
|
border-color:#000000;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TABLE.eventcalendar_menubar {
|
||||||
|
/* margin:auto; */
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.eventcalendar_menubar {
|
||||||
|
border-width: 0px;
|
||||||
|
/* text-align: left; */
|
||||||
|
font-size: 9pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
TABLE.eventcalendar_msg {
|
||||||
|
/* margin:auto; */
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.eventcalendar_msg {
|
||||||
|
background-color: #FFFF66;
|
||||||
|
border-width: 0px;
|
||||||
|
font-size: 9pt;
|
||||||
|
color: #990000;
|
||||||
|
}
|
||||||
|
|
||||||
|
TABLE.simplecalendar {
|
||||||
|
/* margin:auto; */
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_nb {
|
||||||
|
line-height: 10px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:0px;
|
||||||
|
border-color:#000000;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_event {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#c0c0c0;
|
||||||
|
background-color: #eeffff;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-weight:bold;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_noevent {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:#c0c0c0;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-weight:normal;
|
||||||
|
color: #c0c0c0;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_event_today {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:2px;
|
||||||
|
border-color:#ff9999;
|
||||||
|
background-color: #eeffff;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-weight:bold;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_noevent_today {
|
||||||
|
line-height: 20px;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
border-style:solid;
|
||||||
|
border-width:2px;
|
||||||
|
border-color:#ff9999;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-weight:normal;
|
||||||
|
color: #c0c0c0;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_yearmonth {
|
||||||
|
border-width:0px;
|
||||||
|
text-align:center;
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.simple_weekday {
|
||||||
|
width:14%;
|
||||||
|
|
||||||
|
padding: 0 1px 0 1px;
|
||||||
|
margin: 0 1px 0 1px;
|
||||||
|
|
||||||
|
border-width:0px;
|
||||||
|
/* background-color: #ffeeee; */
|
||||||
|
|
||||||
|
font-weight:bold;
|
||||||
|
font-size:8pt;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_daily_noevent {
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
width: 96%;
|
||||||
|
border-style: dotted solid dotted solid;
|
||||||
|
border-top-color: #eeeeee;
|
||||||
|
border-bottom-color: #eeeeee;
|
||||||
|
border-left-color: #aaaaaa;
|
||||||
|
border-right-color: #aaaaaa;
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
line-height: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_eventbox_time {
|
||||||
|
width: 10px;
|
||||||
|
border-width: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
font-size: 7pt;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_eventbox_time_event {
|
||||||
|
border-width: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
font-size: 8pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_daily_noevent {
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
width: 96%;
|
||||||
|
border-style: dotted solid dotted solid;
|
||||||
|
border-top-color: #eeeeee;
|
||||||
|
border-bottom-color: #eeeeee;
|
||||||
|
border-left-color: #aaaaaa;
|
||||||
|
border-right-color: #aaaaaa;
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
line-height: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_weekly_noevent {
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
width: 14%;
|
||||||
|
border-style: dotted solid dotted solid;
|
||||||
|
border-top-color: #eeeeee;
|
||||||
|
border-bottom-color: #eeeeee;
|
||||||
|
border-left-color: #aaaaaa;
|
||||||
|
border-right-color: #aaaaaa;
|
||||||
|
border-top-width: 0px;
|
||||||
|
border-bottom-width: 0px;
|
||||||
|
line-height: 11px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_blankeventbox {
|
||||||
|
border-style: dotted solid dotted solid;
|
||||||
|
border-top-color: #eeeeee;
|
||||||
|
border-bottom-color: #eeeeee;
|
||||||
|
border-left-color: #aaaaaa;
|
||||||
|
border-right-color: #aaaaaa;
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
line-height: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_weekly_eventbox {
|
||||||
|
border-width: 2px;
|
||||||
|
border-color: #000000;
|
||||||
|
vertical-align: top;
|
||||||
|
font-size: 9pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_weekly_eventbox2 {
|
||||||
|
border-style: dotted solid dotted solid;
|
||||||
|
border-top-color: #eeeeee;
|
||||||
|
border-bottom-color: #eeeeee;
|
||||||
|
border-left-color: #aaaaaa;
|
||||||
|
border-right-color: #aaaaaa;
|
||||||
|
border-top-width: 0px;
|
||||||
|
border-bottom-width: 0px;
|
||||||
|
line-height: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
TD.cal_hourhead {
|
||||||
|
line-height: 11px;
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:10pt;
|
||||||
|
text-align:right;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
BIN
wiki-lenny/static/common/badges/badges_80x15_apache.png
Normal file
After Width: | Height: | Size: 696 B |
BIN
wiki-lenny/static/common/badges/badges_80x15_crans.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
wiki-lenny/static/common/badges/badges_80x15_debian.png
Normal file
After Width: | Height: | Size: 593 B |
BIN
wiki-lenny/static/common/badges/badges_80x15_federez.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
wiki-lenny/static/common/badges/badges_80x15_firefox.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
wiki-lenny/static/common/badges/badges_80x15_moinmoin.png
Normal file
After Width: | Height: | Size: 835 B |
BIN
wiki-lenny/static/common/badges/badges_80x15_python.png
Normal file
After Width: | Height: | Size: 960 B |
BIN
wiki-lenny/static/common/badges/valid_css_80x15.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
wiki-lenny/static/common/badges/valid_html401_80x15.png
Normal file
After Width: | Height: | Size: 806 B |
103
wiki-lenny/static/common/boxes/boxes.css
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
boxes.css - MoinMoin Style
|
||||||
|
|
||||||
|
Style pour les elements {{{#!box ...}}}
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
/* les boites */
|
||||||
|
|
||||||
|
/* Show only to IE PC \*/
|
||||||
|
* html .boxhead h2 {height: 1%;} /* For IE 5 PC */
|
||||||
|
|
||||||
|
|
||||||
|
.sidebox {
|
||||||
|
margin: 0 auto; /* center for now */
|
||||||
|
padding:0;
|
||||||
|
font-size: 100%;
|
||||||
|
float:left;
|
||||||
|
max-width:600px;
|
||||||
|
}
|
||||||
|
.boxhead {
|
||||||
|
background: url(sbhead-l-orange.png) no-repeat top left;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 0 0 35px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.boxhead h3 {
|
||||||
|
background:transparent url(sbhead-r-orange.png) no-repeat top right;
|
||||||
|
border:none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 22px 55px 5px 5px;
|
||||||
|
color: white;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
|
line-height: 1em;
|
||||||
|
|
||||||
|
/* Safari-only, but cool */
|
||||||
|
text-shadow: black 0px 2px 5px ;/* valeur originale non valide : rgba(0,0,0,.4) 0px 2px 5px;*/
|
||||||
|
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxbody1 {
|
||||||
|
background: url(sbbody-l.png) no-repeat bottom left;
|
||||||
|
padding: 0 0 0 42px;
|
||||||
|
}
|
||||||
|
.boxbody2 {
|
||||||
|
background: transparent url(sbbody-r.png) no-repeat bottom right;
|
||||||
|
margin: 0;
|
||||||
|
padding: 5px 50px 47px 0;
|
||||||
|
color:black;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.orange_box .boxhead {background-image: url(sbhead-l-orange.png);}
|
||||||
|
.orange_box .boxhead h4 {background-image: url(sbhead-r-orange.png);}
|
||||||
|
|
||||||
|
.blue_box .boxhead {background-image: url(sbhead-l-blue.png);}
|
||||||
|
.blue_box .boxhead h3 {background-image: url(sbhead-r-blue.png);}
|
||||||
|
|
||||||
|
|
||||||
|
.black_box .boxhead {background-image: url(sbhead-l-black.png);}
|
||||||
|
.black_box .boxhead h3 {background-image: url(sbhead-r-black.png);}
|
||||||
|
|
||||||
|
|
||||||
|
.green_box .boxhead {background-image: url(sbhead-l-green.png);}
|
||||||
|
.green_box .boxhead h3 {background-image: url(sbhead-r-green.png);}
|
||||||
|
|
||||||
|
|
||||||
|
.red_box .boxhead {background-image: url(sbhead-l-red.png);}
|
||||||
|
.red_box .boxhead h3 {background-image: url(sbhead-r-red.png);}
|
||||||
|
|
||||||
|
|
||||||
|
.gray_box .boxhead {background-image: url(sbhead-l-gray.png);}
|
||||||
|
.gray_box .boxhead h3 {background-image: url(sbhead-r-gray.png);}
|
||||||
|
|
||||||
|
/* on est oblige de mettre des clear aux titres pour respecter une certaine cohérence */
|
||||||
|
|
||||||
|
h2, h3, h4, h5, hr {clear:left;}
|
||||||
|
|
||||||
|
hr { width:100%; }
|
||||||
|
|
||||||
|
.visualclear, #bottom, #bottom_preview {
|
||||||
|
clear:both;
|
||||||
|
}
|
BIN
wiki-lenny/static/common/boxes/sbbody-l.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
wiki-lenny/static/common/boxes/sbbody-r.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
wiki-lenny/static/common/boxes/sbhead-l-black.png
Normal file
After Width: | Height: | Size: 802 B |
BIN
wiki-lenny/static/common/boxes/sbhead-l-blue.png
Normal file
After Width: | Height: | Size: 897 B |
BIN
wiki-lenny/static/common/boxes/sbhead-l-gray.png
Normal file
After Width: | Height: | Size: 869 B |
BIN
wiki-lenny/static/common/boxes/sbhead-l-green.png
Normal file
After Width: | Height: | Size: 897 B |
BIN
wiki-lenny/static/common/boxes/sbhead-l-orange.png
Normal file
After Width: | Height: | Size: 903 B |
BIN
wiki-lenny/static/common/boxes/sbhead-l-red.png
Normal file
After Width: | Height: | Size: 890 B |
BIN
wiki-lenny/static/common/boxes/sbhead-r-black.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
wiki-lenny/static/common/boxes/sbhead-r-blue.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
wiki-lenny/static/common/boxes/sbhead-r-gray.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
wiki-lenny/static/common/boxes/sbhead-r-green.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
wiki-lenny/static/common/boxes/sbhead-r-orange.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
wiki-lenny/static/common/boxes/sbhead-r-red.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
34
wiki-lenny/static/common/ie7/README.txt
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Follow these simple instructions to get IE7 working immediately on your server:
|
||||||
|
|
||||||
|
* download the latest IE7 ZIP file (https://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707)
|
||||||
|
|
||||||
|
* extract the contents to a directory on your server (keep the folder names used in the ZIP)
|
||||||
|
|
||||||
|
* you will now have an IE7 directory on your server
|
||||||
|
|
||||||
|
* include the IE7 JavaScript library in the page you wish to test
|
||||||
|
|
||||||
|
<!-- compliance patch for microsoft browsers -->
|
||||||
|
<!--[if lt IE 7]><script src="/ie7/ie7-standard-p.js" type="text/javascript"></script><![endif]-->
|
||||||
|
|
||||||
|
* make sure this also points to the same directory
|
||||||
|
|
||||||
|
* open the page in your web browser
|
||||||
|
|
||||||
|
* the page should now be IE7 enabled.
|
||||||
|
|
||||||
|
* if you are using the PNG solution then be aware that it operates on files
|
||||||
|
names "something-trans.png"
|
||||||
|
|
||||||
|
* see this page for more configuration and usage options:
|
||||||
|
http://dean.edwards.name/IE7/usage/
|
||||||
|
|
||||||
|
You may extract the contents of the ZIP file to your hard disk if you do not have access to a web server.
|
||||||
|
|
||||||
|
|
||||||
|
Enjoy ;-)
|
||||||
|
|
||||||
|
Dean Edwards, 23rd May 2005
|
BIN
wiki-lenny/static/common/ie7/blank.gif
Normal file
After Width: | Height: | Size: 48 B |
7
wiki-lenny/static/common/ie7/ie7-base64.php
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?php
|
||||||
|
$data = split(";", $_SERVER["REDIRECT_QUERY_STRING"]);
|
||||||
|
$type = $data[0];
|
||||||
|
$data = split(",", $data[1]);
|
||||||
|
header("Content-type: ".$type);
|
||||||
|
echo base64_decode($data[1]);
|
||||||
|
?>
|
14
wiki-lenny/static/common/ie7/ie7-content.htc
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<html>
|
||||||
|
<!--
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
-->
|
||||||
|
<head>
|
||||||
|
<object id="dummy" width="0" height="0"></object>
|
||||||
|
<base id="base">
|
||||||
|
<style type="text/css">html,body,img{margin:0;}img{vertical-align:top}#dummy{display:inline}</style>
|
||||||
|
<script type="text/javascript">public_description=new function(){var l=false;this.ie7_anon=true;this.load=function(o,c,u){if(l)return;l=true;base.href=o.document.URL;dummy.style.cssText=c;var _0=o.parentElement;var _1=Boolean(dummy.currentStyle.display=="inline");function r(){o.runtimeStyle.width=(_1)?image.offsetWidth:"100%";o.runtimeStyle.height=body.offsetHeight};image.onreadystatechange=function(){if(this.readyState=="complete")_2()};image.src=u;function _2(){function copy(p){try{body.style[p]=_0.currentStyle[p]}catch(i){}};for(var j in body.currentStyle)copy(j);body.style.width="";body.style.height="";body.style.border="none";body.style.padding="0";body.style.margin="0";body.style.textIndent="";body.style.position="static";while(_0&&_0.currentStyle.backgroundColor=="transparent"){_0=_0.parentElement}if(_0)document.body.style.backgroundColor=_0.currentStyle.backgroundColor;body.runtimeStyle.cssText=c;body.runtimeStyle.margin="0";if(_1)body.runtimeStyle.width="";r()}}};</script>
|
||||||
|
</head>
|
||||||
|
<body><span id="body"><img id="image"></span></body>
|
||||||
|
</html>
|
6
wiki-lenny/static/common/ie7/ie7-core.js
Normal file
6
wiki-lenny/static/common/ie7/ie7-css-strict.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-css-strict",function(){if(!modules["ie7-css2-selectors"])return;StyleSheet.prototype.specialize({parse:function(){this.inherit();var r=[].concat(this.rules);r.sort(ie7CSS.Rule.compare);this.cssText=r.join("\n")},createRule:function(s,c){var m;if(m=s.match(ie7CSS.PseudoElement.MATCH))return new ie7CSS.PseudoElement(m[1],m[2],c);else if(m=s.match(ie7CSS.DynamicRule.MATCH))return new ie7CSS.DynamicRule(s,m[1],m[2],m[3],c);else return new ie7CSS.Rule(s,c)}});ie7CSS.specialize({apply:function(){this.inherit();this.Rule.MATCH=/([^{}]+)(\{[^{}]*\})/g}});ie7CSS.Rule.compare=function(r1,r2){return r1.specificity-r2.specificity};var N=[],I=/#/g,C=/[.:\[]/g,T=/^\w|[\s>+~]\w/g;ie7CSS.Rule.score=function(s){return(s.match(I)||N).length*10000+(s.match(C)||N).length*100+(s.match(T)||N).length};ie7CSS.Rule.simple=function(){return""};ie7CSS.Rule.prototype.specialize({specificity:0,init:function(){this.specificity=ie7CSS.Rule.score(this.selector)}})});
|
6
wiki-lenny/static/common/ie7/ie7-css2-selectors.js
Normal file
6
wiki-lenny/static/common/ie7/ie7-css3-selectors.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-css3-selectors",function(){cssQuery.addModule("css-level3",function(){selectors["~"]=function(r,f,t,n){var e,i;for(i=0;(e=f[i]);i++){while(e=nextElementSibling(e)){if(compareTagName(e,t,n))r.push(e)}}};pseudoClasses["contains"]=function(e,t){t=new RegExp(regEscape(getText(t)));return t.test(getTextContent(e))};pseudoClasses["root"]=function(e){return e==getDocument(e).documentElement};pseudoClasses["empty"]=function(e){var n,i;for(i=0;(n=e.childNodes[i]);i++){if(thisElement(n)||n.nodeType==3)return false}return true};pseudoClasses["last-child"]=function(e){return!nextElementSibling(e)};pseudoClasses["only-child"]=function(e){e=e.parentNode;return firstElementChild(e)==lastElementChild(e)};pseudoClasses["not"]=function(e,s){var n=cssQuery(s,getDocument(e));for(var i=0;i<n.length;i++){if(n[i]==e)return false}return true};pseudoClasses["nth-child"]=function(e,a){return nthChild(e,a,previousElementSibling)};pseudoClasses["nth-last-child"]=function(e,a){return nthChild(e,a,nextElementSibling)};pseudoClasses["target"]=function(e){return e.id==location.hash.slice(1)};pseudoClasses["checked"]=function(e){return e.checked};pseudoClasses["enabled"]=function(e){return e.disabled===false};pseudoClasses["disabled"]=function(e){return e.disabled};pseudoClasses["indeterminate"]=function(e){return e.indeterminate};AttributeSelector.tests["^="]=function(a,v){return"/^"+regEscape(v)+"/.test("+a+")"};AttributeSelector.tests["$="]=function(a,v){return"/"+regEscape(v)+"$/.test("+a+")"};AttributeSelector.tests["*="]=function(a,v){return"/"+regEscape(v)+"/.test("+a+")"};function nthChild(e,a,t){switch(a){case"n":return true;case"even":a="2n";break;case"odd":a="2n+1"}var ch=childElements(e.parentNode);function _5(i){var i=(t==nextElementSibling)?ch.length-i:i-1;return ch[i]==e};if(!isNaN(a))return _5(a);a=a.split("n");var m=parseInt(a[0]);var s=parseInt(a[1]);if((isNaN(m)||m==1)&&s==0)return true;if(m==0&&!isNaN(s))return _5(s);if(isNaN(s))s=0;var c=1;while(e=t(e))c++;if(isNaN(m)||m==1)return(t==nextElementSibling)?(c<=s):(s>=c);return(c%m)==s}});var firstElementChild=cssQuery.valueOf("firstElementChild");ie7CSS.pseudoClasses["root"]=function(e){return(e==viewport)||(!isHTML&&e==firstElementChild(body))};var _4=new ie7CSS.DynamicPseudoClass("checked",function(e){if(typeof e.checked!="boolean")return;var i=arguments;ie7CSS.addEventHandler(e,"onpropertychange",function(){if(event.propertyName=="checked"){if(e.checked)_4.register(i);else _4.unregister(i)}});if(e.checked)_4.register(i)});var _3=new ie7CSS.DynamicPseudoClass("enabled",function(e){if(typeof e.disabled!="boolean")return;var i=arguments;ie7CSS.addEventHandler(e,"onpropertychange",function(){if(event.propertyName=="disabled"){if(!e.isDisabled)_3.register(i);else _3.unregister(i)}});if(!e.isDisabled)_3.register(i)});var _2=new ie7CSS.DynamicPseudoClass("disabled",function(e){if(typeof e.disabled!="boolean")return;var i=arguments;ie7CSS.addEventHandler(e,"onpropertychange",function(){if(event.propertyName=="disabled"){if(e.isDisabled)_2.register(i);else _2.unregister(i)}});if(e.isDisabled)_2.register(i)});var _1=new ie7CSS.DynamicPseudoClass("indeterminate",function(e){if(typeof e.indeterminate!="boolean")return;var i=arguments;ie7CSS.addEventHandler(e,"onpropertychange",function(){if(event.propertyName=="indeterminate"){if(e.indeterminate)_1.register(i);else _1.unregister(i)}});ie7CSS.addEventHandler(e,"onclick",function(){_1.unregister(i)})});var _0=new ie7CSS.DynamicPseudoClass("target",function(e){var i=arguments;if(!e.tabIndex)e.tabIndex=0;ie7CSS.addEventHandler(document,"onpropertychange",function(){if(event.propertyName=="activeElement"){if(e.id==location.hash.slice(1))_0.register(i);else _0.unregister(i)}});if(e.id==location.hash.slice(1))_0.register(i)});decoder.add(/\|/,"\\:")});
|
57
wiki-lenny/static/common/ie7/ie7-dhtml.js
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-dhtml", function() {
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------
|
||||||
|
This module is still in development and should not be used.
|
||||||
|
--------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
ie7CSS.specialize("recalc", function() {
|
||||||
|
this.inherit();
|
||||||
|
for (var i = 0; i < this.recalcs.length; i++) {
|
||||||
|
var $recalc = this.recalcs[i];
|
||||||
|
for (var j = 0; i < $recalc[3].length; i++) {
|
||||||
|
_addPropertyChangeHandler($recalc[3][j], _getPropertyName($recalc[2]), $recalc[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// constants
|
||||||
|
var _PATTERNS = {
|
||||||
|
width: "(width|paddingLeft|paddingRight|borderLeftWidth|borderRightWidth|borderLeftStyle|borderRightStyle)",
|
||||||
|
height: "(height|paddingTop|paddingBottom|borderTopHeight|borderBottomHeight|borderTopStyle|borderBottomStyle)"
|
||||||
|
};
|
||||||
|
var _PROPERTY_NAMES = {
|
||||||
|
width: "fixedWidth",
|
||||||
|
height: "fixedHeight",
|
||||||
|
right: "width",
|
||||||
|
bottom: "height"
|
||||||
|
};
|
||||||
|
var _DASH_LETTER = /-(\w)/g;
|
||||||
|
var _PROPERTY_NAME = /\w+/;
|
||||||
|
|
||||||
|
function _addPropertyChangeHandler($element, $propertyName, $fix) {
|
||||||
|
addEventHandler($element, "onpropertychange", function() {
|
||||||
|
if (_getPattern($propertyName).test(event.propertyName)) {
|
||||||
|
_reset($element, $propertyName);
|
||||||
|
$fix($element);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
function _upper($match, $letter) {return $letter.toUpperCase()};
|
||||||
|
function _getPropertyName($pattern) {
|
||||||
|
return String(String($pattern).toLowerCase().replace(_DASH_LETTER, _upper).match(_PROPERTY_NAME));
|
||||||
|
};
|
||||||
|
function _getPattern($propertyName) {
|
||||||
|
return eval("/^style." + (_PATTERNS[$propertyName] || $propertyName) + "$/");
|
||||||
|
};
|
||||||
|
function _reset($element, $propertyName) {
|
||||||
|
$element.runtimeStyle[$propertyName] = "";
|
||||||
|
$propertyName = _PROPERTY_NAMES[$propertyName]
|
||||||
|
if ($propertyName) $element.runtimeStyle[$propertyName] = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
});
|
6
wiki-lenny/static/common/ie7/ie7-dynamic-attributes.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-dynamic-attributes",function(){if(!modules["ie7-css2-selectors"])return;var attributeSelectors=cssQuery.valueOf("attributeSelectors");var parseSelector=cssQuery.valueOf("parseSelector");function DynamicAttribute(s,a,d,t,c){this.attach=a||"*";parseSelector(d);this.dynamicAttribute=attributeSelectors["@"+d];this.target=t;this.inherit(s,c)};ie7CSS.Rule.specialize({constructor:DynamicAttribute,recalc:function(){var m=cssQuery(this.attach);for(var i=0;i<m.length;i++){var t=(this.target)?cssQuery(this.target,m[i]):[m[i]];if(t.length)this.apply(m[i],t)}},apply:function(e,t){var self=this;addEventHandler(e,"onpropertychange",function(){if(event.propertyName==self.dynamicAttribute.name)self.test(e,t)});this.test(e,t)},test:function(e,t){var a=this.dynamicAttribute.test(e)?"add":"remove";for(var i=0;(e=t[i]);i++)this[a](e)}});DynamicAttribute.MATCH=/(.*)(\[[^\]]*\])(.*)/;StyleSheet.prototype.specialize({createRule:function(s,c){var m;if(m=s.match(DynamicAttribute.MATCH)){return new DynamicAttribute(s,m[1],m[2],m[3],c)}else return this.inherit(s,c)}})});
|
6
wiki-lenny/static/common/ie7/ie7-fixed.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-fixed",function(){ie7CSS.addRecalc("position","fixed",_6,"absolute");ie7CSS.addRecalc("background(-attachment)?","[^};]*fixed",_7);var _10=(quirksMode)?"body":"documentElement";var _8=function(){if(body.currentStyle.backgroundAttachment!="fixed"){if(body.currentStyle.backgroundImage=="none"){body.runtimeStyle.backgroundRepeat="no-repeat";body.runtimeStyle.backgroundImage="url("+BLANK_GIF+")"}body.runtimeStyle.backgroundAttachment="fixed"}_8=DUMMY};var _0=createTempElement("img");function _1(f){return _2.exec(String(f))};var _2=new ParseMaster;_2.add(/Left/,"Top");_2.add(/left/,"top");_2.add(/Width/,"Height");_2.add(/width/,"height");_2.add(/right/,"bottom");_2.add(/X/,"Y");function _3(e){return(e)?isFixed(e)||_3(e.parentElement):false};function setExpression(e,p,ex){setTimeout("document.all."+e.uniqueID+".runtimeStyle.setExpression('"+p+"','"+ex+"')",0)};function _7(e){if(register(_7,e,e.currentStyle.backgroundAttachment=="fixed"&&!e.contains(body))){_8();backgroundLeft(e);backgroundTop(e);_9(e)}};function _9(e){_0.src=e.currentStyle.backgroundImage.slice(5,-2);var p=(e.canHaveChildren)?e:e.parentElement;p.appendChild(_0);setOffsetLeft(e);setOffsetTop(e);p.removeChild(_0)};function backgroundLeft(e){e.style.backgroundPositionX=e.currentStyle.backgroundPositionX;if(!_3(e)){var ex="(parseInt(runtimeStyle.offsetLeft)+document."+_10+".scrollLeft)||0";setExpression(e,"backgroundPositionX",ex)}};eval(_1(backgroundLeft));function setOffsetLeft(e){var p=_3(e)?"backgroundPositionX":"offsetLeft";e.runtimeStyle[p]=getOffsetLeft(e,e.style.backgroundPositionX)-e.getBoundingClientRect().left-e.clientLeft+2};eval(_1(setOffsetLeft));function getOffsetLeft(e,p){switch(p){case"left":case"top":return 0;case"right":case"bottom":return viewport.clientWidth-_0.offsetWidth;case"center":return(viewport.clientWidth-_0.offsetWidth)/2;default:if(PERCENT.test(p)){return parseInt((viewport.clientWidth-_0.offsetWidth)*parseFloat(p)/100)}_0.style.left=p;return _0.offsetLeft}};eval(_1(getOffsetLeft));function _6(e){if(register(_6,e,isFixed(e))){setOverrideStyle(e,"position","absolute");setOverrideStyle(e,"left",e.currentStyle.left);setOverrideStyle(e,"top",e.currentStyle.top);_8();if(ie7Layout)ie7Layout.fixRight(e);_5(e)}};function _5(e,r){positionTop(e,r);positionLeft(e,r,true);if(!e.runtimeStyle.autoLeft&&e.currentStyle.marginLeft=="auto"&&e.currentStyle.right!="auto"){var l=viewport.clientWidth-getPixelWidth(e,e.currentStyle.right)-getPixelWidth(e,e.runtimeStyle._12)-e.clientWidth;if(e.currentStyle.marginRight=="auto")l=parseInt(l/2);if(_3(e.offsetParent))e.runtimeStyle.pixelLeft+=l;else e.runtimeStyle.shiftLeft=l}clipWidth(e);clipHeight(e)};function clipWidth(e){if(e.currentStyle.width!="auto"){var r=e.getBoundingClientRect();var w=e.offsetWidth-viewport.clientWidth+r.left-2;if(w>=0){w=Math.max(getPixelValue(e,e.currentStyle.width)-w,0);setOverrideStyle(e,"width",w)}}};eval(_1(clipWidth));function positionLeft(e,r){if(!r&&PERCENT.test(e.currentStyle.width)){e.runtimeStyle.fixWidth=e.currentStyle.width}if(e.runtimeStyle.fixWidth){e.runtimeStyle.width=getPixelWidth(e,e.runtimeStyle.fixWidth)}if(r){if(!e.runtimeStyle.autoLeft)return}else{e.runtimeStyle.shiftLeft=0;e.runtimeStyle._12=e.currentStyle.left;e.runtimeStyle.autoLeft=e.currentStyle.right!="auto"&&e.currentStyle.left=="auto"}e.runtimeStyle.left="";e.runtimeStyle.screenLeft=getScreenLeft(e);e.runtimeStyle.pixelLeft=e.runtimeStyle.screenLeft;if(!r&&!_3(e.offsetParent)){var ex="runtimeStyle.screenLeft+runtimeStyle.shiftLeft+document."+_10+".scrollLeft";setExpression(e,"pixelLeft",ex)}};eval(_1(positionLeft));function getScreenLeft(e){var s=e.offsetLeft,n=1;if(e.runtimeStyle.autoLeft){s=viewport.clientWidth-e.offsetWidth-getPixelWidth(e,e.currentStyle.right)}if(e.currentStyle.marginLeft!="auto"){s-=getPixelWidth(e,e.currentStyle.marginLeft)}while(e=e.offsetParent){if(e.currentStyle.position!="static")n=-1;s+=e.offsetLeft*n}return s};eval(_1(getScreenLeft));function getPixelWidth(e,v){if(PERCENT.test(v))return parseInt(parseFloat(v)/100*viewport.clientWidth);return getPixelValue(e,v)};eval(_1(getPixelWidth));function _11(){var e=_7.elements;for(var i in e)_9(e[i]);e=_6.elements;for(i in e){_5(e[i],true);_5(e[i],true)}_4=0};var _4;addResize(function(){if(!_4)_4=setTimeout(_11,0)})});
|
6
wiki-lenny/static/common/ie7/ie7-graphics.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-graphics",function(){if(appVersion<5.5)return;var A="DXImageTransform.Microsoft.AlphaImageLoader";var F="progid:"+A+"(src='%1',sizingMethod='scale')";var _3=new RegExp((window.IE7_PNG_SUFFIX||"-trans.png")+"$","i");var _0=[];function _2(e){var f=e.filters[A];if(f){f.src=e.src;f.enabled=true}else{e.runtimeStyle.filter=F.replace(/%1/,e.src);_0.push(e)}e.src=BLANK_GIF};function _5(e){e.src=e.pngSrc;e.filters[A].enabled=false};ie7CSS.addFix(/opacity\s*:\s*([\d.]+)/,function(m,o){return"zoom:1;filter:progid:DXImageTransform.Microsoft.Alpha(opacity="+((parseFloat(m[o+1])*100)||1)+")"});var B=/background(-image)?\s*:\s*([^\(};]*)url\(([^\)]+)\)([^;}]*)/;ie7CSS.addFix(B,function(m,o){var u=getString(m[o+3]);return _3.test(u)?"filter:"+F.replace(/scale/,"crop").replace(/%1/,u)+";zoom:1;background"+(m[o+1]||"")+":"+(m[o+2]||"")+"none"+(m[o+4]||""):m[o]});if(ie7HTML){ie7HTML.addRecalc("img,input",function(e){if(e.tagName=="INPUT"&&e.type!="image")return;_4(e);addEventHandler(e,"onpropertychange",function(){if(!_1&&event.propertyName=="src"&&e.src.indexOf(BLANK_GIF)==-1)_4(e)})});var B64=/^data:.*;base64/i;var _7=makePath("ie7-base64.php",path);function _4(e){if(_3.test(e.src)){var i=new Image(e.width,e.height);i.onload=function(){e.width=i.width;e.height=i.height;i=null};i.src=e.src;e.pngSrc=e.src;_2(e)}else if(B64.test(e.src)){e.src=_7+"?"+e.src.slice(5)}};var I=/^image/i;var _6=makePath("ie7-object.htc",path);ie7HTML.addRecalc("object",function(e){if(I.test(e.type)){var o=document.createElement("<object type=text/x-scriptlet>");o.style.width=e.currentStyle.width;o.style.height=e.currentStyle.height;o.data=_6;var u=makePath(e.data,getPath(location.href));e.parentNode.replaceChild(o,e);cssQuery.clearCache("object");addTimer(o,"",u);return o}})}var _1=false;addEventHandler(window,"onbeforeprint",function(){_1=true;for(var i=0;i<_0.length;i++)_5(_0[i])});addEventHandler(window,"onafterprint",function(){for(var i=0;i<_0.length;i++)_2(_0[i]);_1=false})});
|
6
wiki-lenny/static/common/ie7/ie7-html4.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-html4",function(){if(!isHTML)return;HEADER+="h1{font-size:2em}h2{font-size:1.5em;}h3{font-size:1.17em;}"+"h4{font-size:1em}h5{font-size:.83em}h6{font-size:.67em}";var _0={};ie7HTML=new(Fix.specialize({init:DUMMY,addFix:function(){this.fixes.push(arguments)},apply:function(){for(var i=0;i<this.fixes.length;i++){var m=cssQuery(this.fixes[i][0]);var f=this.fixes[i][1]||_1;for(var j=0;j<m.length;j++)f(m[j])}},addRecalc:function(){this.recalcs.push(arguments)},recalc:function(){for(var i=0;i<this.recalcs.length;i++){var m=cssQuery(this.recalcs[i][0]);var r=this.recalcs[i][1],e;var k=Math.pow(2,i);for(var j=0;(e=m[j]);j++){var u=e.uniqueID;if((_0[u]&k)==0){e=r(e)||e;_0[u]|=k}}}}}));ie7HTML.addFix("abbr");ie7HTML.addRecalc("label",function(e){if(!e.htmlFor){var f=cssQuery("input,textarea",e)[0];if(f){addEventHandler(e,"onclick",function(){f.click()})}}});ie7HTML.addRecalc("button,input",function(e){if(e.tagName=="BUTTON"){var m=e.outerHTML.match(/ value="([^"]*)"/i);e.runtimeStyle.value=(m)?m[1]:""}if(e.type=="submit"){addEventHandler(e,"onclick",function(){e.runtimeStyle.clicked=true;setTimeout("document.all."+e.uniqueID+".runtimeStyle.clicked=false",1)})}});var U=/^(submit|reset|button)$/;ie7HTML.addRecalc("form",function(e){addEventHandler(e,"onsubmit",function(){for(var i=0;i<e.length;i++){if(_2(e[i])){e[i].disabled=true;setTimeout("document.all."+e[i].uniqueID+".disabled=false",1)}else if(e[i].tagName=="BUTTON"&&e[i].type=="submit"){setTimeout("document.all."+e[i].uniqueID+".value='"+e[i].value+"'",1);e[i].value=e[i].runtimeStyle.value}}})});function _2(e){return U.test(e.type)&&!e.disabled&&!e.runtimeStyle.clicked};ie7HTML.addRecalc("img",function(e){if(e.alt&&!e.title)e.title=""});var P=(appVersion<5.5)?"HTML:":"";function _1(e){var f=document.createElement("<"+P+e.outerHTML.slice(1));if(e.outerHTML.slice(-2)!="/>"){var en="</"+e.tagName+">",n;while((n=e.nextSibling)&&n.outerHTML!=en){f.appendChild(n)}if(n)n.removeNode()}e.parentNode.replaceChild(f,e)}});
|
6
wiki-lenny/static/common/ie7/ie7-ie5.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
if(appVersion<5.5){ANON="HTML:!";var ap=function(f,o,a){f.apply(o,a)};if(''.replace(/^/,String)){var _0=String.prototype.replace;var _1=function(e,r){var m,n="",s=this;while(s&&(m=e.exec(s))){n+=s.slice(0,m.index)+ap(r,this,m);s=s.slice(m.lastIndex)}return n+s};String.prototype.replace=function(e,r){this.replace=(typeof r=="function")?_1:_0;return this.replace(e,r)}}if(!Function.apply){var APPLY="apply-"+Number(new Date);ap=function(f,o,a){var r;o[APPLY]=f;switch(a.length){case 0:r=o[APPLY]();break;case 1:r=o[APPLY](a[0]);break;case 2:r=o[APPLY](a[0],a[1]);break;case 3:r=o[APPLY](a[0],a[1],a[2]);break;case 4:r=o[APPLY](a[0],a[1],a[2],a[3]);break;default:var aa=[],i=a.length-1;do aa[i]="a["+i+"]";while(i--);eval("r=o[APPLY]("+aa+")")}delete o[APPLY];return r};ICommon.valueOf.prototype.inherit=function(){return ap(arguments.callee.caller.ancestor,this,arguments)}}if(![].push)Array.prototype.push=function(){for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i]}return this.length};if(![].pop)Array.prototype.pop=function(){var i=this[this.length-1];this.length--;return i};if(isHTML){HEADER+="address,blockquote,body,dd,div,dt,fieldset,form,"+"frame,frameset,h1,h2,h3,h4,h5,h6,iframe,noframes,object,p,"+"hr,applet,center,dir,menu,pre,dl,li,ol,ul{display:block}"}}
|
6
wiki-lenny/static/common/ie7/ie7-layout.js
Normal file
1
wiki-lenny/static/common/ie7/ie7-load.htc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<component lightweight="true"><attach event="ondocumentready" onevent="IE7.init()"/></component>
|
12
wiki-lenny/static/common/ie7/ie7-object.htc
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<html>
|
||||||
|
<!--
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
-->
|
||||||
|
<head>
|
||||||
|
<style type="text/css">body{margin:0}</style>
|
||||||
|
<script type="text/javascript">public_description=new function(){var l=false;this.ie7_anon=true;this.load=function(o,c,u){if(l)return;l=true;function _0(t,p){t.style[p]=o.currentStyle[p]};var p=o;while(p&&p.currentStyle.backgroundColor=="transparent"){p=p.parentElement}if(p)body.style.backgroundColor=p.currentStyle.backgroundColor;_0(body,"backgroundImage");_0(body,"backgroundRepeat");_0(body,"backgroundPositionX");_0(body,"backgroundPositionY");_0(body,"fontFamily");_0(body,"fontSize");_0(wrapper,"paddingTop");_0(wrapper,"paddingRight");_0(wrapper,"paddingBottom");_0(wrapper,"paddingLeft");image.width=o.clientWidth;image.height=o.clientHeight;var B64=/^data:.*;base64/i,P=/.png$/i;if(B64.test(u))u="ie7-base64.php"+"?"+u.slice(5);if(P.test(u)&&!/MSIE 5.0/.test(navigator.userAgent)){image.src="blank.gif";image.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+u+"',sizingMethod='scale')"}else{image.src=u}o.style.width=body.scrollWidth;o.style.height=body.scrollHeight}};</script>
|
||||||
|
</head>
|
||||||
|
<body id="body"><div id="wrapper"><img id="image"></div></body>
|
||||||
|
</html>
|
6
wiki-lenny/static/common/ie7/ie7-overflow.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-overflow",function(){var S={backgroundColor:"transparent",backgroundImage:"none",backgroundPositionX:null,backgroundPositionY:null,backgroundRepeat:null,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",borderLeftWidth:0,height:null,marginTop:0,marginBottom:0,marginRight:0,marginLeft:0,width:"100%"};function _3(p,s,t){t.style[p]=s.currentStyle[p];if(S[p]!=null){s.runtimeStyle[p]=S[p]}};ie7CSS.addRecalc("overflow","visible",function(e){if(e.parentNode.ie7_wrapper)return;if(ie7Layout&&e.currentStyle["max-height"]!="auto"){ie7Layout.maxHeight(e)}if(e.currentStyle.marginLeft=="auto")e.style.marginLeft=0;if(e.currentStyle.marginRight=="auto")e.style.marginRight=0;var w=document.createElement(ANON);w.ie7_wrapper=true;for(var p in S)_3(p,e,w);w.style.display="block";w.style.position="relative";e.runtimeStyle.position="absolute";e.parentNode.insertBefore(w,e);w.appendChild(e)});cssQuery.addModule("ie7-overflow",function(){function _0(e){return(e&&e.ie7_wrapper)?e.firstChild:e};var _2=previousElementSibling;previousElementSibling=function(e){return _0(_2(e))};var _1=nextElementSibling;nextElementSibling=function(e){return _0(_1(e))};selectors[" "]=function(r,f,t,n){var e,i,j;for(i=0;i<f.length;i++){var s=getElementsByTagName(f[i],t,n);for(j=0;(e=_0(s[j]));j++){if(thisElement(e)&&(!n||compareNamespace(e,n)))r.push(e)}}};selectors[">"]=function(r,f,t,n){var e,i,j;for(i=0;i<f.length;i++){var s=childElements(f[i]);for(j=0;(e=_0(s[j]));j++){if(compareTagName(e,t,n))r.push(e)}}}})});
|
6
wiki-lenny/static/common/ie7/ie7-quirks.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-quirks",function(){if(quirksMode){var F="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");for(var i=0;i<F.length;i++){F[F[i]]=F[i-1]||"0.67em"}ie7CSS.addFix(new RegExp("(font(-size)?\\s*:\\s*)([\\w\\-\\.]+)"),function(m,o){return m[o+1]+(F[m[o+3]]||m[o+3])});if(appVersion<6){var N=/^\-/,L=/(em|ex)$/i;var EM=/em$/i,EX=/ex$/i;function _2(e){var s=1;_0.style.fontFamily=e.currentStyle.fontFamily;_0.style.lineHeight=e.currentStyle.lineHeight;while(e!=body){var f=e.currentStyle["ie7-font-size"];if(f){if(EM.test(f))s*=parseFloat(f);else if(PERCENT.test(f))s*=(parseFloat(f)/100);else if(EX.test(f))s*=(parseFloat(f)/2);else{_0.style.fontSize=f;return 1}}e=e.parentElement}return s};var _0=createTempElement();getPixelValue=function(e,v){if(PIXEL.test(v||0))return parseInt(v||0);var scale=N.test(v)?-1:1;if(L.test(v))scale*=_2(e);_0.style.width=(scale<0)?v.slice(1):v;body.appendChild(_0);v=scale*_0.offsetWidth;_0.removeNode();return parseInt(v)};HEADER=HEADER.replace(/(font(-size)?\s*:\s*([^\s;}\/]*))/gi,"ie7-font-size:$3;$1");ie7CSS.addFix(/cursor\s*:\s*pointer/,"cursor:hand");ie7CSS.addFix(/display\s*:\s*list-item/,"display:block")}function getPaddingWidth(e){return getPixelValue(e,e.currentStyle.paddingLeft)+getPixelValue(e,e.currentStyle.paddingRight)};function _1(e){if(appVersion<5.5&&ie7Layout)ie7Layout.boxSizing(e.parentElement);var p=e.parentElement;var m=p.offsetWidth-e.offsetWidth-getPaddingWidth(p);var a=(e.currentStyle["ie7-margin"]&&e.currentStyle.marginRight=="auto")||e.currentStyle["ie7-margin-right"]=="auto";switch(p.currentStyle.textAlign){case"right":m=(a)?parseInt(m/2):0;e.runtimeStyle.marginRight=parseInt(m)+"px";break;case"center":if(a)m=0;default:if(a)m=parseInt(m/2);e.runtimeStyle.marginLeft=parseInt(m)+"px"}};ie7CSS.addRecalc("margin(-left|-right)?","[^};]*auto",function(e){if(register(_1,e,e.parentElement&&e.currentStyle.display=="block"&&e.currentStyle.marginLeft=="auto"&&e.currentStyle.position!="absolute")){_1(e)}});addResize(function(){for(var i in _1.elements){e=_1.elements[i];e.runtimeStyle.marginLeft=e.runtimeStyle.marginRight="";_1(e)}})}});
|
6
wiki-lenny/static/common/ie7/ie7-recalc.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-recalc",function(){C=/\sie7_class\d+/g;function _0(e){e.className=e.className.replace(C,"")};function _1(e){e.runtimeStyle.cssText=""};ie7CSS.specialize({elements:{},handlers:[],reset:function(){this.removeEventHandlers();var e=this.elements;for(var i in e)_1(e[i]);this.elements={};if(this.Rule){var e=this.Rule.elements;for(var i in e)_0(e[i]);this.Rule.elements={}}},reload:function(){ie7CSS.rules=[];this.getInlineStyles();this.screen.load();if(this.print)this.print.load();this.refresh();this.trash()},addRecalc:function(p,t,h,r){this.inherit(p,t,function(e){h(e);ie7CSS.elements[e.uniqueID]=e},r)},recalc:function(){this.reset();this.inherit()},addEventHandler:function(e,t,h){e.attachEvent(t,h);this.handlers.push(arguments)},removeEventHandlers:function(){var h;while(h=this.handlers.pop()){removeEventHandler(h[0],h[1],h[2])}},getInlineStyles:function(){var st=document.getElementsByTagName("style"),s;for(var i=st.length-1;(s=st[i]);i--){if(!s.disabled&&!s.ie7){var c=s.c||s.innerHTML;this.styles.push(c);s.c=c}}},trash:function(){var s,i;for(i=0;i<styleSheets.length;i++){s=styleSheets[i];if(!s.ie7&&!s.c){s.c=s.cssText}}this.inherit()},getText:function(s){return s.c||this.inherit(s)}});addEventHandler(window,"onunload",function(){ie7CSS.removeEventHandlers()});if(ie7CSS.Rule){ie7CSS.Rule.elements={};ie7CSS.Rule.prototype.specialize({add:function(e){this.inherit(e);ie7CSS.Rule.elements[e.uniqueID]=e}});ie7CSS.PseudoElement.hash={};ie7CSS.PseudoElement.prototype.specialize({create:function(t){var k=this.selector+":"+t.uniqueID;if(!ie7CSS.PseudoElement.hash[k]){ie7CSS.PseudoElement.hash[k]=true;this.inherit(t)}}})}if(isHTML&&ie7HTML){ie7HTML.specialize({elements:{},addRecalc:function(s,h){this.inherit(s,function(e){if(!ie7HTML.elements[e.uniqueID]){h(e);ie7HTML.elements[e.uniqueID]=e}})}})}document.recalc=function(reload){if(ie7CSS.screen){if(reload)ie7CSS.reload();recalc()}}});
|
44
wiki-lenny/static/common/ie7/ie7-server.css
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
body, td, dd {font: 10pt Verdana, Arial, Helvetica, sans-serif; color: black;}
|
||||||
|
body {margin: 8px; background: #333;}
|
||||||
|
h1 {margin: 0;}
|
||||||
|
h1 a:hover {background-color: transparent;}
|
||||||
|
h2 {font-size: 1.75em;}
|
||||||
|
h3 {font-size: 1.1em;}
|
||||||
|
p.footnote {font-family: "Times New Roman", Times, serif; font-style: italic;}
|
||||||
|
a:active {color: #ff0000;}
|
||||||
|
a:link {color: #0a6cce;}
|
||||||
|
a:visited {color: #0a6cce;}
|
||||||
|
code, *.code {font-family: monospace; font-size: 100%; font-style: normal; white-space: nowrap;
|
||||||
|
padding: 0 1px; background: #f2f3f8; border: #d6d9e9 1px solid;}
|
||||||
|
code.box {display: block; padding: 10px; margin: 0.5em 0;}
|
||||||
|
ul {list-style-type: square;}
|
||||||
|
dd {margin: .2em 0 .5em 1em;}
|
||||||
|
dl.library dt {display: list-item; margin-left: 3em; list-style-type: square;}
|
||||||
|
dl.library dd {font-style: italic; margin-left: 3em;}
|
||||||
|
dt {font-weight: bold;}
|
||||||
|
dt.pack {color: brown;}
|
||||||
|
a img {border-style: none;}
|
||||||
|
hr {height: 1px; color: #000; border-style: solid;}
|
||||||
|
hr.short {height: 2px; width: 100px;}
|
||||||
|
div.document {background: #eef; padding: 20px 20px 5px 20px; width: 600px; border: 1px solid black;}
|
||||||
|
hr {border-bottom-width: 0px;}
|
||||||
|
div.header hr {color: #0a6cce; background-color: #0a6cce;}
|
||||||
|
div.footer hr {color: #898e79; background-color: #898e79; }
|
||||||
|
div.header, div.header a:link, div.header a:visited, h3 a:link, h3 a:visited {text-decoration: none;}
|
||||||
|
a:hover {color: #fff; background-color: #0a6cce; text-decoration: none;}
|
||||||
|
div.footer a:hover {background-color: transparent; text-decoration: none;}
|
||||||
|
div.header .menu {text-align: right;}
|
||||||
|
div.content {min-height: 100px;}
|
||||||
|
div.footer {font-size: x-small; margin-top: 8px;}
|
||||||
|
div.footnote {font-family: "times new roman", times; font-style: italic; margin-top: 10px;}
|
||||||
|
#license {margin-top: 5px; font-size: xx-small;}
|
||||||
|
table {border-top: 1px solid #000; border-left: 1px solid #000;}
|
||||||
|
th {background-color: #fff; text-align: left;}
|
||||||
|
th, td {border-right: 1px solid #000; border-bottom: 1px solid #000;}
|
||||||
|
th.small {width: 100px;}
|
||||||
|
th.medium {width: 200px;}
|
||||||
|
th.large {width: 270px;}
|
||||||
|
th.x-large {width: 408px;}
|
||||||
|
table.fixed {table-layout: fixed;}
|
||||||
|
span.comment {color: #666;}
|
||||||
|
|
45
wiki-lenny/static/common/ie7/ie7-squish.js
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
IE7.addModule("ie7-squish", function() {
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
Squish some IE bugs!
|
||||||
|
|
||||||
|
Some of these bug fixes may have adverse effects so they are
|
||||||
|
not included in the standard library. Add your own if you want.
|
||||||
|
|
||||||
|
-dean
|
||||||
|
|
||||||
|
--------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
// @NOTE: ie7Layout.boxSizing is the same as the "Holly Hack"
|
||||||
|
|
||||||
|
// "doubled margin" bug
|
||||||
|
// http://www.positioniseverything.net/explorer/doubled-margin.html
|
||||||
|
ie7CSS.addFix(/float\s*:\s*(left|right)/, "display:inline;$1");
|
||||||
|
|
||||||
|
if (ie7Layout) {
|
||||||
|
// "peekaboo" bug
|
||||||
|
// http://www.positioniseverything.net/explorer/peekaboo.html
|
||||||
|
if (appVersion >= 6) ie7CSS.addRecalc("float", "left|right", function($element) {
|
||||||
|
ie7Layout.boxSizing($element.parentElement);
|
||||||
|
// "doubled margin" bug
|
||||||
|
$element.runtimeStyle.display = "inline";
|
||||||
|
});
|
||||||
|
|
||||||
|
// "unscrollable content" bug
|
||||||
|
// http://www.positioniseverything.net/explorer/unscrollable.html
|
||||||
|
ie7CSS.addRecalc("position", "absolute|fixed", function($element) {
|
||||||
|
if ($element.offsetParent && $element.offsetParent.currentStyle.position == "relative")
|
||||||
|
ie7Layout.boxSizing($element.offsetParent);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//# // get rid of Microsoft's pesky image toolbar
|
||||||
|
//# if (!complete) document.write('<meta http-equiv="imagetoolbar" content="no">');
|
||||||
|
|
||||||
|
});
|
6
wiki-lenny/static/common/ie7/ie7-standard-p.js
Normal file
6
wiki-lenny/static/common/ie7/ie7-xml-extras.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
IE7, version 0.9 (alpha) (2005-08-19)
|
||||||
|
Copyright: 2004-2005, Dean Edwards (http://dean.edwards.name/)
|
||||||
|
License: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
*/
|
||||||
|
function XMLHttpRequest(){var l=(ScriptEngineMajorVersion()>=5)?"Msxml2":"Microsoft";return new ActiveXObject(l+".XMLHTTP")};function DOMParser(){};DOMParser.prototype={toString:function(){return"[object DOMParser]"},parseFromString:function(s,c){var x=new ActiveXObject("Microsoft.XMLDOM");x.loadXML(s);return x},parseFromStream:new Function,baseURI:""};function XMLSerializer(){};XMLSerializer.prototype={toString:function(){return"[object XMLSerializer]"},serializeToString:function(r){return r.xml||r.outerHTML},serializeToStream:new Function};
|
BIN
wiki-lenny/static/common/ie7/ie7.gif
Normal file
After Width: | Height: | Size: 208 B |
BIN
wiki-lenny/static/common/ie7/test-trans.png
Normal file
After Width: | Height: | Size: 106 B |
100
wiki-lenny/static/common/ie7/test.html
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
<html xmlns:html="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>IE7 Test Page</title>
|
||||||
|
<meta name="author" content="Dean Edwards"/>
|
||||||
|
<!-- compliance patch for microsoft browsers -->
|
||||||
|
<!--[if lt IE 7]>
|
||||||
|
<script src="ie7-standard-p.js" type="text/javascript"></script>
|
||||||
|
<script src="ie7-css3-selectors.js" type="text/javascript"></script>
|
||||||
|
<script src="ie7-css-strict.js" type="text/javascript"></script>
|
||||||
|
<![endif]-->
|
||||||
|
<style type="text/css">
|
||||||
|
body {background-color: #ccc;}
|
||||||
|
img {border: none;}
|
||||||
|
h1 {font-family: monospace;}
|
||||||
|
h2 {background-color: black; color: white; font-style: normal;}
|
||||||
|
h3 {margin: 0.1em 0;}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="document">
|
||||||
|
<div class="header">
|
||||||
|
<h1>IE7 { css2: auto; }</h1>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
<h2>Black & White Test</h2>
|
||||||
|
|
||||||
|
<h3>Legend</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
div.legend {height: 20px; font-weight: bold; text-indent: 4px;}
|
||||||
|
#fail {background-color: black; color: white;}
|
||||||
|
#pass {background-color: white; color: black;}
|
||||||
|
</style>
|
||||||
|
<div class="legend" id="pass">PASS</div>
|
||||||
|
<div class="legend" id="fail">FAIL</div>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<h3>ie7-html4.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-html4 {background-color: black; height: 20px;}
|
||||||
|
#ie7-html4 abbr {display: block; background-color: white; height: 20px;}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-html4"><abbr> </abbr></div>
|
||||||
|
|
||||||
|
<h3>ie7-layout.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-layout {background-color: black; height: 20px; overflow: hidden;}
|
||||||
|
#ie7-layout div.box {position: relative; top: -40px; background-color: white;
|
||||||
|
height: 40px; border-top: 20px black solid;}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-layout"><div class="box"></div></div>
|
||||||
|
|
||||||
|
<h3>ie7-graphics.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-graphics {background-color: white; height: 20px;}
|
||||||
|
#ie7-graphics div.box {height: 20px; background: url(test-trans.png);}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-graphics"><div class="box"></div></div>
|
||||||
|
|
||||||
|
<h3>ie7-fixed.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-fixed {background-color: white; height: 20px;}
|
||||||
|
#ie7-fixed div.box {position: fixed; top: -20px; background-color: black; height: 20px;}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-fixed"><div class="box"></div></div>
|
||||||
|
|
||||||
|
<h3>ie7-css2-selectors.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-css2-selectors {background-color: black; height: 20px;}
|
||||||
|
#ie7-css2-selectors > span {display: block; background-color: white; height: 20px;}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-css2-selectors"><span> </span></div>
|
||||||
|
|
||||||
|
<h3>ie7-css3-selectors.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-css3-selectors {background-color: black; height: 20px;}
|
||||||
|
#ie7-css3-selectors:empty {background-color: white;}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-css3-selectors"></div>
|
||||||
|
|
||||||
|
<h3>ie7-css-strict.js</h3>
|
||||||
|
<style type="text/css">
|
||||||
|
#ie7-css-strict {background-color: black; height: 20px;}
|
||||||
|
#ie7-css-strict > span.strict {display: block; background-color: white; height: 20px;}
|
||||||
|
#ie7-css-strict > span {display: block; background-color: black}
|
||||||
|
</style>
|
||||||
|
<div id="ie7-css-strict"><span class="strict"></span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer">
|
||||||
|
<hr />
|
||||||
|
<a href="http://dean.edwards.name/IE7/"><img src="ie7.gif" width="80" height="15" alt="IE7 Enhanced"/></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
308
wiki-lenny/static/common/js/common.js
Normal file
|
@ -0,0 +1,308 @@
|
||||||
|
//
|
||||||
|
// MoinMoin commonly used JavaScript functions
|
||||||
|
//
|
||||||
|
|
||||||
|
// We keep here the state of the search box
|
||||||
|
searchIsDisabled = false;
|
||||||
|
|
||||||
|
function searchChange(e) {
|
||||||
|
// Update search buttons status according to search box content.
|
||||||
|
// Ignore empty or whitespace search term.
|
||||||
|
var value = e.value.replace(/\s+/, '');
|
||||||
|
if (value == '' || searchIsDisabled) {
|
||||||
|
searchSetDisabled(true);
|
||||||
|
} else {
|
||||||
|
searchSetDisabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchSetDisabled(flag) {
|
||||||
|
// Enable or disable search
|
||||||
|
document.getElementById('fullsearch').disabled = flag;
|
||||||
|
document.getElementById('titlesearch').disabled = flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchFocus(e) {
|
||||||
|
// Update search input content on focus
|
||||||
|
if (e.value == search_hint) {
|
||||||
|
e.value = '';
|
||||||
|
e.className = '';
|
||||||
|
searchIsDisabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchBlur(e) {
|
||||||
|
// Update search input content on blur
|
||||||
|
if (e.value == '') {
|
||||||
|
e.value = search_hint;
|
||||||
|
e.className = 'disabled';
|
||||||
|
searchIsDisabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function actionsMenuInit(title) {
|
||||||
|
// Initialize action menu
|
||||||
|
for (i = 0; i < document.forms.length; i++) {
|
||||||
|
var form = document.forms[i];
|
||||||
|
if (form.className == 'actionsmenu') {
|
||||||
|
// Check if this form needs update
|
||||||
|
var div = form.getElementsByTagName('div')[0];
|
||||||
|
var label = div.getElementsByTagName('label')[0];
|
||||||
|
if (label) {
|
||||||
|
// This is the first time: remove label and do buton.
|
||||||
|
div.removeChild(label);
|
||||||
|
var dobutton = div.getElementsByTagName('input')[0];
|
||||||
|
div.removeChild(dobutton);
|
||||||
|
// and add menu title
|
||||||
|
var select = div.getElementsByTagName('select')[0];
|
||||||
|
var item = document.createElement('option');
|
||||||
|
item.appendChild(document.createTextNode(title));
|
||||||
|
item.value = 'show';
|
||||||
|
select.insertBefore(item, select.options[0]);
|
||||||
|
select.selectedIndex = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// use this instead of assigning to window.onload directly:
|
||||||
|
function addLoadEvent(func) {
|
||||||
|
// alert("addLoadEvent " + func)
|
||||||
|
var oldonload = window.onload;
|
||||||
|
if (typeof window.onload != 'function') {
|
||||||
|
window.onload = func;
|
||||||
|
} else {
|
||||||
|
window.onload = function() {
|
||||||
|
oldonload();
|
||||||
|
func();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function can_use_gui_editor() {
|
||||||
|
var sAgent = navigator.userAgent.toLowerCase() ;
|
||||||
|
|
||||||
|
// Internet Explorer
|
||||||
|
if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 )
|
||||||
|
{
|
||||||
|
var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ;
|
||||||
|
return ( sBrowserVersion >= 5.5 ) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gecko
|
||||||
|
if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 )
|
||||||
|
return true ;
|
||||||
|
|
||||||
|
// Opera
|
||||||
|
if ( this.EnableOpera )
|
||||||
|
{
|
||||||
|
var aMatch = sAgent.match( /^opera\/(\d+\.\d+)/ ) ;
|
||||||
|
if ( aMatch && aMatch[1] >= 9.0 )
|
||||||
|
return true ;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Safari
|
||||||
|
if ( this.EnableSafari && sAgent.indexOf( 'safari' ) != -1 )
|
||||||
|
return ( sAgent.match( /safari\/(\d+)/ )[1] >= 312 ) ; // Build must be at least 312 (1.3)
|
||||||
|
|
||||||
|
return false ;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function update_edit_links() {
|
||||||
|
// Update editlink according if if the browser is compatible
|
||||||
|
if (can_use_gui_editor() == false){
|
||||||
|
//alert("update_edit_links: can't use gui editor");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var editlinks = document.getElementsByName("editlink");
|
||||||
|
for (i = 0; i < editlinks.length; i++) {
|
||||||
|
var link = editlinks[i];
|
||||||
|
href = link.href.replace('editor=textonly','editor=guipossible');
|
||||||
|
link.href = href;
|
||||||
|
//alert("update_edit_links: modified to guipossible");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function add_gui_editor_links() {
|
||||||
|
// Add gui editor link after the text editor link
|
||||||
|
|
||||||
|
// If the variable is not set or browser is not compatible, exit
|
||||||
|
try {gui_editor_link_href}
|
||||||
|
catch (e) {
|
||||||
|
//alert("add_gui_editor_links: gui_editor_link_href not here");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (can_use_gui_editor() == false){
|
||||||
|
//alert("add_gui_editor_links: can't use gui_editor");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var all = document.getElementsByName('texteditlink');
|
||||||
|
for (i = 0; i < all.length; i++) {
|
||||||
|
var textEditorLink = all[i];
|
||||||
|
// Create a list item with a link
|
||||||
|
var guiEditorLink = document.createElement('a');
|
||||||
|
guiEditorLink.href = gui_editor_link_href;
|
||||||
|
var text = document.createTextNode(gui_editor_link_text);
|
||||||
|
guiEditorLink.appendChild(text);
|
||||||
|
var listItem = document.createElement('li')
|
||||||
|
listItem.appendChild(guiEditorLink);
|
||||||
|
// Insert in the editbar
|
||||||
|
var editbar = textEditorLink.parentNode.parentNode
|
||||||
|
var nextListItem = textEditorLink.parentNode.nextSibling;
|
||||||
|
editbar.insertBefore(listItem, nextListItem);
|
||||||
|
//alert("add_gui_editor_links: added gui editor link");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function show_switch2gui() {
|
||||||
|
// Show switch to gui editor link if the browser is compatible
|
||||||
|
if (can_use_gui_editor() == false) return;
|
||||||
|
|
||||||
|
var switch2gui = document.getElementById('switch2gui')
|
||||||
|
if (switch2gui) {
|
||||||
|
switch2gui.style.display = 'inline';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleComments() {
|
||||||
|
// Toggle visibility of every tag with class == *comment*
|
||||||
|
var all = document.getElementsByTagName('*');
|
||||||
|
for (i = 0; i < all.length; i++){
|
||||||
|
el = all[i];
|
||||||
|
if ( el.className.indexOf('comment') >= 0 ){
|
||||||
|
if ( el.style.display != 'none' ) {
|
||||||
|
el.style.display = 'none';
|
||||||
|
} else {
|
||||||
|
el.style.display = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function show_toggleComments() {
|
||||||
|
// Show edit bar item "ToggleComments" if inline comments exist on this page
|
||||||
|
var all = document.getElementsByTagName('*');
|
||||||
|
var count = 0;
|
||||||
|
for (i = 0; i < all.length; i++){
|
||||||
|
el = all[i];
|
||||||
|
if ( el.className.indexOf('comment') >= 0 ){
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (count > 0) {
|
||||||
|
for (i = 0; i < all.length; i++){
|
||||||
|
el = all[i];
|
||||||
|
if ( el.className == 'toggleCommentsButton' ){
|
||||||
|
el.style.display = 'inline';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function load() {
|
||||||
|
// Do not name this "onload", it does not work with IE :-)
|
||||||
|
// TODO: create separate onload for each type of view and set the
|
||||||
|
// correct function name in the html.
|
||||||
|
// e.g <body onlod='editor_onload()'>
|
||||||
|
|
||||||
|
// login focus
|
||||||
|
if (document.forms['loginform']) {
|
||||||
|
document.forms['loginform'].elements['name'].focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Page view stuff
|
||||||
|
update_edit_links();
|
||||||
|
add_gui_editor_links();
|
||||||
|
|
||||||
|
// Editor stuff
|
||||||
|
show_switch2gui();
|
||||||
|
|
||||||
|
// Enable menu item "ToggleComments" if inline comments exist
|
||||||
|
show_toggleComments();
|
||||||
|
|
||||||
|
// data browser widget
|
||||||
|
dbw_hide_buttons();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function before_unload(evt) {
|
||||||
|
// TODO: Better to set this in the editor html, as it does not make
|
||||||
|
// sense elsehwere.
|
||||||
|
// confirmleaving is available when editing
|
||||||
|
try {return confirmleaving();}
|
||||||
|
catch (e) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize after loading the page
|
||||||
|
addLoadEvent(load)
|
||||||
|
|
||||||
|
// Catch before unloading the page
|
||||||
|
window.onbeforeunload = before_unload
|
||||||
|
|
||||||
|
function dbw_update_search(dbw_id)
|
||||||
|
{
|
||||||
|
var table = document.getElementById(dbw_id+'table');
|
||||||
|
var cell;
|
||||||
|
var shown;
|
||||||
|
var i
|
||||||
|
var cols = table.rows[0].cells.length;
|
||||||
|
var filter = new Array();
|
||||||
|
var dofilter = new Array();
|
||||||
|
var form = document.forms[dbw_id+'form'];
|
||||||
|
|
||||||
|
for (i = 0; i < cols; i++) {
|
||||||
|
dofilter[i] = false;
|
||||||
|
if (form[dbw_id+'filter'+i]) {
|
||||||
|
dofilter[i] = true;
|
||||||
|
filter[i] = form[dbw_id+'filter'+i].value;
|
||||||
|
if (filter[i] == '[all]')
|
||||||
|
dofilter[i] = false;
|
||||||
|
if (filter[i] == '[empty]')
|
||||||
|
filter[i] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 1; i < table.rows.length; i++) {
|
||||||
|
var show = true;
|
||||||
|
for (col = 0; col < cols; col++) {
|
||||||
|
if (!dofilter[col])
|
||||||
|
continue;
|
||||||
|
|
||||||
|
cell = table.rows[i].cells[col];
|
||||||
|
|
||||||
|
if (filter[col] == '[notempty]') {
|
||||||
|
if (cell.abbr == '') {
|
||||||
|
show = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else if (filter[col] != cell.abbr) {
|
||||||
|
show = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (show)
|
||||||
|
table.rows[i].style.display = '';
|
||||||
|
else
|
||||||
|
table.rows[i].style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function dbw_hide_buttons() {
|
||||||
|
var form;
|
||||||
|
var elem;
|
||||||
|
|
||||||
|
for (var fidx = 0; fidx < document.forms.length; fidx++) {
|
||||||
|
form = document.forms[fidx];
|
||||||
|
for (var eidx = 0; eidx < form.elements.length; eidx++) {
|
||||||
|
elem = form.elements[eidx];
|
||||||
|
name = elem.name;
|
||||||
|
if (name.substr(0,4) == 'dbw.' && name.substr(-7) == '.submit')
|
||||||
|
elem.style.display = 'none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
45
wiki-lenny/static/common/js/countdown.js
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
var state = 0; // 0: start; 1: long count; 2: short count; 3: timeout; 4/5: blink
|
||||||
|
var counter = 0, step = 1, delay = 1;
|
||||||
|
|
||||||
|
function countdown() {
|
||||||
|
// change state if counter is down
|
||||||
|
if (counter <= 1) {
|
||||||
|
state += 1
|
||||||
|
if (state == 1) {
|
||||||
|
counter = countdown_timeout_min
|
||||||
|
step = 1
|
||||||
|
delay = 60000
|
||||||
|
}
|
||||||
|
if (state == 2) {
|
||||||
|
counter = 60
|
||||||
|
step = 5
|
||||||
|
delay = step * 1000
|
||||||
|
}
|
||||||
|
if (state == 3 || state == 5) {
|
||||||
|
window.status = countdown_lock_expire
|
||||||
|
state = 3
|
||||||
|
counter = 1
|
||||||
|
step = 1
|
||||||
|
delay = 500
|
||||||
|
}
|
||||||
|
if (state == 4) {
|
||||||
|
// blink the above text
|
||||||
|
window.status = " "
|
||||||
|
counter = 1
|
||||||
|
delay = 250
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// display changes
|
||||||
|
if (state < 3) {
|
||||||
|
var msg
|
||||||
|
if (state == 1) msg = countdown_lock_mins
|
||||||
|
if (state == 2) msg = countdown_lock_secs
|
||||||
|
window.status = msg.replace(/#/, counter)
|
||||||
|
}
|
||||||
|
counter -= step
|
||||||
|
|
||||||
|
// Set timer for next update
|
||||||
|
setTimeout("countdown()", delay);
|
||||||
|
}
|
||||||
|
|
80
wiki-lenny/static/common/js/infobox.js
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
//
|
||||||
|
// Bubblehelp infoboxes, (C) 2002 Klaus Knopper <infobox@knopper.net>
|
||||||
|
// You can copy/modify and distribute this code under the conditions
|
||||||
|
// of the GNU GENERAL PUBLIC LICENSE Version 2.
|
||||||
|
//
|
||||||
|
var IWIDTH=350 // Tip box width
|
||||||
|
var ie4 // Are we using Internet Explorer Version 4?
|
||||||
|
var ie5 // Are we using Internet Explorer Version 5 and up?
|
||||||
|
var kon // Are we using KDE Konqueror?
|
||||||
|
var x,y,winW,winH // Current help position and main window size
|
||||||
|
var idiv=null // Pointer to infodiv container
|
||||||
|
|
||||||
|
function nsfix(){setTimeout("window.onresize = rebrowse", 2000);}
|
||||||
|
|
||||||
|
function rebrowse(){window.location.reload();}
|
||||||
|
|
||||||
|
function hascss(){ return gettip('infodiv')?true:false }
|
||||||
|
|
||||||
|
function infoinit(){
|
||||||
|
ie4=(document.all)?true:false;
|
||||||
|
ie5=((ie4)&&((navigator.userAgent.indexOf('MSIE 5')>0)||(navigator.userAgent.indexOf('MSIE 6')>0)))?true:false;
|
||||||
|
kon=(navigator.userAgent.indexOf('konqueror')>0)?true:false;
|
||||||
|
x=0;y=0;winW=800;winH=600;
|
||||||
|
idiv=null;
|
||||||
|
document.onmousemove = mousemove;
|
||||||
|
// Workaround for just another netscape bug: Fix browser confusion on resize
|
||||||
|
// obviously conqueror has a similar problem :-(
|
||||||
|
if(kon){ nsfix() }
|
||||||
|
}
|
||||||
|
|
||||||
|
function untip(){
|
||||||
|
if(idiv) idiv.visibility="hidden";
|
||||||
|
idiv=null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function gettip(name){return (document.layers&&document.layers[name])?document.layers[name]:(document.all&&document.all[name]&&document.all[name].style)?document.all[name].style:document[name]?document[name]:(document.getElementById(name)?document.getElementById(name).style:0);}
|
||||||
|
|
||||||
|
// Prepare tip boxes, but don't show them yet
|
||||||
|
function maketip(name,title,text){
|
||||||
|
if(hascss()) document.write('<div id="'+name+'" name="'+name+'" style="position:absolute; visibility:hidden; z-index:20; top:-999em; left:0px;"><table width='+IWIDTH+' class="tip"><tr><th class="tip">'+title+'</th></tr><tr><td class="tip">'+text+'</td></tr></table></div>\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
function tip(name){
|
||||||
|
if(hascss()){
|
||||||
|
if(idiv) untip();
|
||||||
|
idiv=gettip(name);
|
||||||
|
if(idiv){
|
||||||
|
winW=(window.innerWidth)? window.innerWidth+window.pageXOffset-16:document.body.offsetWidth-20;
|
||||||
|
winH=(window.innerHeight)?window.innerHeight+window.pageYOffset :document.body.offsetHeight;
|
||||||
|
if(x<=0||y<=0){ // konqueror can't get mouse position
|
||||||
|
x=(winW-IWIDTH)/2+(window.pageXOffset?window.pageXOffset:0); y=(winH-50)/2+(window.pageYOffset?window.pageYOffset:0); // middle of window
|
||||||
|
}
|
||||||
|
showtip();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showtip(){
|
||||||
|
idiv.left=(((x+IWIDTH+10)<winW)?x+12:x-IWIDTH-5)+"px"; idiv.top=(((y+90)<winH)?y+12:y-90)+"px";
|
||||||
|
idiv.visibility="visible";
|
||||||
|
// window.status="idiv="+idiv+"X:"+(idiv.left?idiv.left:"NAN")+", Y:"+(idiv.top?idiv.top:"NAN")+", x:"+x+", y:"+y;
|
||||||
|
}
|
||||||
|
|
||||||
|
function mousemove(e){
|
||||||
|
if(e) {x=e.pageX?e.pageX:e.clientX?e.clientX:0; y=e.pageY?e.pageY:e.clientY?e.clientY:0;}
|
||||||
|
else if(event) {x=event.clientX; y=event.clientY;}
|
||||||
|
else {x=0; y=0;}
|
||||||
|
if((ie4||ie5) && document.documentElement) // Workaround for scroll offset of IE
|
||||||
|
{
|
||||||
|
x+=document.documentElement.scrollLeft;
|
||||||
|
y+=document.documentElement.scrollTop;
|
||||||
|
}
|
||||||
|
if(idiv) showtip();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize after loading the page
|
||||||
|
addLoadEvent(infoinit)
|
||||||
|
|
||||||
|
// EOF infobox.js
|
||||||
|
|
BIN
wiki-lenny/static/common/js/popDown.gif
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
wiki-lenny/static/common/js/popDown.png
Normal file
After Width: | Height: | Size: 16 KiB |
50
wiki-lenny/static/common/js/say.no.to.ie.6.js
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
|
||||||
|
if(IE6){
|
||||||
|
window.onload = function(){
|
||||||
|
var now = new Date();
|
||||||
|
var time = now.getTime();
|
||||||
|
var div = document.createElement('a');
|
||||||
|
var id = 'saynotoie6_div_' + time;
|
||||||
|
div.setAttribute('id',id);
|
||||||
|
div.setAttribute('href','http://www.crans.org/savethedevelopers');
|
||||||
|
div.setAttribute('target','_blank');
|
||||||
|
div.style.display = 'block';
|
||||||
|
div.style.color = '#1d1d1d';
|
||||||
|
div.style.textAlign = 'left';
|
||||||
|
div.style.fontFamily = 'Arial';
|
||||||
|
div.style.fontSize = '11px';
|
||||||
|
div.style.background = 'url(http://www.crans.org/wiki/common/js/popDown.gif)';
|
||||||
|
div.style.padding = '0';
|
||||||
|
div.style.position = 'absolute';
|
||||||
|
div.style.top = '0';
|
||||||
|
div.style.right = '40px';
|
||||||
|
div.style.zIndex = '999999';
|
||||||
|
div.style.width = '330px';
|
||||||
|
div.style.height = '63px';
|
||||||
|
div.style.marginTop = '-80px';
|
||||||
|
div.style.filter = 'alpha(opacity=95)';
|
||||||
|
document.body.appendChild(div);
|
||||||
|
|
||||||
|
var animate = function(){
|
||||||
|
var myDiv = document.getElementById(id);
|
||||||
|
var value = parseInt(myDiv.style.marginTop)
|
||||||
|
myDiv.style.marginTop = value + 1 + 'px';
|
||||||
|
if(parseInt(myDiv.style.marginTop) < -1){
|
||||||
|
var timer = setTimeout(animate,30 * 80/Math.abs(value) * .27);
|
||||||
|
}else{
|
||||||
|
var timer = setTimeout(hide,5000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var hide = function(){
|
||||||
|
var myDiv = document.getElementById(id);
|
||||||
|
var value = parseInt(myDiv.style.marginTop)
|
||||||
|
myDiv.style.marginTop = value - 1 + 'px';
|
||||||
|
if(parseInt(myDiv.style.marginTop) > -80){
|
||||||
|
var timer = setTimeout(hide,1.4 * 80/Math.abs(value) * 3.70);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setTimeout(animate,1000);
|
||||||
|
}
|
||||||
|
}
|
BIN
wiki-lenny/static/common/moindude.png
Normal file
After Width: | Height: | Size: 565 B |
BIN
wiki-lenny/static/common/moinmoin.png
Normal file
After Width: | Height: | Size: 6 KiB |
BIN
wiki-lenny/static/common/moinmoin_alpha.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
wiki-lenny/static/common/openid.png
Normal file
After Width: | Height: | Size: 313 B |
43
wiki-lenny/static/common/pagesPersos.css
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
div.vignetteperso {
|
||||||
|
text-align: center;
|
||||||
|
height: 13em;
|
||||||
|
width: 15em;
|
||||||
|
border: 0px;
|
||||||
|
float: left;
|
||||||
|
padding: 10px;
|
||||||
|
overflow: visible;
|
||||||
|
font-size: 0.90em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div.vignetteperso a {
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
height:100px;
|
||||||
|
width:15em;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* redimentionnement proportionnel des images */
|
||||||
|
div.vignetteperso img {
|
||||||
|
max-width:100px;
|
||||||
|
max-height:100px;
|
||||||
|
margin: auto auto auto auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.vignetteperso a.letter_anchor {
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: bottom;
|
||||||
|
height:1em;
|
||||||
|
padding:0;
|
||||||
|
line-height:1em;
|
||||||
|
font-size:8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.letter_anchor span {
|
||||||
|
opacity:0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alphabetic_index a{
|
||||||
|
margin:3px;
|
||||||
|
}
|
177
wiki-lenny/static/common/syntaxHighlighter/SyntaxHighlighter.css
Normal file
|
@ -0,0 +1,177 @@
|
||||||
|
|
||||||
|
/* Main style for the table */
|
||||||
|
|
||||||
|
.dp-highlighter {
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
line-height: 100% !important;
|
||||||
|
margin: 18px 0px 18px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter table {
|
||||||
|
width: 100%;
|
||||||
|
margin: 2px 0px 2px 0px;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-bottom: 2px solid #eee;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter tbody.hide { display: none; }
|
||||||
|
.dp-highlighter tbody.show { display: table-row-group; _display: block; }
|
||||||
|
|
||||||
|
.dp-highlighter td
|
||||||
|
{
|
||||||
|
font-family: Courier New;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Styles for the tools */
|
||||||
|
|
||||||
|
.dp-highlighter .tools-corner {
|
||||||
|
background-color: #eee;
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter .tools {
|
||||||
|
background-color: #eee;
|
||||||
|
padding: 3px 8px 3px 10px;
|
||||||
|
border-bottom: 1px solid gray;
|
||||||
|
font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||||
|
color: silver;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter .tools-corner {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter .tools a {
|
||||||
|
font-size: 9px;
|
||||||
|
color: gray;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter .tools a:hover {
|
||||||
|
color: red;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Gutter with line number */
|
||||||
|
|
||||||
|
.dp-highlighter .gutter {
|
||||||
|
padding-right: 5px;
|
||||||
|
padding-left: 10px;
|
||||||
|
width: 5px;
|
||||||
|
background-color: #eee;
|
||||||
|
border-right: 1px solid gray;
|
||||||
|
color: gray;
|
||||||
|
text-align: right;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Single line style */
|
||||||
|
|
||||||
|
.dp-highlighter .line1, .line2 {
|
||||||
|
padding-left: 10px;
|
||||||
|
border-bottom: 1px solid #F7F7F7;
|
||||||
|
white-space:nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-highlighter .line2 {
|
||||||
|
background-color: #F7F7F7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* About dialog styles */
|
||||||
|
|
||||||
|
.dp-about {
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about table {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
font-size: 11px;
|
||||||
|
font-family: Tahoma, Verdana, Arial, sans-serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about td {
|
||||||
|
padding: 10px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about .copy {
|
||||||
|
border-bottom: 1px solid #ACA899;
|
||||||
|
height: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about .title {
|
||||||
|
color: red;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about .para {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about .footer {
|
||||||
|
background-color: #ECEADB;
|
||||||
|
border-top: 1px solid #fff;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dp-about .close {
|
||||||
|
font-size: 11px;
|
||||||
|
font-family: Tahoma, Verdana, Arial, sans-serif !important;
|
||||||
|
background-color: #ECEADB;
|
||||||
|
width: 60px;
|
||||||
|
height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Language specific styles */
|
||||||
|
|
||||||
|
.dp-c {}
|
||||||
|
.dp-c .comment { color: green; }
|
||||||
|
.dp-c .string { color: blue; }
|
||||||
|
.dp-c .preprocessor { color: gray; }
|
||||||
|
.dp-c .keyword { color: blue; }
|
||||||
|
.dp-c .vars { color: #d00; }
|
||||||
|
|
||||||
|
.dp-vb {}
|
||||||
|
.dp-vb .comment { color: green; }
|
||||||
|
.dp-vb .string { color: blue; }
|
||||||
|
.dp-vb .preprocessor { color: gray; }
|
||||||
|
.dp-vb .keyword { color: blue; }
|
||||||
|
|
||||||
|
.dp-sql {}
|
||||||
|
.dp-sql .comment { color: green; }
|
||||||
|
.dp-sql .string { color: red; }
|
||||||
|
.dp-sql .keyword { color: blue; }
|
||||||
|
.dp-sql .func { color: #ff1493; }
|
||||||
|
.dp-sql .op { color: #808080; }
|
||||||
|
|
||||||
|
.dp-xml {}
|
||||||
|
.dp-xml .cdata { color: #ff1493; }
|
||||||
|
.dp-xml .comments { color: green; }
|
||||||
|
.dp-xml .tag { color: blue; }
|
||||||
|
.dp-xml .tag-name { color: black; font-weight: bold; }
|
||||||
|
.dp-xml .attribute { color: red; }
|
||||||
|
.dp-xml .attribute-value { color: blue; }
|
||||||
|
|
||||||
|
.dp-delphi {}
|
||||||
|
.dp-delphi .comment { color: #008200; font-style: italic; }
|
||||||
|
.dp-delphi .string { color: blue; }
|
||||||
|
.dp-delphi .number { color: blue; }
|
||||||
|
.dp-delphi .directive { color: #008284; }
|
||||||
|
.dp-delphi .keyword { font-weight: bold; color: navy; }
|
||||||
|
.dp-delphi .vars { color: #000; }
|
||||||
|
|
||||||
|
.dp-py {}
|
||||||
|
.dp-py .comment { color: green; }
|
||||||
|
.dp-py .string { color: red; }
|
||||||
|
.dp-py .docstring { color: brown; }
|
||||||
|
.dp-py .keyword { color: blue; font-weight: bold;}
|
||||||
|
.dp-py .builtins { color: #ff1493; }
|
||||||
|
.dp-py .magicmethods { color: #808080; }
|
||||||
|
.dp-py .exceptions { color: brown; }
|
||||||
|
.dp-py .types { color: brown; font-style: italic; }
|
||||||
|
.dp-py .commonlibs { color: #8A2BE2; font-style: italic; }
|
30
wiki-lenny/static/common/syntaxHighlighter/shBrushCSharp.js
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
dp.sh.Brushes.CSharp = function()
|
||||||
|
{
|
||||||
|
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
||||||
|
'continue decimal default delegate do double else enum event explicit ' +
|
||||||
|
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
||||||
|
'interface internal is lock long namespace new null object operator out ' +
|
||||||
|
'override params private protected public readonly ref return sbyte sealed set ' +
|
||||||
|
'short sizeof stackalloc static string struct switch this throw true try ' +
|
||||||
|
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
// There's a slight problem with matching single line comments and figuring out
|
||||||
|
// a difference between // and ///. Using lookahead and lookbehind solves the
|
||||||
|
// problem, unfortunately JavaScript doesn't support lookbehind. So I'm at a
|
||||||
|
// loss how to translate that regular expression to JavaScript compatible one.
|
||||||
|
// { regex: new RegExp('(?<!/)//(?!/).*$|(?<!/)////(?!/).*$|/\\*[^\\*]*(.)*?\\*/', 'gm'), css: 'comment' }, // one line comments starting with anything BUT '///' and multiline comments
|
||||||
|
// { regex: new RegExp('(?<!/)///(?!/).*$', 'gm'), css: 'comments' }, // XML comments starting with ///
|
||||||
|
|
||||||
|
{ regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
|
||||||
|
{ regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
|
||||||
|
{ regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings
|
||||||
|
{ regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-c';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.CSharp.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.CSharp.Aliases = ['c#', 'c-sharp', 'csharp'];
|
31
wiki-lenny/static/common/syntaxHighlighter/shBrushDelphi.js
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
/* Delphi brush is contributed by Eddie Shipman */
|
||||||
|
dp.sh.Brushes.Delphi = function()
|
||||||
|
{
|
||||||
|
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
|
||||||
|
'case char class comp const constructor currency destructor div do double ' +
|
||||||
|
'downto else end except exports extended false file finalization finally ' +
|
||||||
|
'for function goto if implementation in inherited int64 initialization ' +
|
||||||
|
'integer interface is label library longint longword mod nil not object ' +
|
||||||
|
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
|
||||||
|
'pint64 pointer private procedure program property pshortstring pstring ' +
|
||||||
|
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
|
||||||
|
'record repeat set shl shortint shortstring shr single smallint string then ' +
|
||||||
|
'threadvar to true try type unit until uses val var varirnt while widechar ' +
|
||||||
|
'widestring with word write writeln xor';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('\\(\\*[\\s\\S]*?\\*\\)', 'gm'), css: 'comment' }, // multiline comments (* *)
|
||||||
|
{ regex: new RegExp('{(?!\\$)[\\s\\S]*?}', 'gm'), css: 'comment' }, // multiline comments { }
|
||||||
|
{ regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line
|
||||||
|
{ regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings
|
||||||
|
{ regex: new RegExp('\\{\\$[a-zA-Z]+ .+\\}', 'g'), css: 'directive' }, // Compiler Directives and Region tags
|
||||||
|
{ regex: new RegExp('\\b[\\d\\.]+\\b', 'g'), css: 'number' }, // numbers 12345
|
||||||
|
{ regex: new RegExp('\\$[a-zA-Z0-9]+\\b', 'g'), css: 'number' }, // numbers $F5D3
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-delphi';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.Delphi.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.Delphi.Aliases = ['delphi', 'pascal'];
|
22
wiki-lenny/static/common/syntaxHighlighter/shBrushJScript.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
dp.sh.Brushes.JScript = function()
|
||||||
|
{
|
||||||
|
var keywords = 'abstract boolean break byte case catch char class const continue debugger ' +
|
||||||
|
'default delete do double else enum export extends false final finally float ' +
|
||||||
|
'for function goto if implements import in instanceof int interface long native ' +
|
||||||
|
'new null package private protected public return short static super switch ' +
|
||||||
|
'synchronized this throw throws transient true try typeof var void volatile while with';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
|
||||||
|
{ regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
|
||||||
|
{ regex: new RegExp('"(?:[^"\n]|[\"])*?"', 'g'), css: 'string' }, // double quoted strings
|
||||||
|
{ regex: new RegExp("'(?:[^'\n]|[\'])*?'", 'g'), css: 'string' }, // single quoted strings
|
||||||
|
{ regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-c';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.JScript.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.JScript.Aliases = ['js', 'jscript', 'javascript'];
|
23
wiki-lenny/static/common/syntaxHighlighter/shBrushPhp.js
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
dp.sh.Brushes.Php = function()
|
||||||
|
{
|
||||||
|
var keywords = 'and or xor __FILE__ __LINE__ array as break case ' +
|
||||||
|
'cfunction class const continue declare default die do echo else ' +
|
||||||
|
'elseif empty enddeclare endfor endforeach endif endswitch endwhile eval exit ' +
|
||||||
|
'extends for foreach function global if include include_once isset list ' +
|
||||||
|
'new old_function print require require_once return static switch unset use ' +
|
||||||
|
'var while __FUNCTION__ __CLASS__';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
|
||||||
|
{ regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
|
||||||
|
{ regex: new RegExp('"(?:[^"\n]|[\"])*?"', 'g'), css: 'string' }, // double quoted strings
|
||||||
|
{ regex: new RegExp("'(?:[^'\n]|[\'])*?'", 'g'), css: 'string' }, // single quoted strings
|
||||||
|
{ regex: new RegExp('\\$\\w+', 'g'), css: 'vars' }, // variables
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-c';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.Php.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.Php.Aliases = ['php'];
|
71
wiki-lenny/static/common/syntaxHighlighter/shBrushPython.js
vendored
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
/* Python 2.3 syntax contributed by Gheorghe Milas */
|
||||||
|
dp.sh.Brushes.Python = function()
|
||||||
|
{
|
||||||
|
var keywords = 'and assert break class continue def del elif else except exec ' +
|
||||||
|
'finally for from global if import in is lambda not or object pass print ' +
|
||||||
|
'raise return try yield while';
|
||||||
|
|
||||||
|
var builtins = 'self __builtin__ __dict__ __future__ __methods__ __members__ __author__ __email__ __version__' +
|
||||||
|
'__class__ __bases__ __import__ __main__ __name__ __doc__ __self__ __debug__ __slots__ ' +
|
||||||
|
'abs append apply basestring bool buffer callable chr classmethod clear close cmp coerce compile complex ' +
|
||||||
|
'conjugate copy count delattr dict dir divmod enumerate Ellipsis eval execfile extend False file fileno filter float flush ' +
|
||||||
|
'get getattr globals has_key hasarttr hash hex id index input insert int intern isatty isinstance isubclass ' +
|
||||||
|
'items iter keys len list locals long map max min mode oct open ord pop pow property range ' +
|
||||||
|
'raw_input read readline readlines reduce reload remove repr reverse round seek setattr slice sum ' +
|
||||||
|
'staticmethod str super tell True truncate tuple type unichr unicode update values write writelines xrange zip';
|
||||||
|
|
||||||
|
var magicmethods = '__abs__ __add__ __and__ __call__ __cmp__ __coerce__ __complex__ __concat__ __contains__ __del__ __delattr__ __delitem__ ' +
|
||||||
|
'__delslice__ __div__ __divmod__ __float__ __getattr__ __getitem__ __getslice__ __hash__ __hex__ __eq__ __le__ __lt__ __gt__ __ge__ ' +
|
||||||
|
'__iadd__ __isub__ __imod__ __idiv__ __ipow__ __iand__ __ior__ __ixor__ __ilshift__ __irshift__ ' +
|
||||||
|
'__invert__ __init__ __int__ __inv__ __iter__ __len__ __long__ __lshift__ __mod__ __mul__ __new__ __neg__ __nonzero__ __oct__ __or__ ' +
|
||||||
|
'__pos__ __pow__ __radd__ __rand__ __rcmp__ __rdiv__ __rdivmod__ __repeat__ __repr__ __rlshift__ __rmod__ __rmul__ ' +
|
||||||
|
'__ror__ __rpow__ __rrshift__ __rshift__ __rsub__ __rxor__ __setattr__ __setitem__ __setslice__ __str__ __sub__ __xor__';
|
||||||
|
|
||||||
|
var exceptions = 'Exception StandardError ArithmeticError LookupError EnvironmentError AssertionError AttributeError EOFError ' +
|
||||||
|
'FutureWarning IndentationError OverflowWarning PendingDeprecationWarning ReferenceError RuntimeWarning ' +
|
||||||
|
'SyntaxWarning TabError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError UserWarning Warning ' +
|
||||||
|
'IOError ImportError IndexError KeyError KeyboardInterrupt MemoryError NameError NotImplementedError OSError ' +
|
||||||
|
'RuntimeError StopIteration SyntaxError SystemError SystemExit TypeError UnboundLocalError UnicodeError ValueError ' +
|
||||||
|
'FloatingPointError OverflowError WindowsError ZeroDivisionError';
|
||||||
|
|
||||||
|
var types = 'NoneType TypeType IntType LongType FloatType ComplexType StringType UnicodeType BufferType TupleType ListType ' +
|
||||||
|
'DictType FunctionType LambdaType CodeType ClassType UnboundMethodType InstanceType MethodType BuiltinFunctionType BuiltinMethodType ' +
|
||||||
|
'ModuleType FileType XRangeType TracebackType FrameType SliceType EllipsisType';
|
||||||
|
|
||||||
|
var commonlibs = 'anydbm array asynchat asyncore AST base64 binascii binhex bisect bsddb buildtools bz2 ' +
|
||||||
|
'BaseHTTPServer Bastion calendar cgi cmath cmd codecs codeop commands compiler copy copy_reg ' +
|
||||||
|
'cPickle crypt cStringIO csv curses Carbon CGIHTTPServer ConfigParser Cookie datetime dbhash ' +
|
||||||
|
'dbm difflib dircache distutils doctest DocXMLRPCServer email encodings errno exceptions fcntl ' +
|
||||||
|
'filecmp fileinput ftplib gc gdbm getopt getpass glob gopherlib gzip heapq htmlentitydefs ' +
|
||||||
|
'htmllib httplib HTMLParser imageop imaplib imgfile imghdr imp inspect itertools jpeg keyword ' +
|
||||||
|
'linecache locale logging mailbox mailcap marshal math md5 mhlib mimetools mimetypes mimify mmap ' +
|
||||||
|
'mpz multifile mutex MimeWriter netrc new nis nntplib nsremote operator optparse os parser pickle pipes ' +
|
||||||
|
'popen2 poplib posix posixfile pprint preferences profile pstats pwd pydoc pythonprefs quietconsole ' +
|
||||||
|
'quopri Queue random re readline resource rexec rfc822 rgbimg sched select sets sgmllib sha shelve shutil ' +
|
||||||
|
'signal site smtplib socket stat statcache string struct symbol sys syslog SimpleHTTPServer ' +
|
||||||
|
'SimpleXMLRPCServer SocketServer StringIO tabnanny tarfile telnetlib tempfile termios textwrap ' +
|
||||||
|
'thread threading time timeit token tokenize traceback tty types Tkinter unicodedata unittest ' +
|
||||||
|
'urllib urllib2 urlparse user UserDict UserList UserString warnings weakref webbrowser whichdb ' +
|
||||||
|
'xml xmllib xmlrpclib xreadlines zipfile zlib';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('#.*$', 'gm'), css: 'comment' }, // comments
|
||||||
|
{ regex: new RegExp('^\\s*"""(.|\n)*?"""\\s*$', 'gm'), css: 'docstring' }, // documentation string "
|
||||||
|
{ regex: new RegExp('^\\s*\'\'\'(.|\n)*?\'\'\'\\s*$', 'gm'), css: 'docstring' }, // documentation string '
|
||||||
|
{ regex: new RegExp('"""(.|\n)*?"""', 'g'), css: 'string' }, // multi-line strings "
|
||||||
|
{ regex: new RegExp('\'\'\'(.|\n)*?\'\'\'', 'g'), css: 'string' }, // multi-line strings '
|
||||||
|
{ regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings "
|
||||||
|
{ regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings '
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
||||||
|
{ regex: new RegExp(this.GetKeywords(builtins), 'gm'), css: 'builtins' }, // builtin objects, functions, methods, magic attributes
|
||||||
|
{ regex: new RegExp(this.GetKeywords(magicmethods), 'gm'), css: 'magicmethods' }, // special methods
|
||||||
|
{ regex: new RegExp(this.GetKeywords(exceptions), 'gm'), css: 'exceptions' }, // standard exception classes
|
||||||
|
{ regex: new RegExp(this.GetKeywords(types), 'gm'), css: 'types' }, // types from types.py
|
||||||
|
{ regex: new RegExp(this.GetKeywords(commonlibs), 'gm'), css: 'commonlibs' } // common standard library modules
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-py';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.Python.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.Python.Aliases = ['py', 'python'];
|
40
wiki-lenny/static/common/syntaxHighlighter/shBrushSql.js
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
dp.sh.Brushes.Sql = function()
|
||||||
|
{
|
||||||
|
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
|
||||||
|
'current_user day isnull left lower month nullif replace right ' +
|
||||||
|
'session_user space substring sum system_user upper user year';
|
||||||
|
|
||||||
|
var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
|
||||||
|
'binary bit by cascade char character check checkpoint close collate ' +
|
||||||
|
'column commit committed connect connection constraint contains continue ' +
|
||||||
|
'create cube current current_date current_time cursor database date ' +
|
||||||
|
'deallocate dec decimal declare default delete desc distinct double drop ' +
|
||||||
|
'dynamic else end end-exec escape except exec execute false fetch first ' +
|
||||||
|
'float for force foreign forward free from full function global goto grant ' +
|
||||||
|
'group grouping having hour ignore index inner insensitive insert instead ' +
|
||||||
|
'int integer intersect into is isolation key last level load local max min ' +
|
||||||
|
'minute modify move name national nchar next no numeric of off on only ' +
|
||||||
|
'open option order out output partial password precision prepare primary ' +
|
||||||
|
'prior privileges procedure public read real references relative repeatable ' +
|
||||||
|
'restrict return returns revoke rollback rollup rows rule schema scroll ' +
|
||||||
|
'second section select sequence serializable set size smallint static ' +
|
||||||
|
'statistics table temp temporary then time timestamp to top transaction ' +
|
||||||
|
'translation trigger true truncate uncommitted union unique update values ' +
|
||||||
|
'varchar varying view when where with work';
|
||||||
|
|
||||||
|
var operators = 'all and any between cross in join like not null or outer some';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('--(.*)$', 'gm'), css: 'comment' }, // one line and multiline comments
|
||||||
|
{ regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings
|
||||||
|
{ regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings
|
||||||
|
{ regex: new RegExp(this.GetKeywords(funcs), 'gmi'), css: 'func' }, // functions
|
||||||
|
{ regex: new RegExp(this.GetKeywords(operators), 'gmi'), css: 'op' }, // operators and such
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-sql';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.Sql.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.Sql.Aliases = ['sql'];
|
29
wiki-lenny/static/common/syntaxHighlighter/shBrushVb.js
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
dp.sh.Brushes.Vb = function()
|
||||||
|
{
|
||||||
|
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
|
||||||
|
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
|
||||||
|
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
|
||||||
|
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
|
||||||
|
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
|
||||||
|
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
|
||||||
|
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
|
||||||
|
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
|
||||||
|
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
|
||||||
|
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
|
||||||
|
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
|
||||||
|
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
|
||||||
|
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
|
||||||
|
'Variant When While With WithEvents WriteOnly Xor';
|
||||||
|
|
||||||
|
this.regexList = [
|
||||||
|
{ regex: new RegExp('\'.*$', 'gm'), css: 'comment' }, // one line comments
|
||||||
|
{ regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings
|
||||||
|
{ regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||||
|
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
|
||||||
|
];
|
||||||
|
|
||||||
|
this.CssClass = 'dp-vb';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.Vb.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.Vb.Aliases = ['vb', 'vb.net'];
|
61
wiki-lenny/static/common/syntaxHighlighter/shBrushXml.js
vendored
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
dp.sh.Brushes.Xml = function()
|
||||||
|
{
|
||||||
|
this.CssClass = 'dp-xml';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Brushes.Xml.prototype = new dp.sh.Highlighter();
|
||||||
|
dp.sh.Brushes.Xml.Aliases = ['xml', 'xhtml', 'xslt', 'html', 'xhtml'];
|
||||||
|
|
||||||
|
dp.sh.Brushes.Xml.prototype.ProcessRegexList = function()
|
||||||
|
{
|
||||||
|
function push(array, value)
|
||||||
|
{
|
||||||
|
array[array.length] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* If only there was a way to get index of a group within a match, the whole XML
|
||||||
|
could be matched with the expression looking something like that:
|
||||||
|
|
||||||
|
(<!\[CDATA\[\s*.*\s*\]\]>)
|
||||||
|
| (<!--\s*.*\s*?-->)
|
||||||
|
| (<)*(\w+)*\s*(\w+)\s*=\s*(".*?"|'.*?'|\w+)(/*>)*
|
||||||
|
| (</?)(.*?)(/?>)
|
||||||
|
*/
|
||||||
|
var index = 0;
|
||||||
|
var match = null;
|
||||||
|
var regex = null;
|
||||||
|
|
||||||
|
// Match CDATA in the following format <![ ... [ ... ]]>
|
||||||
|
// <\!\[[\w\s]*?\[(.|\s)*?\]\]>
|
||||||
|
this.GetMatches(new RegExp('<\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\]>', 'gm'), 'cdata');
|
||||||
|
|
||||||
|
// Match comments
|
||||||
|
// <!--\s*.*\s*?-->
|
||||||
|
this.GetMatches(new RegExp('<!--\\s*.*\\s*?-->', 'gm'), 'comments');
|
||||||
|
|
||||||
|
// Match attributes and their values
|
||||||
|
// (\w+)\s*=\s*(".*?"|\'.*?\'|\w+)*
|
||||||
|
regex = new RegExp('([\\w-\.]+)\\s*=\\s*(".*?"|\'.*?\'|\\w+)*', 'gm');
|
||||||
|
while((match = regex.exec(this.code)) != null)
|
||||||
|
{
|
||||||
|
push(this.matches, new dp.sh.Match(match[1], match.index, 'attribute'));
|
||||||
|
|
||||||
|
// if xml is invalid and attribute has no property value, ignore it
|
||||||
|
if(match[2] != undefined)
|
||||||
|
{
|
||||||
|
push(this.matches, new dp.sh.Match(match[2], match.index + match[0].indexOf(match[2]), 'attribute-value'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Match opening and closing tag brackets
|
||||||
|
// </*\?*(?!\!)|/*\?*>
|
||||||
|
this.GetMatches(new RegExp('</*\\?*(?!\\!)|/*\\?*>', 'gm'), 'tag');
|
||||||
|
|
||||||
|
// Match tag names
|
||||||
|
// </*\?*\s*(\w+)
|
||||||
|
regex = new RegExp('</*\\?*\\s*([\\w-\.]+)', 'gm');
|
||||||
|
while((match = regex.exec(this.code)) != null)
|
||||||
|
{
|
||||||
|
push(this.matches, new dp.sh.Match(match[1], match.index + match[0].indexOf(match[1]), 'tag-name'));
|
||||||
|
}
|
||||||
|
}
|
622
wiki-lenny/static/common/syntaxHighlighter/shCore.js
vendored
Normal file
|
@ -0,0 +1,622 @@
|
||||||
|
/**
|
||||||
|
* Code Syntax Highlighter.
|
||||||
|
* Version 1.3.0
|
||||||
|
* Copyright (C) 2004 Alex Gorbatchev.
|
||||||
|
* http://www.dreamprojections.com/syntaxhighlighter/
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
|
||||||
|
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
|
||||||
|
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
// create namespaces
|
||||||
|
//
|
||||||
|
var dp = {
|
||||||
|
sh : // dp.sh
|
||||||
|
{
|
||||||
|
Utils : {}, // dp.sh.Utils
|
||||||
|
Brushes : {}, // dp.sh.Brushes
|
||||||
|
Strings : {},
|
||||||
|
Version : '1.3.0'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dp.sh.Strings = {
|
||||||
|
AboutDialog : '<html><head><title>About...</title></head><body class="dp-about"><table cellspacing="0"><tr><td class="copy"><p class="title">dp.SyntaxHighlighter</div><div class="para">Version: {V}</p><p><a href="http://www.dreamprojections.com/syntaxhighlighter/?ref=about" target="_blank">http://www.dreamprojections.com/SyntaxHighlighter</a></p>©2004-2005 Alex Gorbatchev. All right reserved.</td></tr><tr><td class="footer"><input type="button" class="close" value="OK" onClick="window.close()"/></td></tr></table></body></html>',
|
||||||
|
|
||||||
|
// tools
|
||||||
|
ExpandCode : '+ expand code',
|
||||||
|
ViewPlain : 'view plain',
|
||||||
|
Print : 'print',
|
||||||
|
CopyToClipboard : 'copy to clipboard',
|
||||||
|
About : '?',
|
||||||
|
|
||||||
|
CopiedToClipboard : 'The code is in your clipboard now.'
|
||||||
|
};
|
||||||
|
|
||||||
|
dp.SyntaxHighlighter = dp.sh;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Dialog and toolbar functions
|
||||||
|
//
|
||||||
|
|
||||||
|
dp.sh.Utils.Expand = function(sender)
|
||||||
|
{
|
||||||
|
var table = sender;
|
||||||
|
var span = sender;
|
||||||
|
|
||||||
|
// find the span in which the text label and pipe contained so we can hide it
|
||||||
|
while(span != null && span.tagName != 'SPAN')
|
||||||
|
span = span.parentNode;
|
||||||
|
|
||||||
|
// find the table
|
||||||
|
while(table != null && table.tagName != 'TABLE')
|
||||||
|
table = table.parentNode;
|
||||||
|
|
||||||
|
// remove the 'expand code' button
|
||||||
|
span.parentNode.removeChild(span);
|
||||||
|
|
||||||
|
table.tBodies[0].className = 'show';
|
||||||
|
table.parentNode.style.height = '100%'; // containing div isn't getting updated properly when the TBODY is shown
|
||||||
|
}
|
||||||
|
|
||||||
|
// opens a new windows and puts the original unformatted source code inside.
|
||||||
|
dp.sh.Utils.ViewSource = function(sender)
|
||||||
|
{
|
||||||
|
var code = sender.parentNode.originalCode;
|
||||||
|
var wnd = window.open('', '_blank', 'width=750, height=400, location=0, resizable=1, menubar=0, scrollbars=1');
|
||||||
|
|
||||||
|
code = code.replace(/</g, '<');
|
||||||
|
|
||||||
|
wnd.document.write('<pre>' + code + '</pre>');
|
||||||
|
wnd.document.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
// copies the original source code in to the clipboard (IE only)
|
||||||
|
dp.sh.Utils.ToClipboard = function(sender)
|
||||||
|
{
|
||||||
|
var code = sender.parentNode.originalCode;
|
||||||
|
|
||||||
|
// This works only for IE. There's a way to make it work with Mozilla as well,
|
||||||
|
// but it requires security settings changed on the client, which isn't by
|
||||||
|
// default, so 99% of users won't have it working anyways.
|
||||||
|
if(window.clipboardData)
|
||||||
|
{
|
||||||
|
window.clipboardData.setData('text', code);
|
||||||
|
|
||||||
|
alert(dp.sh.Strings.CopiedToClipboard);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// creates an invisible iframe, puts the original source code inside and prints it
|
||||||
|
dp.sh.Utils.PrintSource = function(sender)
|
||||||
|
{
|
||||||
|
var td = sender.parentNode;
|
||||||
|
var code = td.processedCode;
|
||||||
|
var iframe = document.createElement('IFRAME');
|
||||||
|
var doc = null;
|
||||||
|
var wnd =
|
||||||
|
|
||||||
|
// this hides the iframe
|
||||||
|
iframe.style.cssText = 'position:absolute; width:0px; height:0px; left:-5px; top:-5px;';
|
||||||
|
|
||||||
|
td.appendChild(iframe);
|
||||||
|
|
||||||
|
doc = iframe.contentWindow.document;
|
||||||
|
code = code.replace(/</g, '<');
|
||||||
|
|
||||||
|
doc.open();
|
||||||
|
doc.write('<pre>' + code + '</pre>');
|
||||||
|
doc.close();
|
||||||
|
|
||||||
|
iframe.contentWindow.focus();
|
||||||
|
iframe.contentWindow.print();
|
||||||
|
|
||||||
|
td.removeChild(iframe);
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Utils.About = function()
|
||||||
|
{
|
||||||
|
var wnd = window.open('', '_blank', 'dialog,width=320,height=150,scrollbars=0');
|
||||||
|
var doc = wnd.document;
|
||||||
|
|
||||||
|
var styles = document.getElementsByTagName('style');
|
||||||
|
var links = document.getElementsByTagName('link');
|
||||||
|
|
||||||
|
doc.write(dp.sh.Strings.AboutDialog.replace('{V}', dp.sh.Version));
|
||||||
|
|
||||||
|
// copy over ALL the styles from the parent page
|
||||||
|
for(var i = 0; i < styles.length; i++)
|
||||||
|
doc.write('<style>' + styles[i].innerHTML + '</style>');
|
||||||
|
|
||||||
|
for(var i = 0; i < links.length; i++)
|
||||||
|
if(links[i].rel.toLowerCase() == 'stylesheet')
|
||||||
|
doc.write('<link type="text/css" rel="stylesheet" href="' + links[i].href + '"></link>');
|
||||||
|
|
||||||
|
doc.close();
|
||||||
|
wnd.focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Match object
|
||||||
|
//
|
||||||
|
dp.sh.Match = function(value, index, css)
|
||||||
|
{
|
||||||
|
this.value = value;
|
||||||
|
this.index = index;
|
||||||
|
this.length = value.length;
|
||||||
|
this.css = css;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Highlighter object
|
||||||
|
//
|
||||||
|
dp.sh.Highlighter = function()
|
||||||
|
{
|
||||||
|
this.addGutter = true;
|
||||||
|
this.addControls = true;
|
||||||
|
this.collapse = false;
|
||||||
|
this.tabsToSpaces = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// static callback for the match sorting
|
||||||
|
dp.sh.Highlighter.SortCallback = function(m1, m2)
|
||||||
|
{
|
||||||
|
// sort matches by index first
|
||||||
|
if(m1.index < m2.index)
|
||||||
|
return -1;
|
||||||
|
else if(m1.index > m2.index)
|
||||||
|
return 1;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// if index is the same, sort by length
|
||||||
|
if(m1.length < m2.length)
|
||||||
|
return -1;
|
||||||
|
else if(m1.length > m2.length)
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// gets a list of all matches for a given regular expression
|
||||||
|
dp.sh.Highlighter.prototype.GetMatches = function(regex, css)
|
||||||
|
{
|
||||||
|
var index = 0;
|
||||||
|
var match = null;
|
||||||
|
|
||||||
|
while((match = regex.exec(this.code)) != null)
|
||||||
|
{
|
||||||
|
this.matches[this.matches.length] = new dp.sh.Match(match[0], match.index, css);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Highlighter.prototype.AddBit = function(str, css)
|
||||||
|
{
|
||||||
|
var span = document.createElement('span');
|
||||||
|
|
||||||
|
str = str.replace(/&/g, '&');
|
||||||
|
str = str.replace(/ /g, ' ');
|
||||||
|
str = str.replace(/</g, '<');
|
||||||
|
str = str.replace(/\n/gm, ' <br>');
|
||||||
|
|
||||||
|
// when adding a piece of code, check to see if it has line breaks in it
|
||||||
|
// and if it does, wrap individual line breaks with span tags
|
||||||
|
if(css != null)
|
||||||
|
{
|
||||||
|
var regex = new RegExp('<br>', 'gi');
|
||||||
|
|
||||||
|
if(regex.test(str))
|
||||||
|
{
|
||||||
|
var lines = str.split(' <br>');
|
||||||
|
|
||||||
|
str = '';
|
||||||
|
|
||||||
|
for(var i = 0; i < lines.length; i++)
|
||||||
|
{
|
||||||
|
span = document.createElement('SPAN');
|
||||||
|
span.className = css;
|
||||||
|
span.innerHTML = lines[i];
|
||||||
|
|
||||||
|
this.div.appendChild(span);
|
||||||
|
|
||||||
|
// don't add a <BR> for the last line
|
||||||
|
if(i + 1 < lines.length)
|
||||||
|
this.div.appendChild(document.createElement('BR'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
span.className = css;
|
||||||
|
span.innerHTML = str;
|
||||||
|
this.div.appendChild(span);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
span.innerHTML = str;
|
||||||
|
this.div.appendChild(span);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// checks if one match is inside any other match
|
||||||
|
dp.sh.Highlighter.prototype.IsInside = function(match)
|
||||||
|
{
|
||||||
|
if(match == null || match.length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for(var i = 0; i < this.matches.length; i++)
|
||||||
|
{
|
||||||
|
var c = this.matches[i];
|
||||||
|
|
||||||
|
if(c == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if((match.index > c.index) && (match.index <= c.index + c.length))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Highlighter.prototype.ProcessRegexList = function()
|
||||||
|
{
|
||||||
|
for(var i = 0; i < this.regexList.length; i++)
|
||||||
|
this.GetMatches(this.regexList[i].regex, this.regexList[i].css);
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Highlighter.prototype.ProcessSmartTabs = function(code)
|
||||||
|
{
|
||||||
|
var lines = code.split('\n');
|
||||||
|
var result = '';
|
||||||
|
var tabSize = 4;
|
||||||
|
var tab = '\t';
|
||||||
|
|
||||||
|
// This function inserts specified amount of spaces in the string
|
||||||
|
// where a tab is while removing that given tab.
|
||||||
|
function InsertSpaces(line, pos, count)
|
||||||
|
{
|
||||||
|
var left = line.substr(0, pos);
|
||||||
|
var right = line.substr(pos + 1, line.length); // pos + 1 will get rid of the tab
|
||||||
|
var spaces = '';
|
||||||
|
|
||||||
|
for(var i = 0; i < count; i++)
|
||||||
|
spaces += ' ';
|
||||||
|
|
||||||
|
return left + spaces + right;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This function process one line for 'smart tabs'
|
||||||
|
function ProcessLine(line, tabSize)
|
||||||
|
{
|
||||||
|
if(line.indexOf(tab) == -1)
|
||||||
|
return line;
|
||||||
|
|
||||||
|
var pos = 0;
|
||||||
|
|
||||||
|
while((pos = line.indexOf(tab)) != -1)
|
||||||
|
{
|
||||||
|
// This is pretty much all there is to the 'smart tabs' logic.
|
||||||
|
// Based on the position within the line and size of a tab,
|
||||||
|
// calculate the amount of spaces we need to insert.
|
||||||
|
var spaces = tabSize - pos % tabSize;
|
||||||
|
|
||||||
|
line = InsertSpaces(line, pos, spaces);
|
||||||
|
}
|
||||||
|
|
||||||
|
return line;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go through all the lines and do the 'smart tabs' magic.
|
||||||
|
for(var i = 0; i < lines.length; i++)
|
||||||
|
result += ProcessLine(lines[i], tabSize) + '\n';
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Highlighter.prototype.SwitchToTable = function()
|
||||||
|
{
|
||||||
|
// thanks to Lachlan Donald from SitePoint.com for this <br/> tag fix.
|
||||||
|
var html = this.div.innerHTML.replace(/<(br)\/?>/gi, '\n');
|
||||||
|
var lines = html.split('\n');
|
||||||
|
var row = null;
|
||||||
|
var cell = null;
|
||||||
|
var tBody = null;
|
||||||
|
var html = '';
|
||||||
|
var pipe = ' | ';
|
||||||
|
|
||||||
|
// creates an anchor to a utility
|
||||||
|
function UtilHref(util, text)
|
||||||
|
{
|
||||||
|
return '<a href="#" onclick="dp.sh.Utils.' + util + '(this); return false;">' + text + '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
tBody = document.createElement('TBODY'); // can be created and all others go to tBodies collection.
|
||||||
|
|
||||||
|
this.table.appendChild(tBody);
|
||||||
|
|
||||||
|
if(this.addGutter == true)
|
||||||
|
{
|
||||||
|
row = tBody.insertRow(-1);
|
||||||
|
cell = row.insertCell(-1);
|
||||||
|
cell.className = 'tools-corner';
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.addControls == true)
|
||||||
|
{
|
||||||
|
var tHead = document.createElement('THEAD'); // controls will be placed in here
|
||||||
|
this.table.appendChild(tHead);
|
||||||
|
|
||||||
|
row = tHead.insertRow(-1);
|
||||||
|
|
||||||
|
// add corner if there's a gutter
|
||||||
|
if(this.addGutter == true)
|
||||||
|
{
|
||||||
|
cell = row.insertCell(-1);
|
||||||
|
cell.className = 'tools-corner';
|
||||||
|
}
|
||||||
|
|
||||||
|
cell = row.insertCell(-1);
|
||||||
|
|
||||||
|
// preserve some variables for the controls
|
||||||
|
cell.originalCode = this.originalCode;
|
||||||
|
cell.processedCode = this.code;
|
||||||
|
cell.className = 'tools';
|
||||||
|
|
||||||
|
if(this.collapse == true)
|
||||||
|
{
|
||||||
|
tBody.className = 'hide';
|
||||||
|
cell.innerHTML += '<span><b>' + UtilHref('Expand', dp.sh.Strings.ExpandCode) + '</b>' + pipe + '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
|
cell.innerHTML += UtilHref('ViewSource', dp.sh.Strings.ViewPlain) + pipe + UtilHref('PrintSource', dp.sh.Strings.Print);
|
||||||
|
|
||||||
|
// IE has this clipboard object which is easy enough to use
|
||||||
|
if(window.clipboardData)
|
||||||
|
cell.innerHTML += pipe + UtilHref('ToClipboard', dp.sh.Strings.CopyToClipboard);
|
||||||
|
|
||||||
|
cell.innerHTML += pipe + UtilHref('About', dp.sh.Strings.About);
|
||||||
|
}
|
||||||
|
|
||||||
|
for(var i = 0, lineIndex = this.firstLine; i < lines.length - 1; i++, lineIndex++)
|
||||||
|
{
|
||||||
|
row = tBody.insertRow(-1);
|
||||||
|
|
||||||
|
if(this.addGutter == true)
|
||||||
|
{
|
||||||
|
cell = row.insertCell(-1);
|
||||||
|
cell.className = 'gutter';
|
||||||
|
cell.innerHTML = lineIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
cell = row.insertCell(-1);
|
||||||
|
cell.className = 'line' + (i % 2 + 1); // uses .line1 and .line2 css styles for alternating lines
|
||||||
|
cell.innerHTML = lines[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
this.div.innerHTML = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Highlighter.prototype.Highlight = function(code)
|
||||||
|
{
|
||||||
|
function Trim(str)
|
||||||
|
{
|
||||||
|
return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
|
||||||
|
}
|
||||||
|
|
||||||
|
function Chop(str)
|
||||||
|
{
|
||||||
|
return str.replace(/\n*$/, '').replace(/^\n*/, '');
|
||||||
|
}
|
||||||
|
|
||||||
|
function Unindent(str)
|
||||||
|
{
|
||||||
|
var lines = str.split('\n');
|
||||||
|
var indents = new Array();
|
||||||
|
var regex = new RegExp('^\\s*', 'g');
|
||||||
|
var min = 1000;
|
||||||
|
|
||||||
|
// go through every line and check for common number of indents
|
||||||
|
for(var i = 0; i < lines.length && min > 0; i++)
|
||||||
|
{
|
||||||
|
if(Trim(lines[i]).length == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
var matches = regex.exec(lines[i]);
|
||||||
|
|
||||||
|
if(matches != null && matches.length > 0)
|
||||||
|
min = Math.min(matches[0].length, min);
|
||||||
|
}
|
||||||
|
|
||||||
|
// trim minimum common number of white space from the begining of every line
|
||||||
|
if(min > 0)
|
||||||
|
for(var i = 0; i < lines.length; i++)
|
||||||
|
lines[i] = lines[i].substr(min);
|
||||||
|
|
||||||
|
return lines.join('\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
// This function returns a portions of the string from pos1 to pos2 inclusive
|
||||||
|
function Copy(string, pos1, pos2)
|
||||||
|
{
|
||||||
|
return string.substr(pos1, pos2 - pos1);
|
||||||
|
}
|
||||||
|
|
||||||
|
var pos = 0;
|
||||||
|
|
||||||
|
this.originalCode = code;
|
||||||
|
this.code = Chop(Unindent(code));
|
||||||
|
this.div = document.createElement('DIV');
|
||||||
|
this.table = document.createElement('TABLE');
|
||||||
|
this.matches = new Array();
|
||||||
|
|
||||||
|
if(this.CssClass != null)
|
||||||
|
this.table.className = this.CssClass;
|
||||||
|
|
||||||
|
// replace tabs with spaces
|
||||||
|
if(this.tabsToSpaces == true)
|
||||||
|
this.code = this.ProcessSmartTabs(this.code);
|
||||||
|
|
||||||
|
this.table.border = 0;
|
||||||
|
this.table.cellSpacing = 0;
|
||||||
|
this.table.cellPadding = 0;
|
||||||
|
|
||||||
|
this.ProcessRegexList();
|
||||||
|
|
||||||
|
// if no matches found, add entire code as plain text
|
||||||
|
if(this.matches.length == 0)
|
||||||
|
{
|
||||||
|
this.AddBit(this.code, null);
|
||||||
|
this.SwitchToTable();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// sort the matches
|
||||||
|
this.matches = this.matches.sort(dp.sh.Highlighter.SortCallback);
|
||||||
|
|
||||||
|
// The following loop checks to see if any of the matches are inside
|
||||||
|
// of other matches. This process would get rid of highligting strings
|
||||||
|
// inside comments, keywords inside strings and so on.
|
||||||
|
for(var i = 0; i < this.matches.length; i++)
|
||||||
|
if(this.IsInside(this.matches[i]))
|
||||||
|
this.matches[i] = null;
|
||||||
|
|
||||||
|
// Finally, go through the final list of matches and pull the all
|
||||||
|
// together adding everything in between that isn't a match.
|
||||||
|
for(var i = 0; i < this.matches.length; i++)
|
||||||
|
{
|
||||||
|
var match = this.matches[i];
|
||||||
|
|
||||||
|
if(match == null || match.length == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
this.AddBit(Copy(this.code, pos, match.index), null);
|
||||||
|
this.AddBit(match.value, match.css);
|
||||||
|
|
||||||
|
pos = match.index + match.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.AddBit(this.code.substr(pos), null);
|
||||||
|
|
||||||
|
this.SwitchToTable();
|
||||||
|
}
|
||||||
|
|
||||||
|
dp.sh.Highlighter.prototype.GetKeywords = function(str)
|
||||||
|
{
|
||||||
|
return '\\b' + str.replace(/ /g, '\\b|\\b') + '\\b';
|
||||||
|
}
|
||||||
|
|
||||||
|
// highlightes all elements identified by name and gets source code from specified property
|
||||||
|
dp.sh.HighlightAll = function(name, showGutter /* optional */, showControls /* optional */, collapseAll /* optional */, firstLine /* optional */)
|
||||||
|
{
|
||||||
|
function FindValue()
|
||||||
|
{
|
||||||
|
var a = arguments;
|
||||||
|
|
||||||
|
for(var i = 0; i < a.length; i++)
|
||||||
|
{
|
||||||
|
if(a[i] == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if(typeof(a[i]) == 'string' && a[i] != '')
|
||||||
|
return a[i] + '';
|
||||||
|
|
||||||
|
if(typeof(a[i]) == 'object' && a[i].value != '')
|
||||||
|
return a[i].value + '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function IsOptionSet(value, list)
|
||||||
|
{
|
||||||
|
for(var i = 0; i < list.length; i++)
|
||||||
|
if(list[i] == value)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetOptionValue(name, list, defaultValue)
|
||||||
|
{
|
||||||
|
var regex = new RegExp('^' + name + '\\[(\\w+)\\]$', 'gi');
|
||||||
|
var matches = null;
|
||||||
|
|
||||||
|
for(var i = 0; i < list.length; i++)
|
||||||
|
if((matches = regex.exec(list[i])) != null)
|
||||||
|
return matches[1];
|
||||||
|
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var elements = document.getElementsByName(name);
|
||||||
|
var highlighter = null;
|
||||||
|
var registered = new Object();
|
||||||
|
var propertyName = 'value';
|
||||||
|
|
||||||
|
// if no code blocks found, leave
|
||||||
|
if(elements == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// register all brushes
|
||||||
|
for(var brush in dp.sh.Brushes)
|
||||||
|
{
|
||||||
|
var aliases = dp.sh.Brushes[brush].Aliases;
|
||||||
|
|
||||||
|
if(aliases == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
for(var i = 0; i < aliases.length; i++)
|
||||||
|
registered[aliases[i]] = brush;
|
||||||
|
}
|
||||||
|
|
||||||
|
for(var i = 0; i < elements.length; i++)
|
||||||
|
{
|
||||||
|
var element = elements[i];
|
||||||
|
var options = FindValue(
|
||||||
|
element.attributes['class'], element.className,
|
||||||
|
element.attributes['language'], element.language
|
||||||
|
);
|
||||||
|
var language = '';
|
||||||
|
|
||||||
|
if(options == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
options = options.split(':');
|
||||||
|
|
||||||
|
language = options[0].toLowerCase();
|
||||||
|
|
||||||
|
if(registered[language] == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
// instantiate a brush
|
||||||
|
highlighter = new dp.sh.Brushes[registered[language]]();
|
||||||
|
|
||||||
|
// hide the original element
|
||||||
|
element.style.display = 'none';
|
||||||
|
|
||||||
|
highlighter.addGutter = (showGutter == null) ? !IsOptionSet('nogutter', options) : showGutter;
|
||||||
|
highlighter.addControls = (showControls == null) ? !IsOptionSet('nocontrols', options) : showControls;
|
||||||
|
highlighter.collapse = (collapseAll == null) ? IsOptionSet('collapse', options) : collapseAll;
|
||||||
|
|
||||||
|
// first line idea comes from Andrew Collington, thanks!
|
||||||
|
highlighter.firstLine = (firstLine == null) ? parseInt(GetOptionValue('firstline', options, 1)) : firstLine;
|
||||||
|
|
||||||
|
highlighter.Highlight(element[propertyName]);
|
||||||
|
|
||||||
|
// place the result table inside a div
|
||||||
|
var div = document.createElement('DIV');
|
||||||
|
|
||||||
|
div.className = 'dp-highlighter';
|
||||||
|
div.appendChild(highlighter.table);
|
||||||
|
|
||||||
|
element.parentNode.insertBefore(div, element);
|
||||||
|
}
|
||||||
|
}
|
60
wiki-lenny/static/common/toc/toc.css
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
toc.css - MoinMoin Style
|
||||||
|
|
||||||
|
Style pour la table des matieres
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
/*<!-- table of contents -->*/
|
||||||
|
#tableOfContents, #tableOfContents p {
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
#tableOfContents {
|
||||||
|
display:block;
|
||||||
|
float:left;
|
||||||
|
border: 1px solid #aaaaaa;
|
||||||
|
padding:5px;
|
||||||
|
background:#e9e9e9;
|
||||||
|
margin:20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tableOfContents ol {
|
||||||
|
margin:0;
|
||||||
|
padding:0 0 0 20px;
|
||||||
|
}
|
||||||
|
#tableOfContents ol li {
|
||||||
|
margin:2px;
|
||||||
|
}
|
||||||
|
#tableOfContents h2 {
|
||||||
|
border:none;
|
||||||
|
font-size:110%;
|
||||||
|
font-weight:bold;
|
||||||
|
padding:0;
|
||||||
|
margin:5px 0;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tableOfContents span.toctoggle {
|
||||||
|
font-size:x-small;
|
||||||
|
font-weight:normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.visualClear {clear:both;}
|
62
wiki-lenny/static/common/toc/toc.js
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
var TOCState = "visible"
|
||||||
|
|
||||||
|
function replaceChildNodes(node/*, nodes...*/) {
|
||||||
|
var elem = document.getElementById(node);
|
||||||
|
elem.firstChild = "ee";
|
||||||
|
return
|
||||||
|
};
|
||||||
|
|
||||||
|
function showTocToggle() {
|
||||||
|
if (document.createTextNode) {
|
||||||
|
// Uses DOM calls to avoid document.write + XHTML issues
|
||||||
|
|
||||||
|
var linkHolder = document.getElementById('toctitle')
|
||||||
|
if (!linkHolder)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var outerSpan = document.createElement('span');
|
||||||
|
outerSpan.className = 'toctoggle';
|
||||||
|
|
||||||
|
var toggleLink = document.createElement('a');
|
||||||
|
toggleLink.id = 'togglelink';
|
||||||
|
toggleLink.className = 'internal';
|
||||||
|
toggleLink.href = 'javascript:toggleToc()';
|
||||||
|
toggleLink.appendChild(document.createTextNode('masquer'));
|
||||||
|
|
||||||
|
outerSpan.appendChild(document.createTextNode('['));
|
||||||
|
outerSpan.appendChild(toggleLink);
|
||||||
|
outerSpan.appendChild(document.createTextNode(']'));
|
||||||
|
|
||||||
|
linkHolder.appendChild(document.createTextNode(' '));
|
||||||
|
linkHolder.appendChild(outerSpan);
|
||||||
|
|
||||||
|
var cookiePos = document.cookie.indexOf("hidetoc=");
|
||||||
|
if (cookiePos > -1 && document.cookie.charAt(cookiePos + 8) == 1)
|
||||||
|
toggleToc();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeText(el, newText) {
|
||||||
|
// Safari work around
|
||||||
|
if (el.innerText)
|
||||||
|
el.innerText = newText;
|
||||||
|
else if (el.firstChild && el.firstChild.nodeValue)
|
||||||
|
el.firstChild.nodeValue = newText;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleToc() {
|
||||||
|
var toc = document.getElementById('tableOfContentsList');
|
||||||
|
var toggleLink = document.getElementById('togglelink')
|
||||||
|
|
||||||
|
if (toc && toggleLink && toc.style.display == 'none') {
|
||||||
|
changeText(toggleLink, 'masquer');
|
||||||
|
toc.style.display = 'block';
|
||||||
|
document.cookie = "hidetoc=0";
|
||||||
|
} else {
|
||||||
|
changeText(toggleLink, 'afficher');
|
||||||
|
toc.style.display = 'none';
|
||||||
|
document.cookie = "hidetoc=1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
showTocToggle();
|
BIN
wiki-lenny/static/crans.png
Normal file
After Width: | Height: | Size: 18 KiB |
44
wiki-lenny/static/crans/css/bde.css
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
bde.css - MoinMoin Style
|
||||||
|
|
||||||
|
Theme bde.
|
||||||
|
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
div#content
|
||||||
|
{
|
||||||
|
background-image: url("../img/fond_bde.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ****************************** BARRE DE TITRE ****************************** */
|
||||||
|
div#titleBarre {
|
||||||
|
border-bottom: thin solid blue;
|
||||||
|
background: blue url(../img/BarreBleue.png) repeat-x;
|
||||||
|
}
|
||||||
|
/* on change la couleur des soulignements de titres pour aller avec la barre */
|
||||||
|
h1, h2, h3, h4, h5, h6 {border-color: blue}
|
||||||
|
div#titleBarre *,
|
||||||
|
div#titleBarre h1#title a { color: white; }
|
||||||
|
h1#title { background: url(../img/barreLogoBde.png) no-repeat right top;}
|
||||||
|
|
||||||
|
|
||||||
|
|
348
wiki-lenny/static/crans/css/common.css
Normal file
|
@ -0,0 +1,348 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
common.css - MoinMoin Style
|
||||||
|
|
||||||
|
Styles communs a tous les medias (screen, print...)
|
||||||
|
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
|
||||||
|
/* IMPORTS
|
||||||
|
/!\ les imports doivent imperativement se faire avant
|
||||||
|
toute autre regle css !!!
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import url('/wiki/common/toc/toc.css');
|
||||||
|
@import url('/wiki/common/boxes/boxes.css');
|
||||||
|
@import url('/wiki/common/portal/portal.css');
|
||||||
|
@import url('/wiki/common/pagesPersos.css');
|
||||||
|
@import url('/wiki/common/EventCalendar/EventCalendar.css');
|
||||||
|
|
||||||
|
html {
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 0.85em;
|
||||||
|
line-height: 1.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content, #preview {
|
||||||
|
padding-left:0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* img { max-width:90%; } */
|
||||||
|
|
||||||
|
.visualclear, #pagebottom {
|
||||||
|
clear:both;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links */
|
||||||
|
|
||||||
|
a {color: #0044B3;}
|
||||||
|
a:visited {color: #597BB3;}
|
||||||
|
a.nonexistent, a.badinterwiki {color: gray;}
|
||||||
|
|
||||||
|
/* Headings */
|
||||||
|
|
||||||
|
h1, h1 a, h1 a:visited,
|
||||||
|
h2, h2 a, h2 a:visited,
|
||||||
|
h3, h3 a, h3 a:visited,
|
||||||
|
h4, h4 a, h4 a:visited,
|
||||||
|
h5, h5 a, h5 a:visited,
|
||||||
|
h6, h6 a, h6 a:visited {
|
||||||
|
padding: 0;
|
||||||
|
color: black;
|
||||||
|
line-height: 1.2em;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 1.5em 0 0 0em;
|
||||||
|
font-size: 2em;
|
||||||
|
border-bottom: #f9821d 4px solid;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
margin: 0.9em 0 0 1em;
|
||||||
|
font-size: 1.6em;
|
||||||
|
border-bottom: #f9821d 3px solid;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
margin: 0.9em 0 0 2em;
|
||||||
|
font-size: 1.3em;
|
||||||
|
border-bottom: #f9821d 1px solid;
|
||||||
|
}
|
||||||
|
h4, h5, h6 {
|
||||||
|
margin: 0.9em 0 0 3em;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Autres */
|
||||||
|
|
||||||
|
tt {font-size: 1em;}
|
||||||
|
|
||||||
|
li p {
|
||||||
|
margin: .25em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.gap {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dt {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd p {
|
||||||
|
margin: 0.25em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, img, img.drawing {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre
|
||||||
|
{
|
||||||
|
border: 1pt solid #AEBDCC;
|
||||||
|
background-image: url(../img/bleutransparent.png);
|
||||||
|
padding: 5pt;
|
||||||
|
font-family: courier, monospace;
|
||||||
|
white-space: pre;
|
||||||
|
/* begin css 3 or browser specific rules - do not remove!
|
||||||
|
see: http://forums.techguy.org/archive/index.php/t-249849.html */
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: -moz-pre-wrap;
|
||||||
|
white-space: -pre-wrap;
|
||||||
|
white-space: -o-pre-wrap;
|
||||||
|
/* end css 3 or browser specific rules */
|
||||||
|
}
|
||||||
|
|
||||||
|
table
|
||||||
|
{
|
||||||
|
margin: 0.5em 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
td
|
||||||
|
{
|
||||||
|
padding: 0.25em;
|
||||||
|
border: 1pt solid #ADB9CC;
|
||||||
|
}
|
||||||
|
|
||||||
|
td p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footnotes div {
|
||||||
|
width: 5em;
|
||||||
|
border-top: 1pt solid gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footnotes ul {
|
||||||
|
padding: 0 2em;
|
||||||
|
margin: 0 0 1em;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footnotes li {
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pageinfo {
|
||||||
|
margin-top: 2em;
|
||||||
|
text-align:right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.seperator {
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* standard rule ---- */
|
||||||
|
hr {
|
||||||
|
clear: both;
|
||||||
|
height: 1pt;
|
||||||
|
background-color: #9C9C9C;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* custom rules ----- to ---------- */
|
||||||
|
.hr1 {height: 2pt;}
|
||||||
|
.hr2 {height: 3pt;}
|
||||||
|
.hr3 {height: 4pt;}
|
||||||
|
.hr4 {height: 5pt;}
|
||||||
|
.hr5 {height: 6pt;}
|
||||||
|
.hr6 {height: 7pt;}
|
||||||
|
|
||||||
|
/* Replacement for html 3 u tag */
|
||||||
|
.u {text-decoration: underline;}
|
||||||
|
|
||||||
|
/* eye catchers */
|
||||||
|
.warning
|
||||||
|
{
|
||||||
|
color: orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error
|
||||||
|
{
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong.highlight
|
||||||
|
{
|
||||||
|
background-color: #CCE0FF;
|
||||||
|
padding: 1pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Recent changes */
|
||||||
|
|
||||||
|
.rcrss {
|
||||||
|
float: right;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recentchanges[dir="rtl"] .rcrss {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recentchanges table {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recentchanges td {
|
||||||
|
vertical-align: top;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1pt solid #E6EAF0;
|
||||||
|
background: #F2F4F7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcdaybreak td {
|
||||||
|
background: #B8C5D9;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcdaybreak td a {
|
||||||
|
font-size: 0.88em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcicon1, .rcicon2 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcpagelink {
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rctime {
|
||||||
|
font-size: 0.88em;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rceditor {
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0.88em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rccomment {
|
||||||
|
width: 66%;
|
||||||
|
color: gray;
|
||||||
|
font-size: 0.88em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* User Preferences */
|
||||||
|
|
||||||
|
.userpref table, .userpref td {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CSS for new code_area markup used by Colorizer and ParserBase */
|
||||||
|
|
||||||
|
div.codearea { /* the div makes the border */
|
||||||
|
margin: 0.5em 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 1pt solid #AEBDCC;
|
||||||
|
background-color: #F3F5F7;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.codearea pre { /* the pre has no border and is inside the div */
|
||||||
|
margin: 0;
|
||||||
|
padding: 10pt;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.codenumbers { /* format of the line numbering link */
|
||||||
|
margin: 0 10pt;
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* format of certain syntax spans */
|
||||||
|
div.codearea pre span.LineNumber {color: gray;}
|
||||||
|
div.codearea pre span.ID {color: #000000;}
|
||||||
|
div.codearea pre span.Operator {color: #0000C0;}
|
||||||
|
div.codearea pre span.Char {color: #004080;}
|
||||||
|
div.codearea pre span.Comment {color: #008000;}
|
||||||
|
div.codearea pre span.Number {color: #0080C0;}
|
||||||
|
div.codearea pre span.String {color: #004080;}
|
||||||
|
div.codearea pre span.SPChar {color: #0000C0;}
|
||||||
|
div.codearea pre span.ResWord {color: #A00000;}
|
||||||
|
div.codearea pre span.ConsWord {color: #008080; font-weight: bold;}
|
||||||
|
div.codearea pre span.Error {color: #FF8080; border: solid 1.5pt #FF0000;}
|
||||||
|
div.codearea pre span.ResWord2 {color: #0080ff; font-weight: bold;}
|
||||||
|
div.codearea pre span.Special {color: #0000ff;}
|
||||||
|
div.codearea pre span.Preprc {color: #803999;}
|
||||||
|
|
||||||
|
|
||||||
|
/* Search results */
|
||||||
|
|
||||||
|
.searchresults dt {
|
||||||
|
margin-top: 1em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.searchresults dd {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Liens d'actions */
|
||||||
|
.editbar {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editbar li {
|
||||||
|
float: left;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
56
wiki-lenny/static/crans/css/crans.css
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
crans.css - MoinMoin Style
|
||||||
|
|
||||||
|
Theme crans (screen)
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
div#content
|
||||||
|
{
|
||||||
|
background-image: url("../img/fond.png");
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ****************************** BARRE DE TITRE ****************************** */
|
||||||
|
|
||||||
|
/* on change la couleur des soulignements de titres pour aller avec la barre */
|
||||||
|
h1, h2, h3, h4, h5, h6 {border-color: #f9821d}
|
||||||
|
|
||||||
|
div#titleBarre {
|
||||||
|
border-bottom: thin solid #f9821d;//orange;
|
||||||
|
background: #f9821d url(../img/BarreOrange.png) repeat-x;
|
||||||
|
}
|
||||||
|
div#titleBarre *,
|
||||||
|
div#titleBarre h1#title a {
|
||||||
|
color: white; }
|
||||||
|
div#titleBarre h1#title {
|
||||||
|
background: url(../img/BarreLogo.png) no-repeat right top;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* variantes */
|
||||||
|
.halloween div#titleBarre h1#title {
|
||||||
|
background-image: url(../img/barreLogoHalloween.png);
|
||||||
|
}
|
||||||
|
.noel div#titleBarre {
|
||||||
|
background: #f9821d url(../img/BarreOrangeNeige.png) repeat-x;
|
||||||
|
}
|
||||||
|
.noel div#titleBarre h1#title {
|
||||||
|
background-image: url(../img/BarreLogoNeige.png);
|
||||||
|
}
|
136
wiki-lenny/static/crans/css/ensanime.css
Normal file
|
@ -0,0 +1,136 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
ensanime.css - MoinMoin Style
|
||||||
|
|
||||||
|
Theme ensanime
|
||||||
|
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
/*<!-- BODY -->*/
|
||||||
|
body, html
|
||||||
|
{
|
||||||
|
background:black;
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*<!-- TITRE -->*/
|
||||||
|
h1#title
|
||||||
|
{
|
||||||
|
border-bottom: thin solid red;
|
||||||
|
background: url(../img/BarreRouge.png) repeat-x;
|
||||||
|
}
|
||||||
|
h1, h2, h3, h4, h5, h6 {border-color: red}
|
||||||
|
|
||||||
|
|
||||||
|
/*<!-- MENU DE DROITE -->*/
|
||||||
|
|
||||||
|
div#column-one {
|
||||||
|
/* couleurs */
|
||||||
|
background:#222222;
|
||||||
|
border-left:thin solid #bbbbbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#column-one li a {
|
||||||
|
color:#aaaaaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#p-logo {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div#content{
|
||||||
|
background-image: url("../img/fond_ensanime.png");
|
||||||
|
background-position: center center;
|
||||||
|
background-attachment: fixed;
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.diff-title, .diff-added, .diff-removed {
|
||||||
|
background-color: #444444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-added span {
|
||||||
|
background-color: #CC0000;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-removed span {
|
||||||
|
background-color: #AAAAAA;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#message {
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Links */
|
||||||
|
|
||||||
|
a {color: #FF5C5C;}
|
||||||
|
a:visited {color: #FF0000;}
|
||||||
|
a.nonexistent, a.badinterwiki {color: white;}
|
||||||
|
/* Headings */
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h1 a, h1 a:visited,
|
||||||
|
h2, h3, h4, h5, h6
|
||||||
|
{
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt {font-size: 1.5em;}
|
||||||
|
|
||||||
|
|
||||||
|
strong.highlight
|
||||||
|
{
|
||||||
|
background-color: #666666;
|
||||||
|
padding: 1pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcdaybreak td {
|
||||||
|
background: #BBBBBB;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcicon1, .rcicon2 {
|
||||||
|
background: #555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rctime,
|
||||||
|
.rceditor,
|
||||||
|
.rccomment {
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tableOfContents {
|
||||||
|
border: 1px solid #;
|
||||||
|
background:#121212;
|
||||||
|
}
|
||||||
|
|
||||||
|
table{
|
||||||
|
background-image: url(../img/blanctransparent.png);
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
56
wiki-lenny/static/crans/css/federez.css
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
bde.css - MoinMoin Style
|
||||||
|
|
||||||
|
Theme bde.
|
||||||
|
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
|
||||||
|
/* fond de page */
|
||||||
|
div#content{ background-image: url("../img/fond_federez.png"); }
|
||||||
|
|
||||||
|
/* couleur des liens */
|
||||||
|
a, a:visited, a:hover {color: #776c4a}
|
||||||
|
/* ****************************** BARRE DE TITRE ****************************** */
|
||||||
|
div#titleBarre {
|
||||||
|
/* couleur de la barre et du léger trait en dessous */
|
||||||
|
border-bottom: thin solid #afafd6;
|
||||||
|
background-color: #afafd6;
|
||||||
|
/* image de fond de la barre */
|
||||||
|
background-image: url("../img/BarreBleuGris.png");
|
||||||
|
}
|
||||||
|
/* image de la barre, en haut à droite */
|
||||||
|
h1#title { background-image: url("../img/barreLogoFederez.png");}
|
||||||
|
/* on change la couleur des soulignements de titres pour aller avec la barre */
|
||||||
|
h1, h2, h3, h4, h5, h6 {border-color: #afafd6}
|
||||||
|
/* Couleur du texte du titre de la page */
|
||||||
|
div#titleBarre *,
|
||||||
|
div#titleBarre h1#title a { color: #6c6c7a; }
|
||||||
|
/* Couleur des "/" dans le titre de la page */
|
||||||
|
h1#title ul#pagelocation li:before{ color: white; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* du bleu-gris : #afafd6; */
|
||||||
|
/* du maron : #776c4a; */
|
||||||
|
|
326
wiki-lenny/static/crans/css/layout.css
Normal file
|
@ -0,0 +1,326 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
layout.css - MoinMoin Style
|
||||||
|
|
||||||
|
Theme crans, layout principal (screen)
|
||||||
|
|
||||||
|
|
||||||
|
Copyright (c) 2006 2007 2008 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
/*<!-- BODY -->*/
|
||||||
|
html{
|
||||||
|
padding:0;
|
||||||
|
margin:0; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 40px 0 0 0;
|
||||||
|
padding :0; }
|
||||||
|
|
||||||
|
div#page {
|
||||||
|
position:relative;
|
||||||
|
margin:10px 170px 0 0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#content {
|
||||||
|
position:relative;
|
||||||
|
padding:0 15px 0 15px;
|
||||||
|
/*background-image: url("../img/fond.png");*/
|
||||||
|
background-color: transparent;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
background-attachment: fixed;
|
||||||
|
min-height:500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ****************************** BARRE DE TITRE ****************************** */
|
||||||
|
div#titleBarre {
|
||||||
|
float:right;
|
||||||
|
z-index:5;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
height: 40px;
|
||||||
|
width:100%;
|
||||||
|
border-bottom: thin solid #fcedd6;
|
||||||
|
background: url(../img/barreViole.png) repeat-x;
|
||||||
|
text-align:left;
|
||||||
|
color: white;
|
||||||
|
font: 25px "Trebuchet MS", helvetica, sans-serif ;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
/* on change la couleur des soulignements de titres pour aller avec la barre */
|
||||||
|
h1, h2, h3, h4, h5, h6 {border-color: #fcedd6}
|
||||||
|
|
||||||
|
div#titleBarre h1#title {
|
||||||
|
/* pour ie */
|
||||||
|
position:absolute;
|
||||||
|
top:0;
|
||||||
|
/* fin pour ie */
|
||||||
|
margin: 0;
|
||||||
|
display:block;
|
||||||
|
width:100%;
|
||||||
|
height:40px;
|
||||||
|
padding:0;
|
||||||
|
background: url(../img/logo.png) no-repeat right top;
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#titleBarre *,
|
||||||
|
div#titleBarre h1#title a {
|
||||||
|
color: white;
|
||||||
|
font: 25px "Trebuchet MS", helvetica, sans-serif ;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ul#pagelocation {
|
||||||
|
list-style-type:none;
|
||||||
|
height:25px;
|
||||||
|
padding:5px 10px 10px 10px;
|
||||||
|
margin:0;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
ul#pagelocation li {
|
||||||
|
display:inline;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
ul#pagelocation li:before{
|
||||||
|
content:"/";
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
h1#title>a{
|
||||||
|
margin:10px;
|
||||||
|
display:block;
|
||||||
|
height:25px;
|
||||||
|
padding:0;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ****************************** MENU DE DROITE ****************************** */
|
||||||
|
|
||||||
|
div#column-one ul, div#column-one li {
|
||||||
|
/* utilisation de liste pour le menu */
|
||||||
|
list-style-type: none; /* suppression des puces de liste */
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#column-one {
|
||||||
|
/* position */
|
||||||
|
z-index:2;
|
||||||
|
position: absolute;
|
||||||
|
right:0;
|
||||||
|
top:41px;
|
||||||
|
/* dimensions */
|
||||||
|
padding:5px 10px 10px 10px;
|
||||||
|
width:150px;
|
||||||
|
//height:100%;
|
||||||
|
overflow:hidden;
|
||||||
|
margin:0px;
|
||||||
|
/* texte */
|
||||||
|
font: 0.9em "Trebuchet MS", helvetica, sans-serif;
|
||||||
|
text-align:left;
|
||||||
|
/* couleurs */
|
||||||
|
background:#eeeeee;
|
||||||
|
border-left:thin solid #bbbbbb;
|
||||||
|
border-bottom:thin solid #bbbbbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* des lignes de separation entre les sections */
|
||||||
|
div#column-one form#searchform:after,
|
||||||
|
div#column-one ul:after {
|
||||||
|
content:url(../img/Separator.png);
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
margin:2px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sauf pour le dernier */
|
||||||
|
div#column-one ul#credits:after {
|
||||||
|
content: '';
|
||||||
|
}
|
||||||
|
|
||||||
|
/* style des liens */
|
||||||
|
div#column-one li a,
|
||||||
|
div#column-one li a:hover {
|
||||||
|
margin:2px;
|
||||||
|
text-decoration: none;
|
||||||
|
color:#777777;
|
||||||
|
}
|
||||||
|
div#column-one li a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#column-one li span.disabled {
|
||||||
|
margin:2px;
|
||||||
|
color:#999999;
|
||||||
|
}
|
||||||
|
div#column-one li span.disabled:before {
|
||||||
|
content:"/!\\ ";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* style des menus deroulants */
|
||||||
|
div#column-one select {
|
||||||
|
width:152px;
|
||||||
|
margin: 5px 0;
|
||||||
|
border: thin gray solid;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* divers */
|
||||||
|
#credits {
|
||||||
|
margin-bottom:0;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.88em;
|
||||||
|
}
|
||||||
|
#credits li { display: inline;}
|
||||||
|
div#p-logo {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* titres de sections */
|
||||||
|
div#column-one h5 {
|
||||||
|
margin:2px;
|
||||||
|
text-decoration:none;
|
||||||
|
font-size:1em;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* champ de recherche */
|
||||||
|
#searchinput {
|
||||||
|
padding: 2px 2px 2px 18px;
|
||||||
|
background: #fff url(../img/q.png) no-repeat 4px center;
|
||||||
|
width:132px;
|
||||||
|
font: 0.9em "Trebuchet MS", helvetica, sans-serif;
|
||||||
|
border:thin gray solid;
|
||||||
|
margin: 5px 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ********************************** DIVERS ********************************** */
|
||||||
|
#timings { display: none;}
|
||||||
|
|
||||||
|
/* ***************************** EDITEUR DE TEXTE ***************************** */
|
||||||
|
textarea {
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
#preview {
|
||||||
|
border: 1px solid #6C7680;
|
||||||
|
padding: .5em;
|
||||||
|
background: url(../img/draft.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* *********************************** DIFF *********************************** */
|
||||||
|
.diff {
|
||||||
|
width:99%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-header {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-title {
|
||||||
|
background-color: #C0C0C0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-added {
|
||||||
|
background-color: #E0FFE0;
|
||||||
|
vertical-align: sub;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-removed {
|
||||||
|
background-color: #FFFFE0;
|
||||||
|
vertical-align: sub;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-added span {
|
||||||
|
background-color: #80FF80;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-removed span {
|
||||||
|
background-color: #FFFF80;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ********************************* MESSAGES ********************************* */
|
||||||
|
#message {
|
||||||
|
clear: both;
|
||||||
|
margin: 0 170px 0 0;
|
||||||
|
padding: 5px 0px;
|
||||||
|
border-bottom: 1px solid #c9c9c9;
|
||||||
|
background: #E6EAF0;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#message p{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 10px 0 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#message div.buttons {
|
||||||
|
font-weight: lighter;
|
||||||
|
padding: 0 0 0 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Collection de hacks à la con pour IE */
|
||||||
|
@media screen {
|
||||||
|
/*
|
||||||
|
* html {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
/**/
|
||||||
|
/* * html body {
|
||||||
|
overflow-y: auto;
|
||||||
|
height: 100%;
|
||||||
|
//padding: 44px 160px 0 1em;
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
/**/
|
||||||
|
/* * html body {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
* html body #page {
|
||||||
|
overflow: auto;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**/
|
||||||
|
* html div#column-one {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
/**/
|
||||||
|
* html h1#title
|
||||||
|
{
|
||||||
|
position: absolute;
|
||||||
|
width: expression(document.body.clientWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
* html div.portlet, * html #editbar
|
||||||
|
{
|
||||||
|
padding-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
/**/
|
116
wiki-lenny/static/crans/css/movieclub.css
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
common.css - MoinMoin Style
|
||||||
|
|
||||||
|
Theme movieclub
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
/*<!-- BODY -->*/
|
||||||
|
body, html
|
||||||
|
{
|
||||||
|
background-color:black;
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*<!-- TITRE -->*/
|
||||||
|
h1#title
|
||||||
|
{
|
||||||
|
border-bottom: thin solid green;
|
||||||
|
background: url(../img/BarreVerte.png) repeat-x;
|
||||||
|
}
|
||||||
|
h1, h2, h3, h4, h5, h6 {border-color: green}
|
||||||
|
|
||||||
|
/*<!-- MENU DE DROITE -->*/
|
||||||
|
|
||||||
|
|
||||||
|
div#column-one {
|
||||||
|
/* couleurs */
|
||||||
|
background:#222222;
|
||||||
|
border-left:thin solid #bbbbbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#column-one li a {
|
||||||
|
color:#aaaaaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
div#content{
|
||||||
|
background-image: url("../img/fond_movieclub.png");
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
#message {
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-title, .diff-added, .diff-removed {
|
||||||
|
background-color: #444444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-added span {
|
||||||
|
background-color: #00CC00;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diff-removed span {
|
||||||
|
background-color: #AAAAAA;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
/* Links */
|
||||||
|
|
||||||
|
a {color: #5CFF5C;}
|
||||||
|
a:visited {color: #00FF00;}
|
||||||
|
a.nonexistent, a.badinterwiki {color: white;}
|
||||||
|
|
||||||
|
/* Headings */
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h1 a, h1 a:visited,
|
||||||
|
h2, h3, h4, h5, h6 {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Divers */
|
||||||
|
|
||||||
|
tt {font-size: 1.5em;}
|
||||||
|
|
||||||
|
strong.highlight
|
||||||
|
{
|
||||||
|
background-color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rcdaybreak td {
|
||||||
|
background: #BBBBBB;
|
||||||
|
}
|
||||||
|
.rcicon1, .rcicon2 {
|
||||||
|
background: #555555;
|
||||||
|
}
|
||||||
|
.rctime,
|
||||||
|
.rceditor,
|
||||||
|
.rccomment {
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tableOfContents {
|
||||||
|
border: 1px solid #;
|
||||||
|
background:#121212;
|
||||||
|
}
|
54
wiki-lenny/static/crans/css/print.css
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
/* print.css - MoinMoin Default Styles
|
||||||
|
|
||||||
|
Copyright (c) 2001, 2002, 2003 by Juergen Hermann
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* content styles */
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: Times, serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
/* Give about 3.4cm in Mozilla/Firefox and about 2.2cm in Safari */
|
||||||
|
margin: 1.5cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:visited, a.nonexistent, a.badinterwiki {
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.interwiki:before, a.badinterwiki:before {
|
||||||
|
content: attr(title) ":";
|
||||||
|
}
|
||||||
|
|
||||||
|
a.interwiki img, a.badinterwiki img {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footnotes div {
|
||||||
|
width: 5em;
|
||||||
|
border-top: 1pt solid gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* user interface styles */
|
||||||
|
|
||||||
|
#header, #sidebar, #footer, #timings, #credits, #column-one {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#titleBarre h1#title {
|
||||||
|
text-align: center;
|
||||||
|
border: thin black solid;
|
||||||
|
padding:3px;
|
||||||
|
}
|
90
wiki-lenny/static/crans/css/projection.css
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
/* projection.css - MoinMoin Slide Styles
|
||||||
|
|
||||||
|
Copyright (c) 2003 by Juergen Hermann
|
||||||
|
*/
|
||||||
|
@import url("crans.css");
|
||||||
|
/* @import url("screen.css"); */
|
||||||
|
|
||||||
|
html { line-height: 1.8em; }
|
||||||
|
|
||||||
|
#page {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
z-index: 1;
|
||||||
|
padding-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
body, b, em, a, span, div, p, td { font-size: 22pt; }
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 16pt;
|
||||||
|
margin: 0;
|
||||||
|
background: #81BBF2;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 32pt;
|
||||||
|
margin-top: 0.5em;
|
||||||
|
padding-left: 1em;
|
||||||
|
padding-right: 1em;
|
||||||
|
border-bottom: 4px solid blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 { font-size: 22pt; }
|
||||||
|
h4 { font-size: 20pt; }
|
||||||
|
h5 { font-size: 18pt; }
|
||||||
|
h6 { font-size: 16pt; }
|
||||||
|
tt,pre { font-size: 18pt; }
|
||||||
|
sup, sub { font-size: 14pt; }
|
||||||
|
|
||||||
|
|
||||||
|
#pageinfo {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#timings{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 0;
|
||||||
|
border-top: 1px dotted #808080;
|
||||||
|
color: #808080;
|
||||||
|
font-size: 10pt;
|
||||||
|
z-index: 2;
|
||||||
|
background: White;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation ul {
|
||||||
|
margin: 8pt;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation li {
|
||||||
|
display: inline;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 2pt;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigation li.current {
|
||||||
|
border: 1pt solid #808080;
|
||||||
|
padding: 2pt 4pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.codenumbers{
|
||||||
|
display: None;
|
||||||
|
}
|
202
wiki-lenny/static/crans/css/rtl.css
Normal file
|
@ -0,0 +1,202 @@
|
||||||
|
/*
|
||||||
|
Right-to-left fixes for MonoBook.
|
||||||
|
Places sidebar on right, tweaks various alignment issues.
|
||||||
|
|
||||||
|
Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
|
||||||
|
|
||||||
|
Safari bugs (1.2.1):
|
||||||
|
* Tabs are still appearing in left-to-right order. (Try after localizing)
|
||||||
|
|
||||||
|
Opera bugs (7.23 linux):
|
||||||
|
* Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
|
||||||
|
|
||||||
|
IE/mac bugs:
|
||||||
|
* The thing barfs on Hebrew and Arabic anyway, so no point testing.
|
||||||
|
|
||||||
|
Missing features due to lack of support:
|
||||||
|
* external link icons, icon next to user name
|
||||||
|
|
||||||
|
To test:
|
||||||
|
* Opera6
|
||||||
|
* IE 5.0
|
||||||
|
* etc
|
||||||
|
|
||||||
|
*/
|
||||||
|
body,
|
||||||
|
body * {
|
||||||
|
direction: rtl;
|
||||||
|
/* unicode-bidi: bidi-override;*/
|
||||||
|
unicode-bidi: embed;
|
||||||
|
}
|
||||||
|
#column-content {
|
||||||
|
margin: 0 -12.2em 0 0;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
#column-content #page{
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 12.2em;
|
||||||
|
border-right: 1px solid #aaaaaa;
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
html>body .portlet {
|
||||||
|
float: right;
|
||||||
|
clear: right;
|
||||||
|
}
|
||||||
|
/* recover IEMac (might be fine with the float, but usually it's close to IE */
|
||||||
|
*>body .portlet {
|
||||||
|
float: none;
|
||||||
|
clear: none;
|
||||||
|
}
|
||||||
|
.pBody {
|
||||||
|
padding-right: 0.8em;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fix alignment */
|
||||||
|
.documentByLine,
|
||||||
|
.portletDetails,
|
||||||
|
.portletMore,
|
||||||
|
#p-personal {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
div div.thumbcaption {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.magnify,
|
||||||
|
#div.townBox,
|
||||||
|
#p-logo {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
#p-personal {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#p-cactions {
|
||||||
|
left: auto;
|
||||||
|
right: 11.5em;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
|
#p-cactions li {
|
||||||
|
margin-left: 0.3em;
|
||||||
|
margin-right: 0;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
* html #p-cactions li a {
|
||||||
|
display: block;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
* html #p-cactions li a:hover {
|
||||||
|
padding-bottom: 0.2em;
|
||||||
|
}
|
||||||
|
/* offsets to distinguish the tab groups */
|
||||||
|
li#ca-talk {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: 1.6em;
|
||||||
|
}
|
||||||
|
li#ca-watch,li#ca-unwatch {
|
||||||
|
margin-right: 1.6em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fix margins */
|
||||||
|
/* top right bottom left */
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 1.5em;
|
||||||
|
}
|
||||||
|
ol {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 2.4em;
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 1.6em;
|
||||||
|
}
|
||||||
|
#contentSub {
|
||||||
|
margin-right: 1em;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.tocindent {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 2em;
|
||||||
|
}
|
||||||
|
div.tright {
|
||||||
|
clear: none;
|
||||||
|
}
|
||||||
|
div.tleft {
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
div.floatright, table.floatright {
|
||||||
|
clear: none;
|
||||||
|
}
|
||||||
|
div.floatleft, table.floatleft {
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
div.townBox {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
div.townBox dl dd {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 1.1em;
|
||||||
|
}
|
||||||
|
#p-personal li {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
li#ca-talk,
|
||||||
|
li#ca-watch {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: 1.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#p-personal li {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
/* Fix link icons */
|
||||||
|
li#pt-userpage,
|
||||||
|
li#pt-anonuserpage,
|
||||||
|
li#pt-login {
|
||||||
|
background: none;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.external {
|
||||||
|
padding: 0 !important;
|
||||||
|
background: none !important;
|
||||||
|
}
|
||||||
|
#footer {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
* html #footer {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 13.6em;
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 1px solid #fabd23;
|
||||||
|
}
|
||||||
|
* html #column-content {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
* html #column-content #content {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 3em;
|
||||||
|
}
|
||||||
|
* html #column-one { right: 0; }
|
||||||
|
|
||||||
|
/* js pref toc */
|
||||||
|
#preftoc { float: right; }
|
||||||
|
/* workaround for moz bug, displayed bullets on left side */
|
||||||
|
#preftoc li { list-style: none; }
|
||||||
|
#prefcontrol { float: right; }
|
||||||
|
fieldset.prefsection,
|
||||||
|
fieldset.operaprefsection {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
margin-right: 15em;
|
||||||
|
}
|
86
wiki-lenny/static/crans/js/crans.js
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
/*************************************************************
|
||||||
|
..
|
||||||
|
.... ............ ........
|
||||||
|
. ....... . .... ..
|
||||||
|
. ... .. .. .. .. ..... . ..
|
||||||
|
.. .. ....@@@. .. . ........ .
|
||||||
|
.. . .. ..@.@@..@@. .@@@@@@@ @@@@@@. ....
|
||||||
|
.@@@@. .@@@@. .@@@@..@@.@@..@@@..@@@..@@@@.... ....
|
||||||
|
@@@@... .@@@.. @@ @@ .@..@@..@@...@@@. .@@@@@. ..
|
||||||
|
.@@@.. . @@@. @@.@@..@@.@@..@@@ @@ .@@@@@@.. .....
|
||||||
|
...@@@.... @@@ .@@.......... ........ ..... ..
|
||||||
|
. ..@@@@.. . .@@@@. .. ....... . .............
|
||||||
|
. .. .... .. .. . ... ....
|
||||||
|
. . .... ............. .. ...
|
||||||
|
.. .. ... ........ ... ...
|
||||||
|
................................
|
||||||
|
|
||||||
|
==============================================================
|
||||||
|
crans.js - MoinMoin Script
|
||||||
|
|
||||||
|
Permet d'ameliorer l'interface du theme crans
|
||||||
|
|
||||||
|
Copyright (c) 2006 by www.crans.org
|
||||||
|
|
||||||
|
**************************************************************/
|
||||||
|
|
||||||
|
/***********************************
|
||||||
|
* Fonction diverses utilisées par la suite
|
||||||
|
*/
|
||||||
|
addResizeEvent = function (event) {
|
||||||
|
var oldonresize = window.onresize || document.documentElement.onresize;
|
||||||
|
if (typeof oldonresize != 'function') {
|
||||||
|
window.onresize = document.documentElement.onresize = event;
|
||||||
|
} else {
|
||||||
|
window.onresize = document.documentElement.onresize = function() {
|
||||||
|
oldonresize();
|
||||||
|
event();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************
|
||||||
|
* Module pour que la barre de gauche scroll
|
||||||
|
* avec le contenu (de façon asynchrone)
|
||||||
|
*/
|
||||||
|
scroller = {};
|
||||||
|
scroller.element_id = "column-one";
|
||||||
|
// a utiliser si on vent considérer le scroll d'un element special
|
||||||
|
// et non de la fenetre en entier
|
||||||
|
//scroller.scrollElement_id = PageOverflow.PAGE_ID;
|
||||||
|
scroller.min_top = 41;
|
||||||
|
scroller.setMenuOffset = function()
|
||||||
|
{
|
||||||
|
var element = document.getElementById(scroller.element_id);
|
||||||
|
if (!element) return;
|
||||||
|
element.style.position = "fixed";
|
||||||
|
var currentWindowHeight = document.documentElement.clientHeight;
|
||||||
|
/* on considèrs le scroll du document entier
|
||||||
|
* oucelui d'un element en particulier
|
||||||
|
*/
|
||||||
|
var currentScroll = document.documentElement.scrollTop || document.body.scrollTop; // body for Safari
|
||||||
|
//var scrollElement = document.getElementById(scroller.scrollElement_id);
|
||||||
|
//var currentScroll = scrollElement.scrollTop;
|
||||||
|
var currentElementHeight = element.clientHeight;
|
||||||
|
var startPosition = scroller.min_top;
|
||||||
|
if (currentWindowHeight > currentElementHeight + startPosition) {
|
||||||
|
element.style.top = startPosition + 'px';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var desiredPosition = startPosition - currentScroll ;
|
||||||
|
if (desiredPosition < currentWindowHeight - currentElementHeight)
|
||||||
|
desiredPosition = currentWindowHeight - currentElementHeight;
|
||||||
|
element.style.top = desiredPosition + 'px';
|
||||||
|
}
|
||||||
|
|
||||||
|
scroller.init = function () {
|
||||||
|
/* on considèrs le scroll du document entier
|
||||||
|
* ou celui d'un element en particulier
|
||||||
|
*/
|
||||||
|
window.onscroll = document.documentElement.onscroll = scroller.setMenuOffset;
|
||||||
|
//var scrollElement = document.getElementById(scroller.scrollElement_id);
|
||||||
|
//scrollElement.onscroll = scroller.setMenuOffset;
|
||||||
|
addResizeEvent(scroller.setMenuOffset);
|
||||||
|
scroller.setMenuOffset();
|
||||||
|
}
|
||||||
|
addLoadEvent(scroller.init);
|
35
wiki-lenny/static/crans/js/cranswiki.js
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
|
||||||
|
var menu_element_id = "column-one";
|
||||||
|
var menu_min_top = 41;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function setMenuOffset()
|
||||||
|
{
|
||||||
|
|
||||||
|
var element = document.getElementById(menu_element_id);
|
||||||
|
if (!header) return;
|
||||||
|
var currentOffset = document.documentElement.scrollTop || document.body.scrollTop; // body for Safari
|
||||||
|
var startPos = parseInt(setMenuOffset.initialPos) || menu_min_top;
|
||||||
|
var desiredOffset = startPos - currentOffset;
|
||||||
|
if (desiredOffset < 10)
|
||||||
|
desiredOffset = 10;
|
||||||
|
if (desiredOffset != parseInt(header.style.top))
|
||||||
|
element.style.top = desiredOffset + 'px';
|
||||||
|
|
||||||
|
// var currentLeftOffset = document.documentElement.scrollLeft || document.body.scrollLeft; // body for Safari
|
||||||
|
// if (currentLeftOffset != - parseInt(header.style.left))
|
||||||
|
// header.style.left = '-' + currentLeftOffset + 'px';
|
||||||
|
}
|
||||||
|
|
||||||
|
window.onload = function () {
|
||||||
|
|
||||||
|
/* See if browser supports advanced interface */
|
||||||
|
|
||||||
|
var advancedJavaScriptSupport = document.createElement && document.getElementsByTagName && createXMLHTTPObject();
|
||||||
|
if (!advancedJavaScriptSupport) return;
|
||||||
|
|
||||||
|
/* Load advanced interface */
|
||||||
|
setMenuOffset.initialPos = getStyle(menu_element_id,'top');
|
||||||
|
window.onscroll = document.documentElement.onscroll = setMenuOffset;
|
||||||
|
}
|
69
wiki-lenny/static/crans/js/scroller.js
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
scroller =
|
||||||
|
{
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
|
scroller.element_id = "column-one";
|
||||||
|
scroller.min_top = 41;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
scroller.setMenuOffset = function()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var element = document.getElementById(scroller.element_id);
|
||||||
|
if (!element) return;
|
||||||
|
element.style.position = "fixed";
|
||||||
|
var currentWindowHeight = document.documentElement.clientHeight;
|
||||||
|
var currentScroll = document.documentElement.scrollTop || document.body.scrollTop; // body for Safari
|
||||||
|
var currentElementHeight = element.clientHeight;
|
||||||
|
|
||||||
|
var startPosition = scroller.min_top;
|
||||||
|
|
||||||
|
if (currentWindowHeight > currentElementHeight + startPosition)
|
||||||
|
{
|
||||||
|
|
||||||
|
element.style.top = startPosition + 'px';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var desiredPosition = startPosition - currentScroll ;
|
||||||
|
if (desiredPosition < currentWindowHeight - currentElementHeight)
|
||||||
|
desiredPosition = currentWindowHeight - currentElementHeight;
|
||||||
|
element.style.top = desiredPosition + 'px';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
scroller.init = function ()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/* See if browser supports advanced interface */
|
||||||
|
|
||||||
|
//var advancedJavaScriptSupport = document.createElement && document.getElementsByTagName && createXMLHTTPObject();
|
||||||
|
//if (!advancedJavaScriptSupport) return;
|
||||||
|
|
||||||
|
/* Load advanced interface */
|
||||||
|
window.onscroll = document.documentElement.onscroll = scroller.setMenuOffset;
|
||||||
|
scroller.setMenuOffset();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// use this instead of assigning to window.onload directly:
|
||||||
|
function addLoadEvent(func) {
|
||||||
|
// alert("addLoadEvent " + func)
|
||||||
|
var oldonload = window.onload;
|
||||||
|
if (typeof window.onload != 'function') {
|
||||||
|
window.onload = func;
|
||||||
|
} else {
|
||||||
|
window.onload = function() {
|
||||||
|
oldonload();
|
||||||
|
func();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
addLoadEvent(scroller.init);
|
BIN
wiki-lenny/static/favicon.ico
Normal file
After Width: | Height: | Size: 1.7 KiB |
12
wiki-lenny/static/index.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0;URL=moin.cgi/">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000">
|
||||||
|
Click <a href="moin.cgi">here</a> to get to the FrontPage.
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
13
wiki-lenny/static/robots.txt
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# if you want to add own robot rules, do it BEFORE the final rule matching *
|
||||||
|
|
||||||
|
User-agent: *
|
||||||
|
Crawl-delay: 20
|
||||||
|
# This has to match script url + cfg.url_prefix_action - it
|
||||||
|
# saves lots of search engine load and traffic by disallowing crawlers
|
||||||
|
# to request action related URLs.
|
||||||
|
#
|
||||||
|
# NOTE - in order to make this have any effect, you have to set
|
||||||
|
# url_prefix_action to "action", cf. HelpOnConfiguration
|
||||||
|
|
||||||
|
Disallow: /action/
|
||||||
|
|