bigbluebutton-Github/bigbluebutton-web/web-app/demo.html
Richard Alam cbeb98c867 - setup demo for creating adhoc conf
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2598 af16638f-c34d-0410-8cfa-b39d5352b314
2009-09-23 19:56:44 +00:00

59 lines
2.3 KiB
HTML

<html>
<head>
<script type="text/javascript" src="/bigbluebutton/js/jquery-1.3.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.post("/bigbluebutton/api/conference.xml", { voiceBridge: "85115"},
function(data){
//alert("Data Loaded: " + data.voiceBridge + " " + data.moderatorToken + " " + data.viewerToken);
$("div:first").text(data.moderatorToken);
$("div:last").text(data.viewerToken);
$("input:first").val(data.moderatorToken);
$("input:last").val(data.viewerToken);
}, "json"
);
});
</script>
</head>
<body>
<form action="/bigbluebutton/api/conference/session.html" method="post">
<!-- IMPORTANT: Make this input the first one as script above relies on it's position to assign the moderatorToken value -->
<input type="hidden" name="authToken" value="" />
<table>
<tbody>
<tr>
<td>Enter your name:</td>
<td><input type="text" name="fullname" value="" /></td>
</tr>
<tr>
<td />
<td><input type="submit" value="Join as moderator" /></td>
</tr>
</tbody>
</table>
</form>
<form action="/bigbluebutton/api/conference/session.html" method="post">
<table>
<tbody>
<tr>
<td>Enter your name:</td>
<td><input type="text" name="fullname" value="" /></td>
</tr>
<tr>
<td />
<td><input type="submit" value="Join as viewer" /></td>
</tr>
</tbody>
</table>
<!-- IMPORTANT: Make this input the last one as script above relies on it's position to assign the viewerToken value -->
<input type="hidden" name="authToken" value="" />
</form>
<div></div>
<div></div>
</body>
</html>