1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title></title>
- </head>
- <body>
- <script>
- var baseUrl = window.top.baseUrl;
- window.onmessage = function (event) {
- //初始化视频会议控件
- window.top.socket.emit('startmeeting', event.data);
- window.top.socket.on('startmeeting-ok', function (data) {
- var temp_form = document.createElement("form");
- temp_form.action = baseUrl + "chat";
- temp_form.method = "post";
- temp_form.style.display = "none";
- var parames = new Array();
- parames.push({ name: "meetingid", value: data.meetingid });
- parames.push({ name: "masterid", value: data.masterid });
- parames.push({ name: "mastername", value: data.mastername });
- parames.push({ name: "creater", value: data.masterid });
- parames.push({ name: "userid", value: data.masterid });
- parames.push({ name: "username", value: data.mastername });
- parames.push({ name: "room", value: data.meetingid });
- parames.push({ name: "title", value: event.data.title });
- parames.push({ name: "pdf", value: data.pdf });
- parames.push({ name: "uploadUrl", value: data.uploadUrl })
- parames.push({ name: "AccessToken", value: data.AccessToken });
- parames.push({ name: "routeinfoid", value: data.routeinfoid });
- console.log(JSON.stringify(parames))
- for (var x in parames) {
- var opt = document.createElement("textarea");
- opt.name = parames[x].name;
- opt.value = parames[x].value;
- temp_form.appendChild(opt);
- }
- document.body.appendChild(temp_form);
- temp_form.submit();
- });
- }
- </script>
- </body>
- </html>
|