Forum

User posts Sybren
05 November 2015 20:00
Thanks! And thanks!

I'm lazy and don't like downloading and extracting tarballs, so I just cloned the git repo. If you want me to do an update and verify a fix, give me a poke, either here or on Freenode IRC (my nick = sybren).
05 November 2015 19:31
Hi all,

This is my first post here on this forum. I've just started working with Blend4web, and hit a bug.
Using b4w 15.10 and this HTML in apps_dev/pano_viewer/pano_viewer_dev.html:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content=" width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <link href="pano_viewer.css" rel="stylesheet" type="text/css" />
    <script src="../../src/b4w.js"></script>
    <script src="../../src/ext/animation.js"></script>
    <script src="../../src/addons/app.js"></script>
    <script src="pano_viewer.js"></script>
</head>
<body onload="startup()"><canvas id="main_canvas_container"></canvas></body>
</html>


When I go to the project viewer and compile the app, this is the output HTML in deploy/apps/pano_viewer/pano_viewer.html:

<!DOCTYPE html>
<head>
    <meta charset='utf-8' />
    <meta name='viewport' content=' width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no' />
    <title>pano_viewer</title>
    <link type='text/css' rel='stylesheet' href='pano_viewer.min.css'/>
    <script type='text/javascript' src='../common/b4w.simple.min.js'></script>
    <script type='text/javascript' src='pano_viewer.min.js'></script>
</head>
<body onload="startup()"><canvas id="main_canvas_container"></canvas></body>
<body onload="startup()"><canvas id="main_canvas_container"></canvas></body>
</html>


As you can see, the HTML is invalid. There is no opening html tag (but there is a closing one), and the body element (including its contents) is duplicated. The missing opening html tag can also be seen in other projects, such as deploy/apps/flight/flight.html or deploy/apps/webplayer/webplayer.html.