张桐

2017.2.28

正在显示 141 个修改的文件 包含 3858 行增加0 行删除
此 diff 太大无法显示。
此 diff 太大无法显示。
不能预览此文件类型
  1 +<?xml version="1.0" standalone="no"?>
  2 +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
  3 +<svg xmlns="http://www.w3.org/2000/svg">
  4 +<metadata>
  5 +Created by FontForge 20120731 at Sun Jan 22 10:46:18 2017
  6 + By admin
  7 +</metadata>
  8 +<defs>
  9 +<font id="iconfont" horiz-adv-x="1024" >
  10 + <font-face
  11 + font-family="iconfont"
  12 + font-weight="500"
  13 + font-stretch="normal"
  14 + units-per-em="1024"
  15 + panose-1="2 0 6 3 0 0 0 0 0 0"
  16 + ascent="896"
  17 + descent="-128"
  18 + x-height="792"
  19 + bbox="33.4444 -150 987 870"
  20 + underline-thickness="0"
  21 + underline-position="0"
  22 + unicode-range="U+0078-E643"
  23 + />
  24 +<missing-glyph
  25 + />
  26 + <glyph glyph-name=".notdef"
  27 + />
  28 + <glyph glyph-name=".notdef"
  29 + />
  30 + <glyph glyph-name=".null" horiz-adv-x="0"
  31 + />
  32 + <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341"
  33 + />
  34 + <glyph glyph-name="x" unicode="x" horiz-adv-x="1001"
  35 +d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5
  36 +t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5
  37 +t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" />
  38 + <glyph glyph-name="iconfontxue" unicode="&#xe624;"
  39 +d="M893 107l-138 80l116 3q9 0 16 7t6.5 16.5t-7.5 16.5t-17 6l-156 -4l31 54q4 6 3 14q1 8 -3 14l-31 54l156 -4h1q10 0 16.5 6.5t7 16t-6.5 16.5t-16 7l-116 3l138 80q8 5 10.5 14t-2.5 17.5t-14 11t-18 -2.5l-137 -79l55 102q4 8 1.5 17.5t-11 14t-18 1.5t-13.5 -11
  40 +l-75 -138l-31 54q-3 6 -11 9q-6 5 -13 5h-62l82 133q5 9 2.5 18t-10.5 14t-17.5 3t-14.5 -10l-61 -99v159q0 10 -6.5 17t-16.5 7t-16.5 -7t-6.5 -17v-159l-61 99q-5 8 -14.5 10t-17.5 -3t-10.5 -14t2.5 -18l82 -133h-62q-7 0 -13 -5q-7 -3 -11 -9l-31 -54l-75 138
  41 +q-4 8 -13.5 11t-18 -1.5t-11 -14t1.5 -17.5l55 -102l-137 79q-9 5 -18 2.5t-14 -11t-2.5 -17.5t10.5 -14l138 -80l-116 -3q-9 0 -16 -7t-6.5 -16.5t7 -16t16.5 -6.5h1l156 4l-31 -54q-4 -6 -3 -14q-1 -8 3 -14l31 -54l-156 4q-10 1 -17 -6t-7.5 -16.5t6.5 -16.5t16 -7
  42 +l116 -3l-138 -80q-8 -5 -10.5 -14t2.5 -18q7 -11 20 -11q6 0 12 3l137 79l-55 -102q-4 -8 -1.5 -17.5t11.5 -13.5q5 -3 11 -3q14 0 20 12l75 138l31 -54q3 -6 10 -9q7 -5 14 -5h62l-82 -133q-5 -9 -2.5 -18t10.5 -14q6 -4 12 -4q13 0 20 11l61 99v-159q0 -10 6.5 -17
  43 +t16.5 -7t16.5 7t6.5 17v159l61 -99q7 -11 20 -11q6 0 12 4q8 5 10.5 14t-2.5 18l-82 133h62q7 0 14 5q7 3 10 9l31 54l75 -138q6 -12 20 -12q6 0 11 3q9 4 11.5 13.5t-1.5 17.5l-55 102l137 -79q6 -3 12 -3q14 0 20 11q5 9 2.5 18t-10.5 14zM605 139h-70v121l105 -61z
  44 +M419 139l-35 60l105 61v-121h-70zM419 461h70v-121l-105 61zM605 461l35 -60l-105 -61v121h70zM663 360l35 -60l-35 -60l-104 60zM465 300l-104 -60l-35 60l35 60z" />
  45 + <glyph glyph-name="iconfont11" unicode="&#xe60b;"
  46 +d="M687 360l82 114q1 2 3.5 4.5t5.5 9t2.5 12t-8 9.5t-23.5 4h-495l-5 -67h321q8 0 10 -3t0 -6l-2 -4l-43 -73h-421q-20 0 -34.5 -7t-21 -17t-9.5 -20t-3.5 -17l-0.5 -7h483q-7 -67 -9 -105q-4 -55 -34 -94.5t-80 -39.5h-55q-14 0 -24.5 -5t-16 -12t-9 -14t-3.5 -12l-1 -5
  47 +h121h5q20 0 31 0.5t32.5 2t35 4.5t33 8.5t32 14t26.5 22t22 30.5t13 40t5 52l10 113h230q22 0 37.5 7t22.5 17t10.5 20t3.5 17l1 7h-280zM888 633h-108q71 56 76 130h-122q-5 -55 -63 -130h-101q-47 75 -43 130h-123q-5 -74 57 -130h-103q-47 75 -44 130h-122
  48 +q-5 -74 57 -130h-180l-12 -160h128l7 94h650h5t8.5 -5t4.5 -14l-5 -66h119l4 52q0 38 -9 56q-21 43 -81 43z" />
  49 + <glyph glyph-name="jushou" unicode="&#xe603;"
  50 +d="M834 351q-22 22 -50.5 23t-50.5 -21l-83 -83q-16 -16 -34 -16.5t-29 13.5q-11 12 -3 72l41 342q3 23 -11 42t-37 22t-41.5 -12t-20.5 -39l-46 -269q-2 -5 -5 -5t-4 7l-15 349q0 23 -16.5 39.5t-39.5 16.5t-39.5 -16.5t-16.5 -39.5l-1 -352q0 -3 -1 -4l-3 3l-49 275
  51 +q-4 23 -23.5 37t-42 10t-35.5 -24t-9 -43l44 -321q0 -5 -1.5 -6t-3.5 4l-66 177q-7 22 -28 32.5t-43 2.5t-32 -29.5t-2 -43.5l116 -378l2 -6v-1v0q25 -75 89 -122.5t145 -47.5q112 1 200 69q26 15 88 75.5t111.5 112t49.5 52.5q22 22 20 51.5t-24 51.5zM834 351z" />
  52 + <glyph glyph-name="tuichu" unicode="&#xe607;"
  53 +d="M910 593q-52 94 -139 154q73 -71 66 -73q-14 0 -24 -10t-10 -24q0 -13 8 -22q86 -104 86 -241q0 -103 -51 -190t-138 -138t-190 -51t-190 51t-138 138t-51 190v0q0 141 92 248q8 9 8 22q0 14 -10 24t-25 10t-26 -12q-108 -125 -108 -292q0 -91 35.5 -173.5t95.5 -142.5
  54 +t143 -95.5t174 -35.5t174 35.5t143 95.5t95.5 142.5t35.5 173.5v1q0 116 -57 217zM564 379q0 -19 -13.5 -32.5t-32.5 -13.5t-32.5 13.5t-13.5 32.5v0v407q1 18 14.5 31t31.5 13t31.5 -13t14.5 -31v-407z" />
  55 + <glyph glyph-name="bangzhu" unicode="&#xe608;"
  56 +d="M466 189v0q0 -20 14 -34.5t34.5 -14.5t35 14.5t14.5 34.5v0v0q0 20 -14.5 34.5t-35 14.5t-34.5 -14.5t-14 -34.5v0zM398 586q-13 -14 -23 -36.5t-13.5 -45.5t7.5 -40t37 -18q10 0 17.5 2t12 4.5t7.5 6.5t4 7t2 7l1 4q0 1 1.5 8.5t3.5 14t5.5 14t8.5 11.5q7 8 11 11
  57 +t11 5.5t16 2.5q29 0 46.5 -15.5t17.5 -36.5v-2q0 -14 -7 -27q-8 -12 -41 -43q-36 -34 -51 -71q-8 -19 0 -33.5t23.5 -20t32 -4t22.5 10.5q5 8 9.5 18t12 21.5t24.5 28.5q30 28 38 40q13 20 19 40q6 19 6 40q0 38 -19 71q-15 26 -43.5 45t-61.5 26.5t-70.5 -4t-66.5 -42.5z
  58 +M509 829q-91 0 -174 -35.5t-143 -95.5t-95.5 -142.5t-35.5 -173.5t35.5 -174t95.5 -143t143 -95.5t174 -35.5t173.5 35.5t142.5 95.5t95.5 143t35.5 174t-35.5 173.5t-95.5 142.5t-142.5 95.5t-173.5 35.5v0zM509 -2q-105 0 -193 51.5t-139.5 139.5t-51.5 193
  59 +q0 104 51.5 192t139.5 139.5t193 51.5q104 0 192 -51.5t139.5 -139.5t51.5 -192q0 -105 -51.5 -193t-139.5 -139.5t-192 -51.5v0z" />
  60 + <glyph glyph-name="luzhi" unicode="&#xe609;"
  61 +d="M392 381v0q0 -50 35 -85t85 -35t85 35t35 85v0q0 50 -35 85t-85 35t-85 -35t-35 -85zM512 828q-91 0 -173.5 -35.5t-142.5 -95.5t-95.5 -142.5t-35.5 -173.5t35.5 -173.5t95.5 -142.5t142.5 -95.5t173.5 -35.5t173.5 35.5t142.5 95.5t95.5 142.5t35.5 173.5t-35.5 173.5
  62 +t-95.5 142.5t-142.5 95.5t-173.5 35.5v0zM512 -2q-104 0 -192 51.5t-139.5 139.5t-51.5 192t51.5 192t139.5 139.5t192 51.5t192 -51.5t139.5 -139.5t51.5 -192t-51.5 -192t-139.5 -139.5t-192 -51.5z" />
  63 + <glyph glyph-name="zanting" unicode="&#xe60a;"
  64 +d="M430.5 555q-13.5 0 -23.5 -8t-10 -20v-286q0 -12 10 -20t23.5 -8t23 8t9.5 20v286q0 12 -9.5 20t-23 8zM594.5 555q-13.5 0 -23 -8t-9.5 -20v-286q0 -12 9.5 -20t23 -8t23.5 8t10 20v286q0 12 -10 20t-23.5 8zM512.5 830q-90.5 0 -173 -35.5t-142.5 -95t-95.5 -142
  65 +t-35.5 -173.5t35.5 -173.5t95.5 -142t142.5 -95t173 -35.5t173 35.5t142.5 95t95.5 142t35.5 173.5t-35.5 173.5t-95.5 142t-142.5 95t-173 35.5zM512.5 2q-103.5 0 -191.5 51t-139.5 139t-51.5 192t51.5 192t139.5 139t191.5 51t191.5 -51t139.5 -139t51.5 -192t-51.5 -192
  66 +t-139.5 -139t-191.5 -51z" />
  67 + <glyph glyph-name="bofang" unicode="&#xe61d;"
  68 +d="M540 825q-91 0 -173.5 -35.5t-142 -95t-95 -142t-35.5 -173.5t35.5 -173.5t95 -142t142 -95t173.5 -35.5t173.5 35.5t142 95t95 142t35.5 173.5t-35.5 173.5t-95 142t-142 95t-173.5 35.5zM540 -3q-104 0 -192 51t-139 139t-51 192t51 192t139 139t192 51t192 -51
  69 +t139 -139t51 -192t-51 -192t-139 -139t-192 -51zM417 252q0 -26 16.5 -35.5t39.5 3.5l219 127q23 13 23 32t-23 32l-219 127q-23 13 -39.5 3.5t-16.5 -35.5v-254z" />
  70 + <glyph glyph-name="baiban" unicode="&#xe61f;"
  71 +d="M933 91h-30q29 39 29 85v414q0 60 -42.5 102.5t-102.5 42.5h-548q-60 0 -102.5 -42.5t-42.5 -102.5v-414q0 -47 29 -85h-29q-14 0 -23 -9.5t-9 -22.5t9 -22.5t23 -9.5h839q13 0 22 9.5t9 22.5t-9 22.5t-22 9.5zM158 590q0 34 24 57.5t57 23.5h548q33 0 57 -23.5t24 -57.5
  72 +v-414q0 -33 -24 -56.5t-57 -23.5h-339l0.5 1.5t0.5 2.5v1q0 13 -9.5 22t-22.5 9h-129q-14 0 -23 -9t-9 -22v-1v-2.5t1 -1.5h-18v0q-33 0 -57 23.5t-24 56.5v414z" />
  73 + <glyph glyph-name="wendang" unicode="&#xe620;"
  74 +d="M580 626h276q15 0 25 10t10 24.5t-10 24.5t-25 10h-276q-14 0 -24.5 -10t-10.5 -24.5t10.5 -24.5t24.5 -10zM856 589h-357q-32 99 -37 210q1 -27 -1 -37t-5.5 -9.5t-14.5 5t-21 4.5h-255q-42 0 -71.5 -35t-29.5 -84v-518q0 -49 29.5 -84t71.5 -35h691q42 0 71.5 35
  75 +t29.5 84v346q0 48 -29.5 83t-71.5 35zM893 125q0 -22 -11 -38.5t-26 -16.5h-691q-15 0 -26 16.5t-11 38.5v518q0 22 11 38.5t26 16.5h238q6 -16 17 -61q5 -24 8 -35t7.5 -27t8.5 -22.5t10 -14.5t12.5 -10.5t15.5 -2.5h374q15 0 26 -16t11 -39v-345v0z" />
  76 + <glyph glyph-name="duomeit" unicode="&#xe621;"
  77 +d="M858 20h-94q-14 0 -23 9.5t-9 23t9 22.5t23 9h94q15 0 26 11.5t11 27.5v566q0 16 -11 27t-26 11h-687q-15 0 -26 -11t-11 -27v-566q0 -16 11 -27.5t26 -11.5h384q13 0 22.5 -9t9.5 -22.5t-9.5 -23t-22.5 -9.5h-384q-42 0 -71.5 30.5t-29.5 72.5v566q0 42 29.5 72t71.5 30
  78 +h687q42 0 71.5 -30t29.5 -72v-566q0 -42 -29.5 -72.5t-71.5 -30.5zM398 522q0 26 16 35.5t39 -3.5l201 -116q22 -13 22 -32t-22 -32l-201 -116q-23 -13 -39 -3.5t-16 35.5v232z" />
  79 + <glyph glyph-name="qiehuan-xue" unicode="&#xe622;"
  80 +d="M101 566h822q10 0 14.5 1t11 3.5t9 9.5t2.5 19q0 16 -32 36l-152 98q-13 9 -27 7t-21.5 -13.5t-3.5 -25t17 -22.5l75 -48h-715q-15 0 -26 -9.5t-11 -23t11 -23t26 -9.5zM923 202h-822q-10 0 -14.5 -1t-11 -3.5t-9 -9.5t-2.5 -19q0 -16 31 -36l153 -98q13 -9 27 -7
  81 +t21.5 13.5t3.5 25t-17 22.5l-75 48h715q15 0 26 9.5t11 23t-11 23t-26 9.5z" />
  82 + <glyph glyph-name="yangshengqi-xue" unicode="&#xe623;"
  83 +d="M750 -62q-8 0 -18 2q-21 4 -105 62q-146 100 -178 100h-163q-36 0 -61 23.5t-25 55.5v404q0 32 25 55.5t61 23.5h163q32 0 178 100q84 58 105 62q38 8 65 -15t27 -63v-730q0 -30 -16 -52q-21 -28 -58 -28zM286 600q-9 0 -15.5 -5t-6.5 -10v-404q0 -5 6.5 -9.5t15.5 -4.5
  84 +h163q33 0 81.5 -27t133.5 -86q70 -49 81 -52h5q9 0 9 16v730q0 16 -9 16q-15 -3 -86 -52q-85 -58 -133.5 -85t-81.5 -27h-163z" />
  85 + <glyph glyph-name="xiazai-xue" unicode="&#xe625;"
  86 +d="M871 -57h-721q-36 0 -61 25t-26 61v203q0 19 14 32.5t33 13.5t32.5 -13.5t13.5 -32.5v-202l709 6v183q0 19 13.5 32.5t32.5 13.5t32.5 -13.5t13.5 -32.5v-190v-3q-1 -34 -26 -58.5t-60 -24.5zM466 699v90q0 16 13.5 28t32.5 12t32.5 -12t13.5 -28v-90h-92zM558 603v-295
  87 +q0 -17 -13.5 -28.5t-32.5 -11.5t-32.5 11.5t-13.5 28.5v296zM707 388q8 0 10 -4.5t-3 -10.5l-190 -230q-4 -6 -11.5 -6t-12.5 6l-190 230q-5 6 -3 10.5t10 4.5h390z" />
  88 + <glyph glyph-name="shipingkaiqi-xue" unicode="&#xe628;"
  89 +d="M513.5 567q-71.5 0 -122 -50.5t-50.5 -122.5t50.5 -122.5t122 -50.5t122.5 50.5t51 122.5t-51 122.5t-122.5 50.5zM514 285q-45 0 -77 32t-32 77t32 77t77 32t77 -32t32 -77t-32 -77t-77 -32zM514 775q-145 0 -268 -103.5t-186 -273.5l8 -29q62 -166 181.5 -261
  90 +t264.5 -95q144 0 266 99.5t184 267.5l3 18q-63 170 -186 273.5t-267 103.5zM513.5 71q-125.5 0 -232.5 88t-163 238q57 147 163.5 234t232 87t232 -87t163.5 -234q-56 -150 -163 -238t-232.5 -88z" />
  91 + <glyph glyph-name="shipingjinzhi-copy" unicode="&#xe62a;"
  92 +d="M802 639l62 63q9 9 9 22t-9 22.5t-23 9.5q-13 0 -22 -9l-66 -66q-117 89 -246 89q-145 0 -268 -103.5t-186 -273.5l8 -28q51 -137 147 -230l-59 -59q-9 -9 -9 -22t9.5 -22.5t22.5 -9.5t22 9l62 63q116 -86 251 -86q144 0 266 99.5t184 267.5l3 18q-55 146 -158 246z
  93 +M111 392q57 147 163.5 234t232.5 87q108 0 208 -71l-111 -110q-43 30 -97 30v0q-72 0 -122.5 -50.5t-50.5 -122.5q0 -53 30 -97l-114 -115q-91 87 -139 215zM616 389q0 -45 -32 -77t-77 -32q-26 0 -51 13l147 147q13 -25 13 -51zM398 389q0 45 32 77t77 32q26 0 50 -13
  94 +l-146 -147q-13 24 -13 52v-1zM507 65q-109 0 -208 71l110 110q44 -30 98 -30q71 0 122 50.5t51 122.5q0 53 -31 97l115 115q90 -84 138 -209q-56 -150 -163 -238.5t-232 -88.5z" />
  95 + <glyph glyph-name="weibofang-xue" unicode="&#xe62b;"
  96 +d="M808 384q0 13 -8.5 22.5t-20.5 9.5h-530q-12 0 -20.5 -9.5t-8.5 -22.5t8.5 -22.5t20.5 -9.5h530q12 0 20.5 9.5t8.5 22.5zM136 153v0q0 -12 8.5 -20.5t21 -8.5t21 8.5t8.5 20.5v0v0q0 12 -8.5 21t-21 9t-21 -9t-8.5 -21v0zM514 832q-91 0 -174 -35.5t-143 -95.5
  97 +t-95.5 -143t-35.5 -175q0 -37 6 -74q1 -9 9.5 -15.5t18.5 -6.5h6q10 2 17 10.5t7 18.5v5q-5 30 -5 62q0 106 52 196t141.5 142t195 52t195.5 -52t142 -141.5t52 -195.5t-52 -195.5t-142 -141.5t-195 -52v0q-115 0 -210 61q-6 4 -14 4q-13 0 -21.5 -8.5t-8.5 -21.5
  98 +q0 -16 14 -24q108 -70 239 -70h1q91 0 174 35.5t143 95.5t95.5 143t35.5 174t-35.5 174t-95.5 143t-143 95.5t-174 35.5z" />
  99 + <glyph glyph-name="maikefeng-xue" unicode="&#xe62d;"
  100 +d="M801.5 531q-13.5 0 -22.5 -9.5t-9 -22.5v-91q0 -97 -75.5 -166t-182.5 -69t-182.5 69t-75.5 166v95q0 13 -9 22.5t-22.5 9.5t-23 -9.5t-9.5 -22.5v-95q0 -118 87.5 -203.5t213.5 -93.5v-99h-133q-12 0 -21 -9.5t-9 -22.5t9 -22.5t21 -9.5h319q12 0 20.5 9.5t8.5 22.5
  101 +t-8.5 22.5t-20.5 9.5h-122v101q119 15 199 98.5t80 196.5v91q0 13 -9.5 22.5t-23 9.5zM517 217q82 0 140.5 58.5t58.5 140.5v211q0 82 -58.5 140.5t-140.5 58.5t-140.5 -58.5t-58.5 -140.5v-211q0 -82 58.5 -140.5t140.5 -58.5zM602 344h-2q-20 0 -34.5 14.5t-14.5 35.5
  102 +t14.5 35.5t34.5 14.5h2q20 -1 34 -15.5t14 -34.5t-14 -34.5t-34 -15.5zM382 627q0 56 39.5 95.5t95.5 39.5t95.5 -39.5t39.5 -95.5v-28h-270v28z" />
  103 + <glyph glyph-name="shiping-xue" unicode="&#xe62e;"
  104 +d="M521 81q97 0 180 49.5t131 134.5t48 185.5t-48 186t-131 135t-180 49.5t-180 -49.5t-131 -135t-48 -186t48 -185.5t131 -134.5t180 -49.5zM521 757q122 0 208.5 -90t86.5 -216.5t-86.5 -216t-208.5 -89.5t-208.5 89.5t-86.5 216t86.5 216.5t208.5 90zM824 150q-6 2 -12 2
  105 +q-14 0 -23 -9t-9 -23q0 -17 14 -27q27 -14 28 -22q-1 -12 -34 -27.5t-105.5 -29t-161.5 -13.5q-88 0 -160.5 13.5t-106 29t-34.5 27.5q1 8 26 22q16 9 16 27q0 14 -9.5 23t-22.5 9q-7 0 -14 -3q-60 -32 -60 -78q0 -33 32 -59.5t85 -42.5t116.5 -24t131.5 -8t131.5 8
  106 +t116.5 24t85 42.5t32 59.5q0 46 -62 79zM521 277v0q72 0 123 51t51 123t-51 122.5t-123 50.5v0q-72 0 -123 -50.5t-51 -122.5t51 -123t123 -51zM461 593q29 0 50 -21t21 -50.5t-21 -50t-50 -20.5t-50 20.5t-21 50t21 50.5t50 21z" />
  107 + <glyph glyph-name="shezhi-xue" unicode="&#xe631;"
  108 +d="M892 527h-21q-8 24 -20 48l15 14q11 12 19.5 31.5t8.5 36.5v0v0q0 17 -8.5 36.5t-19.5 31.5l-23 23q-27 27 -68 27t-68 -27l-14 -15q-24 12 -49 20v21q0 39 -28 67.5t-67 28.5h-32q-40 0 -68 -28.5t-28 -67.5v-21q-25 -8 -49 -20l-14 15q-27 27 -68 27t-68 -27l-23 -23
  109 +q-11 -12 -19.5 -32t-8.5 -36t8.5 -36t19.5 -32l15 -14q-12 -24 -20 -48h-20q-40 0 -68 -28.5t-28 -67.5v-32q0 -40 28 -68t68 -28h20q8 -25 20 -49l-15 -14q-11 -12 -19.5 -32t-8.5 -36.5t8.5 -36t19.5 -31.5l23 -23q27 -27 68 -27t68 27l14 15q24 -12 49 -20v-21
  110 +q0 -39 28 -67.5t68 -28.5h32q39 0 67 28.5t28 67.5v21q25 8 49 20l14 -15q27 -27 68 -27t68 27l23 23q11 12 19.5 31.5t8.5 36t-8.5 36.5t-19.5 32l-15 14q12 25 20 49h21q39 0 67 28t28 68v32q0 39 -28 67t-67 29zM924 398v0q0 -13 -9.5 -22.5t-22.5 -9.5h-45v0
  111 +q-10 0 -19 -7t-12 -17q-10 -41 -32 -77q-4 -8 -4 -16q0 -14 9 -23l31 -31q10 -10 10 -23t-10 -23l-22 -22q-10 -9 -23 -9t-23 9l-31 31q-9 10 -23 10q-8 0 -16 -5q-36 -22 -77 -32q-10 -3 -17 -12t-8 -19v-45v0q0 -13 -9 -22t-22 -10h-32q-14 0 -23 9.5t-9 22.5v45v0
  112 +q0 10 -7.5 19t-17.5 12q-41 10 -77 32q-7 5 -16 5q-13 0 -23 -10l-31 -31q-10 -9 -23 -9t-23 9l-22 22q-10 10 -10 23t10 23l31 31q10 9 10 23q0 9 -5 16q-22 36 -32 77q-3 10 -12 17.5t-19 7.5h-44q-14 0 -23 9t-9 23v32q0 13 9 22.5t23 9.5h44v0q10 0 19 7t12 17
  113 +q10 41 32 77q5 8 5 16q0 14 -10 23l-31 31q-10 10 -10 23t10 23l22 22q10 9 23 9t23 -9l31 -31q10 -10 23 -10q9 0 16 5q36 22 77 32q10 3 17.5 12t7.5 19v0v45q0 13 9 22.5t23 9.5h32q13 -1 22 -10t9 -22v-45q0 -11 7 -19.5t18 -11.5q40 -10 77 -32q7 -4 16 -4q14 0 23 9
  114 +l31 31q10 9 23 9t23 -9l22 -22q10 -10 10 -23t-10 -23l-31 -31q-10 -9 -10 -23q0 -9 5 -16q22 -37 32 -77q3 -10 12 -17.5t19 -7.5h44q14 0 23 -9t9 -23v-32h1zM533 621q-86 0 -146.5 -60.5t-60.5 -146.5q0 -85 60.5 -145.5t146 -60.5t146 60.5t61.5 145.5
  115 +q-1 86 -61.5 146.5t-145.5 60.5zM532.5 271q-59.5 0 -101 42t-41.5 101.5t41.5 101t101 41.5t101.5 -41.5t42 -101t-42 -101.5t-101.5 -42z" />
  116 + <glyph glyph-name="biaoqing-xue" unicode="&#xe632;"
  117 +d="M508.5 829q-90.5 0 -173.5 -35.5t-143 -95.5t-95.5 -143t-35.5 -173.5t35.5 -173.5t95.5 -143t143 -95.5t173.5 -35.5t173.5 35.5t143 95.5t95.5 143t35.5 173.5t-35.5 173.5t-95.5 143t-143 95.5t-173.5 35.5zM509 -2q-104 0 -192.5 51.5t-140 140t-51.5 192.5t51.5 192
  118 +t140 139.5t192.5 51.5t192 -51.5t139.5 -139.5t51.5 -192t-51.5 -192.5t-139.5 -140t-192 -51.5zM367 492zM319 491.5q0 -19.5 14.5 -33.5t34 -14t33.5 14t14 33.5t-14 34t-33.5 14.5t-34 -14.5t-14.5 -34zM636 492zM588 491.5q0 -19.5 14 -33.5t33.5 -14t34 14t14.5 33.5
  119 +t-14.5 34t-34 14.5t-33.5 -14.5t-14 -34zM669 283q-8 5 -17 5q-17 0 -27 -15q-16 -24 -48.5 -38.5t-71.5 -14.5t-71.5 14.5t-48.5 38.5q-9 16 -27 16q-14 0 -23 -9.5t-9 -22.5q0 -10 5 -18q25 -39 71.5 -61t102.5 -22t102.5 22t71.5 61q5 8 5 17q0 18 -15 27z" />
  120 + <glyph glyph-name="zuofanye-xue" unicode="&#xe633;"
  121 +d="M512 834q-91 0 -174 -35.5t-143 -95.5t-95.5 -142.5t-35.5 -173.5t35.5 -174t95.5 -143t143 -95.5t174 -35.5t174 35.5t142.5 95.5t95 143t35.5 174t-35.5 173.5t-95 142.5t-142.5 95.5t-174 35.5zM512 3q-104 0 -192.5 51.5t-139.5 140t-52 192.5q1 104 52 192.5
  122 +t139.5 139.5t192.5 51t192.5 -51t139.5 -139.5t51 -192.5t-51 -192.5t-139.5 -140t-192.5 -51.5zM637.5 617.5q-9.5 9.5 -22.5 9.5t-22 -9l-207 -208q-9 -9 -9 -21v-2v-2q0 -13 9 -22l207 -207q9 -9 22 -9t22.5 9.5t9.5 22.5t-9 22l-185 186l185 185q9 10 9 23t-9.5 22.5z
  123 +" />
  124 + <glyph glyph-name="youfanye-xue" unicode="&#xe634;"
  125 +d="M512 834q-91 0 -174 -35.5t-143 -95.5t-95.5 -142.5t-35.5 -173.5t35.5 -174t95.5 -143t143 -95.5t174 -35.5t174 35.5t142.5 95.5t95 143t35.5 174t-35.5 173.5t-95 142.5t-142.5 95.5t-174 35.5zM512 3q-104 0 -192.5 51.5t-139.5 140t-52 192.5q1 104 52 192.5
  126 +t139.5 139.5t192.5 51t192.5 -51t139.5 -139.5t51 -192.5t-51 -192.5t-139.5 -140t-192.5 -51.5zM386 617.5q9 9.5 23 9.5q13 0 22 -9l207 -208q10 -9 9 -23v-2q0 -13 -9 -22l-207 -207q-9 -9 -22 -9t-22.5 9.5t-9.5 22.5t9 22l185 186l-185 185q-9 10 -9 23t9 22.5z" />
  127 + <glyph glyph-name="shanchu" unicode="&#xe635;"
  128 +d="M516 830q-91 -1 -173.5 -36t-142.5 -95t-95.5 -143t-35.5 -173.5t35.5 -173.5t95.5 -143t142.5 -95t173.5 -35t173.5 35t142.5 95t95.5 143t35.5 173.5t-35.5 173.5t-95.5 143t-142.5 95t-173.5 36v0zM516 -1q-104 0 -192 51.5t-139.5 140t-51.5 192t51.5 192
  129 +t139.5 139.5t192 51t192 -51t139.5 -139.5t51.5 -192t-51.5 -192t-139.5 -140t-192 -51.5v0zM561 383l108 107q9 9 9 22.5t-9.5 23t-22.5 9.5t-23 -10l-107 -107l-107 107q-10 9 -23 9t-22.5 -9t-9.5 -23q0 -13 9 -22l108 -107l-108 -108q-9 -9 -9 -22.5t9.5 -23t22.5 -9.5
  130 +t23 10l107 107l108 -107q9 -9 22 -9t22.5 9.5t9.5 22.5t-9 22z" />
  131 + <glyph glyph-name="tianjia-xue" unicode="&#xe636;"
  132 +d="M516 830q-91 -1 -173.5 -36.5t-142.5 -95t-95.5 -142.5t-35.5 -173.5t35.5 -173.5t95.5 -143t142.5 -95t173.5 -35t173.5 35t142.5 95t95.5 143t35.5 173.5t-35.5 173.5t-95.5 142.5t-142.5 95t-173.5 36.5zM516 -1q-104 0 -192 51.5t-139.5 140t-51.5 192t51.5 192
  133 +t139.5 139.5t192 51t192 -51t139.5 -139.5t51.5 -192t-51.5 -192t-139.5 -140t-192 -51.5v0zM700 415h-152v152q0 13 -9.5 22.5t-22.5 9.5t-22.5 -9.5t-9.5 -22.5v-152h-152q-13 0 -22.5 -9.5t-9.5 -23t9.5 -22.5t22.5 -9h152v-152q0 -14 9.5 -23t22.5 -9t22.5 9t9.5 23v152
  134 +h152q13 0 22.5 9t9.5 22.5t-9.5 23t-22.5 9.5z" />
  135 + <glyph glyph-name="shachu-xue" unicode="&#xe638;"
  136 +d="M569 384l326 326q12 12 12 28t-11.5 27.5t-28 11.5t-27.5 -11l-327 -327l-326 327q-11 11 -27.5 11t-28 -11.5t-11.5 -27.5t11 -28l327 -326l-326 -326q-12 -12 -12 -28t11.5 -27.5t28 -11.5t27.5 11l326 326l327 -326q11 -11 27.5 -11t28 11.5t11.5 27.5t-12 28z" />
  137 + <glyph glyph-name="wendangliebiao-xue" unicode="&#xe639;"
  138 +d="M297 219h413q9 0 15.5 -6.5t6.5 -16.5v0v0q0 -9 -6.5 -15.5t-15.5 -6.5v0h-413v0q-9 0 -15.5 6.5t-6.5 15.5v0v0q0 10 6.5 16.5t15.5 6.5zM297 386h413q9 0 15.5 -6.5t6.5 -16.5v-1q0 -9 -6.5 -16t-15.5 -7h-413q-9 0 -15.5 7t-6.5 16v1q0 10 6.5 16.5t15.5 6.5zM297 549
  139 +h221q9 0 15.5 -6.5t6.5 -15.5v-2q0 -9 -6.5 -15.5t-15.5 -6.5h-221q-9 0 -15.5 6.5t-6.5 15.5v2q0 9 6.5 15.5t15.5 6.5zM759 -53h-496q-57 0 -97.5 40.5t-40.5 97.5v602q0 57 40.5 97.5t97.5 40.5h391v-254q0 -7 10 -7h233v-479q0 -57 -40.5 -97.5t-97.5 -40.5zM263 761
  140 +q-30 0 -52 -22t-22 -52v-602q0 -30 22 -52t52 -22h496q30 0 52 22t22 52v415h-169q-31 0 -52.5 21t-21.5 50v190h-327zM865 459q-13 0 -22.5 9.5t-9.5 22.5v74l-182 196h-29q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5h43q14 0 24 -10l199 -215q9 -9 9 -22v-87
  141 +q0 -13 -9.5 -22.5t-22.5 -9.5z" />
  142 + <glyph glyph-name="liaotian" unicode="&#xe63c;"
  143 +d="M512 832q-121 0 -224 -51.5t-163 -140t-60 -193.5q0 -89 45 -167.5t123 -131.5v-195l195 117q44 -7 84 -7q121 0 224 51.5t163 140t60 193t-60 193t-163 140t-224 51.5zM512 118q-51 0 -99 11l-127 -79l2 127q-77 46 -122 117t-45 153q0 90 52.5 166t142.5 120t196 44
  144 +t196 -44t142.5 -120t52.5 -165.5t-52.5 -165.5t-142.5 -120t-196 -44zM694 552h-364q-16 0 -27 -9.5t-11 -22.5t11 -22.5t27 -9.5h364q16 0 27 9.5t11 22.5t-11 22.5t-27 9.5zM558 397h-224q-15 -1 -25.5 -11.5t-11.5 -25.5q0 -12 10.5 -19.5t26.5 -7.5h224q15 0 26 9.5
  145 +t11 22.5t-11 22.5t-26 9.5z" />
  146 + <glyph glyph-name="chengyuan" unicode="&#xe63e;"
  147 +d="M510.5 420q-76.5 0 -131 59t-54.5 142.5t54 142.5t131 59t131 -59t54 -142.5t-54 -142.5t-130.5 -59zM510 759q-52 0 -89.5 -40t-37.5 -97.5t37.5 -97.5t89.5 -40t89.5 40t37.5 97.5t-37.5 97.5t-89.5 40zM692 -53h-360v0q-67 0 -108 52q-30 38 -30 86q0 17 4 33l22 117
  148 +q15 64 64.5 97t127.5 33q12 0 21 -9.5t9 -22t-8.5 -22t-21.5 -9.5q-111 -1 -130 -80l-22 -118q-9 -37 13.5 -65.5t58.5 -28.5h360q36 0 58.5 28.5t13.5 63.5l-22 121q-20 83 -130 83q-13 1 -21.5 10.5t-8.5 22t8.5 21.5t21.5 10q77 0 127 -35t65 -98l23 -121q3 -15 3 -32
  149 +q0 -48 -30 -85q-41 -52 -108 -52v0v0z" />
  150 + <glyph glyph-name="jiangshi" unicode="&#xe640;"
  151 +d="M740 455q-5 20 -20 34t-35 16l-94 14l-46 -107l-6 53q-1 3 -4 3v0h-26v0q-3 0 -4 -3l-5 -55l-47 109l-95 -14q-20 -3 -35 -17t-19 -34l-23 -103h483zM489 515q0 -14 13 -28q5 -4 20 -4t20 4q13 14 13 28q0 13 -33 13t-33 -13zM423 686v0q0 -51 29 -87t70 -36t70 36t29 87
  152 +v0v0q0 51 -29 87t-70 36t-70 -36t-29 -87v0zM97 319v-91h186v-269h457v269h187v91h-830zM617 133h-48v-104h-114v104h-48v76h210v-76z" />
  153 + <glyph glyph-name="chazhao" unicode="&#xe642;"
  154 +d="M414 144q-93 0 -172 46t-125 125t-46 172t46 172t125 124.5t172 46.5q93 -1 172 -46.5t125 -124.5t46 -172t-46 -172t-125 -125t-172 -46v0zM414 767q-116 0 -198 -82t-82 -198t82 -198t198 -82t198 82t82 198t-82 198t-198 82zM939 4q9 -9 9 -22q0 -14 -9.5 -23
  155 +t-22.5 -9t-22 9l-223 216q16 8 27.5 19.5t14.5 18.5l3 7l223 -216v0z" />
  156 + <glyph glyph-name="taolun" unicode="&#xe643;"
  157 +d="M823 480.5q0 86.5 -49 159.5t-133.5 116t-183.5 43t-183 -43t-133 -116t-49 -159q0 -79 42 -148.5t116 -113.5v-103q0 -10 9 -15q4 -2 8 -2q5 0 10 3l46 31q1 0 2 2l54 35q40 -7 78 -7q99 0 183.5 42.5t133.5 115.5t49 159.5zM457 197q-38 0 -78 8h-4q-5 0 -9 -3l-62 -41
  158 +q-1 0 -2 -1l-18 -12v81q0 9 -8 14q-71 40 -110.5 103t-39.5 135q0 77 44.5 142.5t120.5 103.5t166 38t166.5 -38.5t121 -103.5t44.5 -142t-44.5 -142.5t-121 -103.5t-166.5 -38zM867 371q36 -48 36 -109q0 -51 -28.5 -96t-78.5 -73q-9 -5 -9 -15v-50l-5 4l-4 2l-43 29
  159 +q-7 4 -13 3q-60 -12 -115 -0.5t-98 44.5l-21 -27q48 -36 109 -50t125 -2l37 -25q1 -1 2 -1l34 -23q4 -3 9 -3t8 2q9 5 9 15v72q55 34 85.5 85t30.5 110q0 69 -43 128z" />
  160 + </font>
  161 +</defs></svg>
