张桐

1.修改开始上课,增加退出按钮

2.增加swf文件,替换flashvideo.js
3.完善文档模块
@@ -227,7 +227,7 @@ height: 1080px; @@ -227,7 +227,7 @@ height: 1080px;
227 border: 0; 227 border: 0;
228 background: #f2f2f2; 228 background: #f2f2f2;
229 color: #2a3e4d; 229 color: #2a3e4d;
230 - margin-left: 25px; 230 + /*margin-left: 25px;*/
231 font-size: 14px; 231 font-size: 14px;
232 text-shadow: 12px 0 0 0; 232 text-shadow: 12px 0 0 0;
233 233
@@ -267,9 +267,44 @@ height: 1080px; @@ -267,9 +267,44 @@ height: 1080px;
267 width: 100px; 267 width: 100px;
268 height: 20px; 268 height: 20px;
269 } 269 }
  270 +.am-modal-confirm-cancel .exitCancel{
  271 + width: 66px;
  272 + height: 32px;
  273 + margin-left: 74px;
  274 + font-size: 12px;
  275 + color: white;
  276 + background: #b2b2b2;
  277 +}
  278 +.am-modal-confirm-cancel .exitEnsure{
  279 + width: 66px;
  280 + height: 32px;
  281 + margin-left: 12px;
  282 + font-size: 12px;
  283 + color: white;
  284 + background: #3598db;
  285 +}
  286 +
  287 +
270 288
271 289
272 /*修改amazeui.min.css*/ 290 /*修改amazeui.min.css*/
  291 +.classNowBtn{
  292 + margin-right: 10px;
  293 +}
  294 + .exitClose{
  295 + position:absolute;
  296 + right: 0px;
  297 + }
  298 + .exitCurClass{
  299 + margin-left: 0px;
  300 + }
  301 + .header .classStatus{
  302 + width: 88px;
  303 + }
  304 + .am-active > .am-dropdown-content{
  305 + z-index: 1;
  306 + }
  307 +
