λ-wiki
::
include
+
| 1 |
help
|
pages
|
skin
|
login
|
code
www!k! v.20120610
! CE SITE NECESSITE JAVASCRIPT !
λ-wiki :: éditeur
{div {@ id:titre; background:black; text-shadow: 2px 2px 2px white; text-align:center; font-size:5em; line-height:0.5em; color:grey;} include} {div {@ id:left; float:left; width:48%; border:1px solid grey; padding:5px; text-align:center;} {canvas {@ id:canvas; width:330; height:330; } } } {div {@ id:right; float:right; width:48%;} {p It's possible to write JS code in a different page [[scripts.js]] and to include it in an other page.} {pre {@ id:code1; } °° includeJS( 'scripts.js' ); °°} {pre {@ id:code2; } °° $('canvas').innerHTML = draw(); $('titre').style.color = 'red'; $('right').style.background = 'cyan'; $('left').style.boxShadow = '0 0 4px black'; °°} {p {submit {@ code:code1; value:include;} } then {submit {@ code:code2; value:apply;} }} }