正在显示
3 个修改的文件
包含
72 行增加
和
310 行删除
| @@ -267,103 +267,7 @@ height: 1080px; | @@ -267,103 +267,7 @@ height: 1080px; | ||
| 267 | width: 40px; | 267 | width: 40px; |
| 268 | height: 20px; | 268 | height: 20px; |
| 269 | } | 269 | } |
| 270 | -/*直播中*/ | ||
| 271 | -.cur-status { | ||
| 272 | - float: left; | ||
| 273 | - width: 100px; | ||
| 274 | - position: relative; | ||
| 275 | - | ||
| 276 | -} | ||
| 277 | -.cur-status a{ | ||
| 278 | - | ||
| 279 | - float: right; | ||
| 280 | - color: #333333; | ||
| 281 | - font-size: 14px; | ||
| 282 | - text-align: left; | ||
| 283 | - | ||
| 284 | -} | ||
| 285 | -.live { | ||
| 286 | - position: absolute; | ||
| 287 | - width: 26%; | ||
| 288 | - height: 34%; | ||
| 289 | - margin-left: 25%; | ||
| 290 | - bottom: 39%; | ||
| 291 | - display: none; | ||
| 292 | - | ||
| 293 | -} | ||
| 294 | - | ||
| 295 | -.live i { | ||
| 296 | - width: 4%; | ||
| 297 | - height: 10%; | ||
| 298 | - position: absolute; | ||
| 299 | - bottom: 0; | ||
| 300 | - background-color: red; | ||
| 301 | -} | ||
| 302 | - | ||
| 303 | -.live i:nth-of-type(1) { | ||
| 304 | - left: 0; | ||
| 305 | -} | ||
| 306 | 270 | ||
| 307 | -.live i:nth-of-type(2) { | ||
| 308 | - left: 6px; | ||
| 309 | -} | ||
| 310 | - | ||
| 311 | -.live i:nth-of-type(3) { | ||
| 312 | - left: 12px; | ||
| 313 | -} | ||
| 314 | - | ||
| 315 | -.live i:nth-of-type(4) { | ||
| 316 | - left: 18px; | ||
| 317 | -} | ||
| 318 | - | ||
| 319 | -.live.active i:nth-of-type(1) { | ||
| 320 | - -webkit-animation: wave 0.9s linear infinite; | ||
| 321 | - animation: wave 0.9s linear infinite; | ||
| 322 | -} | ||
| 323 | - | ||
| 324 | -.live.active i:nth-of-type(2) { | ||
| 325 | - -webkit-animation: wave 0.7s linear infinite; | ||
| 326 | - animation: wave 0.7s linear infinite; | ||
| 327 | -} | ||
| 328 | - | ||
| 329 | -.live.active i:nth-of-type(3) { | ||
| 330 | - -webkit-animation: wave 0.8s linear infinite; | ||
| 331 | - animation: wave 0.8s linear infinite; | ||
| 332 | -} | ||
| 333 | - | ||
| 334 | -.live.active i:nth-of-type(4) { | ||
| 335 | - -webkit-animation: wave 0.6s linear infinite; | ||
| 336 | - animation: wave 0.6s linear infinite; | ||
| 337 | -} | ||
| 338 | - | ||
| 339 | -@-webkit-keyframes wave { | ||
| 340 | - 0% { | ||
| 341 | - height: 6px | ||
| 342 | - } | ||
| 343 | - 50% { | ||
| 344 | - height: 20px | ||
| 345 | - } | ||
| 346 | - 100% { | ||
| 347 | - height: 12px | ||
| 348 | - } | ||
| 349 | -} | ||
| 350 | - | ||
| 351 | -@keyframes wave { | ||
| 352 | - 0% { | ||
| 353 | - height: 8px | ||
| 354 | - } | ||
| 355 | - 50% { | ||
| 356 | - height: 20px | ||
| 357 | - } | ||
| 358 | - 100% { | ||
| 359 | - height: 12px | ||
| 360 | - } | ||
| 361 | -} | ||
| 362 | - | ||
| 363 | -.no-start{ | ||
| 364 | - position: absolute; | ||
| 365 | - left: 30px; | ||
| 366 | -} | ||
| 367 | 271 | ||
| 368 | /*修改amazeui.min.css*/ | 272 | /*修改amazeui.min.css*/ |
| 369 | .am-btn-primary.am-active, .am-btn-primary:active, .am-dropdown.am-active .am-btn-primary.am-dropdown-toggle{ | 273 | .am-btn-primary.am-active, .am-btn-primary:active, .am-dropdown.am-active .am-btn-primary.am-dropdown-toggle{ |
| @@ -1834,7 +1738,7 @@ textarea{ | @@ -1834,7 +1738,7 @@ textarea{ | ||
| 1834 | cursor: pointer; | 1738 | cursor: pointer; |
| 1835 | list-style: none; | 1739 | list-style: none; |
| 1836 | border-radius: 0; | 1740 | border-radius: 0; |
| 1837 | - background: url("../images/color-n.png") no-repeat; | 1741 | + background: url("../images/color6-n.png") no-repeat; |
| 1838 | -webkit-transition: background-color 0.2s ease-in-out; | 1742 | -webkit-transition: background-color 0.2s ease-in-out; |
| 1839 | } | 1743 | } |
| 1840 | 1744 | ||
| @@ -1902,7 +1806,7 @@ textarea{ | @@ -1902,7 +1806,7 @@ textarea{ | ||
| 1902 | cursor: pointer; | 1806 | cursor: pointer; |
| 1903 | list-style: none; | 1807 | list-style: none; |
| 1904 | margin: 8px 8px 0 10px; | 1808 | margin: 8px 8px 0 10px; |
| 1905 | - background: url("../images/color1-n.png") no-repeat; | 1809 | + background: url("../images/color6-n.png") no-repeat; |
| 1906 | } | 1810 | } |
| 1907 | 1811 | ||
| 1908 | .tool-color .Color2{ | 1812 | .tool-color .Color2{ |
| @@ -3194,7 +3098,7 @@ canvas { | @@ -3194,7 +3098,7 @@ canvas { | ||
| 3194 | cursor: pointer; | 3098 | cursor: pointer; |
| 3195 | list-style: none; | 3099 | list-style: none; |
| 3196 | border-radius: 0; | 3100 | border-radius: 0; |
| 3197 | - background: url("../images/color-n.png") no-repeat; | 3101 | + background: url("../images/color6-n.png") no-repeat; |
| 3198 | -webkit-transition: background-color 0.2s ease-in-out; | 3102 | -webkit-transition: background-color 0.2s ease-in-out; |
| 3199 | } | 3103 | } |
| 3200 | 3104 | ||
| @@ -3262,7 +3166,7 @@ canvas { | @@ -3262,7 +3166,7 @@ canvas { | ||
| 3262 | cursor: pointer; | 3166 | cursor: pointer; |
| 3263 | list-style: none; | 3167 | list-style: none; |
| 3264 | margin: 8px 8px 0 10px; | 3168 | margin: 8px 8px 0 10px; |
| 3265 | - background: url("../images/color1-n.png") no-repeat; | 3169 | + background: url("../images/color6-n.png") no-repeat; |
| 3266 | } | 3170 | } |
| 3267 | 3171 | ||
| 3268 | .tool-color .Color2{ | 3172 | .tool-color .Color2{ |
| @@ -4164,7 +4068,7 @@ canvas { | @@ -4164,7 +4068,7 @@ canvas { | ||
| 4164 | cursor: pointer; | 4068 | cursor: pointer; |
| 4165 | list-style: none; | 4069 | list-style: none; |
| 4166 | border-radius: 0; | 4070 | border-radius: 0; |
| 4167 | - background: url("../images/color-n.png") no-repeat; | 4071 | + background: url("../images/color6-n.png") no-repeat; |
| 4168 | -webkit-transition: background-color 0.2s ease-in-out; | 4072 | -webkit-transition: background-color 0.2s ease-in-out; |
| 4169 | } | 4073 | } |
| 4170 | 4074 | ||
| @@ -4214,7 +4118,7 @@ canvas { | @@ -4214,7 +4118,7 @@ canvas { | ||
| 4214 | 4118 | ||
| 4215 | display: none; | 4119 | display: none; |
| 4216 | position: absolute; | 4120 | position: absolute; |
| 4217 | - width: 330px; | 4121 | + width: 190px; |
| 4218 | height: 44px; | 4122 | height: 44px; |
| 4219 | line-height: 44px; | 4123 | line-height: 44px; |
| 4220 | background: #cccccc; | 4124 | background: #cccccc; |
| @@ -4231,7 +4135,7 @@ canvas { | @@ -4231,7 +4135,7 @@ canvas { | ||
| 4231 | cursor: pointer; | 4135 | cursor: pointer; |
| 4232 | list-style: none; | 4136 | list-style: none; |
| 4233 | margin: 8px 8px 0 10px; | 4137 | margin: 8px 8px 0 10px; |
| 4234 | - background: url("../images/color1-n.png") no-repeat; | 4138 | + background: url("../images/color6-n.png") no-repeat; |
| 4235 | } | 4139 | } |
| 4236 | 4140 | ||
| 4237 | .tool-color .Color2{ | 4141 | .tool-color .Color2{ |
| @@ -4261,36 +4165,8 @@ canvas { | @@ -4261,36 +4165,8 @@ canvas { | ||
| 4261 | margin: 8px 8px 0 10px; | 4165 | margin: 8px 8px 0 10px; |
| 4262 | background: url("../images/color4-n.png") no-repeat; | 4166 | background: url("../images/color4-n.png") no-repeat; |
| 4263 | } | 4167 | } |
| 4264 | - .tool-color .Color5{ | ||
| 4265 | - float: left; | ||
| 4266 | - height: 28px; | ||
| 4267 | - width: 28px; | ||
| 4268 | - cursor: pointer; | ||
| 4269 | - list-style: none; | ||
| 4270 | - margin: 8px 8px 0 10px; | ||
| 4271 | - background: url("../images/color5-n.png") no-repeat; | ||
| 4272 | - } | ||
| 4273 | - .tool-color .Color6{ | ||
| 4274 | - float: left; | ||
| 4275 | - height: 28px; | ||
| 4276 | - width: 28px; | ||
| 4277 | - cursor: pointer; | ||
| 4278 | - list-style: none; | ||
| 4279 | - margin: 8px 8px 0 10px; | ||
| 4280 | - background: url("../images/color6-n.png") no-repeat; | ||
| 4281 | - } | ||
| 4282 | - .tool-color .Color7{ | ||
| 4283 | - float: left; | ||
| 4284 | - height: 28px; | ||
| 4285 | - width: 28px; | ||
| 4286 | - cursor: pointer; | ||
| 4287 | - list-style: none; | ||
| 4288 | - margin: 8px 8px 0 10px; | ||
| 4289 | - background: url("../images/color1-n.png") no-repeat; | ||
| 4290 | - } | ||
| 4291 | - | ||
| 4292 | .tool-color .draw_controller { | 4168 | .tool-color .draw_controller { |
| 4293 | - width: 330px; | 4169 | + width: 190px; |
| 4294 | height: 44px; | 4170 | height: 44px; |
| 4295 | background: #f2f2f2; | 4171 | background: #f2f2f2; |
| 4296 | border: 2px solid #e0e0e0; | 4172 | border: 2px solid #e0e0e0; |
| @@ -42,11 +42,12 @@ | @@ -42,11 +42,12 @@ | ||
| 42 | </button> | 42 | </button> |
| 43 | <div class="am-modal am-modal-alert am-modal-active popheight" tabindex="-1" id="my-alert"> | 43 | <div class="am-modal am-modal-alert am-modal-active popheight" tabindex="-1" id="my-alert"> |
| 44 | <div class="am-modal-dialog "> | 44 | <div class="am-modal-dialog "> |
| 45 | - <div class="am-modal-bd"> | ||
| 46 | - error1:失败了!请重新点击! | 45 | + <div class="am-modal-bd popTxt"> |
| 46 | + | ||
| 47 | </div> | 47 | </div> |
| 48 | <div class="am-modal-footer"> | 48 | <div class="am-modal-footer"> |
| 49 | - <span class="am-modal-btn popBtn">确定</span> | 49 | + <span class="am-modal-btn" data-am-modal-cancel>取消</span> |
| 50 | + <span class="am-modal-btn popBtn" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0, width: 398, height: 288}">确定</span> | ||
| 50 | </div> | 51 | </div> |
| 51 | </div> | 52 | </div> |
| 52 | </div> | 53 | </div> |
| @@ -71,15 +72,15 @@ | @@ -71,15 +72,15 @@ | ||
| 71 | 72 | ||
| 72 | <!--头部--> | 73 | <!--头部--> |
| 73 | <div class="header clear"> | 74 | <div class="header clear"> |
| 74 | - <li class="cur-status"> | ||
| 75 | - <span id="no-start" class="no-start iconfont"></span> | ||
| 76 | - <div id='live' class="live active"> | ||
| 77 | - <i></i> | ||
| 78 | - <i></i> | ||
| 79 | - <i></i> | ||
| 80 | - <i></i> | ||
| 81 | - </div> | ||
| 82 | - <a id="a-status" href="javascript: void(0)">未开始</a></li> | 75 | + <!--<li class="cur-status">--> |
| 76 | + <!--<span id="no-start" class="no-start iconfont"></span>--> | ||
| 77 | + <!--<div id='live' class="live active">--> | ||
| 78 | + <!--<i></i>--> | ||
| 79 | + <!--<i></i>--> | ||
| 80 | + <!--<i></i>--> | ||
| 81 | + <!--<i></i>--> | ||
| 82 | + <!--</div>--> | ||
| 83 | + <!--<a id="a-status" href="javascript: void(0)">未开始</a></li>--> | ||
| 83 | 84 | ||
| 84 | <li class="classroom"><a id="classCurName" href="javascript: void(0)"></a></li> | 85 | <li class="classroom"><a id="classCurName" href="javascript: void(0)"></a></li> |
| 85 | <li class="classCurId"><a id="classCurId" href="javascript: void(0)"></a></li> | 86 | <li class="classCurId"><a id="classCurId" href="javascript: void(0)"></a></li> |
| @@ -228,9 +229,7 @@ | @@ -228,9 +229,7 @@ | ||
| 228 | <div class="content clear"> | 229 | <div class="content clear"> |
| 229 | <!--左侧--> | 230 | <!--左侧--> |
| 230 | <div id="left" class="left"> | 231 | <div id="left" class="left"> |
| 231 | - <!--<div class="am-tabs" data-am-tabs>--> | ||
| 232 | - <!--<div id="tab-box" class="am-tabs-bd">--> | ||
| 233 | - <!--<div class="am-tab-panel am-fade am-in am-active" id="tab1">--> | 232 | + |
| 234 | <div class="spinner1"> | 233 | <div class="spinner1"> |
| 235 | <div class="bounce1"></div> | 234 | <div class="bounce1"></div> |
| 236 | <div class="bounce2"></div> | 235 | <div class="bounce2"></div> |
| @@ -243,16 +242,12 @@ | @@ -243,16 +242,12 @@ | ||
| 243 | <canvas id="canvas"> | 242 | <canvas id="canvas"> |
| 244 | 浏览器不支持 | 243 | 浏览器不支持 |
| 245 | </canvas> | 244 | </canvas> |
| 246 | - | ||
| 247 | - <!--<div id="docOuter" class="docOuter">--> | ||
| 248 | <img class="showImg" id="showImg"/> | 245 | <img class="showImg" id="showImg"/> |
| 249 | <!--文档层--> | 246 | <!--文档层--> |
| 250 | <img id="docImage" class="docImage"> | 247 | <img id="docImage" class="docImage"> |
| 251 | - | ||
| 252 | </img> | 248 | </img> |
| 253 | <canvas id="canvas_bak"></canvas> | 249 | <canvas id="canvas_bak"></canvas> |
| 254 | 250 | ||
| 255 | - <!--</div>--> | ||
| 256 | 251 | ||
| 257 | </div> | 252 | </div> |
| 258 | <!--画板的工具栏--> | 253 | <!--画板的工具栏--> |
| @@ -263,20 +258,20 @@ | @@ -263,20 +258,20 @@ | ||
| 263 | <!--颜色板--> | 258 | <!--颜色板--> |
| 264 | <div id="tool-color" class="tool-color"> | 259 | <div id="tool-color" class="tool-color"> |
| 265 | <ul class="draw_controller cf"> | 260 | <ul class="draw_controller cf"> |
| 266 | - <li id="li-Color1" class="Color1" title="#4fbd92" value="#4fbd92" | 261 | + <!--红色--> |
| 262 | + <li id="li-Color1" class="Color1" title="#b8242a" value="#b8242a" | ||
| 267 | onclick="choose(1)"></li> | 263 | onclick="choose(1)"></li> |
| 264 | + <!--蓝色--> | ||
| 268 | <li id="li-Color2" class="Color2" title="#0071bc" value="#0071bc" | 265 | <li id="li-Color2" class="Color2" title="#0071bc" value="#0071bc" |
| 269 | onclick="choose(2)"></li> | 266 | onclick="choose(2)"></li> |
| 267 | + <!--紫色--> | ||
| 270 | <li id="li-Color3" class="Color3" title="#6a0db2" value="#6a0db2" | 268 | <li id="li-Color3" class="Color3" title="#6a0db2" value="#6a0db2" |
| 271 | onclick="choose(3)"></li> | 269 | onclick="choose(3)"></li> |
| 270 | + <!--黄色--> | ||
| 272 | <li id="li-Color4" class="Color4" title="#fae81b" value="#fae81b" | 271 | <li id="li-Color4" class="Color4" title="#fae81b" value="#fae81b" |
| 273 | onclick="choose(4)"></li> | 272 | onclick="choose(4)"></li> |
| 274 | - <li id="li-Color5" class="Color5" title="#f7751e" value="#f7751e" | ||
| 275 | - onclick="choose(5)"></li> | ||
| 276 | - <li id="li-Color6" class="Color6" title="#b8242a" value="#b8242a" | ||
| 277 | - onclick="choose(6)"></li> | ||
| 278 | - <li id="li-Color7" class="Color7" title="#4fbd92" value="#4fbd92" | ||
| 279 | - onclick="choose(7)"></li> | 273 | + |
| 274 | + | ||
| 280 | </ul> | 275 | </ul> |
| 281 | </div> | 276 | </div> |
| 282 | 277 | ||
| @@ -285,7 +280,6 @@ | @@ -285,7 +280,6 @@ | ||
| 285 | <li class="rescind" title="撤销上一步操作"></li> | 280 | <li class="rescind" title="撤销上一步操作"></li> |
| 286 | <!--<li class="square" title="方形"></li>--> | 281 | <!--<li class="square" title="方形"></li>--> |
| 287 | <!--<li class="drawLine" title="画直线"></li>--> | 282 | <!--<li class="drawLine" title="画直线"></li>--> |
| 288 | - | ||
| 289 | <!--<li class="circle" title="圆"></li>--> | 283 | <!--<li class="circle" title="圆"></li>--> |
| 290 | <!--<li class="laserPen" title="激光笔"></li>--> | 284 | <!--<li class="laserPen" title="激光笔"></li>--> |
| 291 | <!--<li class="canvasText" title="文字"></li>--> | 285 | <!--<li class="canvasText" title="文字"></li>--> |
| @@ -297,12 +291,7 @@ | @@ -297,12 +291,7 @@ | ||
| 297 | 291 | ||
| 298 | 292 | ||
| 299 | </div> | 293 | </div> |
| 300 | - <!--</div>--> | ||
| 301 | - | ||
| 302 | - | ||
| 303 | - <!--</div>--> | ||
| 304 | 294 | ||
| 305 | - <!--</div>--> | ||
| 306 | 295 | ||
| 307 | 296 | ||
| 308 | 297 | ||
| @@ -337,19 +326,6 @@ | @@ -337,19 +326,6 @@ | ||
| 337 | <!--文档和视频切换,视频控制区域--> | 326 | <!--文档和视频切换,视频控制区域--> |
| 338 | <div class="control"> | 327 | <div class="control"> |
| 339 | <ul class="clear"> | 328 | <ul class="clear"> |
| 340 | - <!--<li class="voice-on-off iconfont"></li>--> | ||
| 341 | - <!--<li class="voice-progress">--> | ||
| 342 | - | ||
| 343 | - <!--<div id="Demo">--> | ||
| 344 | - <!--<div id="Main">--> | ||
| 345 | - <!--<div id="scrollBar">--> | ||
| 346 | - <!--<div id="scroll_Track"></div>--> | ||
| 347 | - <!--<div id="scroll_Thumb"></div>--> | ||
| 348 | - <!--</div>--> | ||
| 349 | - <!--</div>--> | ||
| 350 | - <!--</div>--> | ||
| 351 | - | ||
| 352 | - <!--</li>--> | ||
| 353 | <li class="fileUpload iconfont" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0, width: 398, height: 288}"></li> | 329 | <li class="fileUpload iconfont" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0, width: 398, height: 288}"></li> |
| 354 | 330 | ||
| 355 | <li class="next-page "><a id="nextPage" href="javascript:void(0)"></a></li> | 331 | <li class="next-page "><a id="nextPage" href="javascript:void(0)"></a></li> |
| @@ -384,7 +360,6 @@ | @@ -384,7 +360,6 @@ | ||
| 384 | <div id="stuVideo-voiceBg" class="stuVideo-voiceBg iconfont"></div> | 360 | <div id="stuVideo-voiceBg" class="stuVideo-voiceBg iconfont"></div> |
| 385 | <div id="stuVideo-voiceNotClick" class="stuVideo-voiceNotClick iconfont" title="当前不能点击"></div> | 361 | <div id="stuVideo-voiceNotClick" class="stuVideo-voiceNotClick iconfont" title="当前不能点击"></div> |
| 386 | 362 | ||
| 387 | - <!--<span>lucy</span>--> | ||
| 388 | </div> | 363 | </div> |
| 389 | <div class="teacherVideo"> | 364 | <div class="teacherVideo"> |
| 390 | <div class="publish" style="position:absolute;top: 0; width:240px;height:180px"> | 365 | <div class="publish" style="position:absolute;top: 0; width:240px;height:180px"> |
| @@ -586,7 +561,7 @@ | @@ -586,7 +561,7 @@ | ||
| 586 | 561 | ||
| 587 | <div class="fourParamsOut"> | 562 | <div class="fourParamsOut"> |
| 588 | <ul class="fourParams clear"> | 563 | <ul class="fourParams clear"> |
| 589 | - <li><span>classId:</span><input class="classId" type="text" value="1215295269"></li> | 564 | + <li><span>classId:</span><input class="classId" type="text" value="1357644520"></li> |
| 590 | <!--<li><span>userRole:</span><input class="userRole" type="text" value=""></li>--> | 565 | <!--<li><span>userRole:</span><input class="userRole" type="text" value=""></li>--> |
| 591 | <!--<li><span>portal:</span><input class="portal" type="text" value=""></li>--> | 566 | <!--<li><span>portal:</span><input class="portal" type="text" value=""></li>--> |
| 592 | <li><span>userId:</span><input class="userId" type="text" value=""></li> | 567 | <li><span>userId:</span><input class="userId" type="text" value=""></li> |
| @@ -657,8 +632,6 @@ | @@ -657,8 +632,6 @@ | ||
| 657 | ScrollBar.maxValue = 100; | 632 | ScrollBar.maxValue = 100; |
| 658 | //初始化 | 633 | //初始化 |
| 659 | ScrollBar.Initialize(); | 634 | ScrollBar.Initialize(); |
| 660 | - | ||
| 661 | - | ||
| 662 | }); | 635 | }); |
| 663 | var ScrollBar = { | 636 | var ScrollBar = { |
| 664 | value: 20, | 637 | value: 20, |
| @@ -806,89 +779,6 @@ | @@ -806,89 +779,6 @@ | ||
| 806 | } | 779 | } |
| 807 | </script> | 780 | </script> |
| 808 | 781 | ||
| 809 | -<!--开始上课/正在录制--> | ||
| 810 | -<script type="text/javascript"> | ||
| 811 | - var flag = 0; | ||
| 812 | - // 正在上课 | ||
| 813 | - var classnow = document.getElementById('class-now'); | ||
| 814 | - //弹出层上的文字 | ||
| 815 | - var ptext = document.getElementById('p-text'); | ||
| 816 | - var ptext1 = document.getElementById('p-text-1'); | ||
| 817 | - // 确定按钮 | ||
| 818 | - var confirm = document.getElementById('confirm'); | ||
| 819 | - var confirm1 = document.getElementById('confirm-1'); | ||
| 820 | - | ||
| 821 | - // 正在上课前的iconfont | ||
| 822 | - var spaniconfont = document.getElementById('span-iconfont'); | ||
| 823 | - // 左侧 未开始 直播中 | ||
| 824 | - var aStatus = document.getElementById('a-status'); | ||
| 825 | - // 左侧跳动 | ||
| 826 | - var oLive = document.getElementById('live'); | ||
| 827 | - // 左侧的iconfont | ||
| 828 | - var noStart = document.getElementById('no-start'); | ||
| 829 | - | ||
| 830 | - var end = document.getElementById('end'); | ||
| 831 | - | ||
| 832 | - var endNoexit = document.getElementById('end-no-exit'); | ||
| 833 | - | ||
| 834 | - | ||
| 835 | - // 第一个下拉的第一个 | ||
| 836 | - var classesStatus1 = document.getElementById('classes-status-1'); | ||
| 837 | - // 第一个下拉的第二个 | ||
| 838 | - var classesStatus2 = document.getElementById('classes-status-2'); | ||
| 839 | - | ||
| 840 | - var amDrospanIcon = document.getElementById('am-dropdown-content-span-1'); | ||
| 841 | -// confirm.onclick = function changeStatus() { | ||
| 842 | -// if (flag == '0') { | ||
| 843 | -// flag++; | ||
| 844 | -// console.log(flag); | ||
| 845 | -// spaniconfont.innerHTML = ''; | ||
| 846 | -// classnow.innerHTML = '直播中'; | ||
| 847 | -// aStatus.innerHTML = '直播中'; | ||
| 848 | -// aStatus.style.color = '#d95136'; | ||
| 849 | -// ptext.innerHTML = '确定暂停录制吗' | ||
| 850 | -// noStart.style.display = 'none'; | ||
| 851 | -// oLive.style.display = 'block'; | ||
| 852 | -// amDrospanIcon.innerHTML = ""; | ||
| 853 | -// classesStatus1.innerHTML = '课间休息'; | ||
| 854 | -// console.log(classesStatus1.innerHTML); | ||
| 855 | -// classesStatus2.innerHTML = '结束课堂'; | ||
| 856 | -// console.log(classesStatus2.innerHTML); | ||
| 857 | -// | ||
| 858 | -// | ||
| 859 | -// } | ||
| 860 | -// else if (flag == '1') { | ||
| 861 | -// console.log(flag); | ||
| 862 | -// ptext.innerHTML = '确定继续上课吗' | ||
| 863 | -// spaniconfont.innerHTML = ''; | ||
| 864 | -// classnow.innerHTML = '休息'; | ||
| 865 | -// aStatus.innerHTML = '休息'; | ||
| 866 | -// aStatus.style.color = '#333333'; | ||
| 867 | -// noStart.style.display = 'block'; | ||
| 868 | -// oLive.style.display = 'none'; | ||
| 869 | -// amDrospanIcon.innerHTML = ""; | ||
| 870 | -// classesStatus1.innerHTML = '继续上课'; | ||
| 871 | -// console.log(classesStatus1.innerHTML); | ||
| 872 | -// classesStatus2.innerHTML = '结束课堂'; | ||
| 873 | -// console.log(classesStatus2.innerHTML); | ||
| 874 | -// flag--; | ||
| 875 | -// } | ||
| 876 | -// | ||
| 877 | -// | ||
| 878 | -// } | ||
| 879 | -// end.onclick = function endStatus() { | ||
| 880 | -// spaniconfont.innerHTML = ''; | ||
| 881 | -// classnow.innerHTML = '结束'; | ||
| 882 | -// aStatus.innerHTML = '结束'; | ||
| 883 | -// oLive.style.display = 'none'; | ||
| 884 | -// spaniconfont.innerHTML = ''; | ||
| 885 | -// noStart.innerHTML = ""; | ||
| 886 | -// noStart.style.display = 'block'; | ||
| 887 | -// aStatus.style.color = '#333333'; | ||
| 888 | -// } | ||
| 889 | - | ||
| 890 | - | ||
| 891 | -</script> | ||
| 892 | 782 | ||
| 893 | <!--色板--> | 783 | <!--色板--> |
| 894 | <script type="text/javascript"> | 784 | <script type="text/javascript"> |
| @@ -896,16 +786,6 @@ | @@ -896,16 +786,6 @@ | ||
| 896 | var toolColor = document.getElementById('tool-color'); | 786 | var toolColor = document.getElementById('tool-color'); |
| 897 | var chooseColor = document.getElementById('chooseColor'); | 787 | var chooseColor = document.getElementById('chooseColor'); |
| 898 | 788 | ||
| 899 | - | ||
| 900 | - var liColor1 = document.getElementById('li-Color1'); | ||
| 901 | - var liColor2 = document.getElementById('li-Color2'); | ||
| 902 | - var liColor3 = document.getElementById('li-Color3'); | ||
| 903 | - var liColor4 = document.getElementById('li-Color4'); | ||
| 904 | - var liColor5 = document.getElementById('li-Color5'); | ||
| 905 | - var liColor6 = document.getElementById('li-Color6'); | ||
| 906 | - var liColor7 = document.getElementById('li-Color7'); | ||
| 907 | - | ||
| 908 | - | ||
| 909 | chooseColor.onmouseenter = function () { | 789 | chooseColor.onmouseenter = function () { |
| 910 | toolColor.style.display = "block"; | 790 | toolColor.style.display = "block"; |
| 911 | }; | 791 | }; |
| @@ -913,18 +793,11 @@ | @@ -913,18 +793,11 @@ | ||
| 913 | chooseColor.onmouseleave = function () { | 793 | chooseColor.onmouseleave = function () { |
| 914 | toolColor.style.display = "none"; | 794 | toolColor.style.display = "none"; |
| 915 | }; | 795 | }; |
| 916 | - /* for(var i=0;i<oLis.length;i++){ | ||
| 917 | - oLis[i].index=i; | ||
| 918 | - oLis[i].onlick=function () { | ||
| 919 | - oLis[this.index].style.width=""; | ||
| 920 | - | ||
| 921 | - } | ||
| 922 | - }*/ | ||
| 923 | function choose(agrs) { | 796 | function choose(agrs) { |
| 924 | switch (agrs) { | 797 | switch (agrs) { |
| 925 | case 1: | 798 | case 1: |
| 926 | chooseColor.style.background = 'url("images/color1-n.png") no-repeat'; | 799 | chooseColor.style.background = 'url("images/color1-n.png") no-repeat'; |
| 927 | - chooseColor.title = "#4fbd92"; | 800 | + chooseColor.title = "#b8242a"; |
| 928 | break; | 801 | break; |
| 929 | case 2: | 802 | case 2: |
| 930 | chooseColor.style.background = 'url("images/color2-n.png") no-repeat'; | 803 | chooseColor.style.background = 'url("images/color2-n.png") no-repeat'; |
| @@ -939,18 +812,7 @@ | @@ -939,18 +812,7 @@ | ||
| 939 | chooseColor.style.background = 'url("images/color4-n.png") no-repeat'; | 812 | chooseColor.style.background = 'url("images/color4-n.png") no-repeat'; |
| 940 | chooseColor.title = "#fae81b"; | 813 | chooseColor.title = "#fae81b"; |
| 941 | break; | 814 | break; |
| 942 | - case 5: | ||
| 943 | - chooseColor.style.background = 'url("images/color5-n.png") no-repeat'; | ||
| 944 | - chooseColor.title = "#f7751e"; | ||
| 945 | - break; | ||
| 946 | - case 6: | ||
| 947 | - chooseColor.style.background = 'url("images/color6-n.png") no-repeat'; | ||
| 948 | - chooseColor.title = "#b8242a"; | ||
| 949 | - break; | ||
| 950 | - case 7: | ||
| 951 | - chooseColor.style.background = 'url("images/color1-n.png") no-repeat'; | ||
| 952 | - chooseColor.title = "#4fbd92"; | ||
| 953 | - break; | 815 | + default:break; |
| 954 | } | 816 | } |
| 955 | } | 817 | } |
| 956 | 818 |
| @@ -19,6 +19,7 @@ var curPageNum; | @@ -19,6 +19,7 @@ var curPageNum; | ||
| 19 | var pageNum; | 19 | var pageNum; |
| 20 | var fileItemIdx; | 20 | var fileItemIdx; |
| 21 | 21 | ||
| 22 | + | ||
| 22 | //画布 | 23 | //画布 |
| 23 | var canvas ; | 24 | var canvas ; |
| 24 | var context ; | 25 | var context ; |
| @@ -178,6 +179,7 @@ function importFile() { | @@ -178,6 +179,7 @@ function importFile() { | ||
| 178 | data:fd, | 179 | data:fd, |
| 179 | success: function(data) { | 180 | success: function(data) { |
| 180 | console.log("文档服务器返回的",data); | 181 | console.log("文档服务器返回的",data); |
| 182 | + | ||
| 181 | uploadFile(data); | 183 | uploadFile(data); |
| 182 | }, | 184 | }, |
| 183 | error: function(data){ | 185 | error: function(data){ |
| @@ -302,24 +304,47 @@ function switchDoc(msg) { | @@ -302,24 +304,47 @@ function switchDoc(msg) { | ||
| 302 | 304 | ||
| 303 | //将上传文件的信息,传递给底层 | 305 | //将上传文件的信息,传递给底层 |
| 304 | function uploadFile(msg){ | 306 | function uploadFile(msg){ |
| 307 | + console.log("服务器返回的文件信息"); | ||
| 308 | + console.log(msg); | ||
| 305 | 309 | ||
| 310 | + for (var i=0;i<fileFromArr.length;i++){ | ||
| 311 | + var fileObj=fileFromArr[i]; | ||
| 312 | + if(msg.docId==fileObj.docId){ | ||
| 313 | + $(".spinner").css("display","none"); | ||
| 314 | + $(".doc-headline-a").trigger("click"); | ||
| 315 | + $(".pop").trigger("click"); | ||
| 316 | + $(".popTxt").html("文件已存在,不用上传!是否上传其他文件?"); | ||
| 317 | + | ||
| 318 | + }else{ | ||
| 319 | + // fileInfo.fileName=msg.fileName;//文档名字 | ||
| 320 | + fileInfo.pageNum=msg.imgSize;// 文档的总页数 | ||
| 321 | + fileInfo.fileName=msg.fileName;//文档名字 | ||
| 322 | + fileInfo.fileType=msg.fileType; // 文档的原始类型(上传时的类型) | ||
| 323 | + fileInfo.relativeUrl=msg.relativeLocation; //文档相对地址 | ||
| 324 | + fileInfo.url=msg.filePath; //文档绝对地址 默认值: null | ||
| 325 | + fileInfo.docId=msg.docId; //文档在数据库中的唯一id标识 默认值: null | ||
| 326 | + fileInfo.visible=false; // 是否显示 默认值: false | ||
| 327 | + fileInfo.dynamicTS=msg.dynamicTransferStatic //是否动态转换 //文档上传后返回值中的字段dynamicTransferStatic 默认值: 0 | ||
| 328 | + console.log(fileInfo); | ||
| 329 | + client.sendDocumentUpload(fileInfo); | ||
| 330 | + } | ||
| 331 | + } | ||
| 332 | + if (fileFromArr.length==0) { | ||
| 333 | + // fileInfo.fileName=msg.fileName;//文档名字 | ||
| 334 | + fileInfo.pageNum = msg.imgSize;// 文档的总页数 | ||
| 335 | + fileInfo.fileName = msg.fileName;//文档名字 | ||
| 336 | + fileInfo.fileType = msg.fileType; // 文档的原始类型(上传时的类型) | ||
| 337 | + fileInfo.relativeUrl = msg.relativeLocation; //文档相对地址 | ||
| 338 | + fileInfo.url = msg.filePath; //文档绝对地址 默认值: null | ||
| 339 | + fileInfo.docId = msg.docId; //文档在数据库中的唯一id标识 默认值: null | ||
| 340 | + fileInfo.visible = false; // 是否显示 默认值: false | ||
| 341 | + fileInfo.dynamicTS = msg.dynamicTransferStatic //是否动态转换 //文档上传后返回值中的字段dynamicTransferStatic 默认值: 0 | ||
| 342 | + console.log(fileInfo); | ||
| 343 | + client.sendDocumentUpload(fileInfo); | ||
| 306 | 344 | ||
| 345 | + } | ||
| 307 | 346 | ||
| 308 | 347 | ||
| 309 | - console.log("服务器返回的文件信息"); | ||
| 310 | - console.log(msg); | ||
| 311 | - // fileInfo.fileName=msg.fileName;//文档名字 | ||
| 312 | - fileInfo.pageNum=msg.imgSize;// 文档的总页数 | ||
| 313 | - fileInfo.fileName=msg.fileName;//文档名字 | ||
| 314 | - fileInfo.fileType=msg.fileType; // 文档的原始类型(上传时的类型) | ||
| 315 | - fileInfo.relativeUrl=msg.relativeLocation; //文档相对地址 | ||
| 316 | - fileInfo.url=msg.filePath; //文档绝对地址 默认值: null | ||
| 317 | - fileInfo.docId=msg.docId; //文档在数据库中的唯一id标识 默认值: null | ||
| 318 | - fileInfo.visible=false; // 是否显示 默认值: false | ||
| 319 | - fileInfo.dynamicTS=msg.dynamicTransferStatic //是否动态转换 //文档上传后返回值中的字段dynamicTransferStatic 默认值: 0 | ||
| 320 | - | ||
| 321 | - console.log(fileInfo); | ||
| 322 | - client.sendDocumentUpload(fileInfo); | ||
| 323 | 348 | ||
| 324 | } | 349 | } |
| 325 | 350 | ||
| @@ -332,7 +357,6 @@ function docUpdate(callbackData){ | @@ -332,7 +357,6 @@ function docUpdate(callbackData){ | ||
| 332 | return; | 357 | return; |
| 333 | } | 358 | } |
| 334 | if (callbackData.visible===true){ | 359 | if (callbackData.visible===true){ |
| 335 | - | ||
| 336 | showInter(callbackData,2); | 360 | showInter(callbackData,2); |
| 337 | } | 361 | } |
| 338 | //操作数据 | 362 | //操作数据 |
| @@ -418,7 +442,7 @@ function showInter(_data,isPage){ | @@ -418,7 +442,7 @@ function showInter(_data,isPage){ | ||
| 418 | 442 | ||
| 419 | $(".docImage").css("display","none"); | 443 | $(".docImage").css("display","none"); |
| 420 | $("#showImg").css("display","block"); | 444 | $("#showImg").css("display","block"); |
| 421 | - $(".canvas_container").scrollTop(0); | 445 | + $(".canvas_container").scrollTop(0); |
| 422 | $(".canvas_container").css("overflow","hidden"); | 446 | $(".canvas_container").css("overflow","hidden"); |
| 423 | 447 | ||
| 424 | 448 |
-
请 注册 或 登录 后发表评论