Files
pillar/src/templates/vrview.pug
Pablo Vazquez 811236cff4 Migrate Jade to Pug template engine
Jade templates engine has been renamed to Pug.

We are using Pug already on the Blender Cloud repository, following is Flamenco and Attract
2017-08-30 14:04:15 +02:00

24 lines
1005 B
Plaintext

doctype html
html(lang='en')
head
title VR view
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0')
meta(name='mobile-web-app-capable', content='yes')
meta(name='apple-mobile-web-app-capable', content='yes')
meta(name='apple-mobile-web-app-status-bar-style', content='black-translucent')
link(rel="stylesheet", href="{{url_for('static_pillar', filename='assets/css/vrview.css')}}")
body
#error.dialog
.wrap
h1.title Error
p.message An unknown error occurred.
script(src="{{url_for('static_pillar', filename='assets/vrview/three.min.js')}}")
script(src="{{url_for('static_pillar', filename='assets/vrview/embed.min.js')}}")
script.
/** Returns the current yaw in degrees. */
function yaw() {
var the_yaw = worldRenderer.sceneInfo.defaultYaw + worldRenderer.camera.rotation.y;
return the_yaw * 180 / Math.PI;
}