bigbluebutton-Github/labs/bbb-html5-client/views/layout.jade

39 lines
1.3 KiB
Plaintext
Raw Normal View History

!!! 5
html
head
2013-08-01 23:27:22 +08:00
block head
title= title
2013-09-24 21:13:09 +08:00
meta(name="viewport", content="width=device-width, initial-scale=1.0")
2013-08-01 23:27:22 +08:00
link(rel="stylesheet", href="css/jquery-ui-1.9.2.custom.min.css")
link(rel="stylesheet", href="css/reset.css")
link(rel="stylesheet", href="css/font-awesome.css")
!= css('layout')
2013-08-01 23:27:22 +08:00
body
block content
#container
script(src='/js/lib/require/require-min.js')
// we add a javascript block to pass information from the server to the client using
// javascript variables in the module "globals"
- if (typeof(meetings) == 'undefined')
- meetings = []
script(type='text/javascript').
2013-08-01 23:27:22 +08:00
define('globals', function() {
server = window.location.protocol + '//' + window.location.host;
server = server.replace(/:\d+/, ''); // remove :port
if (server[server.length-1] != '/')
server = server + '/';
return {
bootstrappedMeetings: !{JSON.stringify(meetings)},
presentationServer: server
};
});
script(src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js')
script(src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js')
- if (h_environment == "development")
script(src='/js/main.js')
- else
script(src='/js/main-dist.js')