Commit | Line | Data |
---|---|---|
e586807d H |
1 | <!-- |
2 | This program is free software. It comes without any warranty, to | |
3 | the extent permitted by applicable law. You can redistribute it | |
4 | and/or modify it under the terms of the Do What The Fuck You Want | |
5 | To Public License, Version 2, as published by Sam Hocevar. See | |
6 | http://sam.zoy.org/wtfpl/COPYING for more details. | |
7 | --> | |
8 | ||
9 | {include file="modules/header.tpl"} | |
10 | ||
11 | ||
12 | <br><br><br> | |
13 | ||
14 | {assign var="cislo" value="450"} | |
15 | ||
16 | <div style="margin-left:100px; background:#555; height:{$cislo}px; width:{math equation="((sqrt(5) + 1)/2)*x" x=$cislo}px; position: relative;"> | |
17 | <div style="width:{$cislo}px; height:{$cislo}px; background:#111; float:left;"></div> | |
18 | <div style="width:{math equation="(((sqrt(5) + 1)/2)*x) - x" x=$cislo}px; height:{math equation="(((sqrt(5) + 1)/2)*x) - x" x=$cislo}px; background:#222; float:right;"></div> | |
19 | <div style="width:{math equation="x - ((((sqrt(5) + 1)/2)*x) - x)" x=$cislo}px; height:{math equation="x - ((((sqrt(5) + 1)/2)*x) - x)" x=$cislo}px; background:#333; float:right;"></div> | |
20 | <div style="width:{math equation="((((sqrt(5) + 1)/2)*x) - x) - (x - ((((sqrt(5) + 1)/2)*x) - x))" x=$cislo}px; height:{math equation="((((sqrt(5) + 1)/2)*x) - x) - (x - ((((sqrt(5) + 1)/2)*x) - x))" x=$cislo}px; background:#444; position:absolute; top: {math equation="x - (((((sqrt(5) + 1)/2)*x) - x) - (x - ((((sqrt(5) + 1)/2)*x) - x)))" x=$cislo}px; left:{$cislo}px;"></div> | |
21 | </div> | |
22 | ||
23 | <br><br> | |
24 | ||
25 | ||
26 | <b>source::</b><br> | |
27 | {literal} | |
28 | ||
29 | {assign var="cislo" value="450"}<br> | |
30 | <br> | |
31 | <div style="margin-left:100px; background:#555; height:{$cislo}px; width:{math equation="((sqrt(5) + 1)/2)*x" x=$cislo}px; position: relative;"> | |
32 | <br> <div style="width:{$cislo}px; height:{$cislo}px; background:#111; float:left;"></div> | |
33 | <br> <div style="width:{math equation="(((sqrt(5) + 1)/2)*x) - x" x=$cislo}px; height:{math equation="(((sqrt(5) + 1)/2)*x) - x" x=$cislo}px; background:#222; float:right;"></div> | |
34 | <br> <div style="width:{math equation="x - ((((sqrt(5) + 1)/2)*x) - x)" x=$cislo}px; height:{math equation="x - ((((sqrt(5) + 1)/2)*x) - x)" x=$cislo}px; background:#333; float:right;"></div> | |
35 | <br> <div style="width:{math equation="((((sqrt(5) + 1)/2)*x) - x) - (x - ((((sqrt(5) + 1)/2)*x) - x))" x=$cislo}px; height:{math equation="((((sqrt(5) + 1)/2)*x) - x) - (x - ((((sqrt(5) + 1)/2)*x) - x))" x=$cislo}px; background:#444; position:absolute; top: {math equation="x - (((((sqrt(5) + 1)/2)*x) - x) - (x - ((((sqrt(5) + 1)/2)*x) - x)))" x=$cislo}px; left:{$cislo}px;"></div><br> | |
36 | </div> | |
37 | ||
38 | {/literal} | |
39 | ||
40 | ||
41 |