'js/libs/jquery/jquery.hashchange.js',
'js/tester.js'
);
+ protected static $widgetJsFiles = array(
+ 'js/libs/cube/fb.js',
+ 'js/libs/modernizr.js',
+ 'js/libs/jquery/jquery.js',
+ 'js/widget.js'
+ );
protected $cssX = array();
protected $cssY = array();
protected $cssWidths = array();
file_put_contents($this->vdir . '/index.html', $html);
file_put_contents($this->vdir . '/indexu.html', $uhtml);
file_put_contents($this->vdir . '/indext.html', $uhtml);
+
+ // Write widget html
+ $whtml = file_get_contents(WS_COMPILE_ASSETS . '/_html5/widget.html');
+ $scripts = array();
+ foreach (self::$widgetJsFiles as $js) {
+ $scripts[] = '<script type="text/javascript" src="' . $js . '"></script>';
+ }
+ $scripts[] = '<script type="text/javascript" src="data/datas.js"></script>';
+ $script = implode("\n\t\t", $scripts);
+
+ $style = '<link type="text/css" rel="stylesheet" href="style/widget.css">';
+ $vars = array('titre', 'style', 'script');
+ foreach ($vars as $v) {
+ $whtml = str_replace('<!-- $' . $v . ' -->', $$v, $whtml);
+ }
+ file_put_contents($this->vdir . '/widget.html', $whtml);
}
protected function writeLangs() {
}
protected function writeJs() {
-
-
$mintime = 0;
$minimized = WS_COMPILE_ASSETS . '/_html5/js/min.js';
if (file_exists($minimized)) {