不能预览此文件类型
不能预览此文件类型

1012 字节

  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <meta name="viewport"
  6 + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
  7 + <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="utf-8" />
  8 + <title>学点云课堂</title>
  9 +
  10 +
  11 + <link rel="stylesheet" type="text/css" href="css/amazeui.min.css">
  12 + <link rel="stylesheet" type="text/css" href="css/main.css">
  13 +
  14 + <script type="text/javascript" src="src/xdyVideo.js"></script>
  15 + <!--拖拽工具条-->
  16 + <script type="text/javascript" src="js/xdyEvent.js"></script>
  17 + <script type="text/javascript" src="js/drag.js"></script>
  18 +
  19 + <script type="text/javascript" src="js/McuClient.js?v=1.0.227.20"></script>
  20 + <!--<script type="text/javascript" src="http://192.168.1.140/McuClient/McuClient.js?7299033236"></script>-->
  21 + <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
  22 +
  23 + <script type="text/javascript" src="src/main.js"></script>
  24 + <!--&lt;!&ndash;白板&ndash;&gt;-->
  25 + <script type="text/javascript" src="js/index.js"></script>
  26 + <script src="js/draw.js"></script>
  27 +
  28 + <script type="text/javascript" src="js/pdf.js"></script>
  29 + <script type="text/javascript" src="js/pdf.worker.js"></script>
  30 +
  31 + <script type="text/javascript" src="src/videoWithFlash.js"></script>
  32 + <!--<script type="text/javascript" src="src/nativeVideo.js"></script>-->
  33 +
  34 +
  35 +</head>
  36 +<body>
  37 +
  38 +<!--弹出框-->
  39 +<button
  40 + type="button"
  41 + class="am-btn am-btn-primary pop"
  42 + data-am-modal="{target: '#my-alert'}">
  43 + Alert
  44 +</button>
  45 +<div class="am-modal am-modal-alert am-modal-active popheight" tabindex="-1" id="my-alert">
  46 + <div class="am-modal-dialog ">
  47 + <div class="am-modal-bd">
  48 + error1:失败了!请重新点击!
  49 + </div>
  50 + <div class="am-modal-footer">
  51 + <span class="am-modal-btn popBtn">确定</span>
  52 + </div>
  53 + </div>
  54 +</div>
  55 +
  56 +<!--loading-->
  57 +<div class="loading-index">
  58 + <div class="loadEffect">
  59 + <span></span>
  60 + <span></span>
  61 + <span></span>
  62 + <span></span>
  63 + <span></span>
  64 + <span></span>
  65 + <span></span>
  66 + <span></span>
  67 + </div>
  68 +</div>
  69 +
  70 +
  71 +<!--1v1互动课堂-->
  72 +<div class="box">
  73 +
  74 + <!--头部-->
  75 + <div class="header clear">
  76 + <li class="cur-status">
  77 + <span id="no-start" class="no-start iconfont">&#xe62b;</span>
  78 + <div id='live' class="live active">
  79 + <i></i>
  80 + <i></i>
  81 + <i></i>
  82 + <i></i>
  83 + </div>
  84 + <a id="a-status" href="javascript: void(0)">未开始</a></li>
  85 +
  86 + <li class="classroom"><a href="javascript: void(0)">[少儿英语口语]第四节</a></li>
  87 +
  88 +
  89 + <!--设置-->
  90 + <div class="am-dropdown" data-am-dropdown>
  91 + <button id="openCamera" class="setting am-btn am-btn-primary am-dropdown-toggle "
  92 + data-am-modal="{target: '#setting-modal-1', closeViaDimmer: 0, width: 405, height: 400}"
  93 + data-am-dropdown-toggle><span class="span-setting iconfont">&#xe631;</span>设置
  94 + </button>
  95 +
  96 + </div>
  97 +
  98 + <!--设置弹出层-->
  99 + <!--<div class="am-modal am-modal-no-btn" tabindex="-1" id="setting-modal-1">-->
  100 + <!--<div class="am-modal-dialog">-->
  101 + <!--<div class="setting-headline">设置-->
  102 + <!--<a href="javascript: void(0)" class="iconfont" data-am-modal-close><img id="close-cam" src="images/close.png"></a>-->
  103 + <!--</div>-->
  104 + <!--<ul class="am-modal-bd-setting">-->
  105 + <!--<li class="clear">-->
  106 + <!--<span>摄像头</span>-->
  107 +
  108 + <!--<select id="selectListVideo" class="SelectList">-->
  109 + <!--<option></option>-->
  110 + <!--</select>-->
  111 + <!--</li>-->
  112 +
  113 + <!--<li>-->
  114 + <!--<video id="webcam" autoplay></video>-->
  115 + <!--</li>-->
  116 + <!--<li>-->
  117 + <!--<span>麦克风</span>-->
  118 +
  119 + <!--<select id="selectListAudio" class="SelectList">-->
  120 + <!--<option></option>-->
  121 +
  122 + <!--</select>-->
  123 + <!--</li>-->
  124 + <!--<li>-->
  125 + <!--<span >0</span>-->
  126 + <!--<span>%</span>-->
  127 +
  128 + <!--<div class="scrollBar">-->
  129 + <!--<div class="scroll_Track"></div>-->
  130 + <!--<div class="scroll_Thumb"></div>-->
  131 + <!--</div>-->
  132 +
  133 + <!--<span class="setScrollBar-min"></span>-->
  134 + <!--<span>%</span>-->
  135 +
  136 +
  137 + <!--</li>-->
  138 + <!--<li>-->
  139 + <!--<p></p>-->
  140 + <!--<div id="set-voice-progress" class="set-voice-progress">-->
  141 + <!--<span id="set-loader1" class="set-voice-progress-span-1"></span>-->
  142 + <!--<span id="set-loader2" class="set-voice-progress-span-2"></span>-->
  143 + <!--<span id="set-loader3" class="set-voice-progress-span-3"></span>-->
  144 + <!--<span id="set-loader4" class="set-voice-progress-span-4"></span>-->
  145 + <!--<span id="set-loader5" class="set-voice-progress-span-5"></span>-->
  146 + <!--<span id="set-loader6" class="set-voice-progress-span-6"></span>-->
  147 + <!--<span id="set-loader7" class="set-voice-progress-span-7"></span>-->
  148 + <!--<span id="set-loader8" class="set-voice-progress-span-8"></span>-->
  149 + <!--<span id="set-loader9" class="set-voice-progress-span-9"></span>-->
  150 + <!--<span id="set-loader10" class="set-voice-progress-span-10"></span>-->
  151 + <!--<span id="set-loader11" class="set-voice-progress-span-11"></span>-->
  152 + <!--<span id="set-loader12" class="set-voice-progress-span-12"></span>-->
  153 + <!--</div>-->
  154 + <!--</li>-->
  155 + <!--</ul>-->
  156 + <!--</div>-->
  157 + <!--</div>-->
  158 +
  159 +
  160 +
  161 +
  162 + <!--帮助-->
  163 + <div class="am-dropdown" data-am-dropdown>
  164 + <a href="javascript: void(0)"><button class="am-btn am-btn-primary am-dropdown-toggle " data-am-dropdown-toggle><span
  165 + class="span-help iconfont">&#xe608;</span>帮助
  166 + </button></a>
  167 + </div>
  168 +
  169 + <!--右侧未开始-->
  170 + <div class="am-dropdown" data-am-dropdown>
  171 + <button type="button" class="am-btn am-btn-primary am-dropdown-toggle " data-am-dropdown-toggle><span
  172 + id="span-iconfont" class="span-classes iconfont">&#xe62b;</span><span id="class-now">未开始</span>
  173 + </button>
  174 + <ul class="am-dropdown-content">
  175 + <li><span id="am-dropdown-content-span-1" class="am-dropdown-content-span iconfont">&#xe61d;</span>
  176 + <button id="classes-status-1" type="button"
  177 + class="am-btn am-btn-primary am-dropdown-content-button"
  178 + data-am-modal="{target: '#begin-classes', closeViaDimmer: 0, width: 340, height: 172}"
  179 + href="#">开始上课
  180 + </button>
  181 + </li>
  182 +
  183 + <li><span class="am-dropdown-content-span iconfont">&#xe607;</span>
  184 + <button id="classes-status-2" type="button"
  185 + class="am-btn am-btn-primary am-dropdown-content-button"
  186 + data-am-modal="{target: '#end-classes', closeViaDimmer: 0, width: 340, height: 172}"
  187 + href="#">结束课堂
  188 + </button>
  189 + </li>
  190 +
  191 +
  192 + </ul>
  193 + </div>
  194 +
  195 + <!--弹出层-正在上课-->
  196 + <div class="am-modal am-modal-no-btn" tabindex="-1" id="begin-classes">
  197 + <div class="am-modal-dialog">
  198 +
  199 + <p id="p-text" class="p-text">确定开始录制吗?</p>
  200 +
  201 + <div class="am-modal-confirm-cancel">
  202 + <button id="confirm" class="confirm" data-am-modal-close>确定</button>
  203 + <button class="cancel" data-am-modal-close>取消</button>
  204 + </div>
  205 +
  206 + </div>
  207 + </div>
  208 +
  209 + <!--弹出层-结束课堂-->
  210 + <div class="am-modal am-modal-no-btn" tabindex="-1" id="end-classes">
  211 + <div class="am-modal-dialog">
  212 +
  213 + <p id="p-text-1" class="p-text">确定停止录制吗?</p>
  214 +
  215 + <div class="am-modal-confirm-cancel">
  216 + <button id="confirm-1" data-am-modal-close type="button"
  217 + class="confirm am-btn am-btn-primary"
  218 + data-am-modal="{target: '#end-classes-1', closeViaDimmer: 0, width: 340, height: 172}">确定
  219 + </button>
  220 + <button class="cancel" data-am-modal-close>取消</button>
  221 + </div>
  222 +
  223 + </div>
  224 + </div>
  225 +
  226 +
  227 + <!--弹出层-正在上课-->
  228 + <div class="am-modal am-modal-no-btn" tabindex="-1" id="end-classes-1">
  229 + <div class="am-modal-dialog">
  230 +
  231 + <p class="p-text">确定要退出当前课堂吗?</p>
  232 +
  233 + <div class="am-modal-confirm-cancel">
  234 + <button id="end" class="confirm" data-am-modal-close>结束课堂</button>
  235 + <button id="end-no-exit" class="cancel-1" data-am-modal-close>退出,不结束课堂</button>
  236 + </div>
  237 +
  238 + </div>
  239 + </div>
  240 +
  241 +
  242 + </div>
  243 + <!--内容-->
  244 + <div class="content clear">
  245 + <!--左侧-->
  246 + <div id="left" class="left">
  247 + <!--<div class="am-tabs" data-am-tabs>-->
  248 + <!--<div id="tab-box" class="am-tabs-bd">-->
  249 + <!--<div class="am-tab-panel am-fade am-in am-active" id="tab1">-->
  250 +
  251 + <!--引入canvas画板-->
  252 + <div id="draw" class="clear">
  253 + <div class="canvas_container">
  254 + <canvas id="canvas">
  255 + 浏览器不支持
  256 + </canvas>
  257 +
  258 + <!--<div id="docOuter" class="docOuter">-->
  259 + <img class="showImg" id="showImg"/>
  260 + <!--文档层-->
  261 + <img id="docImage" class="docImage">
  262 +
  263 + </img>
  264 + <canvas id="canvas_bak"></canvas>
  265 +
  266 + <!--</div>-->
  267 +
  268 + </div>
  269 + <!--画板的工具栏-->
  270 + <div id="tool" class="tool">
  271 + <ul class="draw_controller cf">
  272 + <li class=" showColor" id="chooseColor" title="选择颜色">
  273 +
  274 + <!--颜色板-->
  275 + <div id="tool-color" class="tool-color">
  276 + <ul class="draw_controller cf">
  277 + <li id="li-Color1" class="Color1" title="#4fbd92" value="#4fbd92"
  278 + onclick="choose(1)"></li>
  279 + <li id="li-Color2" class="Color2" title="#0071bc" value="#0071bc"
  280 + onclick="choose(2)"></li>
  281 + <li id="li-Color3" class="Color3" title="#6a0db2" value="#6a0db2"
  282 + onclick="choose(3)"></li>
  283 + <li id="li-Color4" class="Color4" title="#fae81b" value="#fae81b"
  284 + onclick="choose(4)"></li>
  285 + <li id="li-Color5" class="Color5" title="#f7751e" value="#f7751e"
  286 + onclick="choose(5)"></li>
  287 + <li id="li-Color6" class="Color6" title="#b8242a" value="#b8242a"
  288 + onclick="choose(6)"></li>
  289 + <li id="li-Color7" class="Color7" title="#4fbd92" value="#4fbd92"
  290 + onclick="choose(7)"></li>
  291 + </ul>
  292 + </div>
  293 +
  294 + </li>
  295 + <li class=" pencil" title="铅笔"></li>
  296 + <li class="rescind" title="撤销上一步操作"></li>
  297 + <!--<li class="square" title="方形"></li>-->
  298 + <!--<li class="drawLine" title="画直线"></li>-->
  299 +
  300 + <!--<li class="circle" title="圆"></li>-->
  301 + <!--<li class="laserPen" title="激光笔"></li>-->
  302 + <!--<li class="canvasText" title="文字"></li>-->
  303 + <!--<li class=" rubber" title="橡皮擦"></li>-->
  304 + <li class="clearContext" title="清屏"></li>
  305 + </ul>
  306 +
  307 + </div>
  308 +
  309 +
  310 + </div>
  311 + <!--</div>-->
  312 +
  313 +
  314 + <!--</div>-->
  315 +
  316 + <!--</div>-->
  317 +
  318 +
  319 +
  320 + <!--文档上传的列表-->
  321 + <div class="am-modal am-modal-no-btn" tabindex="-1" id="doc-modal-1">
  322 + <div class="am-modal-dialog">
  323 + <div class="doc-headline">文档列表
  324 + <a href="javascript: void(0)" class="iconfont" data-am-modal-close>&#xe638;</a>
  325 + </div>
  326 + <div class="am-modal-bd-file">
  327 +
  328 + <div id="pushFile" class="push-file clear">
  329 + <span class="iconfont">&#xe636;</span>
  330 + <a>上传文件</a>
  331 + </div>
  332 + <a><input type="file" id="file" onchange="importFile();"></a>
  333 +
  334 + <ul id="fileUl" class="file-ul">
  335 +
  336 +
  337 + </ul>
  338 + </div>
  339 + </div>
  340 + </div>
  341 +
  342 +
  343 + <!--文档和视频切换,视频控制区域-->
  344 + <div class="control">
  345 + <ul class="clear">
  346 + <!--<li class="voice-on-off iconfont">&#xe623;</li>-->
  347 + <!--<li class="voice-progress">-->
  348 +
  349 + <!--<div id="Demo">-->
  350 + <!--<div id="Main">-->
  351 + <!--<div id="scrollBar">-->
  352 + <!--<div id="scroll_Track"></div>-->
  353 + <!--<div id="scroll_Thumb"></div>-->
  354 + <!--</div>-->
  355 + <!--</div>-->
  356 + <!--</div>-->
  357 +
  358 + <!--</li>-->
  359 + <li class="fileUpload iconfont" data-am-modal="{target: '#doc-modal-1', closeViaDimmer: 0, width: 398, height: 288}">&#xe620;</li>
  360 +
  361 + <li class="next-page "><a id="nextPage" href="javascript:void(0)"></a></li>
  362 + <li class="total-page"><span id="totalPageNum">0</span></li>
  363 + <li class="bias">/</li>
  364 + <li class="cur-page"><span id="curPageNum">0</span></li>
  365 + <li class="prev"><a id="prevPage" href="javascript:void(0)"></a></li>
  366 +
  367 +
  368 + </ul>
  369 +
  370 + </div>
  371 +
  372 + </div>
  373 + <!--右侧-->
  374 + <div id="right" class="right">
  375 + <div class="studentVideo">
  376 + <img>
  377 + <div id="stuVideo-video" class="stuVideo-video iconfont">&#xe62e;</div>
  378 + <div id="stuVideo-voice" class="stuVideo-voice iconfont">&#xe62d;</div>
  379 + <!--<span>lucy</span>-->
  380 + </div>
  381 + <div class="teacherVideo">
  382 + <div class="publish" style="position:absolute;top: 0; width:240px;height:180px">
  383 + <div id="publish"></div>
  384 + </div>
  385 + <div class="play" style="position:absolute;top: 0; width:240px;height:180px">
  386 + <div id="play"></div>
  387 + </div>
  388 + <img class="teacherVideoBg"/>
  389 + <div id="teacherVideo-video" class="teacherVideo-video iconfont">&#xe62e;</div>
  390 + <div id="teacherVideo-voice" class="teacherVideo-voice iconfont">&#xe62d;</div>
  391 +
  392 + </div>
  393 +
  394 + <!--聊天区域-->
  395 + <div class="chat">
  396 + <div class="msg-border">
  397 + <div id="panel_message" class="msg clear">
  398 + <!--<div class="teacher-msg "><img src="images/teacher-photo.png" alt="老师头像">-->
  399 + <!--<p class="left">哇哦。。。。。。</p></div>-->
  400 + <!--<div class="student-msg"><img src="images/student-photo.png" alt="学生头像">-->
  401 + <!--<p class="right">哇哦。。。。。。</p></div>-->
  402 + </div>
  403 + </div>
  404 + <div class="input-send clear">
  405 + <button id="btn_send" class="send" type="submit">发送</button>
  406 + <div class="input-face">
  407 + <input id="txt_message" maxlength="20" type="text"/>
  408 + <span id="face" class="face iconfont">&#xe632;</span>
  409 + </div>
  410 +
  411 + </div>
  412 + </div>
  413 + <!--表情列表-->
  414 + <div id="facelist" class="swiper-container">
  415 +
  416 + <div class="inner-slide" id="inner-slide">
  417 + <div id="slide1" class="swiper-slide">
  418 + <ul>
  419 + <li><img src="images/face/aimu.gif" data-type="aimu">
  420 + </li>
  421 + <li><img src="images/face/daxiao.gif" data-type="daxiao">
  422 + </li>
  423 + <li><img src="images/face/huaixiao.gif" data-type="huaixiao">
  424 + </li>
  425 + <li><img src="images/face/liuhan.gif" data-type="liuhan">
  426 + </li>
  427 + <li><img src="images/face/shuijiao.gif" data-type="shuijiao">
  428 + </li>
  429 + <li><img src="images/face/yiwen.gif" data-type="yiwen">
  430 + </li>
  431 + <li><img src="images/face/aoman.gif" data-type="aoman">
  432 + </li>
  433 + <li><img src="images/face/jiew.gif" data-type="jiew">
  434 + </li>
  435 + <li><img src="images/face/liulei.gif" data-type="liulei">
  436 + </li>
  437 + <li><img src="images/face/sun.gif" data-type="sun">
  438 + </li>
  439 + <li><img src="images/face/youhh.gif" data-type="youhh">
  440 + </li>
  441 + <li><img src="images/face/baiyan.gif" data-type="baiyan">
  442 + </li>
  443 + <li><img src="images/face/fadai.gif" data-type="fadai">
  444 + </li>
  445 + <li><img src="images/face/jingkong.gif" data-type="jingkong">
  446 + </li>
  447 + <li><img src="images/face/meiyan.gif" data-type="meiyan">
  448 + </li>
  449 + <li><img src="images/face/tiaoxie.gif" data-type="tiaoxie">
  450 + </li>
  451 + <li><img src="images/face/yue.gif" data-type="yue">
  452 + </li>
  453 + <li><img src="images/face/baoquan.gif" data-type="baoquan">
  454 + </li>
  455 + <li><img src="images/face/fanu.gif" data-type="fanu">
  456 + </li>
  457 + <li><img src="images/face/jingya.gif" data-type="jingya">
  458 + </li>
  459 + <li><img src="images/face/mojing.gif" data-type="mojing">
  460 + </li>
  461 + <li><img src="images/face/touxiao.gif" data-type="touxiao">
  462 + </li>
  463 + <li><img src="images/face/yumen.gif" data-type="yumen">
  464 + </li>
  465 + <li><img src="images/face/bishi.gif" data-type="bishi">
  466 + </li>
  467 + <li><img src="images/face/fendou.gif" data-type="fendou">
  468 + </li>
  469 + <li><img src="images/face/kafei.gif" data-type="kafei">
  470 + </li>
  471 + <li><img src="images/face/piezui.gif" data-type="piezui">
  472 + </li>
  473 + <li><img src="images/face/tu.gif" data-type="tu">
  474 + </li>
  475 + <li><img src="images/face/yun.gif" data-type="yun">
  476 + </li>
  477 + <li><img src="images/face/bizui.gif" data-type="bizui">
  478 + </li>
  479 + <li><img src="images/face/ganga.gif" data-type="ganga">
  480 + </li>
  481 + <li><img src="images/face/kelian.gif" data-type="kelian">
  482 + </li>
  483 + </ul>
  484 + </div>
  485 + <div id="slide2" class="swiper-slide">
  486 + <ul>
  487 + <li><img src="images/face/pijiu.gif" data-type="pijiu">
  488 + </li>
  489 + <li><img src="images/face/weiqu.gif" data-type="weiqu">
  490 + </li>
  491 + <li><img src="images/face/zaijian.gif" data-type="zaijian">
  492 + </li>
  493 + <li><img src="images/face/cahan.gif" data-type="cahan">
  494 + </li>
  495 + <li><img src="images/face/guai.gif" data-type="guai">
  496 + </li>
  497 + <li><img src="images/face/koubi.gif" data-type="koubi">
  498 + </li>
  499 + <li><img src="images/face/qiang.gif" data-type="qiang">
  500 + </li>
  501 + <li><img src="images/face/weixiao.gif" data-type="weixiao">
  502 + </li>
  503 + <li><img src="images/face/zancheng.gif" data-type="zancheng">
  504 + </li>
  505 + <li><img src="images/face/cool.gif" data-type="cool">
  506 + </li>
  507 + <li><img src="images/face/guzhang.gif" data-type="guzhang">
  508 + </li>
  509 + <li><img src="images/face/kuaikl.gif" data-type="kuaikl">
  510 + </li>
  511 + <li><img src="images/face/qinqin.gif" data-type="qinqin">
  512 + </li>
  513 + <li><img src="images/face/woshou.gif" data-type="woshou">
  514 + </li>
  515 + <li><img src="images/face/zhemo.gif" data-type="zhemo">
  516 + </li>
  517 + <li><img src="images/face/dabing.gif" data-type="dabing">
  518 + </li>
  519 + <li><img src="images/face/hanxiao.gif" data-type="hanxiao">
  520 + </li>
  521 + <li><img src="images/face/kulou.gif" data-type="kulou">
  522 + </li>
  523 + <li><img src="images/face/qiu.gif" data-type="qiu">
  524 + </li>
  525 + <li><img src="images/face/xigua.gif" data-type="xigua">
  526 + </li>
  527 + <li><img src="images/face/zhouma.gif" data-type="zhouma">
  528 + </li>
  529 + <li><img src="images/face/daku.gif" data-type="daku">
  530 + </li>
  531 + <li><img src="images/face/haqi.gif" data-type="haqi">
  532 + </li>
  533 + <li><img src="images/face/kun.gif" data-type="kun">
  534 + </li>
  535 + <li><img src="images/face/ruo.gif" data-type="ruo">
  536 + </li>
  537 + <li><img src="images/face/xin.gif" data-type="xin">
  538 + </li>
  539 + <li><img src="images/face/zuohh.gif" data-type="zuohh">
  540 + </li>
  541 + <li><img src="images/face/dangao.gif" data-type="dangao">
  542 + </li>
  543 + <li><img src="images/face/hua.gif" data-type="hua">
  544 + </li>
  545 + <li><img src="images/face/lianhong.gif" data-type="lianhong">
  546 + </li>
  547 + <li><img src="images/face/shuai.gif" data-type="shuai">
  548 + </li>
  549 + <li><img src="images/face/yinxian.gif" data-type="yinxian">
  550 + </li>
  551 + </ul>
  552 + </div>
  553 +
  554 + </div>
  555 + <ul class="tiplist" id="tiplist">
  556 + <li class="bg"></li>
  557 + <li></li>
  558 + </ul>
  559 +
  560 + </div>
  561 + </div>
  562 + </div>
  563 +</div>
  564 +
  565 +
  566 +
  567 +
  568 +
  569 +
  570 +<!--输入4个参数的页面-->
  571 +
  572 +<div class="fourParamsOut">
  573 + <ul class="fourParams clear">
  574 + <li><span>classId:</span><input class="classId" type="text" value="2028061409"></li>
  575 + <!--<li><span>userRole:</span><input class="userRole" type="text" value=""></li>-->
  576 + <!--<li><span>portal:</span><input class="portal" type="text" value=""></li>-->
  577 + <li><span>userId:</span><input class="userId" type="text" value=""></li>
  578 + <li>
  579 + <button id="btnFourParam">确定</button>
  580 + </li>
  581 + </ul>
  582 + <div class="permission">
  583 +
  584 + <div class="permissionIn">
  585 + <input id="host" type="radio" name="userRole" value="host" onclick="getValue(this.value)"><label for="host">老师</label>
  586 + <input id="normal" type="radio" name="userRole" value="normal" onclick="getValue(this.value)"><label
  587 + for="normal">学生</label>
  588 + <button id="btn-per">确定</button>
  589 + </div>
  590 + </div>
  591 +</div>
  592 +
  593 +
  594 +<!--&lt;!&ndash;登录页面终极版&ndash;&gt;-->
  595 +<div class="loginBg">
  596 + <ul class="loginContent">
  597 + <li></li>
  598 + <li class="userNameLi">
  599 + <div class="userNameBg"></div>
  600 + <input value="xdykt" class="userNameInput" type="text" placeholder="请输入用户名" maxlength="20" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">
  601 + </li>
  602 + <li>
  603 + <p class="userTip"></p>
  604 + </li>
  605 + <li class="passWordLi">
  606 + <div class="passWordBg"></div>
  607 + <input value="111111" class="passWordInput" type="text" placeholder="请输入课堂密码">
  608 + </li>
  609 + <li>
  610 + <p class="passWordTip"></p>
  611 + </li>
  612 +
  613 + <li class="btnLoginLi">
  614 + <button id="btnLogin">登录</button>
  615 + </li>
  616 + </ul>
  617 +
  618 +</div>
  619 +
  620 +<script type="text/javascript" src="js/amazeui.min.js"></script>
  621 +
  622 +<!--&lt;!&ndash;白板&ndash;&gt;-->
  623 +<!--<script type="text/javascript" src="js/index.js"></script>-->
  624 +
  625 +
  626 +<!--拖动-->
  627 +<script type="text/javascript">
  628 + var tabBox = document.getElementById("draw");
  629 + var tool = document.getElementById("tool");
  630 + xdyEvent.on(tool, "mousedown", down);
  631 +</script>
  632 +
  633 +<!--进度条-->
  634 +<script type="text/javascript">
  635 + $(document).ready(function (e) {
  636 + //设置最大值
  637 + ScrollBar.maxValue = 100;
  638 + //初始化
  639 + ScrollBar.Initialize();
  640 +
  641 +
  642 + });
  643 + var ScrollBar = {
  644 + value: 20,
  645 + maxValue: 100,
  646 + step: 1,
  647 + currentX: 0,
  648 + Initialize: function () {
  649 + if (this.value > this.maxValue) {
  650 + alert("给定当前值大于了最大值");
  651 + return;
  652 + }
  653 + this.GetValue();
  654 + $("#scroll_Track").css("width", this.currentX + 2 + "px");
  655 + $("#scroll_Thumb").css("margin-left", this.currentX + "px");
  656 + this.Value();
  657 + $("#scrollBarTxt").html(ScrollBar.value + "/" + ScrollBar.maxValue);
  658 + },
  659 + Value: function () {
  660 + var valite = false;
  661 + var currentValue;
  662 + $("#scroll_Thumb").mousedown(function () {
  663 + valite = true;
  664 + $(document.body).mousemove(function (event) {
  665 + if (valite == false) return;
  666 + var changeX = event.clientX - ScrollBar.currentX;
  667 + currentValue = changeX - ScrollBar.currentX - $("#Demo").offset().left;
  668 + $("#scroll_Thumb").css("margin-left", currentValue + "px");
  669 + $("#scroll_Track").css("width", currentValue + 2 + "px");
  670 + if ((currentValue + 25) >= $("#scrollBar").width()) {
  671 + $("#scroll_Thumb").css("margin-left", $("#scrollBar").width() - 5 + "px");
  672 + $("#scroll_Track").css("width", $("#scrollBar").width() + 2 + "px");
  673 + ScrollBar.value = ScrollBar.maxValue;
  674 + } else if (currentValue <= 0) {
  675 + $("#scroll_Thumb").css("margin-left", "0px");
  676 + $("#scroll_Track").css("width", "0px");
  677 + } else {
  678 + ScrollBar.value = Math.round(100 * (currentValue / $("#scrollBar").width()));
  679 + }
  680 + $("#scrollBarTxt").html(ScrollBar.value + "/" + ScrollBar.maxValue);
  681 + });
  682 + });
  683 + $(document.body).mouseup(function () {
  684 + ScrollBar.value = Math.round(100 * (currentValue / $("#scrollBar").width()));
  685 + valite = false;
  686 + if (ScrollBar.value >= ScrollBar.maxValue) ScrollBar.value = ScrollBar.maxValue;
  687 + if (ScrollBar.value <= 0) ScrollBar.value = 0;
  688 + $("#scrollBarTxt").html(ScrollBar.value + "/" + ScrollBar.maxValue);
  689 + });
  690 + },
  691 + GetValue: function () {
  692 + this.currentX = $("#scrollBar").width() * (this.value / this.maxValue);
  693 + }
  694 + }
  695 +
  696 +</script>
  697 +
  698 +<!--设置中的进度条-->
  699 +
  700 +<script type="text/javascript">
  701 + $(document).ready(function(e) {
  702 + //设置最大值
  703 + setScrollBar.maxValue=100;
  704 + //初始化
  705 + setScrollBar.Initialize();
  706 + //设置最大值
  707 + setProgressBar.maxValue=100;
  708 +
  709 + //设置当前刻度
  710 + var index=0;
  711 + var mProgressTimer=setInterval(function(){
  712 + index+=2;
  713 + setProgressBar.SetValue(index);
  714 + },100);
  715 +
  716 + });
  717 + var setScrollBar = {
  718 + value: 1,
  719 + maxValue: 100,
  720 + step: 1,
  721 + currentX: 0,
  722 + Initialize: function() {
  723 + if (this.value > this.maxValue) {
  724 + alert("给定当前值大于了最大值");
  725 + return;
  726 + }
  727 + this.GetValue();
  728 + $(".scroll_Track").css("width", this.currentX + 2 + "px");
  729 + $(".scroll_Thumb").css("margin-left", this.currentX + "px");
  730 + this.Value();
  731 +
  732 + $(".setScrollBar-min").html(setScrollBar.value);
  733 + $(".setScrollBar-max").html(setScrollBar.maxValue);
  734 +
  735 + },
  736 + Value: function() {
  737 + var valite = false;
  738 + var currentValue;
  739 + $(".scroll_Thumb").mousedown(function() {
  740 + valite = true;
  741 + $(document.body).mousemove(function(event) {
  742 + if (valite == false) return;
  743 + var changeX = event.clientX - setScrollBar.currentX;
  744 + currentValue = changeX - setScrollBar.currentX-$(".scrollBar").offset().left;
  745 + $(".scroll_Thumb").css("margin-left", currentValue + "px");
  746 + $(".scroll_Track").css("width", currentValue + 2 + "px");
  747 + if ((currentValue + 9) >= $(".scrollBar").width()) {
  748 + $(".scroll_Thumb").css("margin-left", $(".scrollBar").width() - 9 + "px");
  749 + $(".scroll_Track").css("width", $(".scrollBar").width() + 2 + "px");
  750 + setScrollBar.value = setScrollBar.maxValue;
  751 + } else if (currentValue <= 0) {
  752 + $(".scroll_Thumb").css("margin-left", "0px");
  753 + $(".scroll_Track").css("width", "0px");
  754 + } else {
  755 + setScrollBar.value = Math.round(100 * (currentValue / $(".scrollBar").width()));
  756 + }
  757 + $(".setScrollBar-min").html(setScrollBar.value);
  758 + $(".setScrollBar-max").html(setScrollBar.maxValue);
  759 + });
  760 + });
  761 + $(document.body).mouseup(function() {
  762 + setScrollBar.value = Math.round(100 * (currentValue / $(".scrollBar").width()));
  763 + valite = false;
  764 + if (setScrollBar.value >= setScrollBar.maxValue) setScrollBar.value = setScrollBar.maxValue;
  765 + if (setScrollBar.value <= 0) setScrollBar.value = 0;
  766 + $(".setScrollBar-min").html(setScrollBar.value);
  767 + $(".setScrollBar-max").html(setScrollBar.maxValue);
  768 + });
  769 + },
  770 + GetValue: function() {
  771 + this.currentX = $(".scrollBar").width() * (this.value / this.maxValue);
  772 + }
  773 + }
  774 + var setProgressBar = {
  775 + maxValue: 100,
  776 + value: 20,
  777 + SetValue: function(aValue) {
  778 + this.value=aValue;
  779 + if (this.value >= this.maxValue) this.value = this.maxValue;
  780 + if (this.value <= 0) this.value = 0;
  781 + var mWidth=this.value/this.maxValue*$(".progressBar").width()+"px";
  782 + $(".progressBar_Track").css("width",mWidth);
  783 + $(".setScrollBar-min").html(setScrollBar.value);
  784 + $(".setScrollBar-max").html(setScrollBar.maxValue);
  785 + }
  786 + }
  787 +</script>
  788 +
  789 +<!--开始上课/正在录制-->
  790 +<script type="text/javascript">
  791 + var flag = 0;
  792 + // 正在上课
  793 + var classnow = document.getElementById('class-now');
  794 + //弹出层上的文字
  795 + var ptext = document.getElementById('p-text');
  796 + var ptext1 = document.getElementById('p-text-1');
  797 + // 确定按钮
  798 + var confirm = document.getElementById('confirm');
  799 + var confirm1 = document.getElementById('confirm-1');
  800 +
  801 + // 正在上课前的iconfont
  802 + var spaniconfont = document.getElementById('span-iconfont');
  803 + // 左侧 未开始 直播中
  804 + var aStatus = document.getElementById('a-status');
  805 + // 左侧跳动
  806 + var oLive = document.getElementById('live');
  807 + // 左侧的iconfont
  808 + var noStart = document.getElementById('no-start');
  809 +
  810 + var end = document.getElementById('end');
  811 +
  812 + var endNoexit = document.getElementById('end-no-exit');
  813 +
  814 +
  815 + // 第一个下拉的第一个
  816 + var classesStatus1 = document.getElementById('classes-status-1');
  817 + // 第一个下拉的第二个
  818 + var classesStatus2 = document.getElementById('classes-status-2');
  819 +
  820 + var amDrospanIcon = document.getElementById('am-dropdown-content-span-1');
  821 + confirm.onclick = function changeStatus() {
  822 + if (flag == '0') {
  823 + flag++;
  824 + console.log(flag);
  825 + spaniconfont.innerHTML = '&#xe609;';
  826 + classnow.innerHTML = '直播中';
  827 + aStatus.innerHTML = '直播中';
  828 + aStatus.style.color = '#d95136';
  829 + ptext.innerHTML = '确定暂停录制吗'
  830 + noStart.style.display = 'none';
  831 + oLive.style.display = 'block';
  832 + amDrospanIcon.innerHTML = "&#xe60a;";
  833 + classesStatus1.innerHTML = '课间休息';
  834 + console.log(classesStatus1.innerHTML);
  835 + classesStatus2.innerHTML = '结束课堂';
  836 + console.log(classesStatus2.innerHTML);
  837 +
  838 +
  839 + }
  840 + else if (flag == '1') {
  841 + console.log(flag);
  842 + ptext.innerHTML = '确定继续上课吗'
  843 + spaniconfont.innerHTML = '&#xe60a;';
  844 + classnow.innerHTML = '休息';
  845 + aStatus.innerHTML = '休息';
  846 + aStatus.style.color = '#333333';
  847 + noStart.style.display = 'block';
  848 + oLive.style.display = 'none';
  849 + amDrospanIcon.innerHTML = "&#xe61d;";
  850 + classesStatus1.innerHTML = '继续上课';
  851 + console.log(classesStatus1.innerHTML);
  852 + classesStatus2.innerHTML = '结束课堂';
  853 + console.log(classesStatus2.innerHTML);
  854 + flag--;
  855 + }
  856 +
  857 +
  858 + }
  859 + end.onclick = function endStatus() {
  860 + spaniconfont.innerHTML = '&#xe609;';
  861 + classnow.innerHTML = '结束';
  862 + aStatus.innerHTML = '结束';
  863 + oLive.style.display = 'none';
  864 + spaniconfont.innerHTML = '&#xe607;';
  865 + noStart.innerHTML = "&#xe62b;";
  866 + noStart.style.display = 'block';
  867 + aStatus.style.color = '#333333';
  868 + }
  869 +
  870 +
  871 +</script>
  872 +
  873 +<!--色板-->
  874 +<script type="text/javascript">
  875 + var tool = document.getElementById('tool');
  876 + var toolColor = document.getElementById('tool-color');
  877 + var chooseColor = document.getElementById('chooseColor');
  878 +
  879 +
  880 + var liColor1 = document.getElementById('li-Color1');
  881 + var liColor2 = document.getElementById('li-Color2');
  882 + var liColor3 = document.getElementById('li-Color3');
  883 + var liColor4 = document.getElementById('li-Color4');
  884 + var liColor5 = document.getElementById('li-Color5');
  885 + var liColor6 = document.getElementById('li-Color6');
  886 + var liColor7 = document.getElementById('li-Color7');
  887 +
  888 +
  889 + chooseColor.onmouseenter = function () {
  890 + toolColor.style.display = "block";
  891 + };
  892 +
  893 + chooseColor.onmouseleave = function () {
  894 + toolColor.style.display = "none";
  895 + };
  896 + /* for(var i=0;i<oLis.length;i++){
  897 + oLis[i].index=i;
  898 + oLis[i].onlick=function () {
  899 + oLis[this.index].style.width="";
  900 +
  901 + }
  902 + }*/
  903 + function choose(agrs) {
  904 + switch (agrs) {
  905 + case 1:
  906 + liColor1.style.width = '34px';
  907 + liColor1.style.height = '34px';
  908 + liColor1.style.background = 'url("images/color1-p.png") no-repeat';
  909 + liColor1.style.margin = "3px 4px 0 8px";
  910 + chooseColor.style.background = 'url("images/color1-n.png") no-repeat';
  911 + chooseColor.title = "#4fbd92";
  912 + break;
  913 + case 2:
  914 + liColor2.style.width = '34px';
  915 + liColor2.style.height = '34px';
  916 + liColor2.style.background = 'url("images/color2-p.png") no-repeat';
  917 + liColor2.style.margin = "3px 4px 0 8px";
  918 + chooseColor.style.background = 'url("images/color2-n.png") no-repeat';
  919 + chooseColor.title = "#0071bc";
  920 + break;
  921 + case 3:
  922 + liColor3.style.width = '34px';
  923 + liColor3.style.height = '34px';
  924 + liColor3.style.background = 'url("images/color3-p.png") no-repeat';
  925 + liColor3.style.margin = "3px 4px 0 8px";
  926 + chooseColor.style.background = 'url("images/color3-n.png") no-repeat';
  927 + chooseColor.title = "#6a0db2";
  928 + break;
  929 + case 4:
  930 + liColor4.style.width = '34px';
  931 + liColor4.style.height = '34px';
  932 + liColor4.style.background = 'url("images/color4-p.png") no-repeat';
  933 + liColor4.style.margin = "3px 4px 0 8px";
  934 + chooseColor.style.background = 'url("images/color4-n.png") no-repeat';
  935 + chooseColor.title = "#fae81b";
  936 +
  937 + break;
  938 + case 5:
  939 + liColor5.style.width = '34px';
  940 + liColor5.style.height = '34px';
  941 + liColor5.style.background = 'url("images/color5-p.png") no-repeat';
  942 + liColor5.style.margin = "3px 4px 0 8px";
  943 + chooseColor.style.background = 'url("images/color5-n.png") no-repeat';
  944 + chooseColor.title = "#f7751e";
  945 +
  946 + break;
  947 + case 6:
  948 + liColor6.style.width = '34px';
  949 + liColor6.style.height = '34px';
  950 + liColor6.style.background = 'url("images/color6-p.png") no-repeat';
  951 + liColor6.style.margin = "3px 4px 0 8px";
  952 + chooseColor.style.background = 'url("images/color6-n.png") no-repeat';
  953 + chooseColor.title = "#b8242a";
  954 + break;
  955 + case 7:
  956 + liColor7.style.width = '34px';
  957 + liColor7.style.height = '34px';
  958 + liColor7.style.background = 'url("images/color1-p.png") no-repeat';
  959 + liColor7.style.margin = "3px 4px 0 8px";
  960 + chooseColor.style.background = 'url("images/color1-n.png") no-repeat';
  961 + chooseColor.title = "#4fbd92";
  962 + break;
  963 + }
  964 + }
  965 +
  966 +
  967 +</script>
  968 +
  969 +</body>
  970 +</html>
  971 +
  972 +
