add ckplayer
@@ -13,4 +13,6 @@
|
||||
</div>
|
||||
</footer>
|
||||
<script src="${ctxStatic}/modules/cmsfront/themes/js/bootstrap.min.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/modules/cmsfront/themes/js/custom.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/modules/cmsfront/themes/js/custom.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/ueditor/1.4/ueditor.parse.js"></script>
|
||||
<script>uParse('.uparse',{rootPath:'${ctxStatic}/ueditor/1.4/'})</script>
|
||||
202
modules/static/src/main/resources/static/ckplayer/LICENSE
Normal file
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
1609
modules/static/src/main/resources/static/ckplayer/css/ckplayer.css
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
202
modules/static/src/main/resources/static/ckplayer/flv.js/LICENSE
Normal file
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
10584
modules/static/src/main/resources/static/ckplayer/flv.js/flv.js
Normal file
9
modules/static/src/main/resources/static/ckplayer/flv.js/flv.min.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
Copyright (c) 2017 Dailymotion (http://www.dailymotion.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
src/remux/mp4-generator.js and src/demux/exp-golomb.ts implementation in this project
|
||||
are derived from the HLS library for video.js (https://github.com/videojs/videojs-contrib-hls)
|
||||
|
||||
That work is also covered by the Apache 2 License, following copyright:
|
||||
Copyright (c) 2013-2015 Brightcove
|
||||
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
27804
modules/static/src/main/resources/static/ckplayer/hls.js/hls.js
Normal file
1
modules/static/src/main/resources/static/ckplayer/hls.js/hls.min.js
vendored
Normal file
7421
modules/static/src/main/resources/static/ckplayer/js/ckplayer.js
Normal file
7
modules/static/src/main/resources/static/ckplayer/js/ckplayer.min.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.ckplayerLanguage = factory());
|
||||
}(this, function () { 'use strict';
|
||||
/*
|
||||
* 功能:包含播放器用到的全部相关语言文字
|
||||
*/
|
||||
var language={
|
||||
play:'Play',
|
||||
pause:'Pause',
|
||||
refresh:'Refresh',
|
||||
full:'Fullscreen',
|
||||
exitFull:'Non-Fullscreen',
|
||||
webFull:'Web fullscreen',
|
||||
exitWebFull:'Non-Web fullscreen',
|
||||
theatre:'Theatre',
|
||||
exitTheatre:'Non-theatre',
|
||||
volume:'Volume:',
|
||||
muted:'Mute',
|
||||
exitmuted:'Unmute',
|
||||
seek:'Seek:',
|
||||
waiting:'Waiting',
|
||||
live:'Liveing',
|
||||
backLive:'Back live',
|
||||
lookBack:'Look back:',
|
||||
next:'Next episode',
|
||||
screenshot:'Screenshot',
|
||||
smallwindows:'Small windows',
|
||||
playbackrate:'Speed',
|
||||
playbackrateSuffix:' Speed',
|
||||
track:'Subtitle',
|
||||
noTrack:'No subtitle',
|
||||
definition:'Definition',
|
||||
switchTo:'Switched from:',
|
||||
closeTime:'The advertisement can be closed in {seconds} seconds',
|
||||
closeAd:'Close ad',
|
||||
second:'seconds',
|
||||
details:'View details',
|
||||
copy:'Copy',
|
||||
copySucceeded:'Copy succeeded, can be pasted!',
|
||||
smallwindowsOpen:'The small window function is turned on',
|
||||
screenshotStart:'Screenshot, please wait...',
|
||||
smallwindowsClose:'The small window function is turned off',
|
||||
screenshotClose:'Screenshot function is turned off',
|
||||
loopOpen:'Loop open',
|
||||
loopClose:'Loop close',
|
||||
close:'Close',
|
||||
down:'Down',
|
||||
p50:'50%',
|
||||
p75:'75%',
|
||||
p100:'100%',
|
||||
timeScheduleAdjust:{
|
||||
prohibit:'No dragging',
|
||||
prohibitBackOff:'No repeat viewing',
|
||||
prohibitForward:'Fast forward prohibited',
|
||||
prohibitLookBack:'Some content is forbidden to play',
|
||||
prohibitForwardNotViewed:'Disable playback of parts not viewed'
|
||||
},
|
||||
error:{
|
||||
noMessage:'Unknown error',
|
||||
supportVideoError:'The browser version is too low. It is recommended to replace it with another browser',
|
||||
videoTypeError:'This browser does not support playing this video. It is recommended to replace it with another browser',
|
||||
loadingFailed:'Loading failed',
|
||||
emptied:'An error occurred while loading the frequency file',
|
||||
screenshot:'Screenshot failed',
|
||||
ajax:'Ajax data request error',
|
||||
noVideoContainer:'No video container'
|
||||
}
|
||||
};
|
||||
return language;
|
||||
}))
|
||||
@@ -0,0 +1,72 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.ckplayerLanguage = factory());
|
||||
}(this, function () { 'use strict';
|
||||
/*
|
||||
* 功能:包含播放器用到的全部相关语言文字
|
||||
*/
|
||||
var language={
|
||||
play:'播放',
|
||||
pause:'暂停',
|
||||
refresh:'重播',
|
||||
full:'全屏',
|
||||
exitFull:'退出全屏',
|
||||
webFull:'页面全屏',
|
||||
exitWebFull:'退出页面全屏',
|
||||
theatre:'剧场模式',
|
||||
exitTheatre:'退出剧场模式',
|
||||
volume:'音量:',
|
||||
muted:'静音',
|
||||
exitmuted:'恢复音量',
|
||||
seek:'seek:',
|
||||
waiting:'缓冲',
|
||||
live:'直播中',
|
||||
backLive:'返回直播',
|
||||
lookBack:'回看:',
|
||||
next:'下一集',
|
||||
screenshot:'视频截图',
|
||||
smallwindows:'小窗口播放功能',
|
||||
playbackrate:'倍速',
|
||||
playbackrateSuffix:'倍',
|
||||
track:'字幕',
|
||||
noTrack:'无字幕',
|
||||
definition:'清晰度',
|
||||
switchTo:'切换成:',
|
||||
closeTime:'{seconds}秒后可关闭广告',
|
||||
closeAd:'关闭广告',
|
||||
second:'秒',
|
||||
details:'查看详情',
|
||||
copy:'复制',
|
||||
copySucceeded:'复制成功,可贴粘!',
|
||||
smallwindowsOpen:'小窗口功能已开启',
|
||||
smallwindowsClose:'小窗口功能已关闭',
|
||||
screenshotStart:'截图中,请稍候...',
|
||||
screenshotClose:'截图功能已关闭',
|
||||
loopOpen:'循环播放',
|
||||
loopClose:'已关闭循环播放',
|
||||
close:'关闭',
|
||||
down:'下载',
|
||||
p50:'50%',
|
||||
p75:'75%',
|
||||
p100:'100%',
|
||||
timeScheduleAdjust:{
|
||||
prohibit:'视频禁止拖动',
|
||||
prohibitBackOff:'视频禁止重复观看',
|
||||
prohibitForward:'视频禁止快进',
|
||||
prohibitLookBack:'视频禁止播放部分内容',
|
||||
prohibitForwardNotViewed:'视频禁止播放未观看的部分'
|
||||
},
|
||||
error:{
|
||||
noMessage:'未知错误',
|
||||
supportVideoError:'该浏览器版本太低,建议更换成其它浏览器',
|
||||
videoTypeError:'该浏览器不支持播放该视频,建议更换成其它浏览器',
|
||||
loadingFailed:'加载失败',
|
||||
emptied:'视频文件加载过程中出现错误',
|
||||
screenshot:'视频截图失败',
|
||||
ajax:'Ajax数据请求错误',
|
||||
noVideoContainer:'未找到放置视频的容器'
|
||||
}
|
||||
};
|
||||
return language;
|
||||
}))
|
||||
@@ -0,0 +1,72 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.ckplayerLanguage = factory());
|
||||
}(this, function () { 'use strict';
|
||||
/*
|
||||
*功能:包含播放機用到的全部相關語言文字
|
||||
*/
|
||||
var language = {
|
||||
play: '播放',
|
||||
pause: '暫停',
|
||||
refresh: '重播',
|
||||
full: '全屏',
|
||||
exitFull: '退出全屏',
|
||||
webFull: '頁面全屏',
|
||||
exitWebFull: '退出頁面全屏',
|
||||
theatre: '劇場模式',
|
||||
exitTheatre: '退出劇場模式',
|
||||
volume: '音量:',
|
||||
muted: '靜音',
|
||||
exitmuted: '恢復音量',
|
||||
seek: 'seek:',
|
||||
waiting: '緩衝',
|
||||
live: '直播中',
|
||||
backLive: '返回直播',
|
||||
lookBack: '回看:',
|
||||
next: '下一集',
|
||||
screenshot: '視頻截圖',
|
||||
smallwindows: '小視窗播放功能',
|
||||
playbackrate: '倍速',
|
||||
playbackrateSuffix: '倍',
|
||||
track: '字幕',
|
||||
noTrack: '無字幕',
|
||||
definition: '清晰度',
|
||||
switchTo: '切換成:',
|
||||
closeTime: '{seconds}秒後可關閉廣告',
|
||||
closeAd: '關閉廣告',
|
||||
second: '秒',
|
||||
details: '查看詳情',
|
||||
copy: '複製',
|
||||
copySucceeded: '複製成功,可貼粘!',
|
||||
smallwindowsOpen: '小視窗功能已開啟',
|
||||
smallwindowsClose: '小視窗功能已關閉',
|
||||
screenshotStart: '截圖中,請稍候…',
|
||||
screenshotClose: '截圖功能已關閉',
|
||||
loopOpen: '迴圈播放',
|
||||
loopClose: '已關閉迴圈播放',
|
||||
close: '關閉',
|
||||
down: '下載',
|
||||
p50: '50%',
|
||||
p75: '75%',
|
||||
p100: '100%',
|
||||
timeScheduleAdjust: {
|
||||
prohibit: '視頻禁止拖動',
|
||||
prohibitBackOff: '視頻禁止重複觀看',
|
||||
prohibitForward: '視頻禁止快進',
|
||||
prohibitLookBack: '視頻禁止播放部分內容',
|
||||
prohibitForwardNotViewed: '視頻禁止播放未觀看的部分'
|
||||
},
|
||||
error: {
|
||||
noMessage: '未知錯誤',
|
||||
supportVideoError: '該流覽器版本太低,建議更換成其它瀏覽器',
|
||||
videoTypeError: '該瀏覽器不支持播放該視頻,建議更換成其它瀏覽器',
|
||||
loadingFailed: '加載失敗',
|
||||
emptied: '視頻檔案加載過程中出現錯誤',
|
||||
screenshot: '視頻截圖失敗',
|
||||
ajax: 'Ajax數據請求錯誤',
|
||||
noVideoContainer: '未找到放置視頻的容器'
|
||||
}
|
||||
};
|
||||
return language;
|
||||
}))
|
||||
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
8
modules/static/src/main/resources/static/ckplayer/mpegts.js/mpegts.min.js
vendored
Normal file
@@ -11,286 +11,284 @@
|
||||
var isIE = !!window.ActiveXObject;
|
||||
//定义utils工具
|
||||
var utils = {
|
||||
removeLastbs : function(url){
|
||||
return url.replace(/\/$/,'')
|
||||
},
|
||||
extend : function(t,s){
|
||||
var a = arguments,
|
||||
notCover = this.isBoolean(a[a.length - 1]) ? a[a.length - 1] : false,
|
||||
len = this.isBoolean(a[a.length - 1]) ? a.length - 1 : a.length;
|
||||
for (var i = 1; i < len; i++) {
|
||||
var x = a[i];
|
||||
for (var k in x) {
|
||||
if (!notCover || !t.hasOwnProperty(k)) {
|
||||
t[k] = x[k];
|
||||
removeLastbs : function(url){
|
||||
return url.replace(/\/$/,'');
|
||||
},
|
||||
extend : function(t,s){
|
||||
var a = arguments,
|
||||
notCover = this.isBoolean(a[a.length - 1]) ? a[a.length - 1] : false,
|
||||
len = this.isBoolean(a[a.length - 1]) ? a.length - 1 : a.length;
|
||||
for (var i = 1; i < len; i++) {
|
||||
var x = a[i];
|
||||
for (var k in x) {
|
||||
if (!notCover || !t.hasOwnProperty(k)) {
|
||||
t[k] = x[k];
|
||||
}
|
||||
}
|
||||
}
|
||||
return t;
|
||||
},
|
||||
isIE : isIE,
|
||||
cssRule : isIE ? function(key,style,doc){
|
||||
var indexList,index;
|
||||
doc = doc || document;
|
||||
if(doc.indexList){
|
||||
indexList = doc.indexList;
|
||||
}else{
|
||||
indexList = doc.indexList = {};
|
||||
}
|
||||
var sheetStyle;
|
||||
if(!indexList[key]){
|
||||
if(style === undefined){
|
||||
return '';
|
||||
}
|
||||
sheetStyle = doc.createStyleSheet('',index = doc.styleSheets.length);
|
||||
indexList[key] = index;
|
||||
}else{
|
||||
sheetStyle = doc.styleSheets[indexList[key]];
|
||||
}
|
||||
if(style === undefined){
|
||||
return sheetStyle.cssText;
|
||||
}
|
||||
sheetStyle.cssText = sheetStyle.cssText + '\n' + (style || '');
|
||||
} : function(key,style,doc){
|
||||
doc = doc || document;
|
||||
var head = doc.getElementsByTagName('head')[0],node;
|
||||
if(!(node = doc.getElementById(key))){
|
||||
if(style === undefined){
|
||||
return ''
|
||||
}
|
||||
node = doc.createElement('style');
|
||||
node.id = key;
|
||||
head.appendChild(node)
|
||||
}
|
||||
if(style === undefined){
|
||||
return node.innerHTML
|
||||
}
|
||||
if(style !== ''){
|
||||
node.innerHTML = node.innerHTML + '\n' + style;
|
||||
}else{
|
||||
head.removeChild(node)
|
||||
}
|
||||
},
|
||||
domReady : function (onready) {
|
||||
var doc = window.document;
|
||||
if (doc.readyState === "complete") {
|
||||
onready();
|
||||
}else{
|
||||
if (isIE) {
|
||||
(function () {
|
||||
if (doc.isReady) return;
|
||||
try {
|
||||
doc.documentElement.doScroll("left");
|
||||
} catch (error) {
|
||||
setTimeout(arguments.callee, 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
return t;
|
||||
},
|
||||
isIE : isIE,
|
||||
cssRule : isIE ? function(key,style,doc){
|
||||
var indexList,index;
|
||||
doc = doc || document;
|
||||
if(doc.indexList){
|
||||
indexList = doc.indexList;
|
||||
}else{
|
||||
indexList = doc.indexList = {};
|
||||
}
|
||||
var sheetStyle;
|
||||
if(!indexList[key]){
|
||||
if(style === undefined){
|
||||
return ''
|
||||
}
|
||||
sheetStyle = doc.createStyleSheet('',index = doc.styleSheets.length);
|
||||
indexList[key] = index;
|
||||
}else{
|
||||
sheetStyle = doc.styleSheets[indexList[key]];
|
||||
}
|
||||
if(style === undefined){
|
||||
return sheetStyle.cssText
|
||||
}
|
||||
sheetStyle.cssText = sheetStyle.cssText + '\n' + (style || '')
|
||||
} : function(key,style,doc){
|
||||
doc = doc || document;
|
||||
var head = doc.getElementsByTagName('head')[0],node;
|
||||
if(!(node = doc.getElementById(key))){
|
||||
if(style === undefined){
|
||||
return ''
|
||||
}
|
||||
node = doc.createElement('style');
|
||||
node.id = key;
|
||||
head.appendChild(node)
|
||||
}
|
||||
if(style === undefined){
|
||||
return node.innerHTML
|
||||
}
|
||||
if(style !== ''){
|
||||
node.innerHTML = node.innerHTML + '\n' + style;
|
||||
}else{
|
||||
head.removeChild(node)
|
||||
}
|
||||
},
|
||||
domReady : function (onready) {
|
||||
var doc = window.document;
|
||||
if (doc.readyState === "complete") {
|
||||
onready();
|
||||
}else{
|
||||
if (isIE) {
|
||||
(function () {
|
||||
if (doc.isReady) return;
|
||||
try {
|
||||
doc.documentElement.doScroll("left");
|
||||
} catch (error) {
|
||||
setTimeout(arguments.callee, 0);
|
||||
return;
|
||||
}
|
||||
onready();
|
||||
})();
|
||||
window.attachEvent('onload', function(){
|
||||
onready()
|
||||
});
|
||||
} else {
|
||||
doc.addEventListener("DOMContentLoaded", function () {
|
||||
doc.removeEventListener("DOMContentLoaded", arguments.callee, false);
|
||||
onready();
|
||||
}, false);
|
||||
window.addEventListener('load', function(){onready()}, false);
|
||||
}
|
||||
onready();
|
||||
})();
|
||||
window.attachEvent('onload', function(){
|
||||
onready()
|
||||
});
|
||||
} else {
|
||||
doc.addEventListener("DOMContentLoaded", function () {
|
||||
doc.removeEventListener("DOMContentLoaded", arguments.callee, false);
|
||||
onready();
|
||||
}, false);
|
||||
window.addEventListener('load', function(){onready()}, false);
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
each : function(obj, iterator, context) {
|
||||
if (obj == null) return;
|
||||
if (obj.length === +obj.length) {
|
||||
for (var i = 0, l = obj.length; i < l; i++) {
|
||||
if(iterator.call(context, obj[i], i, obj) === false)
|
||||
},
|
||||
each : function(obj, iterator, context) {
|
||||
if (obj == null) return;
|
||||
if (obj.length === +obj.length) {
|
||||
for (var i = 0, l = obj.length; i < l; i++) {
|
||||
if(iterator.call(context, obj[i], i, obj) === false)
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
for (var key in obj) {
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
if(iterator.call(context, obj[key], key, obj) === false)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
inArray : function(arr,item){
|
||||
var index = -1;
|
||||
this.each(arr,function(v,i){
|
||||
if(v === item){
|
||||
index = i;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return index;
|
||||
},
|
||||
pushItem : function(arr,item){
|
||||
if(this.inArray(arr,item)==-1){
|
||||
arr.push(item)
|
||||
}
|
||||
},
|
||||
trim: function (str) {
|
||||
return str.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g, '');
|
||||
},
|
||||
indexOf: function (array, item, start) {
|
||||
var index = -1;
|
||||
start = this.isNumber(start) ? start : 0;
|
||||
this.each(array, function (v, i) {
|
||||
if (i >= start && v === item) {
|
||||
index = i;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return index;
|
||||
},
|
||||
hasClass: function (element, className) {
|
||||
className = className.replace(/(^[ ]+)|([ ]+$)/g, '').replace(/[ ]{2,}/g, ' ').split(' ');
|
||||
for (var i = 0, ci, cls = element.className; ci = className[i++];) {
|
||||
if (!new RegExp('\\b' + ci + '\\b', 'i').test(cls)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return i - 1 == className.length;
|
||||
},
|
||||
addClass:function (elm, classNames) {
|
||||
if(!elm)return;
|
||||
classNames = this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
||||
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
||||
if(!new RegExp('\\b' + ci + '\\b').test(cls)){
|
||||
cls += ' ' + ci;
|
||||
}
|
||||
}
|
||||
elm.className = utils.trim(cls);
|
||||
},
|
||||
removeClass:function (elm, classNames) {
|
||||
classNames = this.isArray(classNames) ? classNames :
|
||||
this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
||||
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
||||
cls = cls.replace(new RegExp('\\b' + ci + '\\b'),'');
|
||||
}
|
||||
cls = this.trim(cls).replace(/[ ]{2,}/g,' ');
|
||||
elm.className = cls;
|
||||
!cls && elm.removeAttribute('className');
|
||||
},
|
||||
on: function (element, type, handler) {
|
||||
var types = this.isArray(type) ? type : type.split(/\s+/),
|
||||
k = types.length;
|
||||
if (k) while (k--) {
|
||||
type = types[k];
|
||||
if (element.addEventListener) {
|
||||
element.addEventListener(type, handler, false);
|
||||
} else {
|
||||
for (var key in obj) {
|
||||
if (obj.hasOwnProperty(key)) {
|
||||
if(iterator.call(context, obj[key], key, obj) === false)
|
||||
return false;
|
||||
if (!handler._d) {
|
||||
handler._d = {
|
||||
els : []
|
||||
};
|
||||
}
|
||||
var key = type + handler.toString(),index = utils.indexOf(handler._d.els,element);
|
||||
if (!handler._d[key] || index == -1) {
|
||||
if(index == -1){
|
||||
handler._d.els.push(element);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
inArray : function(arr,item){
|
||||
var index = -1;
|
||||
this.each(arr,function(v,i){
|
||||
if(v === item){
|
||||
index = i;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return index;
|
||||
},
|
||||
pushItem : function(arr,item){
|
||||
if(this.inArray(arr,item)==-1){
|
||||
arr.push(item)
|
||||
}
|
||||
},
|
||||
trim: function (str) {
|
||||
return str.replace(/(^[ \t\n\r]+)|([ \t\n\r]+$)/g, '');
|
||||
},
|
||||
indexOf: function (array, item, start) {
|
||||
var index = -1;
|
||||
start = this.isNumber(start) ? start : 0;
|
||||
this.each(array, function (v, i) {
|
||||
if (i >= start && v === item) {
|
||||
index = i;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return index;
|
||||
},
|
||||
hasClass: function (element, className) {
|
||||
className = className.replace(/(^[ ]+)|([ ]+$)/g, '').replace(/[ ]{2,}/g, ' ').split(' ');
|
||||
for (var i = 0, ci, cls = element.className; ci = className[i++];) {
|
||||
if (!new RegExp('\\b' + ci + '\\b', 'i').test(cls)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return i - 1 == className.length;
|
||||
},
|
||||
addClass:function (elm, classNames) {
|
||||
if(!elm)return;
|
||||
classNames = this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
||||
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
||||
if(!new RegExp('\\b' + ci + '\\b').test(cls)){
|
||||
cls += ' ' + ci;
|
||||
}
|
||||
}
|
||||
elm.className = utils.trim(cls);
|
||||
},
|
||||
removeClass:function (elm, classNames) {
|
||||
classNames = this.isArray(classNames) ? classNames :
|
||||
this.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');
|
||||
for(var i = 0,ci,cls = elm.className;ci=classNames[i++];){
|
||||
cls = cls.replace(new RegExp('\\b' + ci + '\\b'),'')
|
||||
}
|
||||
cls = this.trim(cls).replace(/[ ]{2,}/g,' ');
|
||||
elm.className = cls;
|
||||
!cls && elm.removeAttribute('className');
|
||||
},
|
||||
on: function (element, type, handler) {
|
||||
var types = this.isArray(type) ? type : type.split(/\s+/),
|
||||
k = types.length;
|
||||
if (k) while (k--) {
|
||||
type = types[k];
|
||||
if (element.addEventListener) {
|
||||
element.addEventListener(type, handler, false);
|
||||
} else {
|
||||
if (!handler._d) {
|
||||
handler._d = {
|
||||
els : []
|
||||
if(!handler._d[key]){
|
||||
handler._d[key] = function (evt) {
|
||||
return handler.call(evt.srcElement, evt || window.event);
|
||||
};
|
||||
}
|
||||
var key = type + handler.toString(),index = utils.indexOf(handler._d.els,element);
|
||||
if (!handler._d[key] || index == -1) {
|
||||
if(index == -1){
|
||||
handler._d.els.push(element);
|
||||
}
|
||||
if(!handler._d[key]){
|
||||
handler._d[key] = function (evt) {
|
||||
return handler.call(evt.srcElement, evt || window.event);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
element.attachEvent('on' + type, handler._d[key]);
|
||||
}
|
||||
element.attachEvent('on' + type, handler._d[key]);
|
||||
}
|
||||
}
|
||||
element = null;
|
||||
},
|
||||
off: function (element, type, handler) {
|
||||
var types = this.isArray(type) ? type : type.split(/\s+/),
|
||||
k = types.length;
|
||||
if (k) while (k--) {
|
||||
type = types[k];
|
||||
if (element.removeEventListener) {
|
||||
element.removeEventListener(type, handler, false);
|
||||
} else {
|
||||
var key = type + handler.toString();
|
||||
try{
|
||||
element.detachEvent('on' + type, handler._d ? handler._d[key] : handler);
|
||||
}catch(e){}
|
||||
if (handler._d && handler._d[key]) {
|
||||
var index = utils.indexOf(handler._d.els,element);
|
||||
if(index!=-1){
|
||||
handler._d.els.splice(index,1);
|
||||
}
|
||||
handler._d.els.length == 0 && delete handler._d[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
loadFile : function () {
|
||||
var tmpList = [];
|
||||
function getItem(doc,obj){
|
||||
}
|
||||
element = null;
|
||||
},
|
||||
off: function (element, type, handler) {
|
||||
var types = this.isArray(type) ? type : type.split(/\s+/),
|
||||
k = types.length;
|
||||
if (k) while (k--) {
|
||||
type = types[k];
|
||||
if (element.removeEventListener) {
|
||||
element.removeEventListener(type, handler, false);
|
||||
} else {
|
||||
var key = type + handler.toString();
|
||||
try{
|
||||
for(var i= 0,ci;ci=tmpList[i++];){
|
||||
if(ci.doc === doc && ci.url == (obj.src || obj.href)){
|
||||
return ci;
|
||||
}
|
||||
element.detachEvent('on' + type, handler._d ? handler._d[key] : handler);
|
||||
}catch(e){}
|
||||
if (handler._d && handler._d[key]) {
|
||||
var index = utils.indexOf(handler._d.els,element);
|
||||
if(index!=-1){
|
||||
handler._d.els.splice(index,1);
|
||||
}
|
||||
}catch(e){
|
||||
return null;
|
||||
handler._d.els.length == 0 && delete handler._d[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
loadFile : function () {
|
||||
var tmpList = [];
|
||||
function getItem(doc,obj){
|
||||
try{
|
||||
for(var i= 0,ci;ci=tmpList[i++];){
|
||||
if(ci.doc === doc && ci.url == (obj.src || obj.href)){
|
||||
return ci;
|
||||
}
|
||||
}
|
||||
}catch(e){
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
return function (doc, obj, fn) {
|
||||
var item = getItem(doc,obj);
|
||||
if (item) {
|
||||
if(item.ready){
|
||||
fn && fn();
|
||||
}else{
|
||||
item.funs.push(fn);
|
||||
}
|
||||
return;
|
||||
}
|
||||
return function (doc, obj, fn) {
|
||||
var item = getItem(doc,obj);
|
||||
if (item) {
|
||||
if(item.ready){
|
||||
fn && fn();
|
||||
}else{
|
||||
item.funs.push(fn)
|
||||
}
|
||||
return;
|
||||
tmpList.push({
|
||||
doc:doc,
|
||||
url:obj.src||obj.href,
|
||||
funs:[fn]
|
||||
});
|
||||
if (!doc.body) {
|
||||
var html = [];
|
||||
for(var p in obj){
|
||||
if(p == 'tag')continue;
|
||||
html.push(p + '="' + obj[p] + '"');
|
||||
}
|
||||
tmpList.push({
|
||||
doc:doc,
|
||||
url:obj.src||obj.href,
|
||||
funs:[fn]
|
||||
});
|
||||
if (!doc.body) {
|
||||
var html = [];
|
||||
for(var p in obj){
|
||||
if(p == 'tag')continue;
|
||||
html.push(p + '="' + obj[p] + '"')
|
||||
}
|
||||
doc.write('<' + obj.tag + ' ' + html.join(' ') + ' ></'+obj.tag+'>');
|
||||
return;
|
||||
}
|
||||
if (obj.id && doc.getElementById(obj.id)) {
|
||||
return;
|
||||
}
|
||||
var element = doc.createElement(obj.tag);
|
||||
delete obj.tag;
|
||||
for (var p in obj) {
|
||||
element.setAttribute(p, obj[p]);
|
||||
}
|
||||
element.onload = element.onreadystatechange = function () {
|
||||
if (!this.readyState || /loaded|complete/.test(this.readyState)) {
|
||||
item = getItem(doc,obj);
|
||||
if (item.funs.length > 0) {
|
||||
item.ready = 1;
|
||||
for (var fi; fi = item.funs.pop();) {
|
||||
fi();
|
||||
}
|
||||
doc.write('<' + obj.tag + ' ' + html.join(' ') + ' ></'+obj.tag+'>');
|
||||
return;
|
||||
}
|
||||
if (obj.id && doc.getElementById(obj.id)) {
|
||||
return;
|
||||
}
|
||||
var element = doc.createElement(obj.tag);
|
||||
delete obj.tag;
|
||||
for (var p in obj) {
|
||||
element.setAttribute(p, obj[p]);
|
||||
}
|
||||
element.onload = element.onreadystatechange = function () {
|
||||
if (!this.readyState || /loaded|complete/.test(this.readyState)) {
|
||||
item = getItem(doc,obj);
|
||||
if (item.funs.length > 0) {
|
||||
item.ready = 1;
|
||||
for (var fi; fi = item.funs.pop();) {
|
||||
fi();
|
||||
}
|
||||
element.onload = element.onreadystatechange = null;
|
||||
}
|
||||
};
|
||||
element.onerror = function(){
|
||||
throw Error('The load '+(obj.href||obj.src)+' fails,check the url')
|
||||
};
|
||||
doc.getElementsByTagName("head")[0].appendChild(element);
|
||||
}
|
||||
}()
|
||||
element.onload = element.onreadystatechange = null;
|
||||
}
|
||||
};
|
||||
element.onerror = function(){
|
||||
throw Error('The load '+(obj.href||obj.src)+' fails,check the url');
|
||||
};
|
||||
doc.getElementsByTagName("head")[0].appendChild(element);
|
||||
}
|
||||
}()
|
||||
};
|
||||
utils.each(['String', 'Function', 'Array', 'Number', 'RegExp', 'Object','Boolean'], function (v) {
|
||||
utils['is' + v] = function (obj) {
|
||||
@@ -312,10 +310,10 @@
|
||||
utils.domReady(function(){
|
||||
var contents;
|
||||
if(document.querySelectorAll){
|
||||
contents = document.querySelectorAll(selector)
|
||||
contents = document.querySelectorAll(selector);
|
||||
}else{
|
||||
if(/^#/.test(selector)){
|
||||
contents = [document.getElementById(selector.replace(/^#/,''))]
|
||||
contents = [document.getElementById(selector.replace(/^#/,''))];
|
||||
}else if(/^\./.test(selector)){
|
||||
var contents = [];
|
||||
utils.each(document.getElementsByTagName('*'),function(node){
|
||||
@@ -400,7 +398,6 @@ UE.parse.register('table', function (utils) {
|
||||
selector + ' td p{margin:0;padding:0;}',
|
||||
document);
|
||||
//填充空的单元格
|
||||
|
||||
utils.each('td th caption'.split(' '), function (tag) {
|
||||
var cells = root.getElementsByTagName(tag);
|
||||
cells.length && utils.each(cells, function (node) {
|
||||
@@ -550,18 +547,13 @@ UE.parse.register('charts',function( utils ){
|
||||
}
|
||||
|
||||
if ( sources = parseSources() ) {
|
||||
|
||||
loadResources();
|
||||
|
||||
}
|
||||
|
||||
|
||||
function parseSources () {
|
||||
|
||||
if ( !containers ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return extractChartData( containers );
|
||||
|
||||
}
|
||||
@@ -570,22 +562,14 @@ UE.parse.register('charts',function( utils ){
|
||||
* 提取数据
|
||||
*/
|
||||
function extractChartData ( rootNode ) {
|
||||
|
||||
var data = [],
|
||||
tables = rootNode.getElementsByTagName( "table" );
|
||||
|
||||
for ( var i = 0, tableNode; tableNode = tables[ i ]; i++ ) {
|
||||
|
||||
if ( tableNode.getAttribute( "data-chart" ) !== null ) {
|
||||
|
||||
data.push( formatData( tableNode ) );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return data.length ? data : null;
|
||||
|
||||
}
|
||||
|
||||
function formatData ( tableNode ) {
|
||||
@@ -596,130 +580,90 @@ UE.parse.register('charts',function( utils ){
|
||||
|
||||
//提取table数据
|
||||
for ( var i = 0, row; row = tableNode.rows[ i ]; i++ ) {
|
||||
|
||||
var rowData = [];
|
||||
|
||||
for ( var j = 0, cell; cell = row.cells[ j ]; j++ ) {
|
||||
|
||||
var value = ( cell.innerText || cell.textContent || '' );
|
||||
rowData.push( cell.tagName == 'TH' ? value:(value | 0) );
|
||||
|
||||
}
|
||||
|
||||
data.push( rowData );
|
||||
|
||||
}
|
||||
|
||||
//解析元信息
|
||||
meta = meta.split( ";" );
|
||||
for ( var i = 0, metaData; metaData = meta[ i ]; i++ ) {
|
||||
|
||||
metaData = metaData.split( ":" );
|
||||
metaConfig[ metaData[ 0 ] ] = metaData[ 1 ];
|
||||
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
table: tableNode,
|
||||
meta: metaConfig,
|
||||
data: data
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
//加载资源
|
||||
function loadResources () {
|
||||
|
||||
// loadJQuery();
|
||||
loadHighcharts();
|
||||
|
||||
}
|
||||
|
||||
// function loadJQuery () {
|
||||
//
|
||||
// //不存在jquery, 则加载jquery
|
||||
// if ( !window.jQuery ) {
|
||||
//
|
||||
// utils.loadFile(document,{
|
||||
// src : resourceRoot + "/third-party/jquery.min.js",
|
||||
// tag : "script",
|
||||
// type : "text/javascript",
|
||||
// defer : "defer"
|
||||
// },function(){
|
||||
//
|
||||
// loadHighcharts();
|
||||
//
|
||||
// });
|
||||
//
|
||||
// } else {
|
||||
//
|
||||
// loadHighcharts();
|
||||
//
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
function loadHighcharts () {
|
||||
|
||||
//不存在Highcharts, 则加载Highcharts
|
||||
if ( !window.Highcharts ) {
|
||||
|
||||
utils.loadFile(document,{
|
||||
src : resourceRoot + "/third-party/highcharts/highcharts.js",
|
||||
tag : "script",
|
||||
type : "text/javascript",
|
||||
defer : "defer"
|
||||
},function(){
|
||||
|
||||
loadTypeConfig();
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
loadTypeConfig();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//加载图表差异化配置文件
|
||||
function loadTypeConfig () {
|
||||
|
||||
utils.loadFile(document,{
|
||||
src : resourceRoot + "/dialogs/charts/chart.config.js",
|
||||
tag : "script",
|
||||
type : "text/javascript",
|
||||
defer : "defer"
|
||||
},function(){
|
||||
|
||||
render();
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//渲染图表
|
||||
function render () {
|
||||
|
||||
var config = null,
|
||||
chartConfig = null,
|
||||
container = null;
|
||||
|
||||
for ( var i = 0, len = sources.length; i < len; i++ ) {
|
||||
|
||||
config = sources[ i ];
|
||||
|
||||
chartConfig = analysisConfig( config );
|
||||
|
||||
container = createContainer( config.table );
|
||||
|
||||
renderChart( container, typeConfig[ config.meta.chartType ], chartConfig );
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -729,10 +673,7 @@ UE.parse.register('charts',function( utils ){
|
||||
* @param config 图表通用配置
|
||||
* */
|
||||
function renderChart ( container, typeConfig, config ) {
|
||||
|
||||
|
||||
$( container ).highcharts( $.extend( {}, typeConfig, {
|
||||
|
||||
credits: {
|
||||
enabled: false
|
||||
},
|
||||
@@ -774,9 +715,7 @@ UE.parse.register('charts',function( utils ){
|
||||
borderWidth: 1
|
||||
},
|
||||
series: config.series
|
||||
|
||||
} ));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -808,21 +747,14 @@ UE.parse.register('charts',function( utils ){
|
||||
if ( meta.dataFormat != "1" ) {
|
||||
|
||||
for ( var i = 0, len = data.length; i < len ; i++ ) {
|
||||
|
||||
for ( var j = 0, jlen = data[ i ].length; j < jlen; j++ ) {
|
||||
|
||||
if ( !result[ j ] ) {
|
||||
result[ j ] = [];
|
||||
}
|
||||
|
||||
result[ j ][ i ] = data[ i ][ j ];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
data = result;
|
||||
|
||||
}
|
||||
|
||||
result = {};
|
||||
@@ -850,11 +782,8 @@ UE.parse.register('charts',function( utils ){
|
||||
} else {
|
||||
|
||||
var curData = [];
|
||||
|
||||
for ( var i = 1, len = data[ 0 ].length; i < len; i++ ) {
|
||||
|
||||
curData.push( [ data[ 0 ][ i ], data[ 1 ][ i ] | 0 ] );
|
||||
|
||||
}
|
||||
|
||||
//饼图
|
||||
@@ -867,11 +796,8 @@ UE.parse.register('charts',function( utils ){
|
||||
result.series = series;
|
||||
result.title = meta.title;
|
||||
result.suffix = meta.suffix;
|
||||
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
@@ -985,45 +911,34 @@ UE.parse.register('list',function(utils){
|
||||
|
||||
|
||||
});
|
||||
UE.parse.register('vedio',function(utils){
|
||||
UE.parse.register('video',function(utils){
|
||||
var video = this.root.getElementsByTagName('video'),
|
||||
audio = this.root.getElementsByTagName('audio');
|
||||
|
||||
document.createElement('video');document.createElement('audio');
|
||||
if(video.length || audio.length){
|
||||
// var sourcePath = utils.removeLastbs(this.rootPath),
|
||||
// jsurl = sourcePath + '/third-party/video-js/video.js',
|
||||
// cssurl = sourcePath + '/third-party/video-js/video-js.min.css',
|
||||
// swfUrl = sourcePath + '/third-party/video-js/video-js.swf';
|
||||
//
|
||||
// if(window.videojs) {
|
||||
// videojs.autoSetup();
|
||||
// } else {
|
||||
// utils.loadFile(document,{
|
||||
// id : "video_css",
|
||||
// tag : "link",
|
||||
// rel : "stylesheet",
|
||||
// type : "text/css",
|
||||
// href : cssurl
|
||||
// });
|
||||
// utils.loadFile(document,{
|
||||
// id : "video_js",
|
||||
// src : jsurl,
|
||||
// tag : "script",
|
||||
// type : "text/javascript"
|
||||
// },function(){
|
||||
// videojs.options.flash.swf = swfUrl;
|
||||
// videojs.autoSetup();
|
||||
// });
|
||||
// }
|
||||
var ctxStatic = utils.removeLastbs(this.ctxStatic);
|
||||
if(video && video.length || audio && audio.length){
|
||||
var ctxStatic = utils.removeLastbs(this.rootPath) + '/../..';
|
||||
utils.loadFile(document,{
|
||||
id : "ckplayer_js",
|
||||
src : ctxStatic + "/ckplayer/6.7/ckplayer.js",
|
||||
tag : "script",
|
||||
type : "text/javascript"
|
||||
id : "ckplayer_css", tag : "link", rel : "stylesheet", type : "text/css",
|
||||
href : ctxStatic + "/ckplayer/css/ckplayer.css",
|
||||
});
|
||||
utils.loadFile(document,{
|
||||
id : "ckplayer_js", tag : "script", type : "text/javascript",
|
||||
src : ctxStatic + "/ckplayer/js/ckplayer.min.js"
|
||||
},function(){
|
||||
CKobject.init(ctxStatic + "/ckplayer/6.7/");
|
||||
var ckplayerInit = function(idx) {
|
||||
var $this = $(this), src = $this.attr('src');
|
||||
$this.attr('id', 'video_element'+idx);
|
||||
if ($('#video_container'+idx).length <= 0){
|
||||
$('#video_element'+idx).before('<div id="video_container'+idx+'" style="width:'
|
||||
+$this.attr('width')+'px;height:'+$this.attr('height')
|
||||
+'px;display:inline-block"></div>').remove();
|
||||
}
|
||||
new ckplayer({
|
||||
container: '#video_container'+idx, video: src,
|
||||
menu: [{ title:'JeeSite', link:'https://jeesite.com' }]
|
||||
})
|
||||
}
|
||||
$.each(video, ckplayerInit);
|
||||
$.each(audio, ckplayerInit);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||