273 .am-btn-primary.am-active, .am-btn-primary:active, .am-dropdown.am-active .am-btn-primary.am-dropdown-toggle{ 308 .am-btn-primary.am-active, .am-btn-primary:active, .am-dropdown.am-active .am-btn-primary.am-dropdown-toggle{
274 background:none; 309 background:none;
275 } 310 }
@@ -279,7 +314,7 @@ height: 1080px; @@ -279,7 +314,7 @@ height: 1080px;
279 .am-dropdown-content { 314 .am-dropdown-content {
280 min-width: 0; 315 min-width: 0;
281 z-index: 3000; 316 z-index: 3000;
282 - left: 10px; 317 + left: -12px;
283 height: 65px; 318 height: 65px;
284 border: 1px solid #e0e0e0; 319 border: 1px solid #e0e0e0;
285 box-shadow: 1px; 320 box-shadow: 1px;
@@ -687,7 +722,7 @@ height: 1080px; @@ -687,7 +722,7 @@ height: 1080px;
687 .am-modal-dialog .p-text{ 722 .am-modal-dialog .p-text{
688 font-size: 14px; 723 font-size: 14px;
689 color: #2a3e4d; 724 color: #2a3e4d;
690 - margin-top: 58px; 725 + margin-top:44px;
691 line-height: 14px; 726 line-height: 14px;
692 } 727 }
693 728
@@ -800,6 +835,8 @@ height: 1080px; @@ -800,6 +835,8 @@ height: 1080px;
800 } 835 }
801 .am-dropdown{ 836 .am-dropdown{
802 float: right; 837 float: right;
  838 + width: 72px;
  839 +
803 840
804 } 841 }
805 .am-dropdownClass{ 842 .am-dropdownClass{
@@ -1426,6 +1463,7 @@ height: 1080px; @@ -1426,6 +1463,7 @@ height: 1080px;
1426 1463
1427 1464
1428 .chat { 1465 .chat {
  1466 +
1429 position: absolute; 1467 position: absolute;
1430 bottom: 12px; 1468 bottom: 12px;
1431 height:208px; 1469 height:208px;
@@ -2923,6 +2961,7 @@ canvas { @@ -2923,6 +2961,7 @@ canvas {
2923 height: 100%; 2961 height: 100%;
2924 } 2962 }
2925 .chat{ 2963 .chat{
  2964 +
2926 width:256px; 2965 width:256px;
2927 height: 146px; 2966 height: 146px;
2928 bottom: 5px; 2967 bottom: 5px;
@@ -3898,6 +3937,7 @@ canvas { @@ -3898,6 +3937,7 @@ canvas {
3898 } 3937 }
3899 3938
3900 .chat{ 3939 .chat{
  3940 +
3901 width:240px; 3941 width:240px;
3902 height: 114px; 3942 height: 114px;
3903 bottom:5px; 3943 bottom:5px;
@@ -4737,6 +4777,7 @@ canvas { @@ -4737,6 +4777,7 @@ canvas {
4737 4777
4738 .triangle-isosceles { 4778 .triangle-isosceles {
4739 position: relative; 4779 position: relative;
  4780 + bottom: 2px;
4740 padding: 6px 10px 6px 10px; 4781 padding: 6px 10px 6px 10px;
4741 border-radius: 8px; 4782 border-radius: 8px;
4742 display: inline-block; 4783 display: inline-block;
@@ -4747,6 +4788,7 @@ canvas { @@ -4747,6 +4788,7 @@ canvas {
4747 .stutriangle-isosceles { 4788 .stutriangle-isosceles {
4748 float:right; 4789 float:right;
4749 position: relative; 4790 position: relative;
  4791 + bottom: 2px;
4750 padding: 6px 10px 6px 10px; 4792 padding: 6px 10px 6px 10px;
4751 border-radius: 8px; 4793 border-radius: 8px;
4752 display: inline-block; 4794 display: inline-block;
@@ -4789,3 +4831,23 @@ canvas { @@ -4789,3 +4831,23 @@ canvas {
4789 height: 10px; 4831 height: 10px;
4790 background: url(../images/arrow-r.png) 50% 50%; 4832 background: url(../images/arrow-r.png) 50% 50%;
4791 } 4833 }
  4834 +
  4835 +
  4836 +.coverDiv{
  4837 + z-index: 10;
  4838 + height: 442px;
  4839 + width: 217px;
  4840 + background: #c3e0f2;
  4841 + position: absolute;
  4842 + right: -24px;
  4843 + top: 213px;
  4844 +}
  4845 +.coverDivBot{
  4846 + z-index: 10;
  4847 + height: 100px;
  4848 + width: 246px;
  4849 + background: #c3e0f2;
  4850 + position: absolute;
  4851 + right: 193px;
  4852 + bottom: -100px;
  4853 +}
不能预览此文件类型
不能预览此文件类型
@@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
10 10
11 <link rel="stylesheet" type="text/css" href="css/amazeui.min.css"> 11 <link rel="stylesheet" type="text/css" href="css/amazeui.min.css">
12 <link rel="stylesheet" type="text/css" href="css/main.css"> 12 <link rel="stylesheet" type="text/css" href="css/main.css">
13 -  
14 <script type="text/javascript" src="src/xdyVideo.js"></script> 13 <script type="text/javascript" src="src/xdyVideo.js"></script>
15 <!--拖拽工具条--> 14 <!--拖拽工具条-->
16 <script type="text/javascript" src="js/xdyEvent.js"></script> 15 <script type="text/javascript" src="js/xdyEvent.js"></script>
@@ -65,7 +64,8 @@ @@ -65,7 +64,8 @@
65 </div> 64 </div>
66 </div> 65 </div>
67 66
68 - 67 +<!--<div class="coverDiv"></div>-->
  68 +<!--<div class="coverDivBot"></div>-->
69 <!--1v1互动课堂--> 69 <!--1v1互动课堂-->
70 <div class="box"> 70 <div class="box">
71 71
@@ -74,8 +74,16 @@ @@ -74,8 +74,16 @@
74 <li class="classroom">课堂主题:<a id="classCurName" href="javascript: void(0)"></a></li> 74 <li class="classroom">课堂主题:<a id="classCurName" href="javascript: void(0)"></a></li>
75 <li class="classCurId">用户ID:<a id="classCurId" href="javascript: void(0)"></a></li> 75 <li class="classCurId">用户ID:<a id="classCurId" href="javascript: void(0)"></a></li>
76 76
  77 + <!--退出-->
  78 + <div class="am-dropdown exitCurClass" data-am-dropdown>
  79 + <button id="exitCurClass" class=" am-btn am-btn-primary am-dropdown-toggle exitCurClass "
  80 + data-am-modal="{target: '#exit-classes', closeViaDimmer: 0, width: 340, height: 172}"
  81 + data-am-dropdown-toggle><span class="span-setting iconfont">&#xe607;</span>退出
  82 + </button>
  83 +
  84 + </div>
77 <!--设置--> 85 <!--设置-->
78 - <div class="am-dropdown" data-am-dropdown> 86 + <div class="am-dropdown setCurClass" data-am-dropdown>
79 <button id="openCamera" class="setting am-btn am-btn-primary am-dropdown-toggle " 87 <button id="openCamera" class="setting am-btn am-btn-primary am-dropdown-toggle "
80 data-am-modal="{target: '#setting-modal-1', closeViaDimmer: 0, width: 405, height: 400}" 88 data-am-modal="{target: '#setting-modal-1', closeViaDimmer: 0, width: 405, height: 400}"
81 data-am-dropdown-toggle><span class="span-setting iconfont">&#xe631;</span>设置 89 data-am-dropdown-toggle><span class="span-setting iconfont">&#xe631;</span>设置
@@ -148,16 +156,16 @@ @@ -148,16 +156,16 @@
148 156
149 157
150 <!--帮助--> 158 <!--帮助-->
151 - <div class="am-dropdown " data-am-dropdown> 159 + <div class="am-dropdown helpCurClass" data-am-dropdown>
152 <a href="javascript: void(0)"><button class="am-btn am-btn-primary am-dropdown-toggle " data-am-dropdown-toggle><span 160 <a href="javascript: void(0)"><button class="am-btn am-btn-primary am-dropdown-toggle " data-am-dropdown-toggle><span
153 class="span-help iconfont">&#xe608;</span>帮助 161 class="span-help iconfont">&#xe608;</span>帮助
154 </button></a> 162 </button></a>
155 </div> 163 </div>
156 164
157 <!--右侧未开始--> 165 <!--右侧未开始-->
158 - <div class="am-dropdown classStatus" data-am-dropdown>  
159 - <button type="button" class="am-btn am-btn-primary am-dropdown-toggle " data-am-dropdown-toggle><span  
160 - id="span-iconfont" class="span-classes iconfont">&#xe62b;</span><span id="class-now">未开始</span> 166 + <div class="classStatus am-dropdown " data-am-dropdown>
  167 + <button type="button" class="am-btn am-btn-primary classNowBtn" data-am-dropdown-toggle><span
  168 + id="span-iconfont" class="span-classes iconfont">&#xe62b;</span><span id="class-now" class="classNow">未开始</span>
161 </button> 169 </button>
162 <ul class="am-dropdown-content"> 170 <ul class="am-dropdown-content">
163 171
@@ -200,39 +208,35 @@ @@ -200,39 +208,35 @@
200 </div> 208 </div>
201 209
202 210
203 - <!--弹出层-结束课堂-->  
204 - <div class="am-modal am-modal-no-btn" tabindex="-1" id="end-classes"> 211 + <!--弹出层退出课堂-->
  212 + <div class="am-modal am-modal-no-btn" tabindex="-1" id="end-classes-1">
205 <div class="am-modal-dialog"> 213 <div class="am-modal-dialog">
206 -  
207 - <p id="p-text-1" class="p-text">确定停止录制吗?</p> 214 + <a href="javascript: void(0)" class="am-close am-close-spin exitClose" data-am-modal-close>&times;</a>
  215 + <p class="p-text">确定要退出当前课堂吗?</p>
208 216
209 <div class="am-modal-confirm-cancel"> 217 <div class="am-modal-confirm-cancel">
210 - <button id="confirm-1" data-am-modal-close type="button"  
211 - class="confirm am-btn am-btn-primary"  
212 - data-am-modal="{target: '#end-classes-1', closeViaDimmer: 0, width: 340, height: 172}">确定  
213 - </button>  
214 - <button class="cancel" data-am-modal-close>取消</button> 218 + <button id="end" class="confirm" data-am-modal-close>结束课堂</button>
  219 + <button id="end-no-exit" class="cancel-1" data-am-modal-close>退出,不结束课堂</button>
215 </div> 220 </div>
216 221
217 </div> 222 </div>
218 </div> 223 </div>
219 224
220 -  
221 - <!--弹出层-正在上课-->  
222 - <div class="am-modal am-modal-no-btn" tabindex="-1" id="end-classes-1"> 225 + <!--弹出退出-->
  226 + <!--弹出层退出课堂-->
  227 + <div class="am-modal am-modal-no-btn" tabindex="-1" id="exit-classes">
223 <div class="am-modal-dialog"> 228 <div class="am-modal-dialog">
224 - 229 + <a href="javascript: void(0)" class="am-close am-close-spin exitClose" data-am-modal-close>&times;</a>
225 <p class="p-text">确定要退出当前课堂吗?</p> 230 <p class="p-text">确定要退出当前课堂吗?</p>
226 231
227 <div class="am-modal-confirm-cancel"> 232 <div class="am-modal-confirm-cancel">
228 - <button id="end" class="confirm" data-am-modal-close>结束课堂</button>  
229 - <button id="end-no-exit" class="cancel-1" data-am-modal-close>退出,不结束课堂</button> 233 + <button id="exitClass" class="exitEnsure" data-am-modal-close>确定</button>
  234 + <button class="exitCancel" data-am-modal-close>取消</button>
230 </div> 235 </div>
231 236
232 </div> 237 </div>
233 </div> 238 </div>
234 239
235 -  
236 </div> 240 </div>
237 <!--内容--> 241 <!--内容-->
238 <div class="content clear"> 242 <div class="content clear">
@@ -354,7 +358,7 @@ @@ -354,7 +358,7 @@
354 <!--右侧--> 358 <!--右侧-->
355 <div id="right" class="right"> 359 <div id="right" class="right">
356 <div class="studentVideo"> 360 <div class="studentVideo">
357 - <div class="stuPublish" style="position:absolute;top: 0; width:240px;height:180px"> 361 + <div class="stuPublish" style="position:absolute;top: 0; width:240px;height:180px;">
358 <div id="stuPublish"></div> 362 <div id="stuPublish"></div>
359 </div> 363 </div>
360 <div class="stuPlay" style="position:absolute;top: 0; width:240px;height:180px"> 364 <div class="stuPlay" style="position:absolute;top: 0; width:240px;height:180px">
@@ -375,7 +379,7 @@ @@ -375,7 +379,7 @@
375 </div> 379 </div>
376 <div class="teacherVideo"> 380 <div class="teacherVideo">
377 381
378 - <div class="publish" style="position:absolute;top: 0; width:400px;height:300px; "> 382 + <div class="publish" style="position:absolute;top: 0; width:240px;height:180px; ">
379 <div id="publish"></div> 383 <div id="publish"></div>
380 </div> 384 </div>
381 <div class="play" style="position:absolute;top: 0; width:240px;height:180px"> 385 <div class="play" style="position:absolute;top: 0; width:240px;height:180px">
@@ -429,7 +433,7 @@ @@ -429,7 +433,7 @@
429 <div class="input-send clear"> 433 <div class="input-send clear">
430 <button id="btn_send" class="send" type="submit">发送</button> 434 <button id="btn_send" class="send" type="submit">发送</button>
431 <div class="input-face"> 435 <div class="input-face">
432 - <input id="txt_message" maxlength="20" type="text"/> 436 + <input id="txt_message" maxlength="20" onkeyup="this.value=this.value.replace(/^ +| +$/g,&#34;&#34;)" type="text"/>
433 <span id="face" class="face iconfont">&#xe632;</span> 437 <span id="face" class="face iconfont">&#xe632;</span>
434 </div> 438 </div>
435 439
@@ -323,6 +323,8 @@ function switchDoc(msg) { @@ -323,6 +323,8 @@ function switchDoc(msg) {
323 }; 323 };
324 client.sendDocumentSwitchDoc(paramInfo); 324 client.sendDocumentSwitchDoc(paramInfo);
325 console.log("此时数组中存储的数=====",fileFromArr); 325 console.log("此时数组中存储的数=====",fileFromArr);
  326 +
  327 +
326 } 328 }
327 329
328 330
@@ -378,14 +380,16 @@ function uploadFile(msg){ @@ -378,14 +380,16 @@ function uploadFile(msg){
378 function docUpdate(callbackData){ 380 function docUpdate(callbackData){
379 console.log("监听文档更新=========================>"); 381 console.log("监听文档更新=========================>");
380 console.log(callbackData); 382 console.log(callbackData);
  383 +
381 if(callbackData==null){ 384 if(callbackData==null){
382 return; 385 return;
383 } 386 }
  387 + //操作数据
  388 + updateDocList(callbackData,0);
384 if (callbackData.visible===true){ 389 if (callbackData.visible===true){
385 showInter(callbackData,2); 390 showInter(callbackData,2);
386 } 391 }
387 - //操作数据  
388 - updateDocList(callbackData,0); 392 +
389 393
390 394
391 395
@@ -402,7 +406,7 @@ function showInter(_data,isPage){ @@ -402,7 +406,7 @@ function showInter(_data,isPage){
402 fileItemIdx=_data.itemIdx 406 fileItemIdx=_data.itemIdx
403 407
404 if(_data.fileType=="doc"||_data.fileType=="pdf"){ 408 if(_data.fileType=="doc"||_data.fileType=="pdf"){
405 - 409 + showTurnPage();
406 $("#showImg").css("display","none"); 410 $("#showImg").css("display","none");
407 $(".docImage").css("display","block"); 411 $(".docImage").css("display","block");
408 $(".canvas_container").css("overflow-y","scroll"); 412 $(".canvas_container").css("overflow-y","scroll");
@@ -432,6 +436,7 @@ function showInter(_data,isPage){ @@ -432,6 +436,7 @@ function showInter(_data,isPage){
432 436
433 if(docfullSingle){ 437 if(docfullSingle){
434 $("#docImage").attr("src",docfullSingle); 438 $("#docImage").attr("src",docfullSingle);
  439 + showTurnPage();
435 }else { 440 }else {
436 441
437 } 442 }
@@ -463,9 +468,10 @@ function showInter(_data,isPage){ @@ -463,9 +468,10 @@ function showInter(_data,isPage){
463 468
464 } 469 }
465 else if(_data.fileType=="jpg"){ 470 else if(_data.fileType=="jpg"){
  471 + hideTurnPage();
466 $("#canvas").height(476); 472 $("#canvas").height(476);
467 473
468 - $(".docImage").css("display","none"); 474 + $("#docImage").css("display","none");
469 $("#showImg").css("display","block"); 475 $("#showImg").css("display","block");
470 $(".canvas_container").scrollTop(0); 476 $(".canvas_container").scrollTop(0);
471 $(".canvas_container").css("overflow","hidden"); 477 $(".canvas_container").css("overflow","hidden");
@@ -482,7 +488,7 @@ function showInter(_data,isPage){ @@ -482,7 +488,7 @@ function showInter(_data,isPage){
482 console.log("mcu返回给我的地址=========="); 488 console.log("mcu返回给我的地址==========");
483 console.log(docfullPath); 489 console.log(docfullPath);
484 imgUrl = docfullPath[0]; 490 imgUrl = docfullPath[0];
485 - $("#showImg").css("display","block"); 491 +
486 $("#showImg").attr("src",imgUrl); 492 $("#showImg").attr("src",imgUrl);
487 493
488 494
@@ -491,8 +497,9 @@ function showInter(_data,isPage){ @@ -491,8 +497,9 @@ function showInter(_data,isPage){
491 497
492 } 498 }
493 else if(_data.fileType=="png"){ 499 else if(_data.fileType=="png"){
  500 + hideTurnPage();
494 $("#canvas").height(476); 501 $("#canvas").height(476);
495 - $(".docImage").css("display","none"); 502 + $("#docImage").css("display","none");
496 $("#showImg").css("display","block"); 503 $("#showImg").css("display","block");
497 $(".canvas_container").css("overflow","hidden"); 504 $(".canvas_container").css("overflow","hidden");
498 var _fileType="png"; 505 var _fileType="png";
@@ -507,9 +514,7 @@ function showInter(_data,isPage){ @@ -507,9 +514,7 @@ function showInter(_data,isPage){
507 console.log("mcu返回给我的地址=========="); 514 console.log("mcu返回给我的地址==========");
508 console.log(docfullPath); 515 console.log(docfullPath);
509 imgUrl = docfullPath[0]; 516 imgUrl = docfullPath[0];
510 - $("#showImg").css("display","block");  
511 $("#showImg").attr("src",imgUrl) 517 $("#showImg").attr("src",imgUrl)
512 - $("#docCanvas").css("display","none");  
513 518
514 519
515 } 520 }
@@ -555,11 +560,7 @@ function docDelete(callbackData){ @@ -555,11 +560,7 @@ function docDelete(callbackData){
555 $(".doc-headline-a").trigger("click"); 560 $(".doc-headline-a").trigger("click");
556 if (fileFromArr.length==0){ 561 if (fileFromArr.length==0){
557 $("#docImage").attr("src",""); 562 $("#docImage").attr("src","");
558 - $(".next-page ").css("display","none");  
559 - $(".total-page").css("display","none");  
560 - $(".bias").css("display","none");  
561 - $(".cur-page").css("display","none");  
562 - $(".prev").css("display","none"); 563 + hideTurnPage();
563 } 564 }
564 565
565 } 566 }
@@ -590,7 +591,12 @@ function updateDocList(_data,isAdd) { @@ -590,7 +591,12 @@ function updateDocList(_data,isAdd) {
590 $("#showImg").attr("src",""); 591 $("#showImg").attr("src","");
591 $(".canvas_container").css("overflow-y","hidden"); 592 $(".canvas_container").css("overflow-y","hidden");
592 $(".canvas_container").scrollTop(0); 593 $(".canvas_container").scrollTop(0);
593 - hideTurnPage(); 594 +
  595 +
  596 +
  597 + if($("#docImage").attr("src")==""){
  598 + hideTurnPage();
  599 + }
594 if (classAllInfo.userRole=="normal"){ 600 if (classAllInfo.userRole=="normal"){
595 $("#showImg").css("display","block"); 601 $("#showImg").css("display","block");
596 $("#docImage").attr("src",""); 602 $("#docImage").attr("src","");
@@ -599,6 +605,14 @@ function updateDocList(_data,isAdd) { @@ -599,6 +605,14 @@ function updateDocList(_data,isAdd) {
599 $(".canvas_container").css("overflow-y","hidden"); 605 $(".canvas_container").css("overflow-y","hidden");
600 606
601 } 607 }
  608 + if (classAllInfo.userRole=="host"){
  609 + $("#showImg").css("display","block");
  610 + $("#docImage").attr("src","");
  611 + $("#showImg").attr("src","");
  612 + $(".canvas_container").scrollTop(0);
  613 + $(".canvas_container").css("overflow-y","hidden");
  614 + }
  615 +
602 fileFromArr.splice(i,1); 616 fileFromArr.splice(i,1);
603 617
604 } 618 }
@@ -957,15 +971,25 @@ function classJoinSuccess(callbackData){ @@ -957,15 +971,25 @@ function classJoinSuccess(callbackData){
957 //去掉复制功能 971 //去掉复制功能
958 // document.body.onselectstart=document.body.oncontextmenu=function(){ return false;} 972 // document.body.onselectstart=document.body.oncontextmenu=function(){ return false;}
959 973
960 -//进入成功后 画笔可以使用  
961 - $(".Color1").trigger("click");  
962 - $(".pencil").trigger("click"); 974 +
  975 +
  976 + $(".canvas_container").scrollTop(0);
  977 + $(".canvas_container").css("overflow-y","hidden");
  978 +
  979 + if (callbackData.userRole=="host") {
  980 + //进入成功后 画笔可以使用
  981 + $(".Color1").trigger("click");
  982 + $(".pencil").trigger("click");
  983 + }
  984 +
963 //根据用户权限,隐藏不同界面,如果是学生,隐藏白板 985 //根据用户权限,隐藏不同界面,如果是学生,隐藏白板
964 if (callbackData.userRole=="normal"){ 986 if (callbackData.userRole=="normal"){
965 987
966 $("#tool").css("display","none"); 988 $("#tool").css("display","none");
967 $(".fileUpload").css("display","none"); 989 $(".fileUpload").css("display","none");
968 - $(".am-dropdown").css("display","none"); 990 + $(".setCurClass").css("display","none");
  991 + $(".helpCurClass").css("display","none");
  992 + $(".classStatus").css("display","none");
969 $("#stuVideo-video").css("display","none"); 993 $("#stuVideo-video").css("display","none");
970 $("#stuVideo-voice").css("display","none"); 994 $("#stuVideo-voice").css("display","none");
971 $("#teacherVideo-video").css("display","none"); 995 $("#teacherVideo-video").css("display","none");
@@ -992,6 +1016,14 @@ function layoutView( ) { @@ -992,6 +1016,14 @@ function layoutView( ) {
992 "display":"block" 1016 "display":"block"
993 }); 1017 });
994 1018
  1019 + $("#class-now").click(function () {
  1020 + $(".am-dropdown-content").css({"z-index":"1","display":"block"});
  1021 + });
  1022 +
  1023 + $(".am-dropdown-content").mouseleave(function () {
  1024 + $(".am-dropdown-content").css({"z-index":"-1","display":"block"});
  1025 + })
  1026 +
995 //加入课堂成功后,点击开始上课 1027 //加入课堂成功后,点击开始上课
996 $("#classes-status-begin").click(function () { 1028 $("#classes-status-begin").click(function () {
997 $(".am-dropdown-content-li-stop-gray").css("display","none"); 1029 $(".am-dropdown-content-li-stop-gray").css("display","none");
@@ -1001,6 +1033,8 @@ function layoutView( ) { @@ -1001,6 +1033,8 @@ function layoutView( ) {
1001 $(".am-dropdown-content-li-pause").css("display","block"); 1033 $(".am-dropdown-content-li-pause").css("display","block");
1002 $(".span-classes").html("&#xe609;"); 1034 $(".span-classes").html("&#xe609;");
1003 $("#class-now").html("直播中"); 1035 $("#class-now").html("直播中");
  1036 +
  1037 + $(".am-dropdown-content").css("z-index","-1");
1004 client.sendStartClass(); 1038 client.sendStartClass();
1005 }); 1039 });
1006 //暂停课堂 1040 //暂停课堂
@@ -1009,6 +1043,8 @@ function layoutView( ) { @@ -1009,6 +1043,8 @@ function layoutView( ) {
1009 $("#class-now").html("休息中"); 1043 $("#class-now").html("休息中");
1010 $(".am-dropdown-content-li-pause").css("display","none"); 1044 $(".am-dropdown-content-li-pause").css("display","none");
1011 $(".am-dropdown-content-li-rest").css("display","block"); 1045 $(".am-dropdown-content-li-rest").css("display","block");
  1046 +
  1047 + $(".am-dropdown-content").css("z-index","-1");
1012 client.sendPauseClass(); 1048 client.sendPauseClass();
1013 1049
1014 }); 1050 });
@@ -1022,6 +1058,11 @@ function layoutView( ) { @@ -1022,6 +1058,11 @@ function layoutView( ) {
1022 client.leaveClass(); 1058 client.leaveClass();
1023 $(".box").css("display", "none"); 1059 $(".box").css("display", "none");
1024 }); 1060 });
  1061 + //退出,但不结束课堂,是当前这个人退出
  1062 + $("#exitClass").click(function () {
  1063 + client.leaveClass();
  1064 + $(".box").css("display", "none");
  1065 + });
1025 //继续上课 1066 //继续上课
1026 $("#classes-status-rest").click(function () { 1067 $("#classes-status-rest").click(function () {
1027 client.sendStartClass(); 1068 client.sendStartClass();
@@ -1029,6 +1070,7 @@ function layoutView( ) { @@ -1029,6 +1070,7 @@ function layoutView( ) {
1029 $(".am-dropdown-content-li-pause").css("display","block"); 1070 $(".am-dropdown-content-li-pause").css("display","block");
1030 $(".span-classes").html("&#xe609;"); 1071 $(".span-classes").html("&#xe609;");
1031 $("#class-now").html("直播中"); 1072 $("#class-now").html("直播中");
  1073 + $(".am-dropdown-content").css("z-index","-1");
1032 1074
1033 }); 1075 });
1034 1076
@@ -1066,16 +1108,16 @@ function layoutView( ) { @@ -1066,16 +1108,16 @@ function layoutView( ) {
1066 // } 1108 // }
1067 1109
1068 $(".showBoardBtn").click(function () { 1110 $(".showBoardBtn").click(function () {
1069 - $(".docImage").css("display","none"); 1111 + $(".docImage").css("z-index","none");
1070 $(".showImg").css("display","none"); 1112 $(".showImg").css("display","none");
1071 }); 1113 });
1072 - $(".fileUpload").click(function () {  
1073 - $(".docImage").css("display","block");  
1074 - $(".showImg").css("display","block");  
1075 - }); 1114 + // $(".fileUpload").click(function () {
  1115 + // $(".docImage").css("display","block");
  1116 + // $(".showImg").css("display","block");
  1117 + // });
1076 1118
1077 $(document).keydown(function (e) { 1119 $(document).keydown(function (e) {
1078 - if(event.keyCode==13){ 1120 + if(e.keyCode==13){
1079 $("#btn_send").click(); 1121 $("#btn_send").click();
1080 } 1122 }
1081 1123
@@ -145,8 +145,12 @@ $(function () { @@ -145,8 +145,12 @@ $(function () {
145 $(".teacherVideo-voice").css("bottom","4px"); 145 $(".teacherVideo-voice").css("bottom","4px");
146 $(".teacherVoicing").css("display","none"); 146 $(".teacherVoicing").css("display","none");
147 147
  148 + $(".publish").css({"width":"240px","height":"180px"});
  149 + // $(".play").css({"width":"1px","height":"1px"});
  150 +
148 } 151 }
149 152
  153 +
150 //获取推流地址 154 //获取推流地址
151 achieveTeaVideoStream(); 155 achieveTeaVideoStream();
152 156
@@ -875,8 +879,8 @@ function publishTeaAudioURL(rtmpURL) { @@ -875,8 +879,8 @@ function publishTeaAudioURL(rtmpURL) {
875 879
876 //获取老师推音视频流地址 880 //获取老师推音视频流地址
877 function achieveTeaVideoStream(){ 881 function achieveTeaVideoStream(){
878 - // $(".publish").css({"width":"240px","height":"180px"});  
879 - $(".play").css({"width":"1px","height":"1px"}); 882 +
  883 +
880 var paramInfo={ 884 var paramInfo={
881 "type": "flash" 885 "type": "flash"
882 }; 886 };
@@ -888,8 +892,8 @@ function achieveTeaVideoStream(){ @@ -888,8 +892,8 @@ function achieveTeaVideoStream(){
888 if(! window.publishflash) { 892 if(! window.publishflash) {
889 flashvideo( 893 flashvideo(
890 'publish', 894 'publish',
891 - '400',  
892 - '300', 895 + '100%',
  896 + '100%',
893 function (error, publishflash) { 897 function (error, publishflash) {
894 if (error) { 898 if (error) {
895 return console.error(error); 899 return console.error(error);
1 -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.flashvideo=t():e.flashvideo=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(){function e(){if(!J&&document.getElementsByTagName("body")[0]){try{var e,t=g("span");t.style.display="none",e=U.getElementsByTagName("body")[0].appendChild(t),e.parentNode.removeChild(e),e=null,t=null}catch(e){return}J=!0;for(var n=D.length,i=0;i<n;i++)D[i]()}}function t(e){J?e():D[D.length]=e}function i(e){if(n($.addEventListener)!==O)$.addEventListener("load",e,!1);else if(n(U.addEventListener)!==O)U.addEventListener("load",e,!1);else if(n($.attachEvent)!==O)w($,"onload",e);else if("function"==typeof $.onload){var t=$.onload;$.onload=function(){t(),e()}}else $.onload=e}function a(){var e=U.getElementsByTagName("body")[0],t=g(B);t.setAttribute("style","visibility: hidden;"),t.setAttribute("type",F);var i=e.appendChild(t);if(i){var a=0;!function o(){if(n(i.GetVariable)!==O)try{var s=i.GetVariable("$version");s&&(s=s.split(" ")[1].split(","),Q.pv=[b(s[0]),b(s[1]),b(s[2])])}catch(e){Q.pv=[8,0,0]}else if(a<10)return a++,void setTimeout(o,10);e.removeChild(t),i=null,r()}()}else r()}function r(){var e=H.length;if(e>0)for(var t=0;t<e;t++){var i=H[t].id,a=H[t].callbackFn,r={success:!1,id:i};if(Q.pv[0]>0){var c=m(i);if(c)if(!E(H[t].swfVersion)||Q.wk&&Q.wk<312)if(H[t].expressInstall&&s()){var f={};f.data=H[t].expressInstall,f.width=c.getAttribute("width")||"0",f.height=c.getAttribute("height")||"0",c.getAttribute("class")&&(f.styleclass=c.getAttribute("class")),c.getAttribute("align")&&(f.align=c.getAttribute("align"));for(var u={},p=c.getElementsByTagName("param"),v=p.length,y=0;y<v;y++)"movie"!==p[y].getAttribute("name").toLowerCase()&&(u[p[y].getAttribute("name")]=p[y].getAttribute("value"));l(f,u,i,a)}else d(c),a&&a(r);else S(i,!0),a&&(r.success=!0,r.ref=o(i),r.id=i,a(r))}else if(S(i,!0),a){var h=o(i);h&&n(h.SetVariable)!==O&&(r.success=!0,r.ref=h,r.id=h.id),a(r)}}}function o(e){var t=null,i=m(e);return i&&"OBJECT"===i.nodeName.toUpperCase()&&(t=n(i.SetVariable)!==O?i:i.getElementsByTagName(B)[0]||i),t}function s(){return!X&&E("6.0.65")&&(Q.win||Q.mac)&&!(Q.wk&&Q.wk<312)}function l(e,t,i,a){var r=m(i);if(i=h(i),X=!0,x=a||null,k={success:!1,id:i},r){"OBJECT"===r.nodeName.toUpperCase()?(T=c(r),N=null):(T=r,N=i),e.id=_,(n(e.width)===O||!/%$/.test(e.width)&&b(e.width)<310)&&(e.width="310"),(n(e.height)===O||!/%$/.test(e.height)&&b(e.height)<137)&&(e.height="137");var o=Q.ie?"ActiveX":"PlugIn",s="MMredirectURL="+encodeURIComponent($.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+o+"&MMdoctitle="+encodeURIComponent(U.title.slice(0,47)+" - Flash Player Installation");if(n(t.flashvars)!==O?t.flashvars+="&"+s:t.flashvars=s,Q.ie&&4!=r.readyState){var l=g("div");i+="SWFObjectNew",l.setAttribute("id",i),r.parentNode.insertBefore(l,r),r.style.display="none",v(r)}u(e,t,i)}}function d(e){if(Q.ie&&4!=e.readyState){e.style.display="none";var t=g("div");e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(c(e),t),v(e)}else e.parentNode.replaceChild(c(e),e)}function c(e){var t=g("div");if(Q.win&&Q.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(B)[0];if(n){var i=n.childNodes;if(i)for(var a=i.length,r=0;r<a;r++)1==i[r].nodeType&&"PARAM"===i[r].nodeName||8==i[r].nodeType||t.appendChild(i[r].cloneNode(!0))}}return t}function f(e,t){var n=g("div");return n.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+e+"'>"+t+"</object>",n.firstChild}function u(e,t,i){var a,r=m(i);if(i=h(i),Q.wk&&Q.wk<312)return a;if(r){var o,s,l,d=g(Q.ie?"div":B);n(e.id)===O&&(e.id=i);for(l in t)t.hasOwnProperty(l)&&"movie"!==l.toLowerCase()&&p(d,l,t[l]);Q.ie&&(d=f(e.data,d.innerHTML));for(o in e)e.hasOwnProperty(o)&&(s=o.toLowerCase(),"styleclass"===s?d.setAttribute("class",e[o]):"classid"!==s&&"data"!==s&&d.setAttribute(o,e[o]));Q.ie?W[W.length]=e.id:(d.setAttribute("type",F),d.setAttribute("data",e.data)),r.parentNode.replaceChild(d,r),a=d}return a}function p(e,t,n){var i=g("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function v(e){var t=m(e);t&&"OBJECT"===t.nodeName.toUpperCase()&&(Q.ie?(t.style.display="none",function e(){if(4==t.readyState){for(var n in t)"function"==typeof t[n]&&(t[n]=null);t.parentNode.removeChild(t)}else setTimeout(e,10)}()):t.parentNode.removeChild(t))}function y(e){return e&&e.nodeType&&1===e.nodeType}function h(e){return y(e)?e.id:e}function m(e){if(y(e))return e;var t=null;try{t=U.getElementById(e)}catch(e){}return t}function g(e){return U.createElement(e)}function b(e){return parseInt(e,10)}function w(e,t,n){e.attachEvent(t,n),G[G.length]=[e,t,n]}function E(e){e+="";var t=Q.pv,n=e.split(".");return n[0]=b(n[0]),n[1]=b(n[1])||0,n[2]=b(n[2])||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]}function C(e,t,i,a){var r=U.getElementsByTagName("head")[0];if(r){var o="string"==typeof i?i:"screen";if(a&&(I=null,L=null),!I||L!=o){var s=g("style");s.setAttribute("type","text/css"),s.setAttribute("media",o),I=r.appendChild(s),Q.ie&&n(U.styleSheets)!==O&&U.styleSheets.length>0&&(I=U.styleSheets[U.styleSheets.length-1]),L=o}I&&(n(I.addRule)!==O?I.addRule(e,t):n(U.createTextNode)!==O&&I.appendChild(U.createTextNode(e+" {"+t+"}")))}}function S(e,t){if(z){var n=t?"visible":"hidden",i=m(e);J&&i?i.style.visibility=n:"string"==typeof e&&C("#"+e,"visibility:"+n)}}function A(e){var t=/[\\\"<>\.;]/,i=null!==t.exec(e);return i&&("undefined"==typeof encodeURIComponent?"undefined":n(encodeURIComponent))!==O?encodeURIComponent(e):e}var T,N,x,k,I,L,O="undefined",B="object",j="Shockwave Flash",R="ShockwaveFlash.ShockwaveFlash",F="application/x-shockwave-flash",_="SWFObjectExprInst",M="onreadystatechange",$=window,U=document,P=navigator,V=!1,D=[],H=[],W=[],G=[],J=!1,X=!1,z=!0,Z=!1,Q=function(){var e=n(U.getElementById)!==O&&n(U.getElementsByTagName)!==O&&n(U.createElement)!==O,t=P.userAgent.toLowerCase(),i=P.platform.toLowerCase(),a=i?/win/.test(i):/win/.test(t),r=i?/mac/.test(i):/mac/.test(t),o=!!/webkit/.test(t)&&parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),s="Microsoft Internet Explorer"===P.appName,l=[0,0,0],d=null;if(n(P.plugins)!==O&&n(P.plugins[j])===B)d=P.plugins[j].description,d&&n(P.mimeTypes)!==O&&P.mimeTypes[F]&&P.mimeTypes[F].enabledPlugin&&(V=!0,s=!1,d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),l[0]=b(d.replace(/^(.*)\..*$/,"$1")),l[1]=b(d.replace(/^.*\.(.*)\s.*$/,"$1")),l[2]=/[a-zA-Z]/.test(d)?b(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(n($.ActiveXObject)!==O)try{var c=new ActiveXObject(R);c&&(d=c.GetVariable("$version"),d&&(s=!0,d=d.split(" ")[1].split(","),l=[b(d[0]),b(d[1]),b(d[2])]))}catch(e){}return{w3:e,pv:l,wk:o,ie:s,win:a,mac:r}}();(function(){Q.w3&&((n(U.readyState)!==O&&("complete"===U.readyState||"interactive"===U.readyState)||n(U.readyState)===O&&(U.getElementsByTagName("body")[0]||U.body))&&e(),J||(n(U.addEventListener)!==O&&U.addEventListener("DOMContentLoaded",e,!1),Q.ie&&(U.attachEvent(M,function t(){"complete"===U.readyState&&(U.detachEvent(M,t),e())}),$==top&&!function t(){if(!J){try{U.documentElement.doScroll("left")}catch(e){return void setTimeout(t,0)}e()}}()),Q.wk&&!function t(){if(!J)return/loaded|complete/.test(U.readyState)?void e():void setTimeout(t,0)}()))})();D[0]=function(){V?a():r()};(function(){Q.ie&&window.attachEvent("onunload",function(){for(var e=G.length,t=0;t<e;t++)G[t][0].detachEvent(G[t][1],G[t][2]);for(var n=W.length,i=0;i<n;i++)v(W[i]);for(var a in Q)Q[a]=null;Q=null;for(var r in swfobject)swfobject[r]=null;swfobject=null})})();return{registerObject:function(e,t,n,i){if(Q.w3&&e&&t){var a={};a.id=e,a.swfVersion=t,a.expressInstall=n,a.callbackFn=i,H[H.length]=a,S(e,!1)}else i&&i({success:!1,id:e})},getObjectById:function(e){if(Q.w3)return o(e)},embedSWF:function(e,i,a,r,o,d,c,f,p,v){var y=h(i),m={success:!1,id:y};Q.w3&&!(Q.wk&&Q.wk<312)&&e&&i&&a&&r&&o?(S(y,!1),t(function(){a+="",r+="";var t={};if(p&&("undefined"==typeof p?"undefined":n(p))===B)for(var h in p)t[h]=p[h];t.data=e,t.width=a,t.height=r;var g={};if(f&&("undefined"==typeof f?"undefined":n(f))===B)for(var b in f)g[b]=f[b];if(c&&("undefined"==typeof c?"undefined":n(c))===B)for(var w in c)if(c.hasOwnProperty(w)){var C=Z?encodeURIComponent(w):w,A=Z?encodeURIComponent(c[w]):c[w];n(g.flashvars)!==O?g.flashvars+="&"+C+"="+A:g.flashvars=C+"="+A}if(E(o)){var T=u(t,g,i);t.id==y&&S(y,!0),m.success=!0,m.ref=T,m.id=T.id}else{if(d&&s())return t.data=d,void l(t,g,i,v);S(y,!0)}v&&v(m)})):v&&v(m)},switchOffAutoHideShow:function(){z=!1},enableUriEncoding:function(e){Z=("undefined"==typeof e?"undefined":n(e))===O||e},ua:Q,getFlashPlayerVersion:function(){return{major:Q.pv[0],minor:Q.pv[1],release:Q.pv[2]}},hasFlashPlayerVersion:E,createSWF:function(e,t,n){return Q.w3?u(e,t,n):void 0},showExpressInstall:function(e,t,n,i){Q.w3&&s()&&l(e,t,n,i)},removeSWF:function(e){Q.w3&&v(e)},createCSS:function(e,t,n,i){Q.w3&&C(e,t,n,i)},addDomLoadEvent:t,addLoadEvent:i,getQueryParamValue:function(e){var t=U.location.search||U.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),!e)return A(t);for(var n=t.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==e)return A(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(X){var e=m(_);e&&T&&(e.parentNode.replaceChild(T,e),N&&(S(N,!0),Q.ie&&(T.style.display="block")),x&&x(k)),X=!1}},version:"2.3"}}();(function(){"undefined"==typeof __REACT_HOT_LOADER__})()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var a=n(1),r=i(a);console.log(r.default),e.exports=function(e,t,n,i,a){var o="_flashReady"+Date.now(),s=o+10;console.log(o,s),window[o]=function(){i&&i(null,r.default.getObjectById(e))},window[s]=function(e){a&&a(e)};var l="http://192.168.1.44:8080/xdyvideo";r.default.embedSWF(l+"/flashvideo.swf",e,t,n,"11.4.0",l+"/flashinstall.swf",{flashReady:o,msgCallback:s},{allowScriptAccess:"always"},{objattr:"objattrvalue"},function(e){e.success||i("flash create errors")})};(function(){"undefined"==typeof __REACT_HOT_LOADER__})()}])});  
  1 +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.flashvideo=t():e.flashvideo=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2)},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(){function e(){if(!J&&document.getElementsByTagName("body")[0]){try{var e,t=g("span");t.style.display="none",e=U.getElementsByTagName("body")[0].appendChild(t),e.parentNode.removeChild(e),e=null,t=null}catch(e){return}J=!0;for(var n=D.length,i=0;i<n;i++)D[i]()}}function t(e){J?e():D[D.length]=e}function i(e){if(n($.addEventListener)!==O)$.addEventListener("load",e,!1);else if(n(U.addEventListener)!==O)U.addEventListener("load",e,!1);else if(n($.attachEvent)!==O)w($,"onload",e);else if("function"==typeof $.onload){var t=$.onload;$.onload=function(){t(),e()}}else $.onload=e}function a(){var e=U.getElementsByTagName("body")[0],t=g(B);t.setAttribute("style","visibility: hidden;"),t.setAttribute("type",F);var i=e.appendChild(t);if(i){var a=0;!function o(){if(n(i.GetVariable)!==O)try{var s=i.GetVariable("$version");s&&(s=s.split(" ")[1].split(","),Q.pv=[b(s[0]),b(s[1]),b(s[2])])}catch(e){Q.pv=[8,0,0]}else if(a<10)return a++,void setTimeout(o,10);e.removeChild(t),i=null,r()}()}else r()}function r(){var e=H.length;if(e>0)for(var t=0;t<e;t++){var i=H[t].id,a=H[t].callbackFn,r={success:!1,id:i};if(Q.pv[0]>0){var c=m(i);if(c)if(!E(H[t].swfVersion)||Q.wk&&Q.wk<312)if(H[t].expressInstall&&s()){var f={};f.data=H[t].expressInstall,f.width=c.getAttribute("width")||"0",f.height=c.getAttribute("height")||"0",c.getAttribute("class")&&(f.styleclass=c.getAttribute("class")),c.getAttribute("align")&&(f.align=c.getAttribute("align"));for(var u={},p=c.getElementsByTagName("param"),v=p.length,y=0;y<v;y++)"movie"!==p[y].getAttribute("name").toLowerCase()&&(u[p[y].getAttribute("name")]=p[y].getAttribute("value"));l(f,u,i,a)}else d(c),a&&a(r);else S(i,!0),a&&(r.success=!0,r.ref=o(i),r.id=i,a(r))}else if(S(i,!0),a){var h=o(i);h&&n(h.SetVariable)!==O&&(r.success=!0,r.ref=h,r.id=h.id),a(r)}}}function o(e){var t=null,i=m(e);return i&&"OBJECT"===i.nodeName.toUpperCase()&&(t=n(i.SetVariable)!==O?i:i.getElementsByTagName(B)[0]||i),t}function s(){return!X&&E("6.0.65")&&(Q.win||Q.mac)&&!(Q.wk&&Q.wk<312)}function l(e,t,i,a){var r=m(i);if(i=h(i),X=!0,x=a||null,k={success:!1,id:i},r){"OBJECT"===r.nodeName.toUpperCase()?(T=c(r),N=null):(T=r,N=i),e.id=_,(n(e.width)===O||!/%$/.test(e.width)&&b(e.width)<310)&&(e.width="310"),(n(e.height)===O||!/%$/.test(e.height)&&b(e.height)<137)&&(e.height="137");var o=Q.ie?"ActiveX":"PlugIn",s="MMredirectURL="+encodeURIComponent($.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+o+"&MMdoctitle="+encodeURIComponent(U.title.slice(0,47)+" - Flash Player Installation");if(n(t.flashvars)!==O?t.flashvars+="&"+s:t.flashvars=s,Q.ie&&4!=r.readyState){var l=g("div");i+="SWFObjectNew",l.setAttribute("id",i),r.parentNode.insertBefore(l,r),r.style.display="none",v(r)}u(e,t,i)}}function d(e){if(Q.ie&&4!=e.readyState){e.style.display="none";var t=g("div");e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(c(e),t),v(e)}else e.parentNode.replaceChild(c(e),e)}function c(e){var t=g("div");if(Q.win&&Q.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(B)[0];if(n){var i=n.childNodes;if(i)for(var a=i.length,r=0;r<a;r++)1==i[r].nodeType&&"PARAM"===i[r].nodeName||8==i[r].nodeType||t.appendChild(i[r].cloneNode(!0))}}return t}function f(e,t){var n=g("div");return n.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+e+"'>"+t+"</object>",n.firstChild}function u(e,t,i){var a,r=m(i);if(i=h(i),Q.wk&&Q.wk<312)return a;if(r){var o,s,l,d=g(Q.ie?"div":B);n(e.id)===O&&(e.id=i);for(l in t)t.hasOwnProperty(l)&&"movie"!==l.toLowerCase()&&p(d,l,t[l]);Q.ie&&(d=f(e.data,d.innerHTML));for(o in e)e.hasOwnProperty(o)&&(s=o.toLowerCase(),"styleclass"===s?d.setAttribute("class",e[o]):"classid"!==s&&"data"!==s&&d.setAttribute(o,e[o]));Q.ie?W[W.length]=e.id:(d.setAttribute("type",F),d.setAttribute("data",e.data)),r.parentNode.replaceChild(d,r),a=d}return a}function p(e,t,n){var i=g("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function v(e){var t=m(e);t&&"OBJECT"===t.nodeName.toUpperCase()&&(Q.ie?(t.style.display="none",function e(){if(4==t.readyState){for(var n in t)"function"==typeof t[n]&&(t[n]=null);t.parentNode.removeChild(t)}else setTimeout(e,10)}()):t.parentNode.removeChild(t))}function y(e){return e&&e.nodeType&&1===e.nodeType}function h(e){return y(e)?e.id:e}function m(e){if(y(e))return e;var t=null;try{t=U.getElementById(e)}catch(e){}return t}function g(e){return U.createElement(e)}function b(e){return parseInt(e,10)}function w(e,t,n){e.attachEvent(t,n),G[G.length]=[e,t,n]}function E(e){e+="";var t=Q.pv,n=e.split(".");return n[0]=b(n[0]),n[1]=b(n[1])||0,n[2]=b(n[2])||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]}function C(e,t,i,a){var r=U.getElementsByTagName("head")[0];if(r){var o="string"==typeof i?i:"screen";if(a&&(I=null,L=null),!I||L!=o){var s=g("style");s.setAttribute("type","text/css"),s.setAttribute("media",o),I=r.appendChild(s),Q.ie&&n(U.styleSheets)!==O&&U.styleSheets.length>0&&(I=U.styleSheets[U.styleSheets.length-1]),L=o}I&&(n(I.addRule)!==O?I.addRule(e,t):n(U.createTextNode)!==O&&I.appendChild(U.createTextNode(e+" {"+t+"}")))}}function S(e,t){if(z){var n=t?"visible":"hidden",i=m(e);J&&i?i.style.visibility=n:"string"==typeof e&&C("#"+e,"visibility:"+n)}}function A(e){var t=/[\\\"<>\.;]/,i=null!==t.exec(e);return i&&("undefined"==typeof encodeURIComponent?"undefined":n(encodeURIComponent))!==O?encodeURIComponent(e):e}var T,N,x,k,I,L,O="undefined",B="object",j="Shockwave Flash",R="ShockwaveFlash.ShockwaveFlash",F="application/x-shockwave-flash",_="SWFObjectExprInst",M="onreadystatechange",$=window,U=document,P=navigator,V=!1,D=[],H=[],W=[],G=[],J=!1,X=!1,z=!0,Z=!1,Q=function(){var e=n(U.getElementById)!==O&&n(U.getElementsByTagName)!==O&&n(U.createElement)!==O,t=P.userAgent.toLowerCase(),i=P.platform.toLowerCase(),a=i?/win/.test(i):/win/.test(t),r=i?/mac/.test(i):/mac/.test(t),o=!!/webkit/.test(t)&&parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),s="Microsoft Internet Explorer"===P.appName,l=[0,0,0],d=null;if(n(P.plugins)!==O&&n(P.plugins[j])===B)d=P.plugins[j].description,d&&n(P.mimeTypes)!==O&&P.mimeTypes[F]&&P.mimeTypes[F].enabledPlugin&&(V=!0,s=!1,d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),l[0]=b(d.replace(/^(.*)\..*$/,"$1")),l[1]=b(d.replace(/^.*\.(.*)\s.*$/,"$1")),l[2]=/[a-zA-Z]/.test(d)?b(d.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(n($.ActiveXObject)!==O)try{var c=new ActiveXObject(R);c&&(d=c.GetVariable("$version"),d&&(s=!0,d=d.split(" ")[1].split(","),l=[b(d[0]),b(d[1]),b(d[2])]))}catch(e){}return{w3:e,pv:l,wk:o,ie:s,win:a,mac:r}}();(function(){Q.w3&&((n(U.readyState)!==O&&("complete"===U.readyState||"interactive"===U.readyState)||n(U.readyState)===O&&(U.getElementsByTagName("body")[0]||U.body))&&e(),J||(n(U.addEventListener)!==O&&U.addEventListener("DOMContentLoaded",e,!1),Q.ie&&(U.attachEvent(M,function t(){"complete"===U.readyState&&(U.detachEvent(M,t),e())}),$==top&&!function t(){if(!J){try{U.documentElement.doScroll("left")}catch(e){return void setTimeout(t,0)}e()}}()),Q.wk&&!function t(){if(!J)return/loaded|complete/.test(U.readyState)?void e():void setTimeout(t,0)}()))})();D[0]=function(){V?a():r()};(function(){Q.ie&&window.attachEvent("onunload",function(){for(var e=G.length,t=0;t<e;t++)G[t][0].detachEvent(G[t][1],G[t][2]);for(var n=W.length,i=0;i<n;i++)v(W[i]);for(var a in Q)Q[a]=null;Q=null;for(var r in swfobject)swfobject[r]=null;swfobject=null})})();return{registerObject:function(e,t,n,i){if(Q.w3&&e&&t){var a={};a.id=e,a.swfVersion=t,a.expressInstall=n,a.callbackFn=i,H[H.length]=a,S(e,!1)}else i&&i({success:!1,id:e})},getObjectById:function(e){if(Q.w3)return o(e)},embedSWF:function(e,i,a,r,o,d,c,f,p,v){var y=h(i),m={success:!1,id:y};Q.w3&&!(Q.wk&&Q.wk<312)&&e&&i&&a&&r&&o?(S(y,!1),t(function(){a+="",r+="";var t={};if(p&&("undefined"==typeof p?"undefined":n(p))===B)for(var h in p)t[h]=p[h];t.data=e,t.width=a,t.height=r;var g={};if(f&&("undefined"==typeof f?"undefined":n(f))===B)for(var b in f)g[b]=f[b];if(c&&("undefined"==typeof c?"undefined":n(c))===B)for(var w in c)if(c.hasOwnProperty(w)){var C=Z?encodeURIComponent(w):w,A=Z?encodeURIComponent(c[w]):c[w];n(g.flashvars)!==O?g.flashvars+="&"+C+"="+A:g.flashvars=C+"="+A}if(E(o)){var T=u(t,g,i);t.id==y&&S(y,!0),m.success=!0,m.ref=T,m.id=T.id}else{if(d&&s())return t.data=d,void l(t,g,i,v);S(y,!0)}v&&v(m)})):v&&v(m)},switchOffAutoHideShow:function(){z=!1},enableUriEncoding:function(e){Z=("undefined"==typeof e?"undefined":n(e))===O||e},ua:Q,getFlashPlayerVersion:function(){return{major:Q.pv[0],minor:Q.pv[1],release:Q.pv[2]}},hasFlashPlayerVersion:E,createSWF:function(e,t,n){return Q.w3?u(e,t,n):void 0},showExpressInstall:function(e,t,n,i){Q.w3&&s()&&l(e,t,n,i)},removeSWF:function(e){Q.w3&&v(e)},createCSS:function(e,t,n,i){Q.w3&&C(e,t,n,i)},addDomLoadEvent:t,addLoadEvent:i,getQueryParamValue:function(e){var t=U.location.search||U.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),!e)return A(t);for(var n=t.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==e)return A(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(X){var e=m(_);e&&T&&(e.parentNode.replaceChild(T,e),N&&(S(N,!0),Q.ie&&(T.style.display="block")),x&&x(k)),X=!1}},version:"2.3"}}();(function(){"undefined"==typeof __REACT_HOT_LOADER__})()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var a=n(1),r=i(a);console.log(r.default),e.exports=function(e,t,n,i,a){var o="_flashReady"+Date.now(),s=o+10;console.log(o,s),window[o]=function(){i&&i(null,r.default.getObjectById(e))},window[s]=function(e){a&&a(e)};var l=".";r.default.embedSWF(l+"/flashvideo.swf",e,t,n,"11.4.0",l+"/flashinstall.swf",{flashReady:o,msgCallback:s},{allowScriptAccess:"always"},{},function(e){e.success||i("flash create errors")})};(function(){"undefined"==typeof __REACT_HOT_LOADER__})()}])});