此 diff 太大无法显示。
此 diff 太大无法显示。
  1 +
  2 +function down(e) {
  3 + this.strX = e.pageX;
  4 + this.strY = e.pageY;
  5 + this.strL = this.offsetLeft;
  6 + this.strT = this.offsetTop;
  7 + if (this.setCapture) {
  8 + this.setCapture();
  9 + xdyEvent.on(tool, "mousemove", move);
  10 + xdyEvent.on(tool, "mouseup", up);
  11 + } else {
  12 + this.MOVE = xdyEvent.processThis(move, this);
  13 + this.UP = xdyEvent.processThis(up, this);
  14 + xdyEvent.on(document, "mousemove", this.MOVE);
  15 + xdyEvent.on(document, "mouseup", this.UP);
  16 + }
  17 +
  18 + xdyEvent.fire.call(this, "xdyDragStart", e);
  19 +}
  20 +
  21 +function move(e) {
  22 +
  23 +
  24 + var curL = e.pageX - this.strX + this.strL;
  25 +
  26 +
  27 + var curT = e.pageY - this.strY + this.strT;
  28 +
  29 + var minL = 0, minT = 0, maxL = tabBox.offsetWidth-tool.offsetWidth, maxT = tabBox.offsetHeight-tool.offsetHeight;
  30 +
  31 +
  32 + curL = curL <= minL ? minL : (curL >= maxL ? maxL : curL);
  33 + curT = curT <= minT ? minT : (curT >= maxT ? maxT : curT);
  34 + this.style.left = curL + "px";
  35 + this.style.top = curT + "px";
  36 +
  37 + xdyEvent.fire.call(this, "xdyDragMove", e);
  38 +}
  39 +
  40 +function up(e) {
  41 + if (this.releaseCapture) {
  42 + this.releaseCapture();
  43 + $event.off(tool, "mousemove", move);
  44 + $event.off(tool, "mouseup", up);
  45 + } else {
  46 + $event.off(document, "mousemove", this.MOVE);
  47 + $event.off(document, "mouseup", this.UP);
  48 + }
  49 +
  50 + xdyEvent.fire.call(this, "xdyDragEnd", e);
  51 +}
  1 +(function () {
  2 +
  3 +//画布
  4 +var canvas ;
  5 +var context ;
  6 +//蒙版
  7 +var canvas_bak;
  8 +var context_bak;
  9 +
  10 +
  11 +
  12 +var canvasWidth = 880;
  13 +var canvasHeight = 718;
  14 +var recordPencilResult={};
  15 +var recordPencilObj={};
  16 +var recordPencil=[];
  17 +var recordPencilTotal=[];
  18 +var recordPencilId;
  19 +
  20 +var CanvasConInfo;
  21 +
  22 +
  23 +
  24 +
  25 +
  26 +
  27 +
  28 + if (document.documentElement.clientWidth>1366){
  29 + canvasWidth = 880;
  30 + canvasHeight = 718;
  31 +
  32 +
  33 + }else if(document.documentElement.clientWidth<=1366&&document.documentElement.clientWidth>1280){
  34 + canvasWidth = 626;
  35 + canvasHeight = 700;
  36 +
  37 +
  38 + }else if (document.documentElement.clientWidth<=1280){
  39 + canvasWidth = 581;
  40 + canvasHeight = 700;
  41 +
  42 +
  43 +
  44 +
  45 +
  46 +
  47 + }
  48 +
  49 + function xyToPer(x,y){
  50 + var recordPencilObject=new Object();
  51 + recordPencilObject.w=parseInt(x/canvasWidth*10000)/100;
  52 + recordPencilObject.h=parseInt(y/canvasHeight*10000)/100;
  53 + console.log("xyToPer +++++++++++++++++++++++++++++++++++++++++++++++++");
  54 + console.log(recordPencilObject);
  55 + return recordPencilObject;
  56 + }
  57 +
  58 +var canvasTop;
  59 +var canvasLeft;
  60 +
  61 +//画笔大小
  62 +var size = 2;
  63 +var color = '#000000';
  64 +
  65 +//画图形
  66 + function draw_graph(graphType,obj){
  67 +
  68 + //把蒙版放于画板上面
  69 + $("#canvas_bak").css("z-index",1);
  70 + //先画在蒙版上 再复制到画布上
  71 +
  72 +
  73 + chooseImg(obj);
  74 + var canDraw = false;
  75 +
  76 + var startX;
  77 + var startY;
  78 +
  79 + //鼠标按下获取 开始xy开始画图
  80 + var mousedown = function(e){
  81 + scroolTop = $(window).scrollTop();
  82 + scroolLeft = $(window).scrollLeft();
  83 + canvasTop = $(canvas).offset().top - scroolTop;
  84 + canvasLeft = $(canvas).offset().left - scroolLeft;
  85 +
  86 + context.strokeStyle= $('#chooseColor')[0].title;
  87 + context_bak.strokeStyle= $('#chooseColor')[0].title;
  88 + context_bak.lineWidth = size;
  89 +
  90 + startX = e.clientX - canvasLeft;
  91 + startY = e.clientY - canvasTop;
  92 + context_bak.moveTo(startX ,startY );
  93 + canDraw = true;
  94 +
  95 +
  96 +
  97 +
  98 +
  99 + if(graphType == 'pencil'){
  100 +
  101 + context_bak.beginPath();
  102 + // console.log("=======================================++++++++++++++++++++++++++++++++++");
  103 +
  104 +
  105 + }else if(graphType == 'circle'){
  106 + context.beginPath();
  107 + context.moveTo(startX ,startY );
  108 + context.lineTo(startX +1 ,startY+1);
  109 + context.stroke();
  110 +
  111 + }else if(graphType == 'rubber'){
  112 + // context.clearRect(startX - size * 10 , startY - size * 10 , size * 20 , size * 20);
  113 + }
  114 + // 阻止点击时的cursor的变化,draw
  115 + e=e||window.event;
  116 + e.preventDefault();
  117 + };
  118 +
  119 + //鼠标离开 把蒙版canvas的图片生成到canvas中
  120 + var mouseup = function(e){
  121 + e=e||window.event;
  122 + canDraw = false;
  123 +
  124 + console.log("鼠标松开===================================================");
  125 + recordPencilResult.type=0;
  126 + recordPencilResult.curPage=1;
  127 + recordPencilResult.parentId=0;
  128 + recordPencilResult.pointGroup=recordPencilTotal;
  129 + recordPencilResult.color=$('#chooseColor')[0].title;
  130 + recordPencilResult.thickness=size;
  131 + console.log("发送canvas绘图=================================");
  132 + console.log(recordPencilResult);
  133 + client.sendInsertAnnotaion(recordPencilResult);
  134 +
  135 + if (canDraw = false){
  136 + recordPencilTotal.splice(0,recordPencilTotal.length);
  137 + }else{
  138 + recordPencilTotal=[];
  139 + }
  140 + console.log("当前画笔--------------------------");
  141 + console.log(recordPencilTotal);
  142 +
  143 + };
  144 +
  145 + //选择功能按钮 修改样式
  146 + function chooseImg(obj){
  147 + var imgAry = $(".draw_controller li");
  148 + for(var i=0;i<imgAry.length;i++){
  149 + $(imgAry[i]).removeClass('active');
  150 + $(imgAry[i]).addClass('normal');
  151 + }
  152 + $(obj).removeClass("normal");
  153 + $(obj).addClass("active");
  154 + }
  155 +
  156 + // 鼠标移动
  157 + var mousemove = function(e){
  158 + scroolTop = $(window).scrollTop();
  159 + scroolLeft = $(window).scrollLeft();
  160 + canvasTop = $(canvas).offset().top - scroolTop;
  161 + canvasLeft = $(canvas).offset().left - scroolLeft;
  162 + e=e||window.event;
  163 + var x = e.clientX - canvasLeft;
  164 + var y = e.clientY - canvasTop;
  165 + //方块 4条直线搞定
  166 + if(graphType == 'square'){
  167 + if(canDraw){
  168 + context_bak.beginPath();
  169 + clearContext();
  170 + context_bak.moveTo(startX , startY);
  171 + context_bak.lineTo(x ,startY );
  172 + context_bak.lineTo(x ,y );
  173 + context_bak.lineTo(startX ,y );
  174 + context_bak.lineTo(startX ,startY );
  175 + context_bak.stroke();
  176 +
  177 + }
  178 + //直线
  179 + }else if(graphType =='line'){
  180 + if(canDraw){
  181 + context_bak.beginPath();
  182 + clearContext();
  183 + context_bak.moveTo(startX , startY);
  184 + context_bak.lineTo(x ,y );
  185 + context_bak.stroke();
  186 +
  187 + console.log("--------------------------------------------------------------");
  188 + console.log(startX,startY);
  189 + console.log(x,y);
  190 +
  191 + var lineData={};
  192 + var arr= new Array();
  193 + var start={};
  194 + start.x=startX;
  195 + start.y=startY;
  196 + var end={};
  197 + end.x=x;
  198 + end.y=y;
  199 +
  200 + lineData.type=0;
  201 + lineData.color=$('#chooseColor')[0].title;
  202 + arr.unshift(start,end);
  203 + lineData.pointGroup=arr;
  204 + console.log("2222222222222222222222222222222222222222");
  205 + console.log(lineData);
  206 +
  207 + }
  208 + //画笔
  209 + }else if(graphType == 'pencil'){
  210 + if(canDraw){
  211 + context_bak.lineTo(Math.round(e.clientX-canvasLeft),Math.round(e.clientY-canvasTop));
  212 + context_bak.stroke();
  213 +
  214 + // console.log("铅笔工具开始----------------------->");
  215 + var mouseX=e.offsetX;
  216 + var mouseY=e.offsetY;
  217 +
  218 + console.log("---------------------------------------------------");
  219 + console.log(Math.round(e.clientX-canvasLeft),Math.round(e.clientY-canvasLeft))
  220 + console.log(mouseX,mouseY);
  221 + recordPencilObj=xyToPer(mouseX,mouseY);
  222 + recordPencilTotal.push(recordPencilObj);
  223 +
  224 +
  225 + }
  226 + //圆 未画得时候 出现一个小圆
  227 + }else if(graphType == 'circle'){
  228 + clearContext();
  229 + if(canDraw){
  230 + // 鼠标点击移动时产生的圆
  231 + context_bak.beginPath();
  232 + var radii = Math.sqrt((startX - x) * (startX - x) + (startY - y) * (startY - y));
  233 + context_bak.arc(startX,startY,radii,0,Math.PI * 2,false);
  234 + context_bak.stroke();
  235 + }else{
  236 + context_bak.beginPath();
  237 + context_bak.arc(x,y,20,0,Math.PI * 2,false);
  238 + context_bak.stroke();
  239 + }
  240 + //涂鸦 未画得时候 出现一个小圆
  241 + }else if(graphType == 'handwriting'){
  242 + if(canDraw){
  243 + // 鼠标点击移动产生的圆圈
  244 + context_bak.beginPath();
  245 + context_bak.strokeStyle= $('#chooseColor')[0].title;
  246 + context_bak.fillStyle= $('#chooseColor')[0].title;
  247 +
  248 + //计算当前点和上一个点的距离
  249 + var tmpX = x - startX;
  250 + var tmpY = y - startY;
  251 + var dist = Math.sqrt(Math.pow(tmpX, 2) + Math.pow(tmpY, 2));
  252 + dist = Math.round(dist);
  253 +
  254 + //定义递增点
  255 + var ix = tmpX / dist;
  256 + var iy = tmpY / dist;
  257 +
  258 + //定义绘制点
  259 + var currX = startX;
  260 + var currY = startY;
  261 + for(var i = 0; i < dist; i++) {
  262 + context_bak.arc(currX, currY, size * 10, 0, Math.PI * 2, false);
  263 +
  264 + currX += ix;
  265 + currY += iy;
  266 + }
  267 +
  268 + context_bak.fill();
  269 + context_bak.stroke();
  270 + context_bak.restore();
  271 +
  272 + //保存上一次的点
  273 + startX = x;
  274 + startY = y;
  275 + }else{
  276 + clearContext();
  277 + context_bak.beginPath();
  278 + context_bak.strokeStyle = color;
  279 + context_bak.fillStyle = color;
  280 + context_bak.arc(x,y,size*10,0,Math.PI * 2,false);
  281 + context_bak.fill();
  282 + context_bak.stroke();
  283 + }
  284 + //橡皮擦 不管有没有在画都出现小方块 按下鼠标 开始清空区域
  285 + }else if(graphType == 'rubber'){
  286 + // context_bak.lineWidth = 1;
  287 + // clearContext();
  288 + // context_bak.beginPath();
  289 + // context_bak.strokeStyle = '#000000';
  290 + // context_bak.moveTo(x - size * 10 , y - size * 10 );
  291 + // context_bak.lineTo(x + size * 10 , y - size * 10 );
  292 + // context_bak.lineTo(x + size * 10 , y + size * 10 );
  293 + // context_bak.lineTo(x - size * 10 , y + size * 10 );
  294 + // context_bak.lineTo(x - size * 10 , y - size * 10 );
  295 + // context_bak.stroke();
  296 + // if(canDraw){
  297 + // context.clearRect(x - size * 10 , y - size * 10 , size * 20 , size * 20);
  298 + //
  299 + // }
  300 +
  301 +
  302 +
  303 +
  304 +
  305 + }
  306 + };
  307 +
  308 +
  309 + //鼠标离开区域以外 除了涂鸦 都清空
  310 + var mouseout = function(){
  311 + if(graphType != 'pencil'){
  312 + console.log("清屏-------------------------------------------------")
  313 + clearContext();
  314 + }
  315 + }
  316 +
  317 + $(canvas_bak).unbind();
  318 + $(canvas_bak).bind('mousedown',mousedown);
  319 + $(canvas_bak).bind('mousemove',mousemove);
  320 + $(canvas_bak).bind('mouseup',mouseup);
  321 + $(canvas_bak).bind('mouseout',mouseout);
  322 +}
  323 +
  324 +
  325 + //绘图
  326 + function drawCanvas(canvasInfo) {
  327 + if(canvasInfo==null){
  328 + return;
  329 + }
  330 +
  331 +
  332 + //1.判断是否清除canvas
  333 + if (canvasInfo.isFresh){
  334 + clearContextCan('1');
  335 + }
  336 +
  337 +
  338 + //2.绘制标注数据
  339 + var canvasMsgArr=canvasInfo.annotaionItems;
  340 + console.log(canvasMsgArr.length);
  341 + if (canvasMsgArr&&canvasMsgArr.length>0){
  342 + for (var i=0;i<canvasMsgArr.length;i++){
  343 + var canvasMsgItem=canvasMsgArr[i];
  344 + if(canvasMsgItem){
  345 + switch (canvasMsgItem.type){
  346 + //pencil
  347 + case 0:
  348 + draw_pencil(canvasMsgItem);
  349 + break;
  350 + case 1:
  351 + //draw_pencil(canvasMsgItem);
  352 + break;
  353 + case 2:
  354 + //draw_pencil(canvasMsgItem);
  355 + break;
  356 + case 3:
  357 + //draw_pencil(canvasMsgItem);
  358 + break;
  359 + case 4:
  360 + //draw_pencil(canvasMsgItem);
  361 + break;
  362 + default:
  363 + break;
  364 + }
  365 + }
  366 + }
  367 + }
  368 +
  369 +
  370 +
  371 +
  372 +
  373 +
  374 +
  375 +
  376 + }
  377 +
  378 +
  379 + //只绘制铅笔
  380 +
  381 + function draw_pencil(_canvasMsgItem) {
  382 + if(_canvasMsgItem){
  383 +
  384 + context_bak.beginPath();
  385 + context_bak.lineWidth = size;
  386 + context_bak.color=String(_canvasMsgItem.color);
  387 +
  388 +
  389 + context.strokeStyle= String(_canvasMsgItem.color);
  390 + context_bak.strokeStyle= String(_canvasMsgItem.color);
  391 + var point=_canvasMsgItem.pointGroup[0];
  392 + context_bak.moveTo((point.w)*canvasWidth/100,(point.h)*canvasHeight/100);
  393 +
  394 + for (var j=1;j<_canvasMsgItem.pointGroup.length;j++){
  395 + point=_canvasMsgItem.pointGroup[j];
  396 + context_bak.lineTo((point.w)*canvasWidth/100,(point.h)*canvasHeight/100);
  397 + }
  398 +
  399 + context_bak.stroke();
  400 + }
  401 +
  402 + }
  403 +
  404 + function clearContext(type){
  405 + client.sendDeleteAllAnnotation();
  406 +
  407 + // if(!type){
  408 + // context_bak.clearRect(0,0,canvasWidth,canvasHeight);
  409 + // console.log("执行清空层------------------------------1");
  410 + // clearCanvasCon(CanvasConInfo);
  411 + // // clearCanvasCon(CanvasConInfoTran);
  412 + //
  413 + //
  414 + // }else{
  415 + // context.clearRect(0,0,canvasWidth,canvasHeight);
  416 + // context_bak.clearRect(0,0,canvasWidth,canvasHeight);
  417 + // console.log("执行清空层------------------------------2");
  418 + // clearCanvasCon(CanvasConInfo);
  419 + //
  420 + // }
  421 +}
  422 +//撤销上一步操作
  423 +function lastStep() {
  424 + client.sendGotoPrev();
  425 +
  426 +}
  427 +//清空层
  428 + function clearContextCan(type){
  429 + if(!type){
  430 + context_bak.clearRect(0,0,canvasWidth,canvasHeight);
  431 +
  432 +
  433 + }else{
  434 + context.clearRect(0,0,canvasWidth,canvasHeight);
  435 + context_bak.clearRect(0,0,canvasWidth,canvasHeight);
  436 +
  437 + }
  438 + }
  439 +
  440 + function clearDocCanvas() {
  441 + console.log("清空Doc---canvas");
  442 +
  443 + var docCanvas=document.getElementById("docCanvas");
  444 + var ctxC=docCanvas.getContext("2d");
  445 +
  446 + ctxC.clearRect(0,0,docCanvas.style.width,docCanvas.style.height);
  447 +
  448 + console.log("已清空=====>");
  449 +
  450 + }
  451 + //初始化
  452 + function initCanvas() {
  453 + canvas = document.getElementById("canvas");
  454 + canvas.width = canvasWidth;
  455 + canvas.height = canvasHeight;
  456 + context = canvas.getContext('2d');
  457 +
  458 + canvasTop = $(canvas).offset().top;
  459 + canvasLeft = $(canvas).offset().left;
  460 +
  461 + canvas_bak = document.getElementById("canvas_bak");
  462 + canvas_bak.width = canvasWidth;
  463 + canvas_bak.height = canvasHeight;
  464 + context_bak = canvas_bak.getContext('2d');
  465 + console.log("initCanvas-----------------------------",canvas_bak.height);
  466 + }
  467 + function clearCanvasCon(msg) {
  468 + console.log("要清空了============================================");
  469 + console.log(msg);
  470 + var paramInfo={};
  471 + for(var i=0;i<msg.length;i++){
  472 + paramInfo.itemIdx=msg[i];
  473 + console.log("遍历同步的数组");
  474 + console.log(paramInfo);
  475 + client.sendDeleteAnnotaion(paramInfo)
  476 + }
  477 +
  478 + }
  479 + function trans(msg) {
  480 + CanvasConInfo=msg;
  481 +
  482 +
  483 + }
  484 + // function transInfo(msg) {
  485 + // CanvasConInfoTran=msg;
  486 + //
  487 + // }
  488 +
  489 +window.draw={
  490 + initCanvas:initCanvas,
  491 + draw_graph:draw_graph,
  492 + clearContext:clearContext,
  493 + recordPencilResult:recordPencilResult,
  494 + drawCanvas:drawCanvas,
  495 + clearCanvasCon:clearCanvasCon,
  496 + trans:trans,
  497 + clearContextCan:clearContextCan,
  498 + lastStep:lastStep,
  499 + clearDocCanvas:clearDocCanvas
  500 +};
  501 +})();
  1 +
  2 +
  3 +$(function (){
  4 +
  5 +
  6 +
  7 +
  8 +
  9 + function Show_Hidden1(obj) {
  10 + if(obj.style.display=="block")
  11 + {
  12 + obj.style.display='none';
  13 + }
  14 + else
  15 + {
  16 + obj.style.display='block';
  17 + }
  18 + }
  19 +
  20 + draw.initCanvas();
  21 +
  22 + // 绑定绘画板工具
  23 + $(".pencil").on("click", function () {
  24 + draw.draw_graph('pencil', this);
  25 + });
  26 + $(".rescind").on("click", function () {
  27 + draw.lastStep();
  28 +
  29 + });
  30 +
  31 +
  32 + $(".handwriting").on("click", function () {
  33 + draw.draw_graph('handwriting', this);
  34 + });
  35 +
  36 + $(".rubber").on("click", function () {
  37 + draw.draw_graph('rubber', this);
  38 + });
  39 + $(".drawLine").on("click", function () {
  40 + draw.draw_graph('line', this);
  41 + });
  42 + $(".square").on("click", function () {
  43 + draw.draw_graph('square', this);
  44 + });
  45 + $(".circle").on("click", function () {
  46 + draw.draw_graph('circle', this);
  47 + });
  48 +
  49 + $(".clearContext").on("click", function () {
  50 + draw.clearContext('1');
  51 + });
  52 +
  53 +
  54 +
  55 +
  56 + // 初始化铅笔工具
  57 + $(".draw_controller li:first").click();
  58 +
  59 + // 选择线条大小
  60 + $(".line_size button").click(function () {
  61 + $(".line_size button").removeClass('current');
  62 + $(this).addClass('current');
  63 + size = $(this).data("value");
  64 + $("#line_size").hide();
  65 + });
  66 +
  67 +
  68 + //表情
  69 +
  70 + var face=document.getElementById("face");
  71 + var faceList=document.getElementById("facelist");
  72 + face.onclick=function()
  73 + {
  74 + console.log("click事件---------------------");
  75 + Show_Hidden1(faceList);
  76 + return false;
  77 + }
  78 +
  79 +
  80 +
  81 + //表情功能实现
  82 + var step = 0, count = 4;
  83 + var $inner = $("#inner-slide"),
  84 + $tip = $("#tiplist"),
  85 + $tipList = $tip.children("li");
  86 +
  87 + function changeTip() {
  88 + var temp = step;
  89 + temp >= count ? temp = 0 : null;
  90 + $tipList.each(function (index, item) {
  91 + index === temp ? $(this).addClass("bg") : $(this).removeClass("bg");
  92 + });
  93 + }
  94 +
  95 + //->点击焦点实现切换
  96 + // $tipList.bind("touchstart", function (e) {
  97 + // console.log("触摸事件touchstart1");
  98 + // step = $(this).index();
  99 + // if (document.documentElement.clientWidth > 1366) {
  100 + // $inner.stop().animate({left: -step * 360}, 500);
  101 + // } else if (document.documentElement.clientWidth <= 1366 && document.documentElement.clientWidth > 1280) {
  102 + // $inner.stop().animate({left: -step * 256}, 500);
  103 + // } else if (document.documentElement.clientWidth <= 1280) {
  104 + // $inner.stop().animate({left: -step * 238}, 500);
  105 + // }
  106 + // changeTip();
  107 + // });
  108 +
  109 +
  110 + $tipList.bind("click", function () {
  111 + step = $(this).index();
  112 + if (document.documentElement.clientWidth > 1366) {
  113 + $inner.stop().animate({left: -step * 360}, 500);
  114 + } else if (document.documentElement.clientWidth <= 1366 && document.documentElement.clientWidth > 1280) {
  115 + $inner.stop().animate({left: -step * 256}, 500);
  116 + } else if (document.documentElement.clientWidth <= 1280) {
  117 + $inner.stop().animate({left: -step * 238}, 500);
  118 + }
  119 + changeTip();
  120 + });
  121 +
  122 + // $(".inner-slide").on("touchstart", "li", function (e) {
  123 + // console.log("触摸事件touchstart2");
  124 + // $("#txt_message").val($("#txt_message").val() + "[img:" + $(this).find("img").attr("data-type") + "]");
  125 + // });
  126 + $(".inner-slide").on("click", "li", function (e) {
  127 + $("#txt_message").val($("#txt_message").val() + "[img:" + $(this).find("img").attr("data-type") + "]");
  128 + });
  129 +
  130 + // $(".inner-slide")[0].onclick=function () {
  131 + // $("#txt_message").val($("#txt_message").val() + "[img:" + $(this).find("img").attr("data-type") + "]");
  132 + // }
  133 +
  134 +
  135 +
  136 +
  137 +});
  138 +
  1 +/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
  2 +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
  3 +
  4 +return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){
  5 +return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
  1 +(function () {
  2 + function processThis(fn, context) {
  3 + var outerArg = Array.prototype.slice.call(arguments, 2);
  4 + return function () {
  5 + var innerArg = Array.prototype.slice.call(arguments, 0);
  6 + fn.apply(context, outerArg.concat(innerArg));
  7 + }
  8 + }
  9 +
  10 + function on(curEle, evenType, evenFn) {
  11 + if (/^xdy/.test(evenType)) {//->自定义的
  12 + if (!curEle["myBook" + evenType]) {
  13 + curEle["myBook" + evenType] = [];
  14 + }
  15 + var ary = curEle["myBook" + evenType];
  16 + for (var i = 0; i < ary.length; i++) {
  17 + if (ary[i] === evenFn) {
  18 + return;
  19 + }
  20 + }
  21 + ary.push(evenFn);
  22 + } else {//->内置的
  23 + if ("addEventListener" in window) {
  24 + curEle.addEventListener(evenType, evenFn, false);
  25 + return;
  26 + }
  27 + if (!curEle["myEvent" + evenType]) {
  28 + curEle["myEvent" + evenType] = [];
  29 + curEle.attachEvent("on" + evenType, processThis(run, curEle));
  30 + }
  31 + var ary = curEle["myEvent" + evenType];
  32 + for (var i = 0; i < ary.length; i++) {
  33 + if (ary[i] === evenFn) {
  34 + return;
  35 + }
  36 + }
  37 + ary.push(evenFn);
  38 + }
  39 + }
  40 +
  41 + function run(e) {
  42 + e = e || window.event;
  43 + e.target = e.srcElement;
  44 + e.pageX = (document.documentElement.scrollLeft || document.body.scrollLeft) + e.clientX;
  45 + e.pageY = (document.documentElement.scrollTop || document.body.scrollTop) + e.clientY;
  46 + e.preventDefault = function () {
  47 + e.returnValue = false;
  48 + };
  49 + e.stopPropagation = function () {
  50 + e.cancelBubble = true;
  51 + };
  52 +
  53 + var ary = this["myEvent" + e.type];
  54 + if (ary && ary instanceof Array) {
  55 + for (var i = 0; i < ary.length; i++) {
  56 + var tempFn = ary[i];
  57 + if (typeof tempFn === "function") {
  58 + tempFn.call(this, e);
  59 + } else {
  60 + ary.splice(i, 1);
  61 + i--;
  62 + }
  63 + }
  64 + }
  65 + }
  66 +
  67 + function fire(evenType, e) {
  68 + var ary = this["myBook" + evenType];
  69 + if (ary && ary instanceof Array) {
  70 + for (var i = 0; i < ary.length; i++) {
  71 + var tempFn = ary[i];
  72 + if (typeof tempFn === "function") {
  73 + tempFn.call(this, e);
  74 + } else {
  75 + ary.splice(i, 1);
  76 + i--;
  77 + }
  78 + }
  79 + }
  80 + }
  81 +
  82 + function off(curEle, evenType, evenFn) {
  83 + if (/^xdy/.test(evenType)) {
  84 + var ary = curEle["myBook" + evenType];
  85 + if (ary && ary instanceof Array) {
  86 + for (var i = 0; i < ary.length; i++) {
  87 + var tempFn = ary[i];
  88 + if (tempFn === evenFn) {
  89 + ary[i] = null;
  90 + return;
  91 + }
  92 + }
  93 + }
  94 + } else {
  95 + if ("removeEventListener" in window) {
  96 + curEle.removeEventListener(evenType, evenFn, false);
  97 + return;
  98 + }
  99 + var ary = curEle["myEvent" + evenType];
  100 + if (ary && ary instanceof Array) {
  101 + for (var i = 0; i < ary.length; i++) {
  102 + var tempFn = ary[i];
  103 + if (tempFn === evenFn) {
  104 + ary[i] = null;
  105 + return;
  106 + }
  107 + }
  108 + }
  109 + }
  110 + }
  111 +
  112 + window.xdyEvent = window.$event = {
  113 + processThis: processThis,
  114 + on: on,
  115 + off: off,
  116 + fire: fire
  117 + };
  118 +})();
  1 +// import MCUClientEngine1 from'http://192.168.1.140/McuClient/main.js'
  2 +
  3 +
  4 +var client;
  5 +var MessageTypes;
  6 +var canvasInfo;
  7 +var canvasInfoUpdate;
  8 +var canvasInfoArr=[];
  9 +var canvasInfoUpArr=[];
  10 +
  11 +var classLoadInfo; //3个参数 课堂号/用户角色/ip 的对象
  12 +
  13 +var classAllInfo={};
  14 +
  15 +var fourParams={};
  16 +
  17 +var fileInfo={}; //传递给底层的对象
  18 +
  19 +var fileDeleteInfo={}; //删除的文件对象
  20 +
  21 +var thisFileName; //当前点击的文件名称
  22 +
  23 +var thisFileId;//当前点击的文件ID
  24 +
  25 +var thisDocId;
  26 +var thisClassId;
  27 +
  28 +var thisFileParent;//当前元素的父级
  29 +
  30 +var fileFromArr=[]; //存储底层返回的文件,放到该数组
  31 +
  32 +var fileFromUpArr=[];//存储上传返回的文件,,放到该数组
  33 +
  34 +
  35 +var classParamInfo={}
  36 +
  37 +var pdfUrl;
  38 +var docfullPath;
  39 +var imgUrl;
  40 +
  41 +
  42 +var switchArr=[];
  43 +
  44 +
  45 +
  46 +var pdfFile;
  47 +var currPageNumber;
  48 +
  49 +var fileShowArr=[]; //存储显示的文档
  50 +
  51 +var pdfArr=[];
  52 +
  53 +var openPage;
  54 +
  55 +var pdfUrlArr=[];
  56 +
  57 +var docfullPathArr=[];
  58 +
  59 +var imgUrlSingle;
  60 +
  61 +
  62 +
  63 +//画布
  64 +var canvas ;
  65 +var context ;
  66 +//蒙版
  67 +var canvas_bak;
  68 +var context_bak;
  69 +
  70 +// 消息模板-老师
  71 +var tpl_message_teacher = `
  72 + <div class="teacher-msg "><img class="teaImg" src="images/teacher-photo.png" alt="老师头像">
  73 + <p>{message}</p></div>`;
  74 +
  75 +// 消息模板-学生
  76 +var tpl_message_student = `
  77 + <div class="student-msg"><img class="stuImg" src="images/student-photo.png" alt="学生头像">
  78 + <p>{message}</p></div>`;
  79 +//上传文件列表模板
  80 +var tpl_doc=`<li><div class="forSwitch"><span class="iconfont">&#xe639;</span><span class="itemName">{name}</span><span class="itemIdx">{itemIdx}</span></div><span class="deleteDoc iconfont">&#xe635;</span>
  81 + </li>`;
  82 +
  83 +function mainTimeStamp() {
  84 + var _teatimestamp= Date.parse(new Date());
  85 + return _teatimestamp;
  86 +}
  87 +
  88 +$(function () {
  89 +
  90 +
  91 +
  92 +
  93 + // FastClick.attach(document.body);
  94 +
  95 + initEngine();//加载MCUClientEngine;
  96 + loading();
  97 +
  98 + urlParamsJudge();//对地址栏参数的数据进行判断
  99 +
  100 +
  101 +
  102 +
  103 +});
  104 +
  105 +function initEngine(){
  106 +
  107 + //创建客户端
  108 + client=MCUClientEngine.createMcuClient();
  109 + //获取事件监听消息定义
  110 + MessageTypes=MCUClientEngine.MessageTypes;
  111 + console.log(client.sdkInfo.version);
  112 +
  113 + videoWithFlash.flashInit(client);
  114 + // nativeVideo.nativeInit(client);
  115 +
  116 +}
  117 +
  118 +//在窗口关闭前提示用户
  119 +window.onbeforeunload = function() {
  120 + if(client){
  121 + console.log("11111111111111111111111")
  122 + }else {
  123 + console.log("11111111111111111111111")
  124 + }
  125 + return false; // 可以阻止关闭
  126 +}
  127 +//窗口关闭,退出课堂
  128 +window.onunload=function () {
  129 + if(client){
  130 + client.leaveClass();
  131 + }
  132 +}
  133 +
  134 +//进入课堂初始化成功
  135 +function classInitSuccess(callbackData){
  136 + //进入课堂初始化成功回调
  137 + console.log("classInitSuccess---初始化成功");
  138 + console.log(callbackData);
  139 + if(callbackData.classType==1){
  140 + $(".box").css("display","none");
  141 + }else if (callbackData.classType==2){
  142 +
  143 + }
  144 + if(callbackData){
  145 + console.log(callbackData.passwordRequired);
  146 + showLogin(callbackData.passwordRequired);
  147 + }
  148 +
  149 +}
  150 +//上传文件
  151 +function importFile() {
  152 + console.log("上传文件");
  153 + console.log(classAllInfo);
  154 + var selectedFile =document.getElementById("file").files[0];//获取读取的File对象
  155 + console.log(document.getElementById("file").files);
  156 + var name = selectedFile.name;//读取选中文件的文件名
  157 + var size = selectedFile.size;//读取选中文件的大小
  158 + var mime = selectedFile.type;
  159 + console.log("文件名:" + name + "大小:" + size+"文件类型:"+mime);
  160 +
  161 +
  162 +
  163 + var fd = new FormData();
  164 + fd.append("fileToUpload", document.getElementById('file').files[0]);
  165 + fd.append("siteID",classAllInfo.siteId); //站点
  166 + fd.append("convertTools","msoffice"); //pptflash 仅限动态转ppt msoffice 其它类型
  167 + fd.append("meetingid",String(classAllInfo.classId)); //课堂号
  168 + fd.append("timestamp",String(mainTimeStamp())); //时间戳
  169 + fd.append("createUserName",String(classAllInfo.userName)); //上传人姓名
  170 + fd.append("createUserID",String(classAllInfo.nodeId)); //上传人ID
  171 + fd.append("modifyDate","2015-09-14 18:22:22"); //上传时间
  172 +
  173 + $.ajax({
  174 + type:"POST",
  175 + url:"http://101.200.150.192:80/DocSharing/fileUploadJson",
  176 + processData: false,
  177 + contentType: false,
  178 + data:fd,
  179 + success: function(data) {
  180 + console.log("文档服务器返回的",data);
  181 + uploadFile(data);
  182 + },
  183 + error: function(data){
  184 + console.log(data)
  185 + }
  186 + });
  187 +
  188 +
  189 +}
  190 +
  191 +//删除文件
  192 +function deleteFile(msg) {
  193 +
  194 + console.log("要删除的文档编号");
  195 + console.log(msg);
  196 + console.log("此时文档都有什么");
  197 + console.log(fileFromArr);
  198 + client.sendDocumentDelete(msg);
  199 +
  200 +}
  201 +
  202 +//显示当前课堂文件列表中文件
  203 +function showFile(_data){
  204 +
  205 +
  206 + var tplDoc=tpl_doc;
  207 + for (var i=0;i<_data.length;i++){
  208 +
  209 + var strHTML = format(tplDoc, {
  210 + name: _data[i].fileName,
  211 + itemIdx:_data[i].itemIdx
  212 + });
  213 +
  214 + }
  215 +
  216 + // var strHTML = format(tplDoc, {
  217 + // name: _data.fileName,
  218 + // itemIdx:_data.itemIdx
  219 + // });
  220 +
  221 +
  222 + $("#fileUl").append(strHTML);
  223 +
  224 + console.log("当前文档存储是什么=================");
  225 + console.log(fileFromArr);
  226 +
  227 + //删除文档
  228 + $(".deleteDoc").click(function (e) {
  229 +
  230 + $(this).parent().addClass("xin");
  231 + // thisFileName=$(".forSwitch").children(".itemName").html()
  232 + thisFileName=$(this).parent().find(".itemName").html()
  233 + console.log(thisFileName,"==================");
  234 + for (var i=0; i<fileFromArr.length;i++ ){
  235 +
  236 + console.log("i值是多少====================",i);
  237 + console.log(fileFromArr[i]);
  238 + var ArrName=fileFromArr[i].fileName;
  239 + console.log(ArrName);
  240 + var _paramInfo={};
  241 + if (thisFileName==ArrName){
  242 + thisFileId=fileFromArr[i].itemIdx;
  243 + thisClassId=classAllInfo.classId;
  244 + thisDocId=fileFromArr[i].docId;
  245 +
  246 + _paramInfo.itemIdx=thisFileId;
  247 + _paramInfo.docId=thisDocId;
  248 + _paramInfo.classId=thisClassId;
  249 +
  250 + console.log(thisFileId,thisClassId,thisDocId);
  251 + deleteFile(_paramInfo);
  252 +
  253 +
  254 + }
  255 + }
  256 +
  257 +
  258 + });
  259 +
  260 +
  261 +
  262 +//切换文档
  263 + var oUl=document.getElementById("fileUl");
  264 + var oLi=oUl.getElementsByTagName("li");
  265 + var oLis=oUl.getElementsByTagName("div");
  266 + for(var i=0;i<oLis.length;i++){
  267 + oLis[i].onclick=function(){
  268 +
  269 + var itemID=$(this).children(".itemIdx").html();
  270 + console.log(itemID);
  271 + console.log("切换文档======================");
  272 + switchDoc(itemID);
  273 +
  274 + }
  275 + }
  276 +
  277 +}
  278 +
  279 +
  280 +
  281 +
  282 +//切换文档
  283 +function switchDoc(msg) {
  284 + var paramInfo={
  285 + "itemIdx": msg,
  286 + "visible":true
  287 + };
  288 + client.sendDocumentSwitchDoc(paramInfo);
  289 + console.log("此时数组中存储的数=====",fileFromArr);
  290 +
  291 +
  292 +}
  293 +
  294 +
  295 +
  296 +//将上传文件的信息,传递给底层
  297 +function uploadFile(msg){
  298 + console.log("服务器返回的文件信息");
  299 + console.log(msg);
  300 + // fileInfo.fileName=msg.fileName;//文档名字
  301 + fileInfo.pageNum=msg.imgSize;// 文档的总页数
  302 + fileInfo.fileName=msg.fileName;//文档名字
  303 + fileInfo.fileType=msg.fileType; // 文档的原始类型(上传时的类型)
  304 + fileInfo.relativeUrl=msg.relativeLocation; //文档相对地址
  305 + fileInfo.url=msg.filePath; //文档绝对地址 默认值: null
  306 + fileInfo.docId=msg.docId; //文档在数据库中的唯一id标识 默认值: null
  307 + fileInfo.visible=false; // 是否显示 默认值: false
  308 + fileInfo.dynamicTS=msg.dynamicTransferStatic //是否动态转换 //文档上传后返回值中的字段dynamicTransferStatic 默认值: 0
  309 +
  310 + console.log(fileInfo);
  311 + client.sendDocumentUpload(fileInfo);
  312 +
  313 +}
  314 +
  315 +
  316 +//监听文档更新
  317 +function docUpdate(callbackData){
  318 +
  319 + console.log("监听文档更新=========================>");
  320 + console.log(callbackData);
  321 + if(callbackData==null){
  322 + return;
  323 + }
  324 + if (callbackData.visible===true){
  325 + showInter(callbackData,2);
  326 + }
  327 + //操作数据
  328 + updateDocList(callbackData,0);
  329 +
  330 +
  331 +
  332 +}
  333 +//显示模块
  334 +function showInter(_data,isPage){
  335 + console.log("showInter==============>")
  336 + if (isPage===2){
  337 + console.log("当前文档",_data);
  338 + console.log("此时fileFromArr数组是",fileFromArr);
  339 + console.log("当前文档类型",_data.fileType);
  340 +
  341 +
  342 + if(_data.fileType=="doc"||_data.fileType=="pdf"){
  343 +
  344 + $("#showImg").css("display","none");
  345 + $(".docImage").css("display","block");
  346 + $(".canvas_container").css("overflow-y","scroll");
  347 + var _fileType="jpg";
  348 + var _paramInfo={
  349 + "type": _fileType,
  350 + // "curPageNo":_data.curPageNo,
  351 + "pageNum":_data.pageNum,
  352 + "relativeUrl": _data.relativeUrl
  353 + };
  354 + docfullPath=client.getDocImageFullPath(_paramInfo);
  355 + // console.log("mcu返回给我的地址==========");
  356 + // console.log(docfullPath);
  357 +
  358 + // imgUrl = docfullPath[0];
  359 + // $("#docImage").css("display","block");
  360 +
  361 +
  362 +
  363 + var curPageNum =_data.curPageNo;
  364 + var pageNum=_data.pageNum;
  365 + $("#curPageNum").html(curPageNum);
  366 + $("#totalPageNum").html(pageNum);
  367 + for (var i=0;i<=docfullPath.length;i++){
  368 + var docfullSingle=docfullPath[curPageNum-1];
  369 + $("#docImage").attr("src",docfullSingle);
  370 + }
  371 +
  372 +
  373 + //点击下一页
  374 + $("#nextPage").on("click",function (e) {
  375 +
  376 + if (curPageNum!==pageNum){
  377 + for (var i=0;i<=docfullPath.length;i++){
  378 + var docfullSingle=docfullPath[curPageNum];
  379 + console.log("curPageNum,docfullSingle",curPageNum,docfullSingle);
  380 + $("#docImage").attr("src",docfullSingle);
  381 + }
  382 + curPageNum++;
  383 + }
  384 +
  385 + var paramInfo={
  386 + "itemIdx": _data.itemIdx,
  387 + "curPageNo":curPageNum
  388 + };
  389 + console.log("paramInfo=======>",paramInfo)
  390 + client.sendDocumentSwitchPage(paramInfo);
  391 +
  392 + $("#curPageNum").html(curPageNum);
  393 +
  394 +
  395 + });
  396 +
  397 + //点击上一页
  398 +
  399 + $("#prevPage").on("click",function (e) {
  400 + if (curPageNum>1){
  401 + curPageNum--;
  402 + console.log("curPageNum",curPageNum);
  403 + for (var i=0;i<=docfullPath.length;i++){
  404 + var docfullSingle=docfullPath[curPageNum-1];
  405 + console.log("curPageNum,docfullSingle",curPageNum,docfullSingle);
  406 + $("#docImage").attr("src",docfullSingle);
  407 +
  408 +
  409 + }
  410 +
  411 + }
  412 + var paramInfo={
  413 + "itemIdx": _data.itemIdx,
  414 + "curPageNo":curPageNum
  415 + };
  416 + client.sendDocumentSwitchPage(paramInfo);
  417 + $("#curPageNum").html(curPageNum);
  418 +
  419 + });
  420 +
  421 +
  422 +
  423 + if (classAllInfo.userRole=="normal"){
  424 + $(".next-page ").css("display","none");
  425 + $(".total-page").css("display","none");
  426 + $(".bias").css("display","none");
  427 + $(".cur-page").css("display","none");
  428 + $(".prev").css("display","none");
  429 +
  430 + }else{
  431 + showTurnPage();
  432 + }
  433 +
  434 +
  435 +
  436 +
  437 + }
  438 + else if(_data.fileType=="jpg"){
  439 + $("#canvas").height(476);
  440 +
  441 + $(".docImage").css("display","none");
  442 + $("#showImg").css("display","block");
  443 + $(".canvas_container").css("overflow","hidden");
  444 +
  445 +
  446 + var _fileType="jpg";
  447 + var _paramInfo={
  448 + "type": _fileType,
  449 + "pageNum":_data.pageNum,
  450 + "relativeUrl": _data.relativeUrl
  451 + };
  452 + docfullPath=client.getDocImageFullPath(_paramInfo);
  453 +
  454 + console.log("mcu返回给我的地址==========");
  455 + console.log(docfullPath);
  456 + imgUrl = docfullPath[0];
  457 + $("#showImg").css("display","block");
  458 + $("#showImg").attr("src",imgUrl);
  459 +
  460 +
  461 +
  462 +
  463 +
  464 + }
  465 + else if(_data.fileType=="png"){
  466 + $("#canvas").height(476);
  467 + $(".docImage").css("display","none");
  468 + $("#showImg").css("display","block");
  469 + $(".canvas_container").css("overflow","hidden");
  470 + var _fileType="png";
  471 + var _paramInfo={
  472 + "type": _fileType,
  473 + "curPageNo":_data.curPageNo,
  474 + "pageNum":_data.pageNum,
  475 + "relativeUrl": _data.relativeUrl
  476 + };
  477 + docfullPath=client.getDocImageFullPath(_paramInfo);
  478 +
  479 + console.log("mcu返回给我的地址==========");
  480 + console.log(docfullPath);
  481 + imgUrl = docfullPath[0];
  482 + $("#showImg").css("display","block");
  483 + $("#showImg").attr("src",imgUrl)
  484 + $("#docCanvas").css("display","none");
  485 +
  486 +
  487 + }
  488 +
  489 +
  490 + }
  491 +
  492 +}
  493 +
  494 +
  495 +
  496 +
  497 +function showTurnPage() {
  498 + $(".next-page ").css("display","block");
  499 + $(".total-page").css("display","block");
  500 + $(".bias").css("display","block");
  501 + $(".cur-page").css("display","block");
  502 + $(".prev").css("display","block");
  503 +
  504 +}
  505 +
  506 +
  507 +//翻页模块
  508 +function turnPage(_data){
  509 + console.log("翻页模块")
  510 + console.log(_data);
  511 + var curPageNum =_data.curPageNo;
  512 + var pageNum=_data.pageNum;
  513 +
  514 + $("#curPageNum").html(curPageNum);
  515 + $("#totalPageNum").html(pageNum);
  516 +
  517 +
  518 + //点击下一页
  519 + $("#nextPage").on("click",function (e) {
  520 + if (curPageNum<pageNum){
  521 + curPageNum++;
  522 +
  523 + }
  524 + var paramInfo={
  525 + "itemIdx": _data.itemIdx,
  526 + "curPageNo":curPageNum
  527 + };
  528 + client.sendDocumentSwitchPage(paramInfo);
  529 +
  530 + $("#curPageNum").html(curPageNum);
  531 + // openPage(pdf, curPageNum);
  532 +
  533 + });
  534 +
  535 + //点击上一页
  536 +
  537 + $("#prevPage").on("click",function (e) {
  538 + if (curPageNum>1){
  539 + curPageNum--;
  540 + }
  541 + var paramInfo={
  542 + "itemIdx": _data.itemIdx,
  543 + "curPageNo":curPageNum
  544 + };
  545 + client.sendDocumentSwitchPage(paramInfo);
  546 +
  547 + $("#curPageNum").html(curPageNum);
  548 + // openPage(pdf, curPageNum);
  549 +
  550 +
  551 + });
  552 +
  553 +}
  554 +
  555 +//监听文档删除
  556 +function docDelete(callbackData){
  557 + console.log("监听文档删除");
  558 + console.log(callbackData);
  559 + //
  560 + updateDocList(callbackData,1);
  561 +
  562 + //操作页面
  563 + $("li").remove(".xin");
  564 +
  565 +}
  566 +
  567 +
  568 +//专门操作数据
  569 +function updateDocList(_data,isAdd) {
  570 + var index;
  571 + console.log("isAdd的值是",isAdd);
  572 + //isAdd 为0,进行更新;为1,进行删除
  573 + if(isAdd===0){
  574 + index=getDocIndexInList(_data);
  575 + console.log(index);
  576 + if(index>=0){
  577 + fileFromArr[index]=_data;
  578 + }else {
  579 + fileFromArr.push(_data);
  580 + showFile(fileFromArr);
  581 +
  582 + }
  583 +
  584 + }else if(isAdd===1) {
  585 + console.log("对数据进行删除");
  586 + for (var i=0;i<fileFromArr.length;i++){
  587 + console.log(fileFromArr);
  588 + if (fileFromArr[i].itemIdx==_data){
  589 + fileFromArr.splice(i,1);
  590 + }
  591 + }
  592 + if(fileFromArr.length==0){
  593 + console.log(fileFromArr);
  594 + $("#docCanvas").css("display","none");
  595 + $("#showImg").css("display","none");
  596 + showTurnPage();
  597 + }
  598 + }
  599 +}
  600 +
  601 +//专门循环数组
  602 +function getDocIndexInList(_param){
  603 + var len=fileFromArr.length;
  604 + var docItem;
  605 + for(var i=0;i<len;i++){
  606 + docItem=fileFromArr[i];
  607 + if(_param.itemIdx==docItem.itemIdx){
  608 + return i;
  609 + }
  610 + }
  611 + return -1;
  612 +}
  613 +
  614 +
  615 +
  616 +//进入课堂失败
  617 +function classFailed(callbackData) {
  618 + console.log("classFailed---课堂失败");
  619 + console.log(callbackData);
  620 +
  621 + var code=callbackData.code;
  622 + switch(code) {
  623 + case 100:
  624 + //当前没有 课堂号 用户角色 ip
  625 + if((classLoadInfo.classId)==""||classLoadInfo.userRole==""||(classLoadInfo.portal)==":"||(classLoadInfo.portalPort)==""||(classLoadInfo.portalIP)==""||(classLoadInfo.userName)==""||(classLoadInfo.userType=="")){
  626 + console.log("不会执行clientInit");
  627 +
  628 + //用户进行角色选择
  629 + showUserSelect();
  630 +
  631 + }
  632 + console.log("初始化失败,课堂号不存在/错误");
  633 +
  634 + break;
  635 +
  636 + case 101:
  637 + case 102:
  638 + console.log("初始化协议错误");
  639 + $(".loading-index").css("display","none");
  640 + showUserSelect();break;
  641 + case 103:
  642 +
  643 + //初始化错误
  644 + //1.userRole为空,回到选择角色界面
  645 + if (classLoadInfo.userRole==""){
  646 + console.log("当前没有选择用户角色");
  647 + //进行用户选择页面
  648 + showUserSelect();
  649 +
  650 + }
  651 + //2.userType为空,回到选择角色界面
  652 + if (classLoadInfo.userType==""){
  653 + console.log("当前没有选择用户角色");
  654 + //进行用户选择页面
  655 + showUserSelect();
  656 + }
  657 +
  658 + //3.classId为空,回到选择角色界面
  659 + if(classLoadInfo.classId===0){
  660 + console.log("classId不正确");
  661 + //输入课堂号页面
  662 + showParmasInput()
  663 +
  664 + }
  665 + //4.portal不正确且角色身份为空
  666 + if(((classLoadInfo.portal==":")&&(classLoadInfo.userRole=="0"))||((classLoadInfo.portal==":")&&(classLoadInfo.userType=="1"))){
  667 + console.log("portal不正确");
  668 + //进行用户选择页面
  669 + showUserSelect();
  670 +
  671 + }
  672 + break;
  673 + case 105:
  674 + console.log(classLoadInfo.classId);
  675 + console.log("初始化失败,课堂号不存在/错误");
  676 +
  677 +
  678 + //如果课堂号错误,但是身份正确,只进入输入课堂号页面
  679 + if (classLoadInfo.userRole=="host"||classLoadInfo.userRole=="normal"||classLoadInfo.userType=="1"){
  680 + $(".loading-index").css("display","none");
  681 + showParmasInput();
  682 + }
  683 + //否则,选择角色
  684 + else{
  685 + $(".loading-index").css("display","none");
  686 + showUserSelect();
  687 + }
  688 +
  689 + break;
  690 + case 200:break;
  691 + case 203:break;
  692 + case 204:break;
  693 + case 205:break;
  694 + case 206:classPwdErrorTip(); break;
  695 + case 207:break;
  696 + case 300:break;
  697 + case 301:break;
  698 + default:break;
  699 + }
  700 +
  701 +
  702 +}
  703 +
  704 +//课堂密码错误 进行提示
  705 +function classPwdErrorTip() {
  706 + $(".passWordTip").css("margin-left","45px");
  707 + $(".passWordTip")[0].innerHTML="请输入正确的课堂密码";
  708 +}
  709 +//显示用户的选择页面
  710 +function showUserSelect() {
  711 + $(".fourParamsOut").css("display","block");
  712 + $(".permission").css("display","block");
  713 + $(".fourParams").css("display","none");
  714 + $(".loginBg").css("display","none");
  715 +
  716 + $("#btn-per").click(function (e) {
  717 +
  718 + if((classLoadInfo.userRole==="host")||(classLoadInfo.userRole==="normal")){
  719 + showParmasInput();
  720 +
  721 + }
  722 + else if ((classLoadInfo.userType!==1)||(classLoadInfo.userType===8)){
  723 + showParmasInput();
  724 +
  725 + }
  726 + else if(classLoadInfo.userRole=="0") {
  727 + console.log(classLoadInfo.userRole);
  728 + console.log(classLoadInfo.userType);
  729 + console.log("请选择角色-----");
  730 + }
  731 + console.log(classLoadInfo.userRole);
  732 + console.log(classLoadInfo.userType);
  733 + });
  734 +
  735 +}
  736 +
  737 +
  738 +//显示相应的登录页面
  739 +function showLogin(isShow){
  740 +
  741 + $(".fourParamsOut").css("display","none");
  742 + //loading加载页隐藏
  743 + $(".loading-index").css("display","none");
  744 + $(".fourParams").css("display","none");
  745 + //主页面隐藏
  746 + $(".box").css({
  747 + "display":"none",
  748 + "margin":"0 auto"
  749 + });
  750 +
  751 + if (isShow) {
  752 + //登录页面显示(有密码)
  753 + $(".loginBg ").css("display","block");
  754 + console.log("loginBgblock");
  755 + $(".userNameInput").focus(function () {
  756 + $(".userTip").css("margin-left","0");
  757 + $(".userTip")[0].innerHTML="支持中文、字母、数字、“-”“_”的组合,4-20个字符";
  758 + });
  759 + $(".userNameInput").blur(function () {
  760 + var val = this.value.replace(/^ +| +$/g,"");
  761 + if (val.length === 0) {
  762 + $(".userTip").css("margin-left","45px");
  763 + $(".userTip")[0].innerHTML="用户名不能为空";
  764 + return false;
  765 + }
  766 +
  767 + var reg = /^([\u4e00-\u9fa5]{2,4})|([A-Za-z0-9_\-]{4,20})$/;
  768 + if (!reg.test(val)) {
  769 + $(".userTip").css("margin-left","45px");
  770 + $(".userTip")[0].innerHTML = "长度只能在4-20个字符之间";
  771 + return false;
  772 + }else{
  773 + $(".userTip")[0].innerHTML = "";
  774 + }
  775 + })
  776 +
  777 + $(".passWordInput").focus(function () {
  778 + $(".passWordTip").css("margin-left","45px");
  779 + $(".passWordTip")[0 ].innerHTML="请输入正确的课堂密码";
  780 + });
  781 + $(".passWordInput").blur(function () {
  782 + $(".passWordTip")[0].innerHTML="请输入课堂密码";
  783 + })
  784 + $("#btnLogin").click(function (e) {
  785 +
  786 + console.log("点击了登录按钮---------->");
  787 + var userName = $(".userNameInput").val();
  788 + var pwd = $(".passWordInput").val();
  789 +
  790 + if (!userName) {
  791 + $(".userTip").css("margin-left","45px");
  792 +
  793 + $(".userTip")[0].innerHTML="用户名不能为空";
  794 +
  795 + }
  796 + if (!pwd) {
  797 + $(".passWordTip").css("margin-left","45px");
  798 + $(".passWordTip")[0].innerHTML="课堂密码不能为空";
  799 + }
  800 + if($(".passWordInput").val().length>=1){
  801 + $(".passWordTip")[0].innerHTML="";
  802 + }
  803 + if (($('.userNameInput').val().length>=4) &&($(".passWordInput").val().length>=1)) {
  804 +
  805 + onJoinClass(userName, pwd);
  806 + }
  807 + });
  808 +
  809 + }else{
  810 + //登录页面显示(无密码)
  811 + $(".loginBg ").css("display","block");
  812 + $(".passWordLi").css("display", "none");
  813 + $(".btnLoginLi").css("margin-top","30px");
  814 +
  815 + console.log("无密码");
  816 + $(".userNameInput").focus(function () {
  817 + $(".userTip").css("margin-left","0");
  818 + $(".userTip")[0].innerHTML="支持中文、字母、数字、“-”“_”的组合,4-20个字符";
  819 + });
  820 + $(".userNameInput").blur(function () {
  821 + var val = this.value.replace(/^ +| +$/g,"");
  822 + if (val.length === 0) {
  823 + $(".userTip").css("margin-left","45px");
  824 + $(".userTip")[0].innerHTML="用户名不能为空";
  825 + return false;
  826 + }
  827 +
  828 + var reg = /^([\u4e00-\u9fa5]{2,4})|([A-Za-z0-9_\-]{4,20})$/;
  829 + if (!reg.test(val)) {
  830 + $(".userTip").css("margin-left","45px");
  831 + $(".userTip")[0].innerHTML = "长度只能在4-20个字符之间";
  832 + return false;
  833 + }else{
  834 + $(".userTip")[0].innerHTML = "";
  835 + }
  836 + })
  837 +
  838 +
  839 + $("#btnLogin").click(function (e) {
  840 + console.log("点击了登录按钮---------->");
  841 + var userName = $(".userNameInput").val();
  842 + var pwd = $(".passWordInput").val();
  843 + if ($(".userNameInput").length) {
  844 + if (!userName) {
  845 + $(".userTip").css("margin-left","45px");
  846 + $(".userTip")[0].innerHTML="用户名不能为空";
  847 + }
  848 + }
  849 + if($('.userNameInput').val().length>=4){
  850 + onJoinClass(userName);
  851 + }
  852 + });
  853 + }
  854 +
  855 +
  856 +
  857 +}
  858 +
  859 +//用户角色的选择
  860 +function getValue(msg) {
  861 +
  862 + if(msg=="host"){
  863 + classLoadInfo.userType=parseInt("8");
  864 + }else if (msg=="normal"){
  865 + classLoadInfo.userType=parseInt("1");
  866 + }else{
  867 + classLoadInfo.userType=parseInt("1");
  868 + }
  869 + console.log("拿到的用户角色");
  870 + console.log(msg);
  871 + classLoadInfo.userRole = msg;
  872 +}
  873 +
  874 +
  875 +
  876 +//加入课堂初始化失败时,自己输入课堂号参数
  877 +function showParmasInput(){
  878 + var classId;
  879 + $(".fourParamsOut").css("display","block");
  880 + $(".permission").css("display","none");
  881 + $(".fourParams").css("display","block");
  882 + $(".loginBg").css("display","none");
  883 + if(classLoadInfo.classId){
  884 + console.log("有课堂号");
  885 + console.log(classLoadInfo.classId);
  886 + $(".classId")[0].value=classLoadInfo.classId;
  887 + }else if(classLoadInfo.userId){
  888 + console.log(classLoadInfo.userId);
  889 + $(".userId")[0].value=classLoadInfo.userId;
  890 + }
  891 +
  892 + $("#btnFourParam").click(function (e) {
  893 +
  894 + var classId = parseInt($(".classId").val());
  895 + // let userRole = $(".userRole").val();
  896 + // let portal = $(".portal").val();
  897 + var userId = $(".userId").val();
  898 +
  899 + // var fourParams={};
  900 +
  901 + fourParams={
  902 +
  903 + classId:classId,
  904 + userRole:classLoadInfo.userRole,
  905 + portal:"112.126.80.182:90",
  906 + userId:userId
  907 + }
  908 + console.log("当前参数");
  909 + console.log(fourParams);
  910 +
  911 + client.init(fourParams,classInitSuccess,classFailed);
  912 + });
  913 +
  914 +
  915 +}
  916 +
  917 +
  918 +//加入课堂成功
  919 +function classJoinSuccess(callbackData){
  920 +
  921 + console.log("classJoinSuccess",callbackData);
  922 + console.log(callbackData);
  923 +
  924 + //根据用户权限,隐藏不同界面,如果是学生,隐藏白板
  925 +if (callbackData.userRole=="normal"){
  926 +
  927 + $("#tool").css("display","none");
  928 + $(".fileUpload").css("display","none");
  929 + $(".am-dropdown").css("display","none");
  930 + $("#stuVideo-video").css("display","none");
  931 + $("#stuVideo-voice").css("display","none");
  932 + $("#teacherVideo-video").css("display","none");
  933 + $("#teacherVideo-voice").css("display","none");
  934 +
  935 +
  936 +}
  937 +
  938 +
  939 +
  940 + classAllInfo=callbackData;
  941 +
  942 + //准备主页面
  943 + layoutView();
  944 + //开始课堂
  945 + startClass();
  946 +}
  947 +
  948 +//开始课堂
  949 +function startClass() {
  950 + if(client){
  951 +
  952 + //监听到聊天信息
  953 + client.on(MessageTypes.CHAT_RECEIVE,chatReceive);
  954 +
  955 +
  956 + client.on(MessageTypes.WHITEBOARD_ANNOTATION_UPDATE,whiteboardUpdate);//监听白板更新
  957 +
  958 + client.on(MessageTypes.DOC_DELETE,docDelete);//监听删除文档
  959 + client.on(MessageTypes.DOC_UPDATE,docUpdate);//监听更新文档
  960 +
  961 +
  962 +
  963 +
  964 + }
  965 +}
  966 +
  967 +//登录成功后,登录页隐藏,主页面显示
  968 +function layoutView( ) {
  969 +
  970 + console.log("123000000000000000000000000000000000000");
  971 + //输入4个参数的页面隐藏
  972 + $(".fourParamsOut").css("display","none");
  973 + //登录成功后,登录页隐藏
  974 + $(".loginBg ").css("display","none");
  975 + $(".box").css({
  976 + "display":"block"
  977 + });
  978 +
  979 + // if(_type==1){
  980 + // //主页面显示
  981 + // $(".box").css({
  982 + // "display":"block"
  983 + // });
  984 + // $(".zbbox").css({
  985 + // "display":"none"
  986 + // });
  987 + //
  988 + //
  989 + // }else{
  990 + // $(".box").css({
  991 + // "display":"none"
  992 + // });
  993 + // $(".zbbox").css({
  994 + // "display":"block"
  995 + // });
  996 + //
  997 + // }
  998 +
  999 +
  1000 +
  1001 +
  1002 +
  1003 +
  1004 + //
  1005 + // //老师的视频区域
  1006 + // var teaVideo = document.getElementById("teacherVideo-video");
  1007 + // var teaVv = document.getElementById("teacherVideo-voice");
  1008 + // var closeVideo = document.getElementById("close-video");
  1009 + // var closeVoice = document.getElementById("close-voice");
  1010 + //
  1011 + // var throbberLoader1 = document.getElementById("throbber-loader1");
  1012 + // var throbberLoader2 = document.getElementById("throbber-loader2");
  1013 + // var throbberLoader3 = document.getElementById("throbber-loader3");
  1014 + // var throbberLoader4 = document.getElementById("throbber-loader4");
  1015 + // var throbberLoader5 = document.getElementById("throbber-loader5");
  1016 + // var throbberLoader6 = document.getElementById("throbber-loader6");
  1017 + //
  1018 + //
  1019 + // //老师点击麦克按钮
  1020 + // var showflag = 0;
  1021 + // teaVv.onclick = function () {
  1022 + // if (showflag == "0") {
  1023 + // closeVoice.style.display = "none";
  1024 + // showflag++;
  1025 + // console.log(showflag);
  1026 + //
  1027 + // throbberLoader1.className = "throbber-loader1";
  1028 + // throbberLoader2.className = "throbber-loader2";
  1029 + // throbberLoader3.className = "throbber-loader3";
  1030 + // throbberLoader4.className = "throbber-loader4";
  1031 + // throbberLoader5.className = "throbber-loader5";
  1032 + // throbberLoader6.className = "throbber-loader6";
  1033 + // $(".teacherVideoBg").css("display","none");
  1034 + //
  1035 + // } else if (showflag == "1") {
  1036 + // closeVoice.style.display = "block";
  1037 + // showflag--;
  1038 + // console.log(showflag);
  1039 + // throbberLoader1.className = "teacherVideo-voice-progress-span-1";
  1040 + // throbberLoader2.className = "teacherVideo-voice-progress-span-2";
  1041 + // throbberLoader3.className = "teacherVideo-voice-progress-span-3";
  1042 + // throbberLoader4.className = "teacherVideo-voice-progress-span-4";
  1043 + // throbberLoader5.className = "teacherVideo-voice-progress-span-5";
  1044 + // throbberLoader6.className = "teacherVideo-voice-progress-span-6";
  1045 + // $(".teacherVideoBg").css("display","block");
  1046 + // }
  1047 + // }
  1048 + //
  1049 + // //老师点击视频按钮
  1050 + // var Videoflag = 0;
  1051 + // teaVideo.onclick = function () {
  1052 + // console.log(navigator.mediaDevices);
  1053 + // navigator.mediaDevices = navigator.mediaDevices || ((navigator.mozGetUserMedia || navigator.webkitGetUserMedia) ? {
  1054 + // getUserMedia: function (c) {
  1055 + // return new Promise(function (y, n) {
  1056 + // (navigator.mozGetUserMedia ||
  1057 + // navigator.webkitGetUserMedia).call(navigator, c, y, n);
  1058 + // });
  1059 + // }
  1060 + // } : null);
  1061 + // console.log(navigator.mediaDevices);
  1062 + // if (Videoflag == "0") {
  1063 + // closeVideo.style.display = "none";
  1064 + // closeVoice.style.display = "none";
  1065 + // Videoflag++;
  1066 + // throbberLoader1.className = "throbber-loader1";
  1067 + // throbberLoader2.className = "throbber-loader2";
  1068 + // throbberLoader3.className = "throbber-loader3";
  1069 + // throbberLoader4.className = "throbber-loader4";
  1070 + // throbberLoader5.className = "throbber-loader5";
  1071 + // throbberLoader6.className = "throbber-loader6";
  1072 + //
  1073 + // var constraints = {audio: true, video: true};
  1074 + //
  1075 + // navigator.mediaDevices.getUserMedia(constraints)
  1076 + // .then(function (stream) {
  1077 + // if (window.URL) {
  1078 + // console.log(window.URL);
  1079 + // var newSrc = window.URL.createObjectURL(stream);
  1080 + // //将老师流地址给老师的Video
  1081 + // $("#teacherVideoInfo").attr("src",newSrc);
  1082 + // } else {
  1083 + // $("#teacherVideoInfo").src = stream;
  1084 + // }
  1085 + // $(".teacherVideoInfo").autoplay = true;
  1086 + //
  1087 + // var videoName=stream.getVideoTracks()[0].label;
  1088 + // var audioName=stream.getAudioTracks()[0].label;
  1089 + // console.log(videoName);
  1090 + // console.log(audioName);
  1091 + //
  1092 + // }
  1093 + // )
  1094 + // .catch(function (err) {
  1095 + // console.log(err.name + ": " + err.message);
  1096 + // });
  1097 + //
  1098 + //
  1099 + //
  1100 + // $(".teacherVideoBg").css("display","none");
  1101 + // } else if (Videoflag == "1") {
  1102 + // closeVideo.style.display = "block";
  1103 + // closeVoice.style.display = "block";
  1104 + // Videoflag--;
  1105 + // throbberLoader1.className = "teacherVideo-voice-progress-span-1";
  1106 + // throbberLoader2.className = "teacherVideo-voice-progress-span-2";
  1107 + // throbberLoader3.className = "teacherVideo-voice-progress-span-3";
  1108 + // throbberLoader4.className = "teacherVideo-voice-progress-span-4";
  1109 + // throbberLoader5.className = "teacherVideo-voice-progress-span-5";
  1110 + // throbberLoader6.className = "teacherVideo-voice-progress-span-6";
  1111 + //
  1112 + // $(".teacherVideoBg").css("display","block");
  1113 + // $("#teacherVideoInfo").attr("src","");
  1114 + // }
  1115 + //
  1116 + // }
  1117 +
  1118 +
  1119 + //发送聊天消息
  1120 + $("#btn_send").click(function (e) {
  1121 + console.log("点击了发送消息按钮------->");
  1122 + sendChatMsg();
  1123 +
  1124 + });
  1125 +
  1126 + // 文件上传
  1127 +
  1128 + $("#pushFile").click(function () {
  1129 + $("#file").click();
  1130 + });
  1131 +
  1132 +
  1133 + // //视频按钮点击
  1134 + // $("#teacherVideo-video").click(function (e) {
  1135 + // console.log("teacherVideo-video点击");
  1136 + // $("#teacherVideo-video").html(" ");
  1137 + // $("#teacherVideo-video").removeClass("teacherVideo-video");
  1138 + // $("#teacherVideo-video").addClass("teacherVideo-videoBg");
  1139 + //
  1140 + //
  1141 + // $("#teacherVideo-voice").html("&#xe62d;");
  1142 + // $("#teacherVideo-voice").addClass("teacherVideo-voice");
  1143 + // $("#teacherVideo-voice").removeClass("teacherVideo-voiceBg");
  1144 + //
  1145 + //
  1146 + // //获取推流地址
  1147 + // achieveStream();
  1148 +
  1149 +
  1150 + // });
  1151 +
  1152 +//音频按钮点击
  1153 + $("#teacherVideo-voice").click(function (e) {
  1154 +
  1155 + console.log("teacherVideo-voice点击");
  1156 + $("#teacherVideo-video").html("&#xe62e;");
  1157 + $("#teacherVideo-video").removeClass("teacherVideo-videoBg");
  1158 + $("#teacherVideo-video").addClass("teacherVideo-video");
  1159 +
  1160 + $("#teacherVideo-voice").html("");
  1161 + $("#teacherVideo-voice").removeClass("teacherVideo-voice");
  1162 + $("#teacherVideo-voice").addClass("teacherVideo-voiceBg");
  1163 + });
  1164 +
  1165 +}
  1166 +function whiteboardUpdate(callbackData) {
  1167 +
  1168 + console.log("同步canvas消息===========================");
  1169 + console.log(callbackData);
  1170 +
  1171 + draw.drawCanvas(callbackData);
  1172 + // canvasInfoUpdate=callbackData;
  1173 + //
  1174 + // // canvasInfoUpArr.push(canvasInfoUpdate.itemIdx);
  1175 + //
  1176 + // console.log("同步的存到数组中");
  1177 + // console.log(canvasInfoUpArr);
  1178 + //
  1179 + // draw.ss(canvasInfoUpdate);
  1180 + // draw.trans(canvasInfoUpArr);
  1181 +}
  1182 +function whiteboardDelete(callbackData) {
  1183 + console.log("监听白板删除的消息============================");
  1184 + console.log(callbackData);
  1185 + draw.clearContextCan();
  1186 + canvasInfoUpArr=[];
  1187 + canvasInfoArr=[];
  1188 +
  1189 +}
  1190 +
  1191 +//接收聊天消息
  1192 +function chatReceive(callbackData){
  1193 + console.log()
  1194 +
  1195 + console.log("777777777777777777777777777777");
  1196 + console.log(callbackData);
  1197 + var tpl = callbackData.fromRole == "host"? tpl_message_teacher : tpl_message_student;
  1198 + var message = (callbackData.message + "").replace(/\[img:([^\[:\]]*)\]/ig, function (match, group, index) {
  1199 + return '<img src="images/face/' + group + '.gif"/>';
  1200 + });
  1201 +
  1202 + var strHTML = format(tpl, {
  1203 + name: callbackData.fromName,
  1204 + message: message
  1205 + });
  1206 +
  1207 + $("#panel_message").append(strHTML);
  1208 + $("#panel_message")[0].scrollTop=$("#panel_message")[0].scrollHeight;
  1209 +
  1210 +
  1211 +
  1212 +}
  1213 +
  1214 +
  1215 +
  1216 +//将地址转化成一个对象
  1217 +function GetUrlParam() {
  1218 + var url = location.search;
  1219 + var thisParam = new Object();
  1220 + // 判断是否存在请求的参数
  1221 + if (url.indexOf("?") != -1) {
  1222 + var str = url.substr(1);
  1223 + // 截取所有请求的参数,以数组方式保存
  1224 + strs = str.split("&");
  1225 + for (var i = 0; i < strs.length; i++) {
  1226 + // 获取该参数名称,值。其中值以unescape()方法解码,有些参数会加密
  1227 + thisParam[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
  1228 + }
  1229 + }
  1230 + console.log(thisParam);
  1231 + // 返回改参数列表对象
  1232 + return thisParam;
  1233 +}
  1234 +
  1235 +//将用户名和密码提交给底层
  1236 +function onJoinClass(userName, password) {
  1237 + //加入课堂的信息
  1238 + var classInfo = {};
  1239 + if (classInfo) {
  1240 + classInfo.userName = userName;
  1241 + classInfo.password = password;
  1242 + client.joinClass(classInfo,classJoinSuccess);
  1243 + } else {
  1244 + console.log("error");
  1245 + return false;
  1246 +
  1247 + }
  1248 +
  1249 +}
  1250 +
  1251 +//发送聊天消息
  1252 +function sendChatMsg() {
  1253 + var message = $("#txt_message").val();
  1254 + var messageInfo={
  1255 + "to":0,
  1256 + "message":message
  1257 + };
  1258 + if (!message)
  1259 + return;
  1260 + else {
  1261 + $("#txt_message").val("");
  1262 +
  1263 + client.sendChatMsg(messageInfo);
  1264 + }
  1265 +}
  1266 +
  1267 +function loading() {
  1268 +
  1269 + $(".box").css({
  1270 + "display":"none",
  1271 + "margin":"0 auto"
  1272 + });
  1273 + $(".loading-index").css("display","block");
  1274 + $(".fourParamsOut").css("display","none");
  1275 + $(".permission").css("display","none");
  1276 + $(".fourParams").css("display","none");
  1277 + $(".loginBg").css("display","none");
  1278 +
  1279 +
  1280 +}
  1281 +//在页面loading时,提交验证,传给底层
  1282 +function urlParamsJudge(){
  1283 + //1.地址栏获取参数
  1284 + classLoadInfo=getURLParams();
  1285 + //client.init({"classId":1997848892,"portal":"112.126.80.182:80","userRole":"normal","userId":"0"},classInitSuccess,classJoinFailed);
  1286 + console.log("显示地址栏的数据");
  1287 + console.log(classLoadInfo);
  1288 +
  1289 + classParamInfo.classId=classLoadInfo.classId; //(必选) 课堂号.
  1290 + classParamInfo.portal=classLoadInfo.portal; //(必选) ip地址
  1291 + classParamInfo.userRole=classLoadInfo.userRole; //用户的身份
  1292 + classParamInfo.userId=classLoadInfo.userId; //第三方用户id
  1293 + classParamInfo.userType=classLoadInfo.userType; //用户的身份 默认1
  1294 + classParamInfo.userName=classLoadInfo.userName; //第三方用户名称
  1295 + console.log("传给底层,进行初始化的数据");
  1296 + console.log(classParamInfo);
  1297 + clientInit(classParamInfo);
  1298 +
  1299 +}
  1300 +//进行初始化
  1301 +function clientInit(_classLoadInfo) {
  1302 +
  1303 + console.log("初始化的信息");
  1304 + console.log(_classLoadInfo)
  1305 + client.init(_classLoadInfo,classInitSuccess,classFailed);
  1306 +}
  1307 +
  1308 +//从地址栏拿到classId,userRole,portal,userId
  1309 +function getURLParams(){
  1310 + var classUrlParam=GetUrlParam();
  1311 + console.log(classUrlParam);
  1312 + var classLoadInfo = {};
  1313 + classLoadInfo.classId=parseInt(classUrlParam.classId)||0;
  1314 + classLoadInfo.userRole=classUrlParam.userRole||"0";
  1315 + classLoadInfo.portalIP=classUrlParam.portalIP||"";
  1316 + classLoadInfo.portalPort=classUrlParam.portalPort||"";
  1317 + classLoadInfo.userName=classUrlParam.userName||"";
  1318 + classLoadInfo.userType=parseInt(classUrlParam.userType)||1;
  1319 + classLoadInfo.userId=classUrlParam.userId?classUrlParam.userId:"0";
  1320 + classLoadInfo.portal=classLoadInfo.portalIP+":"+classLoadInfo.portalPort;
  1321 + console.log(classLoadInfo);
  1322 + return classLoadInfo;
  1323 +}
  1324 +
  1325 +//工具类
  1326 +function format(str, obj) {
  1327 + return str.replace(/\{(\w+)\}/g, function (match, group, index) {
  1328 + return obj[group];
  1329 + });
  1330 +}
  1331 +
  1332 +
  1333 +
  1334 +
  1335 +// //获取推流地址
  1336 +// function achieveStream(){
  1337 +//
  1338 +// var paramInfo={
  1339 +// "type": "flash"
  1340 +// };
  1341 +// var result=client.getVideoPublishPath(paramInfo);
  1342 +//
  1343 +// console.log("执行getPublishVideoPath,返回的结果")
  1344 +// console.log(result);
  1345 +//
  1346 +// };
  1 +
  2 +var client; //客户端
  3 +var pubResultObj; // 存储底层给我的推流结果
  4 +
  5 +var playResultObj;//存储底层给我的播流结果
  6 +
  7 +
  8 +var playVideoId; //播放的流的videoId
  9 +var pushVideoId; //推流的videoId
  10 +var playCallbackDate; //视频更新的callBack
  11 +var nativeVideo={};
  12 +window.nativeVideo=nativeVideo;
  13 +
  14 +nativeVideo.nativeInit=function (_client){
  15 + client=_client;
  16 +};
  17 +
  18 +
  19 +
  20 +var u = navigator.userAgent;
  21 +var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
  22 +var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  23 +
  24 +
  25 +function mobileCallback(_param) {
  26 +
  27 + console.log(_param);
  28 +
  29 + if(isiOS){
  30 + console.log(isiOS);
  31 + _js2native(_param);
  32 +
  33 + }else if (isAndroid){
  34 + console.log(isAndroid);
  35 + window.xdyAndroid._js2native(_param);
  36 +
  37 + }
  38 +}
  39 +
  40 +
  41 +
  42 +
  43 +
  44 +
  45 +function teaTimeStamp() {
  46 + var _teatimestamp= Date.parse(new Date());
  47 + return _teatimestamp;
  48 +}
  49 +
  50 +
  51 +
  52 +$(function () {
  53 +
  54 + //学生视频按钮点击
  55 + $(".stuVideo-video").click(function (e) {
  56 + console.log("stuVideo-video点击");
  57 + console.log( $(".studentVideo").offset().left);
  58 +
  59 + $("#stuVideo-video").html(" ");
  60 + $("#stuVideo-video").removeClass("stuVideo-video");
  61 + $("#stuVideo-video").addClass("stuVideo-videoBg");
  62 +
  63 + $("#stuVideo-voice").html("&#xe62d;");
  64 + $("#stuVideo-voice").addClass("stuVideo-voice");
  65 + $("#stuVideo-voice").removeClass("stuVideo-voiceBg");
  66 +
  67 + $(".studentVideo").css("background", "#CCCCCC");
  68 +
  69 + var pcVideoTop=$(".studentVideo").offset().top;
  70 + var pcVideoLeft=$(".studentVideo").offset().left;
  71 + var pcVideoW=$(".studentVideo").width();
  72 + var pcVideoH=pcVideoW*3/4;
  73 +
  74 + //获取位置
  75 + var scrollW=document.body.scrollWidth||document.documentElement.scrollWidth;
  76 + var videoStuXFloat=pcVideoLeft/scrollW*100;
  77 + var videoStuX=Math.round(videoStuXFloat*100)/100;
  78 +
  79 + var scrollH=document.body.scrollHeight||document.documentElement.scrollHeight;
  80 + var videoStuYFloat=pcVideoTop/scrollH*100;
  81 + var videoStuY=Math.round(videoStuYFloat*100)/100;
  82 +
  83 +
  84 + //宽高
  85 + var videoStuWFloat=pcVideoW/scrollW*100;
  86 + var videoStuW=Math.round(videoStuWFloat*100)/100;
  87 +
  88 + var videoStuHFloat=pcVideoH/scrollH*100;
  89 + var videoStuH=Math.round(videoStuHFloat*100)/100;
  90 +
  91 + console.log(videoStuX,videoStuY,videoStuW,videoStuH);
  92 +
  93 +
  94 + //创建显示nativeVideo学生窗口,进行推流
  95 + var creatTeaNativeVideoObj={
  96 + "type":0,
  97 + "videoId":teaTimeStamp(),
  98 + "data":{
  99 + "wintype":'rtmp',
  100 + "x": videoStuX,
  101 + "y": videoStuY,
  102 + "width": videoStuW,
  103 + "height": videoStuH
  104 + }
  105 + };
  106 +
  107 + console.log(creatTeaNativeVideoObj);
  108 + var creatTeaNativeVideoJson=JSON.stringify(creatTeaNativeVideoObj);
  109 + console.log(creatTeaNativeVideoJson);
  110 + mobileCallback(creatTeaNativeVideoJson);
  111 +
  112 + //获取学生推流地址
  113 + achieveStuPushStream();
  114 +
  115 + });
  116 +
  117 +
  118 + //学生挂断
  119 + $(".stuVideo-videoBg").click(function (e) {
  120 +
  121 + })
  122 +
  123 + //学生音频按钮点击
  124 + $("#stuVideo-voice").click(function (e) {
  125 + console.log("stuVideo-voice点击");
  126 + $("#stuVideo-video").html("&#xe62e;");
  127 + $("#stuVideo-video").removeClass("stuVideo-videoBg");
  128 + $("#stuVideo-video").addClass("stuVideo-video");
  129 +
  130 + $("#stuVideo-voice").html("");
  131 + $("#stuVideo-voice").removeClass("stuVideo-voice");
  132 + $("#stuVideo-voice").addClass("stuVideo-voiceBg");
  133 +
  134 + });
  135 +
  136 + //根据传进来的消息,创建老师NativeVideo窗口,进行播流
  137 + client.on(MessageTypes.VIDEO_UPDATE,videoUpdate);
  138 +
  139 +
  140 +
  141 +
  142 +
  143 +});
  144 +
  145 +function videoUpdate(callbackDate){
  146 +
  147 + playCallbackDate=callbackDate;
  148 +
  149 + if ((callbackDate.status==1)&&(callbackDate.channelId!=='')){
  150 +
  151 + var scrollW=document.body.scrollWidth||document.documentElement.scrollWidth;
  152 + var scrollH=document.body.scrollHeight||document.documentElement.scrollHeight;
  153 + var videoTeaXFloat=(scrollW-246)/scrollW*100;
  154 + var videoTeaX=Math.round(videoTeaXFloat*100)/100;
  155 +
  156 + var videoTeaYFloat=241/scrollH*100;
  157 + var videoTeaY=Math.round(videoTeaYFloat*100)/100;
  158 +
  159 + var creatStuNativeVideoObj={
  160 + "type":0,
  161 + "videoId":teaTimeStamp(),
  162 + "data":{
  163 + "x": videoTeaX,
  164 + "y": videoTeaY,
  165 + "width": 30,
  166 + "height": 30
  167 + }
  168 + };
  169 +
  170 + var creatStuNativeVideoJson=JSON.stringify(creatStuNativeVideoObj);
  171 + mobileCallback(creatStuNativeVideoJson);
  172 +
  173 +
  174 + //获取播流地址
  175 + achievePlayStream();
  176 +
  177 + }
  178 +
  179 +}
  180 +
  181 +
  182 +//从底层获取播流地址,然后传给nativa进行播放
  183 +function achievePlayStream(){
  184 +
  185 + var paramInfo={
  186 + "type": "rtmp"
  187 + };
  188 + var playResult=client.getVideoPlayPath(paramInfo);
  189 +
  190 + console.log("执行getVideoPlayPath,返回的结果",playResult);
  191 +
  192 + playResultObj=playResult;
  193 + if (playResult.code==0){
  194 +
  195 + var _playMsg={
  196 + "type": 2,
  197 + "videoId": teaTimeStamp(),
  198 + "data":{
  199 + "video": true, // true/false
  200 + "audio": true, // true/false
  201 + "url":playResult.publishUrl
  202 + }
  203 + };
  204 +
  205 + //播流的videoId
  206 + playVideoId=_playMsg.videoId;
  207 +
  208 + //传给native
  209 + mobileCallback(_playMsg);
  210 + }
  211 +
  212 +
  213 +}
  214 +
  215 +//从底层获取推流地址
  216 +function achievePushStream(){
  217 +
  218 + var paramInfo={
  219 + "type": "live"
  220 + };
  221 + var pubResult=client.getVideoPublishPath(paramInfo);
  222 +
  223 + console.log("执行getVideoPublishPath,返回的结果",pubResult)
  224 +
  225 + pubResultObj=pubResult;
  226 +
  227 +
  228 + //code为0,代表成功
  229 + if (pubResult.code==0){
  230 +
  231 + var _publishMsg={
  232 + "type": 10,
  233 + "videoId": teaTimeStamp(),
  234 + "data":{
  235 + "video": true, // true/false
  236 + "audio": true, // true/false
  237 + "url":pubResult.publishUrl
  238 + }
  239 + };
  240 +
  241 +
  242 + //推流时的VideoId
  243 + var pushVideoId=_publishMsg.videoId;
  244 +
  245 +
  246 + //传给native
  247 + mobileCallback(_publishMsg);
  248 +
  249 + }
  250 +
  251 +};
  252 +
  253 +
  254 +
  255 +//native传给我
  256 +nativeVideo._native2js=function (_fromNative){
  257 +
  258 + var fromNative=JSON.parse(_fromNative);
  259 + var type=fromNative.type;
  260 +
  261 + switch (type){
  262 + case 0: SucessError(_fromNative);break;
  263 + default:break;
  264 + }
  265 +};
  266 +
  267 +function SucessError(_fromNative) {
  268 +
  269 + var successErrorData=_fromNative.data;
  270 + //0成功 1失败
  271 + if (successErrorData.result==0){
  272 +
  273 + //将之前底层取的推流结果传递给底层
  274 + var _successErrorResult= client.publishVideo(pubResultObj);
  275 +
  276 + if(_successErrorResult.code==0){
  277 + console.log("底层广播推流成功");
  278 + } else if(_successErrorResult.code==1){
  279 + console.log("底层广播推流失败,关闭推流");
  280 +
  281 + //应用层关闭流
  282 + var _closeStream={
  283 + "type": 5,
  284 + "videoId":pushVideoId
  285 + }
  286 +
  287 + var paramInfo={
  288 + "nodeId": 0,//用户的nodeId,默认0,就是自己的
  289 + };
  290 + client.stopPublishVideo(paramInfo);
  291 + }
  292 +
  293 +
  294 +
  295 +
  296 + }
  297 + else if (successErrorData.result==1){
  298 + console.log("native失败了,错误信息是",successErrorData.errmsg);
  299 +
  300 + var paramInfo={
  301 + "nodeId": 0,//用户的nodeId,默认0,就是自己的
  302 + };
  303 + client.stopPublishVideo(paramInfo);
  304 +
  305 + //应用层出弹框提示
  306 + $(".pop").trigger('click');
  307 +
  308 +
  309 + }
  310 +}
  311 +
  312 +
  313 +
  314 +
  1 +/**
  2 + *
  3 + */
  4 +
  5 +
  6 +
  7 +var client; //客户端
  8 +var pubResultObj; // 存储底层给我的推流结果
  9 +
  10 +var publishObj;
  11 +
  12 +var videoWithFlash={};
  13 +
  14 +window.videoWithFlash=videoWithFlash;
  15 +
  16 +videoWithFlash.flashInit=function (_client){
  17 + client=_client;
  18 +
  19 +};
  20 +
  21 +function teaTimeStamp() {
  22 + var _teatimestamp= Date.parse(new Date());
  23 + return _teatimestamp;
  24 +}
  25 +$(function () {
  26 +
  27 + //根据传进来的消息,创建老师NativeVideo窗口,进行播流
  28 + client.on(MessageTypes.VIDEO_UPDATE,_videoUpdate);
  29 +
  30 + // //学生视频按钮点击
  31 + // $("#stuVideo-video").click(function (e) {
  32 + // console.log("teacherVideo-video点击");
  33 + // $("#stuVideo-video").html(" ");
  34 + // $("#stuVideo-video").removeClass("stuVideo-video");
  35 + // $("#stuVideo-video").addClass("stuVideo-videoBg");
  36 + //
  37 + //
  38 + // $("#stuVideo-voice").html("&#xe62d;");
  39 + // $("#stuVideo-voice").addClass("stuVideo-voice");
  40 + // $("#stuVideo-voice").removeClass("stuVideo-voiceBg");
  41 + //
  42 + //
  43 + // //获取推流地址
  44 + // achieveStupPushStream();
  45 + //
  46 + //
  47 + // });
  48 + //
  49 + // //学生音频按钮点击
  50 + // $("#stuVideo-voice").click(function (e) {
  51 + //
  52 + // console.log("stuVideo-voice点击");
  53 + // $("#stuVideo-video").html("&#xe62e;");
  54 + // $("#stuVideo-video").removeClass("stuVideo-videoBg");
  55 + // $("#stuVideo-video").addClass("stuVideo-video");
  56 + //
  57 + // $("#stuVideo-voice").html("");
  58 + // $("#stuVideo-voice").removeClass("stuVideo-voice");
  59 + // $("#stuVideo-voice").addClass("stuVideo-voiceBg");
  60 + // });
  61 +
  62 + //老师视频按钮点击
  63 + $("#teacherVideo-video").click(function (e) {
  64 + console.log("teacherVideo-video点击");
  65 + $("#teacherVideo-video").html(" ");
  66 + $("#teacherVideo-video").removeClass("teacherVideo-video");
  67 + $("#teacherVideo-video").addClass("teacherVideo-videoBg");
  68 +
  69 +
  70 + $("#teacherVideo-voice").html("&#xe62d;");
  71 + $("#teacherVideo-voice").addClass("teacherVideo-voice");
  72 + $("#teacherVideo-voice").removeClass("teacherVideo-voiceBg");
  73 + $(".teacherVideoBg").css("display","none");
  74 +
  75 + $(".teacherVideo").css("background", "#CCCCCC");
  76 + $(".teacherVideo-voice").css("bottom","4px");
  77 +
  78 + //获取推流地址
  79 + achieveTeaStream();
  80 +
  81 + });
  82 +
  83 + //老师音频按钮点击
  84 + $("#teacherVideo-voice").click(function (e) {
  85 +
  86 +
  87 + console.log("teacherVideo-voice点击");
  88 + $("#teacherVideo-video").html("&#xe62e;");
  89 + $("#teacherVideo-video").removeClass("teacherVideo-videoBg");
  90 + $("#teacherVideo-video").addClass("teacherVideo-video");
  91 +
  92 + $("#teacherVideo-voice").html("");
  93 + $("#teacherVideo-voice").removeClass("teacherVideo-voice");
  94 + $("#teacherVideo-voice").addClass("teacherVideo-voiceBg");
  95 + });
  96 +
  97 +});
  98 +
  99 + //获取推流地址
  100 + function achieveTeaStream(){
  101 + $(".publish").css("display","block");
  102 + $(".play").css("display","none");
  103 +
  104 +
  105 + var paramInfo={
  106 + "type": "flash"
  107 + };
  108 + var pubResult=client.getVideoPublishPath(paramInfo);
  109 +
  110 + console.log("执行getPublishVideoPath,返回的结果",pubResult);
  111 +
  112 +
  113 +
  114 +
  115 + //code为0,代表成功
  116 + if (pubResult.code==0){
  117 +
  118 +
  119 + if(! window.publishflash) {
  120 + flashvideo(
  121 + 'publish',
  122 + '100%',
  123 + '100%',
  124 + function (error, publishflash) {
  125 + if (error) {
  126 + return console.error(error);
  127 + }
  128 + window.publishflash = publishflash;
  129 + window.publishflashVideoId = teaTimeStamp();
  130 +
  131 + publishURL(pubResult.publishUrl);
  132 + },
  133 + function (msg) {
  134 +
  135 + console.log(' [publish] native 2 js', msg);
  136 + var _msg=JSON.parse(msg);
  137 + console.log("_msg===========>",_msg);
  138 + if(_msg.data.result == 0){
  139 + debugger;
  140 + //将之前底层取的推流结果传递给底层
  141 + var _successErrorResult= client.publishVideo(pubResult);
  142 + console.log("_successErrorResult======>",_successErrorResult)
  143 + if(_successErrorResult.code==0){
  144 + console.log("底层广播推流成功");
  145 + } else if(_successErrorResult.code==1){
  146 + console.log("底层广播推流失败,关闭推流");
  147 +
  148 + }
  149 +
  150 + }else {
  151 + console.error('publish error');
  152 + }
  153 + }
  154 + )
  155 +
  156 + }
  157 + else {
  158 + publishURL(pubResult.publishUrl);
  159 + }
  160 +
  161 + }
  162 +
  163 +
  164 +
  165 + }
  166 +function publishURL(rtmpURL) {
  167 + const msg = JSON.stringify({
  168 + type: 10,
  169 + videoId: publishflashVideoId,
  170 + data: {
  171 + url: rtmpURL
  172 + }
  173 + });
  174 + console.log(publishflash._js2native(msg));
  175 +}
  176 +
  177 + // 监听当前是否有视频流更新
  178 + function _videoUpdate(callbackDate){
  179 + playCallbackDate=callbackDate;
  180 + console.log("videoUpdate==============>",playCallbackDate);
  181 +
  182 +
  183 + if ((callbackDate.status==1)&&(callbackDate.channelId!=='')){
  184 +
  185 + achievePlayStream(playCallbackDate);
  186 +
  187 +
  188 +
  189 +
  190 +
  191 + }
  192 +
  193 +}
  194 +
  195 + //获取播流地址
  196 + function achievePlayStream(_pubResultObj){
  197 + console.log("_pubResultObj==========>",_pubResultObj)
  198 + var _paramInfo={
  199 + "type": "rtmp",
  200 + "channelId": _pubResultObj.channelId,//频道号
  201 + "classId": _pubResultObj.classId,//课堂号
  202 + "siteId": _pubResultObj.siteId,//站点号
  203 + "timestamp":_pubResultObj.timestamp,//时间戳
  204 + "userId": _pubResultObj.userId,//userId
  205 + };
  206 + var streamInfo=client.getVideoPlayPath(_paramInfo);
  207 + console.log("result是=============>",streamInfo);
  208 +
  209 + $(".teacherVideoBg").css("display","none");
  210 +
  211 + $(".teacherVideo").css("background", "#CCCCCC");
  212 + $(".teacherVideo-voice").css("bottom","4px");
  213 + // $(".publish").css("display","none");
  214 +
  215 + if(! window.playflash) {
  216 + flashvideo(
  217 + 'play',
  218 + '100%',
  219 + '100%',
  220 + function createPlayReady(error, playflash) {
  221 + if (error) {
  222 + return console.error(error);
  223 + }
  224 + window.playflash = playflash;
  225 + window.playflashVideoId = teaTimeStamp();
  226 +
  227 + playURL(streamInfo.playUrl);
  228 + },
  229 + function (msg) {
  230 + console.log(' [play] native 2 js', msg);
  231 + }
  232 + )
  233 + }
  234 + else {
  235 + playURL(streamInfo.playUrl);
  236 + }
  237 + }
  238 +
  239 + function playURL(rtmpURL) {
  240 + const msg = JSON.stringify({
  241 + type: 2,
  242 + videoId: playflashVideoId,
  243 + data: {
  244 + url: rtmpURL
  245 + // url:'rtmp://123.56.205.116:1935/live/alexwang'
  246 + }
  247 + });
  248 + console.log(playflash._js2native(msg));
  249 + }
  250 +
  251 +
  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__})()}])});