$viewers = array('viewer' => array('title' => __('Version Flash'), 'icon' => cubeMedia::image(IMG . '/flash.png')),\r
'viewerh' => array('title' => __('Version HTML5'), 'icon' => cubeMedia::image(IMG . '/html5.png')),\r
'vieweru' => array('title' => __('Version Flash') . ' (' . __('debuggage') . ')', 'icon' => cubeMedia::image(IMG . '/flashbug.png')),\r
- 'viewerhu' => array('title' => __('Version HTML5') . ' (' . __('debuggage') . ')', 'icon' => cubeMedia::image(IMG . '/html5bug.png')),\r
+ 'viewerht' => array('title' => __('Version HTML5') . ' (' . __('debuggage') . ')', 'icon' => cubeMedia::image(IMG . '/html5bug.png')),\r
'viewer1' => array('title' => __('Version 1'), 'icon' => cubeMedia::image(IMG . '/flash.png'))\r
);\r
}\r
'js/libs/jquery/jquery.mousewheel.js',
'js/libs/jquery/jquery.hashchange.js',
'js/libs/fluidbook/fluidbook.utils.js',
- 'js/libs/fluidbook/fluidbook.cache.js',
'js/libs/fluidbook/fluidbook.support.js',
'js/libs/fluidbook/fluidbook.viewport.js',
'js/libs/fluidbook/fluidbook.desktop.js',
'js/libs/fluidbook/fluidbook.service.js',
- 'js/libs/fluidbook/fluidbook.loader.js',
'js/libs/fluidbook/fluidbook.l10n.js',
'js/libs/fluidbook/fluidbook.nav.js',
'js/libs/fluidbook/fluidbook.js',
$scripts[] = '<script type="text/javascript" src="data/datas.js"></script>';
$script_test = implode("\n\t\t", $scripts);
+ $thtml = $uhtml;
+
$vars = array('titre', 'credits', 'ga', 'style', 'script');
foreach ($vars as $v) {
$uhtml = str_replace('<!-- $' . $v . ' -->', $$v, $uhtml);
}
- $thtml = file_get_contents(WS_COMPILE_ASSETS . '/_html5/tester.html');
-
- $vars = array('titre', 'credits', 'ga', 'style', 'script_test');
+ $script.="\n\t\t" . '<script type="text/javascript">window.tester = true;</script>';
+ $vars = array('titre', 'credits', 'ga', 'style', 'script');
foreach ($vars as $v) {
$thtml = str_replace('<!-- $' . $v . ' -->', $$v, $thtml);
}
file_put_contents($this->vdir . '/index.html', $html);
file_put_contents($this->vdir . '/indexu.html', $uhtml);
- file_put_contents($this->vdir . '/indext.html', $thtml);
+ file_put_contents($this->vdir . '/indext.html', $uhtml);
}
protected function writeLangs() {