\r
$backgrounds = array();\r
// $backgrounds[] = array('image' => '/images/exemples/publications/shadow.png', 'size' => '100% 10%', 'position' => '0 95%', 'blendmode' => null);\r
- $backgrounds[] = array('image' => $left['url'], 'size' => '50% 100%', 'position' => '0 0', 'blendmode' => null);\r
+ $backgrounds[] = array('image' => $left['url'], 'size' => '50% 100%', 'position' => '0 0', 'blendmode' => 'normal');\r
$backgrounds[] = array('image' => $right['url'], 'size' => '50% 100%', 'position' => '100% 0', 'blendmode' => 'normal');\r
- $backgrounds[] = array('image' => '/images/exemples/publications/light.png', 'size' => '30% 100%', 'position' => '50% 0', 'blendmode' => 'overlay');\r
+ $backgrounds[] = array('image' => '/images/exemples/publications/light.png', 'size' => '30% 100%', 'position' => '50% 0', 'blendmode' => 'soft-light');\r
$backgrounds[] = array('image' => '/images/exemples/publications/dark.png', 'size' => '20% 100%', 'position' => '50% 0', 'blendmode' => 'multiply');\r
\r
\r
\r
var s = Math.min(cw / w, ch / h);\r
\r
+ var ratio = w / h;\r
+\r
w *= s;\r
- h *= s;\r
+ w = Math.round(w / 2) * 2;\r
+ h = w / ratio;\r
\r
var left = ((cw / 0.8) - w) / 2;\r
\r
\r
- $(this).css({width: w, height: h, left: left,fontSize:(w/600)*10});\r
+ $(this).css({width: w, height: h, left: left, fontSize: (w / 600) * 10});\r
});\r
}\r