Blame view
demo/Demo.html
12.5 KB
33afad1d3
![]() |
1 2 3 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> |
2bcae7c85
![]() |
4 5 6 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Demo</title> <meta name='Generator' content='Zim 0.68-rc1'> |
33afad1d3
![]() |
7 |
<link rel="stylesheet" |
2bcae7c85
![]() |
8 |
href="./Demo_files/_resources/common/zim-variables.css" > |
33afad1d3
![]() |
9 |
<link rel="stylesheet" |
2bcae7c85
![]() |
10 |
href="./Demo_files/_resources/common/zim-style.css" > |
33afad1d3
![]() |
11 |
<link rel="stylesheet" |
2bcae7c85
![]() |
12 |
href="./Demo_files/_resources/common/zim-table-style.css" > |
33afad1d3
![]() |
13 |
<link rel="stylesheet" |
2bcae7c85
![]() |
14 15 16 |
href="./Demo_files/_resources/common/zim-special.css" > <link rel="stylesheet" href="./Demo_files/_resources/common/zim-hljs.css" > |
33afad1d3
![]() |
17 18 |
<style type='text/css'> |
2bcae7c85
![]() |
19 |
* { font-family: sans-serif } |
33afad1d3
![]() |
20 |
|
2bcae7c85
![]() |
21 |
a:hover { text-decoration: underline; } |
33afad1d3
![]() |
22 23 24 25 26 27 |
/* Centre les images mais elles sont coupées aux sauts de page à l'impression */ img { display: block; margin-left: auto; margin-right: auto; |
2bcae7c85
![]() |
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
} /* Specifique au with index */ span.insen { color: grey } .pages { /*max-width: 1000px;*/ /*padding-left: 320px;*/ width: inherit; transition: margin-left .3s; background: white; padding-left: 10px; padding-right: 10px; padding-bottom: 20px; padding-top: 10px; } .menu{ /*float:left; */ width: 0; color:var(--main-header-color); overflow-x: hidden; position: absolute; transition:.3s; background: var(--main-menu-background-color); border-style: solid; border-width: 1px; margin-left:-20px; } .menu a,.menu a:link,.menu a:hover,.menu a:active,.menu a:visited { color: var(--main-header-color); } .menuOpen { /*display: block;*/ } .menuClosed { border-style: unset; } .header{ max-width: 63em; position: fixed; width: 100%; top:0; background:white; z-index: 1; } hr{ clear:both; border-style: solid; border-width: 1px; border-color: var(--main-header-color); } body { max-width:63em; display:block; margin-left:auto; margin-right:auto; background: var(--main-body-background-color); } .intercalaire { background:white; margin-top: 48px; padding: 10px; } .bold-footer { color: var(--main-header-color); } </style> |
33afad1d3
![]() |
105 |
|
2bcae7c85
![]() |
106 107 108 109 |
<!-- Themes clair : atom-one-light.css, vs.css googlecode.css github.css qtcreator_light.css Themes sombres : |
33afad1d3
![]() |
110 111 112 113 |
agate.css vs2015.css atom-one-dark.css hybrid.css ir-black.css sunburst.css tomorrow-night-bright.css qtcreator_dark.css Demo live : https://highlightjs.org/static/demo/ --> |
2bcae7c85
![]() |
114 115 116 |
<link rel="stylesheet" href="./Demo_files/_resources/common/hljs/styles/sunburst.css" > |
33afad1d3
![]() |
117 |
<!-- hljs --> |
2bcae7c85
![]() |
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
<script src="./Demo_files/_resources/common/hljs/highlight.pack.js"></script> <script> function openNav() { if (document.getElementById("mySidenav").getAttribute("class").split(' ')[1] == "menuClosed") { document.getElementById("mySidenav").style.width = "300px"; /*document.getElementById("main").style.marginLeft = "300px";*/ document.getElementById("mySidenav").setAttribute("class","menu menuOpen"); /* Scroll to top when opening menu */ document.body.scrollTop = 0 document.documentElement.scrollTop = 0; } else { document.getElementById("mySidenav").style.width = "0"; /*document.getElementById("main").style.marginLeft = "0";*/ document.getElementById("mySidenav").setAttribute("class","menu menuClosed"); } } </script> |
33afad1d3
![]() |
136 137 138 139 140 |
</head> <body> <!-- Header --> <div class='header'> |
2bcae7c85
![]() |
141 |
<table class='navigation' style="float:left"> |
33afad1d3
![]() |
142 |
<tr class='navigation'> |
2bcae7c85
![]() |
143 144 145 |
<td class='navigation'> <span style="font-size:30px;cursor:pointer;color: var(--main-header-color);" onclick="openNav()">☰</span> </td> |
33afad1d3
![]() |
146 147 148 149 150 151 152 153 154 155 156 |
<td class='navigation'> <img src="./Demo_files/_resources/common/arrow-left-inact.png" alt="Préc." title="Préc."> </td> <td class='navigation'> <img src="./Demo_files/_resources/common/arrow-up-inact.png" alt="Index" title="Index"> </td> <td class='navigation'> <img src="./Demo_files/_resources/common/arrow-right-inact.png" alt="Suivant" title="Suivant"> </td> </tr> </table> |
2bcae7c85
![]() |
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
<span> <a name='Tests:Demo'></a> <h1 style="display:inline-block;margin-left:20px;margin-top:5px;"> Demo</h1> </span> <table class='navigation' style="float:right;margin-right:10px;"> <tr class='navigation'> <td class='navigation'> <a href="#backlinks"> <img src='./Demo_files/_resources/common/backlink.png' alt='Rétroliens' title='Rétroliens'> </a> </td> <td class='navigation'> <a href="#attach"> <img src='./Demo_files/_resources/common/attachment.png' alt='Fichiers liés' title='Fichiers liés'> </a> </td> </tr> </table> |
33afad1d3
![]() |
179 |
</div> |
2bcae7c85
![]() |
180 |
<div class="intercalaire"> |
33afad1d3
![]() |
181 |
<hr /> |
2bcae7c85
![]() |
182 |
</div> |
33afad1d3
![]() |
183 |
|
2bcae7c85
![]() |
184 185 186 187 |
<div id="mySidenav" class="menu menuClosed"> <ul> <li><b>Demo</b></li> </ul> |
33afad1d3
![]() |
188 |
|
2bcae7c85
![]() |
189 190 191 |
</div> <!-- Wiki content --> |
33afad1d3
![]() |
192 |
|
2bcae7c85
![]() |
193 194 195 196 197 198 199 200 |
<div id="main" class='pages'> <!-- <div class='heading'> <h1>Demo <a name='Tests:Demo'></a></h1> </div> --> <div class='content'> <p> |
33afad1d3
![]() |
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
Créée le mardi 01 octobre 2019 </p> <h1>Headers</h1> <p> Appliqué sur : zim, htmlexport, print<br> Les headers sont décalés pour une meilleure visibilité du niveau de section où on se trouve </p> <h1>Header H1</h1> <br> <h2>Header H2</h2> <br> <h3>Header H3</h3> <br> <h4>Header H4</h4> <br> <h5>Header H5</h5> <br> <h1>Souligné</h1> <p> Appliqué sur : zim, htmlexport, print </p> <p> Les <u>textes</u> soulignés sont soulignés et non surlignés. </p> <h1>Verbatim</h1> <p> Appliqué sur : zim, htmlexport, print<br> Pour bien le mettre en évidence, le verbatim <tt>inline</tt> est coloré en darkmagenta. </p> <pre> Tout comme le bloc verbatim </pre> |
33afad1d3
![]() |
252 253 254 |
<p> A noter que le bloc verbatim est indenté, zim fait la différence par le fait de sélectionner plusieurs lignes avant d'appliquer le style (<Ctrl>T). </p> |
2bcae7c85
![]() |
255 256 257 |
<p> Les textes barrés sont en fait surlignés. </p> |
33afad1d3
![]() |
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
<h1>Tableaux</h1> <p> Appliqué sur : htmlexport, print </p> <p> Les tableaux dans zim ne sont vraiment pas terribles, mais on peut avoir quelquechose de sympa une fois exportés. </p> <table> <thead><tr> <th align="left">Prénom</th> <th align="left">Nom</th> <th align="left">email</th> <th align="left">Couleur préférée</th> </tr></thead> <tr> <td align="left">Joe</td> <td align="left">Smith</td> <td align="left"><a href="mailto:joe.smith@here.com" title="joe.smith@here.com" class="mailto">joe.smith@here.com</a></td> <td align="left">Orange</td> </tr> <tr> <td align="left">Marcel</td> <td align="left">Dupont</td> <td align="left"><a href="mailto:marcel.dupont@nothere.com" title="marcel.dupont@nothere.com" class="mailto">marcel.dupont@nothere.com</a></td> <td align="left">Bleu</td> </tr> <tr> <td align="left">Nathalie</td> <td align="left">Charpentier</td> <td align="left"><a href="mailto:nathalie.charpentier@lasbas.com" title="nathalie.charpentier@lasbas.com" class="mailto">nathalie.charpentier@lasbas.com</a></td> <td align="left">Vert</td> </tr> <tr> <td align="left">Electra</td> <td align="left">Cigales</td> <td align="left"><a href="mailto:electra.cigales@nowhere.com" title="electra.cigales@nowhere.com" class="mailto">electra.cigales@nowhere.com</a></td> <td align="left">Rouge</td> </tr> </table> <br> |
2bcae7c85
![]() |
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
<p> En pratique, les tableaux dans le "source" zim sont des tableaux avec la syntaxe "MarkDown", le tableau ci-dessus a comme source : </p> <pre> | Prénom | Nom | email | Couleur préférée | |:---------|:------------|:--------------------------------|:-----------------| | Joe | Smith | joe.smith@here.com | Orange | | Marcel | Dupont | marcel.dupont@nothere.com | Bleu | | Nathalie | Charpentier | nathalie.charpentier@lasbas.com | Vert | | Electra | Cigales | electra.cigales@nowhere.com | Rouge | </pre> <br> <p> On peux très bien écrire directement ces caractères (en texte normal, pas verbatim) puis taper <tt><Ctrl>R</tt>, indiquant à zim de réinterpréter le document, le tableau apparaitra alors comme ci-dessus. </p> <p> L'interet de cette information est que par conséquent on peut utiliser un générateur de tableaux comme l'excellent <a href="https://www.tablesgenerator.com/" title="https://www.tablesgenerator.com/" class="https">https://www.tablesgenerator.com/</a> qui permet de générer des tableaux LaTeX, HTML ou MarkDown, puis coller le tableau et actualiser. </p> |
33afad1d3
![]() |
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
<h1>Images</h1> <p> Appliqué sur : htmlexport </p> <p> <img src="./Demo_files/tournesol.jpeg"> </p> <p> Lors de l'export html, les images sont centrées, c'est plus beau. Elles ne le sont pas lors du print parcequ'en effet secondaire, les images peuvent être coupées à l'impression. </p> <h1>Coloration syntaxique</h1> <p> Appliqué sur : htmlexport, print </p> <p> Il s'agit des bloc de code insérés dans zim avec le plugin adéquat. </p> <p> Un exemple en C++ </p> <div class="zim-object"> <pre><code class="cpp">#include <iostream> int main(int argc, char *argv[]) { /* An annoying "Hello World" example */ for (auto i = 0; i < 0xFFFF; i++) cout << "Hello, World!" << endl; char c = ' '; unordered_map <string, vector<string> > m; m["key"] = "\\\\"; // this is an error return -2e3 + 12l; } </code></pre> </div> <br> <p> Un exemple en Python </p> <div class="zim-object"> <pre><code class="python">@requires_authorization def somefunc(param1='', param2=0): r'''A docstring''' if param1 > param2: # interesting print 'Gre\'ater' return (param2 - param1 + 1 + 0b10l) or None class SomeClass: pass >>> message = '''interpreter ... prompt''' </code></pre> </div> <br> <p> Un exemple en Ruby </p> <div class="zim-object"> <pre><code class="ruby"># The Greeter class class Greeter def initialize(name) @name = name.capitalize end def salute puts "Hello #{@name}!" end end g = Greeter.new("world") g.salute </code></pre> </div> <p> la coloration syntaxique est appliquée avec un thème sombre lors de l'export et avec thème clair lors du print. </p> <h1>Police</h1> <p> Appliqué sur : htmlexport, print </p> <p> Comme il est recommandé d'avoir une police sans empattement suur un écran et inversement avec empattement sur papier, lors de l'export html, la police est "sans serif" et lors du print, la police est "serif". </p> <h1>Navigation</h1> <p> Appliqué sur : htmlexport </p> <p> |
2bcae7c85
![]() |
432 |
<img src="./Demo_files/zim_navigation_3.png"> |
33afad1d3
![]() |
433 434 435 |
</p> <p> |
2bcae7c85
![]() |
436 437 438 439 440 441 |
<ul> <li>Les textes de navigation sont remplacés par des icônes représentant des flèches, le texte apparaît néanmoins lors d'un survol du pointeur de la souris.</li> </ul> Le titre de la page est reporté en en-tête.<br> Dans le cas de l'export avec index, un clic sur le bouton de menu ≡ affiche ou referme l'index navigable des pages.<br> Sur la droite de la barre supérieure, une icône renvoie sur les rétroliens, et une autre vers les fichiers liés. Ces icônes ne sont présentes que s'il y a effectivement des rétroliens ou des fichiers liés. |
33afad1d3
![]() |
442 443 444 445 |
</p> <br> <br> |
2bcae7c85
![]() |
446 447 448 449 450 451 452 |
<br> <br> <br> <br> </div> |
33afad1d3
![]() |
453 |
|
2bcae7c85
![]() |
454 455 456 457 458 |
<br /> <div style="padding-bottom:10px;"> <hr /> </div> |
33afad1d3
![]() |
459 |
|
2bcae7c85
![]() |
460 461 462 |
<div class='page-footer'> <a name="backlinks"></a> <b class="bold-footer">Rétroliens</b> |
33afad1d3
![]() |
463 |
|
2bcae7c85
![]() |
464 |
<a href=''>Tests</a> |
33afad1d3
![]() |
465 |
|
2bcae7c85
![]() |
466 |
<br /><br /> |
33afad1d3
![]() |
467 |
|
2bcae7c85
![]() |
468 469 470 |
<a name="attach"></a> <b class="bold-footer">Fichiers liés</b> <table> |
33afad1d3
![]() |
471 |
|
2bcae7c85
![]() |
472 |
<tr><td><a href='./Demo_files/tournesol.jpeg'>tournesol.jpeg</a></td><td> </td><td>16.0kb</td></tr> |
33afad1d3
![]() |
473 |
|
2bcae7c85
![]() |
474 |
<tr><td><a href='./Demo_files/zim_navigation_3.png'>zim_navigation_3.png</a></td><td> </td><td>17.2kb</td></tr> |
33afad1d3
![]() |
475 |
|
2bcae7c85
![]() |
476 477 |
</table> </div> |
33afad1d3
![]() |
478 |
|
2bcae7c85
![]() |
479 |
|
33afad1d3
![]() |
480 481 482 483 484 485 486 487 |
</div> <script src="./Demo_files/_resources/common/go-hljs.js"></script> </body> </html> |