11
3rd-Party.txt
Normal file
@ -0,0 +1,11 @@
|
||||
This plugin uses code from the following 3rd party projects.
|
||||
|
||||
1. jQuery - Query is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. (http://jquery.com/)
|
||||
|
||||
License: MIT License
|
||||
License File: jQuery.license
|
||||
|
||||
2. CORS Anywhere - CORS Anywhere is a NodeJS proxy which adds CORS headers to the proxied request.
|
||||
|
||||
License: MIT License
|
||||
License File: CORSAnywhere.license
|
||||
201
LICENSE
Normal file
@ -0,0 +1,201 @@
|
||||
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.
|
||||
17
README.md
@ -1,4 +1,19 @@
|
||||
## Overview
|
||||
# Zoom plugin
|
||||
|
||||
The Zoom plugin allows users to schedule meetings and make calls.
|
||||
|
||||
It is compatible with [self-hosted](https://github.com/ONLYOFFICE/DocumentServer) version of ONLYOFFICE editors. It can be added to ONLYOFFICE instances manually.
|
||||
|
||||
## How to use
|
||||
|
||||
1. Go to the plugins tab and click on Zoom.
|
||||
2. Add your meeting topic and choose Start a meeting or Schedule a meeting.
|
||||
|
||||
## How to install
|
||||
|
||||
Detailed instructions can be found in [ONLYOFFICE API documentation](https://api.onlyoffice.com/plugin/installation).
|
||||
|
||||
## Configuration
|
||||
|
||||
1. Create a JWT application at https://marketplace.zoom.us/develop/create. Fill the all necessary fields and activate the app.
|
||||
2. Copy API Key, API Secret and JWT Token from your app credentials and paste it to specified fields in plugin, click Save.
|
||||
|
||||
122
config.json
Normal file
@ -0,0 +1,122 @@
|
||||
{
|
||||
"name": "Zoom",
|
||||
"nameLocale": {
|
||||
"ru": "Zoom",
|
||||
"fr": "Zoom",
|
||||
"es": "Zoom",
|
||||
"de": "Zoom"
|
||||
},
|
||||
"guid": "asc.{3f15a9bc-51d3-4b59-b32f-75cfe2f07f54}",
|
||||
"version": "1.0.0",
|
||||
|
||||
"variations": [
|
||||
{
|
||||
"description": "Zoom",
|
||||
"descriptionLocale": {
|
||||
"ru": "Zoom",
|
||||
"fr": "Zoom",
|
||||
"es": "Zoom",
|
||||
"de": "Zoom"
|
||||
},
|
||||
"url": "index.html",
|
||||
|
||||
"icons": [ "resources/img/icon.png", "resources/img/icon@2x.png" ],
|
||||
"icons2": [
|
||||
{
|
||||
"style" : "light",
|
||||
|
||||
"100%": {
|
||||
"normal": "resources/light/icon.png"
|
||||
},
|
||||
"125%": {
|
||||
"normal": "resources/light/icon@1.25x.png"
|
||||
},
|
||||
"150%": {
|
||||
"normal": "resources/light/icon@1.5x.png"
|
||||
},
|
||||
"175%": {
|
||||
"normal": "resources/light/icon@1.75x.png"
|
||||
},
|
||||
"200%": {
|
||||
"normal": "resources/light/icon@2x.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"style" : "dark",
|
||||
|
||||
"100%": {
|
||||
"normal": "resources/dark/icon.png"
|
||||
},
|
||||
"125%": {
|
||||
"normal": "resources/dark/icon@1.25x.png"
|
||||
},
|
||||
"150%": {
|
||||
"normal": "resources/dark/icon@1.5x.png"
|
||||
},
|
||||
"175%": {
|
||||
"normal": "resources/dark/icon@1.75x.png"
|
||||
},
|
||||
"200%": {
|
||||
"normal": "resources/dark/icon@2x.png"
|
||||
}
|
||||
}
|
||||
],
|
||||
"isViewer": false,
|
||||
"EditorsSupport": [ "word", "slide", "cell" ],
|
||||
|
||||
"isVisual": true,
|
||||
"isModal": false,
|
||||
"isInsideMode": true,
|
||||
|
||||
"initDataType": "none",
|
||||
"initData": "",
|
||||
|
||||
"isUpdateOleOnResize": false,
|
||||
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Close",
|
||||
"primary": true,
|
||||
"textLocale": {
|
||||
"ru": "Закрыть",
|
||||
"fr": "Fermer",
|
||||
"es": "Cerrar",
|
||||
"de": "Schließen"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "About",
|
||||
"descriptionLocale": {
|
||||
"ru": "Справка",
|
||||
"fr": "À propos",
|
||||
"es": "Sobre programa",
|
||||
"de": "Über"
|
||||
},
|
||||
"url": "index_about.html",
|
||||
|
||||
"icons": [ "resources/img/icon.png", "resources/img/icon@2x.png", "resources/img/icon2.png", "resources/img/icon2@2x.png" ],
|
||||
"isViewer": false,
|
||||
"EditorsSupport": [ "word", "slide", "cell" ],
|
||||
|
||||
"isVisual": true,
|
||||
"isModal": true,
|
||||
"isInsideMode": false,
|
||||
|
||||
"initDataType": "none",
|
||||
"initData": "",
|
||||
|
||||
"isUpdateOleOnResize": false,
|
||||
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Ok",
|
||||
"primary": true
|
||||
}
|
||||
],
|
||||
|
||||
"size": [ 392, 147 ]
|
||||
}
|
||||
]
|
||||
}
|
||||
726
index.html
Normal file
@ -0,0 +1,726 @@
|
||||
<!--
|
||||
(c) Copyright Ascensio System SIA 2020
|
||||
|
||||
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.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Zoom</title>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="vendor/select2-4.0.6-rc.1/dist/css/select2.css" />
|
||||
<script src="vendor/select2-4.0.6-rc.1/dist/js/select2.js"></script>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js"></script>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js"></script>
|
||||
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
|
||||
<script src="scripts/zoom.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
min-height: 100% !important;
|
||||
height: 100%;
|
||||
overflow-y: hidden;
|
||||
overflow-x: hidden;
|
||||
font-family: Arial;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.select {
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.settings_group {
|
||||
display: none
|
||||
}
|
||||
|
||||
.cursor_pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.legend {
|
||||
display: flex;
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
float: right;
|
||||
align-self: center;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.input_container {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
margin-top: 1px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.radiobox {
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.display-none {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#flex-loader-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 150px;
|
||||
height: 50px;
|
||||
border: none;
|
||||
background-image: none;
|
||||
background-color: rgba(68, 68, 68, 0.95);
|
||||
color: #f1f1f1;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.asc-plugin-loader .asc-loader-image {
|
||||
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOCAyOCI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgcj0iMTAuMjUiIHN0cm9rZS1kYXNoYXJyYXk9IjE2MCUsIDQwJSIgLz48L3N2Zz4=) !important;
|
||||
}
|
||||
|
||||
i {
|
||||
border: solid black;
|
||||
border-width: 0 1px 1px 0;
|
||||
display: inline-block;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.down {
|
||||
transform: rotate(45deg);
|
||||
-webkit-transform: rotate(45deg);
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.up {
|
||||
transform: rotate(-135deg);
|
||||
-webkit-transform: rotate(-135deg);
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.reconf-label,
|
||||
.switch-label,
|
||||
.label-settings {
|
||||
border-bottom: 1px dashed #444444;
|
||||
}
|
||||
|
||||
.error_border {
|
||||
border: 1px solid #D9534F !important;
|
||||
}
|
||||
|
||||
.daterangepicker .drp-calendar.left {
|
||||
padding: 8px 4px 8px 4px !important;
|
||||
}
|
||||
|
||||
#body > div.daterangepicker.ltr.single.opensright.show-calendar {
|
||||
color: #333 !important;
|
||||
}
|
||||
.noselect {
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
||||
-khtml-user-select: none; /* Konqueror */
|
||||
-moz-user-select: none; /* Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none; /* Non-prefixed version, currently
|
||||
not supported by any browser */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body id="body" style="width: 100%;height: 100%; margin: 0; !important;">
|
||||
<div id="loader-container" class="asc-plugin-loader display-none">
|
||||
<div id="flex-loader-container">
|
||||
<div>
|
||||
<div class="asc-loader-image">
|
||||
<div class="asc-loader-title"></div>
|
||||
</div>
|
||||
<div class="asc-loader-title"> Loading... </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="iframe_join" class="display-none" style="width:100%; height:100%;margin:0;padding:0;"></div>
|
||||
<div id="iframe_meeting" class="display-none" style="width:100%; height:100%;margin:0;padding:0;"></div>
|
||||
<div id="create-meeting-container" class="display-none" style="width:100%; height:100%; margin:0;padding:0; display:flex; flex-direction:column; justify-content: space-between; position: relative;">
|
||||
<div>
|
||||
<div id="topic">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Topic</label>
|
||||
</div>
|
||||
<input type="text" id="topic-value" class="form-control" placeholder="Enter topic here" style="width: calc(100% - 24px); margin: 0 12px 0 12px; text-align: left;"> </div>
|
||||
<div style="margin:16px 12px 0px 12px;">
|
||||
<button id="start-meeting" onсlick="" class="btn-text-default" style="width:100%; height: 30px;">Start a meeting</button>
|
||||
</div>
|
||||
<div style="margin:16px 12px 0px 12px;">
|
||||
<button id="schedule-meeting" onсlick="" class="btn-text-default" style="width:100%; height: 30px;">Schedule a meeting</button>
|
||||
</div>
|
||||
<div id="scheduler-container" style="display:none">
|
||||
<div id="date">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Date</label>
|
||||
</div> <span class="select">
|
||||
<input id="date-value" style="width:calc(100% - 24px);" class="form-control" type="text" name="date"/>
|
||||
</span> </div>
|
||||
<div id="time">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Time</label>
|
||||
</div> <span class="select">
|
||||
<select id="time-hour" class="select_example group" data-id="time-hour">
|
||||
</select>
|
||||
</span> <span class="select">
|
||||
<select id="time-am-pm"class="select_example group" style="float:right; margin-right: 12px;" data-id="time-am-pm">
|
||||
<option value="am">
|
||||
AM
|
||||
</option>
|
||||
<option value="pm">
|
||||
PM
|
||||
</option>
|
||||
</select>
|
||||
</span> </div>
|
||||
<div id="duration">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Duration</label>
|
||||
</div>
|
||||
<div style="display:flex; flex-direction: row; justify-content: space-between;"> <span class="select" style="display:flex; flex-direction: column; width: calc(50% - 20px);">
|
||||
<div>
|
||||
<select id="duration-hour" class="select_example duration" data-id="duration-hour">
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</span> <span class="select" style="display:flex; flex-direction: column; margin-right: 12px; width: calc(50% - 20px);">
|
||||
<div>
|
||||
<select id="duration-min" class="select_example duration" style="" data-id="duration-min">
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</span> </div>
|
||||
</div>
|
||||
<div style="margin:16px 12px 0px 12px;">
|
||||
<button id="create_meeting" onсlick="" class="btn-text-default" style="width:100%; height: 30px;">Create a meeting</button>
|
||||
</div>
|
||||
<div id="settings_wrapper" style="margin-top: 16px;">
|
||||
<div class="legend">
|
||||
<div id="adv_settings" class="button">
|
||||
<label class="label-settings" class="header" style="margin-left: 12px; cursor: pointer;">Advanced settings</label><i class="arrow down"></i></div>
|
||||
</div>
|
||||
<div class="settings_group">
|
||||
<div id="meeting_id" style="display: flex; flex-direction: column;">
|
||||
<div style="margin: 16px 0 8px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Meeting ID</label>
|
||||
</div>
|
||||
<div class="input_container" style="margin-bottom: 8px;">
|
||||
<label class="radiobox">
|
||||
<input type="radio" checked="checked" value="false" name="meeting-id" id="auto-meet-id" data-id="auto-meet-id-zoom" class="button__radiobox checked"><span>Generate Automatically</span></label>
|
||||
</div>
|
||||
<div class="input_container">
|
||||
<label class="radiobox">
|
||||
<input type="radio" name="meeting-id" value="true" id="personal-meet-id" data-id="personal-meet-id-zoom" class="button__radiobox checked"><span>Personal Meeting ID XXX XXX XXXX</span></label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="password_container">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Password</label>
|
||||
</div>
|
||||
<input type="text" id="password" class="form-control" placeholder="Enter meeting password here" style="width: calc(100% - 24px); margin: 0 12px 0 12px; text-align: left;"> </div>
|
||||
<div id="waiting_room" class="input_container" style="margin-top: 16px;">
|
||||
<input type="checkbox" style="margin-left: 12px;" class="form-control" checked="checked" id="is-waiting-room" data-id="auto-meet-id-zoom">
|
||||
<label class="checkbox">Waiting Room</label>
|
||||
</div>
|
||||
<div id="timezone_container">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Timezone</label>
|
||||
</div> <span class="select">
|
||||
<select id="timezone" class="select_example" data-id="timezone-zoom">
|
||||
<option value="Pacific/Midway">
|
||||
(GMT-11:00) Midway Island, Samoa
|
||||
</option>
|
||||
<option value="Pacific/Pago_Pago">
|
||||
(GMT-11:00) Pago Pago
|
||||
</option>
|
||||
<option value="Pacific/Honolulu">
|
||||
(GMT-10:00) Hawaii
|
||||
</option>
|
||||
<option value="America/Anchorage">
|
||||
(GMT-8:00) Alaska
|
||||
</option>
|
||||
<option value="America/Vancouver">
|
||||
(GMT-7:00) Vancouver
|
||||
</option>
|
||||
<option value="America/Los_Angeles">
|
||||
(GMT-7:00) Pacific Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Tijuana">
|
||||
(GMT-7:00) Tijuana
|
||||
</option>
|
||||
<option value="America/Phoenix">
|
||||
(GMT-7:00) Arizona
|
||||
</option>
|
||||
<option value="America/Edmonton">
|
||||
(GMT-6:00) Edmonton
|
||||
</option>
|
||||
<option value="America/Denver">
|
||||
(GMT-6:00) Mountain Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Mazatlan">
|
||||
(GMT-6:00) Mazatlan
|
||||
</option>
|
||||
<option value="America/Regina">
|
||||
(GMT-6:00) Saskatchewan
|
||||
</option>
|
||||
<option value="America/Guatemala">
|
||||
(GMT-6:00) Guatemala
|
||||
</option>
|
||||
<option value="America/El_Salvador">
|
||||
(GMT-6:00) El Salvador
|
||||
</option>
|
||||
<option value="America/Managua">
|
||||
(GMT-6:00) Managua
|
||||
</option>
|
||||
<option value="America/Costa_Rica">
|
||||
(GMT-6:00) Costa Rica
|
||||
</option>
|
||||
<option value="America/Tegucigalpa">
|
||||
(GMT-6:00) Tegucigalpa
|
||||
</option>
|
||||
<option value="America/Chicago">
|
||||
(GMT-5:00) Central Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Winnipeg">
|
||||
(GMT-5:00) Winnipeg
|
||||
</option>
|
||||
<option value="America/Mexico_City">
|
||||
(GMT-5:00) Mexico City
|
||||
</option>
|
||||
<option value="America/Panama">
|
||||
(GMT-5:00) Panama
|
||||
</option>
|
||||
<option value="America/Bogota">
|
||||
(GMT-5:00) Bogota
|
||||
</option>
|
||||
<option value="America/Lima">
|
||||
(GMT-5:00) Lima
|
||||
</option>
|
||||
<option value="America/Montreal">
|
||||
(GMT-4:00) Montreal
|
||||
</option>
|
||||
<option value="America/New_York">
|
||||
(GMT-4:00) Eastern Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Indianapolis">
|
||||
(GMT-4:00) Indiana (East)
|
||||
</option>
|
||||
<option value="America/Puerto_Rico">
|
||||
(GMT-4:00) Puerto Rico
|
||||
</option>
|
||||
<option value="America/Caracas">
|
||||
(GMT-4:00) Caracas
|
||||
</option>
|
||||
<option value="America/Santiago">
|
||||
(GMT-4:00) Santiago
|
||||
</option>
|
||||
<option value="America/Halifax">
|
||||
(GMT-3:00) Halifax
|
||||
</option>
|
||||
<option value="America/Montevideo">
|
||||
(GMT-3:00) Montevideo
|
||||
</option>
|
||||
<option value="America/Araguaina">
|
||||
(GMT-3:00) Brasilia
|
||||
</option>
|
||||
<option value="America/Argentina/Buenos_Aires">
|
||||
(GMT-3:00) Buenos Aires, Georgetown
|
||||
</option>
|
||||
<option value="America/Sao_Paulo">
|
||||
(GMT-3:00) Sao Paulo
|
||||
</option>
|
||||
<option value="Canada/Atlantic">
|
||||
(GMT-3:00) Atlantic Time (Canada)
|
||||
</option>
|
||||
<option value="America/St_Johns">
|
||||
(GMT-2:30) Newfoundland and Labrador
|
||||
</option>
|
||||
<option value="America/Godthab">
|
||||
(GMT-2:00) Greenland
|
||||
</option>
|
||||
<option value="Atlantic/Cape_Verde">
|
||||
(GMT-1:00) Cape Verde Islands
|
||||
</option>
|
||||
<option value="Atlantic/Azores">
|
||||
(GMT+0:00) Azores
|
||||
</option>
|
||||
<option value="UTC">
|
||||
(GMT+0:00) Universal Time UTC
|
||||
</option>
|
||||
<option value="Etc/Greenwich">
|
||||
(GMT+0:00) Greenwich Mean Time
|
||||
</option>
|
||||
<option value="Atlantic/Reykjavik">
|
||||
(GMT+0:00) Reykjavik
|
||||
</option>
|
||||
<option value="Africa/Casablanca">
|
||||
(GMT+0:00) Casablanca
|
||||
</option>
|
||||
<option value="Africa/Nouakchott">
|
||||
(GMT+0:00) Nouakchott
|
||||
</option>
|
||||
<option value="Europe/Dublin">
|
||||
(GMT+1:00) Dublin
|
||||
</option>
|
||||
<option value="Europe/London">
|
||||
(GMT+1:00) London
|
||||
</option>
|
||||
<option value="Europe/Lisbon">
|
||||
(GMT+1:00) Lisbon
|
||||
</option>
|
||||
<option value="Africa/Bangui">
|
||||
(GMT+1:00) West Central Africa
|
||||
</option>
|
||||
<option value="Africa/Algiers">
|
||||
(GMT+1:00) Algiers
|
||||
</option>
|
||||
<option value="Africa/Tunis">
|
||||
(GMT+1:00) Tunis
|
||||
</option>
|
||||
<option value="Europe/Belgrade">
|
||||
(GMT+2:00) Belgrade, Bratislava, Ljubljana
|
||||
</option>
|
||||
<option value="CET">
|
||||
(GMT+2:00) Sarajevo, Skopje, Zagreb
|
||||
</option>
|
||||
<option value="Europe/Oslo">
|
||||
(GMT+2:00) Oslo
|
||||
</option>
|
||||
<option value="Europe/Copenhagen">
|
||||
(GMT+2:00) Copenhagen
|
||||
</option>
|
||||
<option value="Europe/Brussels">
|
||||
(GMT+2:00) Brussels
|
||||
</option>
|
||||
<option value="Europe/Berlin">
|
||||
(GMT+2:00) Amsterdam, Berlin, Rome, Stockholm, Vienna
|
||||
</option>
|
||||
<option value="Europe/Amsterdam">
|
||||
(GMT+2:00) Amsterdam
|
||||
</option>
|
||||
<option value="Europe/Rome">
|
||||
(GMT+2:00) Rome
|
||||
</option>
|
||||
<option value="Europe/Stockholm">
|
||||
(GMT+2:00) Stockholm
|
||||
</option>
|
||||
<option value="Europe/Vienna">
|
||||
(GMT+2:00) Vienna
|
||||
</option>
|
||||
<option value="Europe/Luxembourg">
|
||||
(GMT+2:00) Luxembourg
|
||||
</option>
|
||||
<option value="Europe/Paris">
|
||||
(GMT+2:00) Paris
|
||||
</option>
|
||||
<option value="Europe/Zurich">
|
||||
(GMT+2:00) GMT+2:00)Zurich
|
||||
</option>
|
||||
<option value="Europe/Madrid">
|
||||
(GMT+2:00) Madrid
|
||||
</option>
|
||||
<option value="Africa/Harare">
|
||||
(GMT+2:00) Harare, Pretoria
|
||||
</option>
|
||||
<option value="Europe/Warsaw">
|
||||
(GMT+2:00) Warsaw
|
||||
</option>
|
||||
<option value="Europe/Prague">
|
||||
(GMT+2:00) Prague Bratislava
|
||||
</option>
|
||||
<option value="Europe/Budapest">
|
||||
(GMT+2:00) Budapest
|
||||
</option>
|
||||
<option value="Africa/Tripoli">
|
||||
(GMT+2:00) Tripoli
|
||||
</option>
|
||||
<option value="Africa/Cairo">
|
||||
(GMT+2:00) Cairo
|
||||
</option>
|
||||
<option value="Africa/Johannesburg">
|
||||
(GMT+2:00) Johannesburg
|
||||
</option>
|
||||
<option value="Africa/Khartoum">
|
||||
(GMT+2:00) Khartoum
|
||||
</option>
|
||||
<option value="Africa/Nairobi">
|
||||
(GMT+3:00) Nairobi
|
||||
</option>
|
||||
<option value="Europe/Helsinki">
|
||||
(GMT+3:00) Helsinki
|
||||
</option>
|
||||
<option value="Europe/Sofia">
|
||||
(GMT+3:00) Sofia
|
||||
</option>
|
||||
<option value="Europe/Istanbul">
|
||||
(GMT+3:00) Istanbul
|
||||
</option>
|
||||
<option value="Europe/Athens">
|
||||
(GMT+3:00) Athens
|
||||
</option>
|
||||
<option value="Europe/Bucharest">
|
||||
(GMT+3:00) Bucharest
|
||||
</option>
|
||||
<option value="Europe/Kiev">
|
||||
(GMT+3:00) Kiev
|
||||
</option>
|
||||
<option value="Asia/Nicosia">
|
||||
(GMT+3:00) Nicosia
|
||||
</option>
|
||||
<option value="Asia/Beirut">
|
||||
(GMT+3:00) Beirut
|
||||
</option>
|
||||
<option value="Asia/Damascus">
|
||||
(GMT+3:00) Damascus
|
||||
</option>
|
||||
<option value="Asia/Jerusalem">
|
||||
(GMT+3:00) Jerusalem
|
||||
</option>
|
||||
<option value="Asia/Amman">
|
||||
(GMT+3:00) Amman
|
||||
</option>
|
||||
<option value="Europe/Moscow">
|
||||
(GMT+3:00) Moscow
|
||||
</option>
|
||||
<option value="Asia/Baghdad">
|
||||
(GMT+3:00) Baghdad
|
||||
</option>
|
||||
<option value="Asia/Kuwait">
|
||||
(GMT+3:00) Kuwait
|
||||
</option>
|
||||
<option value="Asia/Riyadh">
|
||||
(GMT+3:00) Riyadh
|
||||
</option>
|
||||
<option value="Asia/Bahrain">
|
||||
(GMT+3:00) Bahrain
|
||||
</option>
|
||||
<option value="Asia/Qatar">
|
||||
(GMT+3:00) Qatar
|
||||
</option>
|
||||
<option value="Asia/Aden">
|
||||
(GMT+3:00) Aden
|
||||
</option>
|
||||
<option value="Africa/Djibouti">
|
||||
(GMT+3:00) Djibouti
|
||||
</option>
|
||||
<option value="Africa/Mogadishu">
|
||||
(GMT+3:00) Mogadishu
|
||||
</option>
|
||||
<option value="Asia/Dubai">
|
||||
(GMT+4:00) Dubai
|
||||
</option>
|
||||
<option value="Asia/Muscat">
|
||||
(GMT+4:00) Muscat
|
||||
</option>
|
||||
<option value="Asia/Baku">
|
||||
(GMT+4:00) Baku, Tbilisi, Yerevan
|
||||
</option>
|
||||
<option value="Asia/Tehran">
|
||||
(GMT+4:30) Tehran
|
||||
</option>
|
||||
<option value="Asia/Kabul">
|
||||
(GMT+4:30) Kabul
|
||||
</option>
|
||||
<option value="Asia/Yekaterinburg">
|
||||
(GMT+5:00) Yekaterinburg
|
||||
</option>
|
||||
<option value="Asia/Tashkent">
|
||||
(GMT+5:00) Islamabad, Karachi, Tashkent
|
||||
</option>
|
||||
<option value="Asia/Calcutta">
|
||||
(GMT+5:30) India
|
||||
</option>
|
||||
<option value="Asia/Kolkata">
|
||||
(GMT+5:30) Mumbai, Kolkata, New Delhi
|
||||
</option>
|
||||
<option value="Asia/Kathmandu">
|
||||
(GMT+5:45) Kathmandu
|
||||
</option>
|
||||
<option value="Asia/Almaty">
|
||||
(GMT+6:00) Almaty
|
||||
</option>
|
||||
<option value="Asia/Dacca">
|
||||
(GMT+6:00) Dacca
|
||||
</option>
|
||||
<option value="Asia/Dhaka">
|
||||
(GMT+6:00) Astana, Dhaka
|
||||
</option>
|
||||
<option value="Asia/Novosibirsk">
|
||||
(GMT+7:00) Novosibirsk
|
||||
</option>
|
||||
<option value="Asia/Krasnoyarsk">
|
||||
(GMT+7:00) Krasnoyarsk
|
||||
</option>
|
||||
<option value="Asia/Bangkok">
|
||||
(GMT+7:00) Bangkok
|
||||
</option>
|
||||
<option value="Asia/Saigon">
|
||||
(GMT+7:00) Vietnam
|
||||
</option>
|
||||
<option value="Asia/Jakarta">
|
||||
(GMT+7:00) Jakarta
|
||||
</option>
|
||||
<option value="Asia/Irkutsk">
|
||||
(GMT+8:00) Irkutsk, Ulaanbaatar
|
||||
</option>
|
||||
<option value="Asia/Shanghai">
|
||||
(GMT+8:00) Beijing, Shanghai
|
||||
</option>
|
||||
<option value="Asia/Hong_Kong">
|
||||
(GMT+8:00) Hong Kong
|
||||
</option>
|
||||
<option value="Asia/Taipei">
|
||||
(GMT+8:00) Taipei
|
||||
</option>
|
||||
<option value="Asia/Kuala_Lumpur">
|
||||
(GMT+8:00) Kuala Lumpur
|
||||
</option>
|
||||
<option value="Asia/Singapore">
|
||||
(GMT+8:00) Singapore
|
||||
</option>
|
||||
<option value="Australia/Perth">
|
||||
(GMT+8:00) Perth
|
||||
</option>
|
||||
<option value="Asia/Yakutsk">
|
||||
(GMT+9:00) Yakutsk
|
||||
</option>
|
||||
<option value="Asia/Seoul">
|
||||
(GMT+9:00) Seoul
|
||||
</option>
|
||||
<option value="Asia/Tokyo">
|
||||
(GMT+9:00) Osaka, Sapporo, Tokyo
|
||||
</option>
|
||||
<option value="Australia/Darwin">
|
||||
(GMT+9:30) Darwin
|
||||
</option>
|
||||
<option value="Australia/Adelaide">
|
||||
(GMT+9:30) Adelaide
|
||||
</option>
|
||||
<option value="Asia/Vladivostok">
|
||||
(GMT+10:00) Vladivostok
|
||||
</option>
|
||||
<option value="Pacific/Port_Moresby">
|
||||
(GMT+10:00) Guam, Port Moresby
|
||||
</option>
|
||||
<option value="Australia/Brisbane">
|
||||
(GMT+10:00) Brisbane
|
||||
</option>
|
||||
<option value="Australia/Sydney">
|
||||
(GMT+10:00) Canberra, Melbourne, Sydney
|
||||
</option>
|
||||
<option value="Australia/Hobart">
|
||||
(GMT+10:00) Hobart
|
||||
</option>
|
||||
<option value="Asia/Magadan">
|
||||
(GMT+11:00) Magadan
|
||||
</option>
|
||||
<option value="SST">
|
||||
(GMT+11:00) Solomon Islands
|
||||
</option>
|
||||
<option value="Pacific/Noumea">
|
||||
(GMT+11:00) New Caledonia
|
||||
</option>
|
||||
<option value="Asia/Kamchatka">
|
||||
(GMT+12:00) Kamchatka
|
||||
</option>
|
||||
<option value="Pacific/Fiji">
|
||||
(GMT+12:00) Fiji Islands, Marshall Islands
|
||||
</option>
|
||||
<option value="Pacific/Auckland">
|
||||
(GMT+12:00) Auckland, Wellington
|
||||
</option>
|
||||
<option value="Pacific/Apia">
|
||||
(GMT+13:00) Independent State of Samoa
|
||||
</option>
|
||||
</select>
|
||||
</span> </div>
|
||||
<div id="reccurr_conference">
|
||||
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Recurring conference</label>
|
||||
</div> <span class="select">
|
||||
<select id="recurring-conf" class="select_example" data-id="recurring-conf-zoom">
|
||||
<option value="never">
|
||||
Never
|
||||
</option>
|
||||
<option value="daily">
|
||||
Daily
|
||||
</option>
|
||||
<option value="weekly">
|
||||
Weekly
|
||||
</option>
|
||||
<option value="monthly">
|
||||
Monthly
|
||||
</option>
|
||||
</select>
|
||||
</span> </div>
|
||||
<div id="screen_demonstration" style="display: none; flex-direction: column;">
|
||||
<div style="margin: 16px 0 8px 0; font-weight: normal !important;">
|
||||
<label style="margin-left:12px;">Screen Demonstration</label>
|
||||
</div>
|
||||
<div class="input_container" style="margin-bottom: 8px;">
|
||||
<label class="radiobox">
|
||||
<input type="radio" checked="checked" name="screen-share" id="screen-share-for-organizer" data-id="screen-share-for-organizer-zoom" class="button__radiobox checked"><span>Organizer only</span></label>
|
||||
</div>
|
||||
<div class="input_container">
|
||||
<label class="radiobox">
|
||||
<input type="radio" name="screen-share" id="screen-share-for-all" data-id="screen-share-for-all-zoom" class="button__radiobox checked"><span>All participants</span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin: 16px 0 16px 0;">
|
||||
<div id="reconf">
|
||||
<label class="reconf-label noselect" style="float: right; margin-right: 12px; cursor:pointer;">Reconfigure</label>
|
||||
</div>
|
||||
<div id="switch">
|
||||
<label class="switch-label noselect" style="margin-left: 12px; cursor:pointer;">Meeting mode</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="configState">
|
||||
<div>
|
||||
<div style="margin:12px;"> <span class="i18n">To use Zoom plugin, register this editor as a JWT app.</span> <a target="_blank" href="https://github.com/ONLYOFFICE/plugin-zoom/tree/develop#configuration" class="link i18n">Learn more here.</a> </div>
|
||||
<div style="margin:12px;"> In the form, enter any application name and description, accept Terms and Conditions and generate a secret. Enter Client ID, Secret ID, JWT token below and save it. </div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; margin: 12px;"> <span>Email</span>
|
||||
<input id="emailField" autocomplete="off" class="form-control" data-id="zoom-email-value" type="text" placeholder="Email" /> </div>
|
||||
<div style="display: flex; flex-direction: column; margin: 12px;"> <span>API Key</span>
|
||||
<input id="apiKeyField" autocomplete="off" class="form-control" data-id="zoom-client-key" type="text" placeholder="API Key" /> </div>
|
||||
<div style="display: flex; flex-direction: column; margin: 12px;"> <span>API Secret</span>
|
||||
<input id="secretKeyField" autocomplete="off" class="form-control" data-id="zoom-secret-key" type="password" placeholder="API Secret" /> </div>
|
||||
<div style="display: flex; flex-direction: column; margin: 12px;"> <span>JWT Token</span>
|
||||
<input id="tokenKeyField" autocomplete="off" class="form-control" data-id="zoom-jwt-token" type="text" placeholder="JWT Token" /> </div>
|
||||
<div id="saveConfigBtn" class="button wide control i18n">
|
||||
<button class="btn-text-default" style="width:calc(100% - 24px); margin: 0 12px 0px 12px; height: 30px;">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
63
index_about.html
Normal file
@ -0,0 +1,63 @@
|
||||
<!--
|
||||
(c) Copyright Ascensio System SIA 2020
|
||||
|
||||
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.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>About</title>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.Asc.plugin.init = function()
|
||||
{
|
||||
this.resizeWindow(400, 130, 400, 130, 400, 130);
|
||||
};
|
||||
window.Asc.plugin.button = function(id)
|
||||
{
|
||||
this.executeCommand("close", "");
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
p, a{
|
||||
font-size: 12px;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: darkgrey;
|
||||
}
|
||||
|
||||
/* visited link */
|
||||
a:visited {
|
||||
color: darkgrey;
|
||||
}
|
||||
|
||||
/* mouse over link */
|
||||
a:hover {
|
||||
color: #8d8d8d;
|
||||
}
|
||||
|
||||
/* selected link */
|
||||
a:active {
|
||||
color: darkgrey;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="padding-left: 20px; padding-right: 20px">
|
||||
<p style="font-size: 15px" id="p1">This plugin use:</p>
|
||||
<p style="font-size: 12px" id="p2"><a href="https://zoom.us/" target="_blank">Zoom</a> video conferencing software</p>
|
||||
<p>Version: 1.0</p>
|
||||
</body>
|
||||
</html>
|
||||
312
index_zoom.html
Normal file
@ -0,0 +1,312 @@
|
||||
<!--
|
||||
(c) Copyright Ascensio System SIA 2020
|
||||
|
||||
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.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<title>Zoom WebSDK</title>
|
||||
<meta charset="utf-8" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="vendor/select2-4.0.6-rc.1/dist/css/select2.css" />
|
||||
<script src="vendor/select2-4.0.6-rc.1/dist/js/select2.js"></script>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.9/css/bootstrap.css" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.9/css/react-select.css" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
|
||||
</head>
|
||||
|
||||
<body id="body">
|
||||
<style>
|
||||
body, html {
|
||||
font-size: 11px !important;
|
||||
min-height: 100% !important;
|
||||
height: 100%;
|
||||
min-width: 100% !important;
|
||||
width: 100%;
|
||||
font-family: "Arial" !important;
|
||||
line-height: normal !important;
|
||||
}
|
||||
|
||||
.sdk-select {
|
||||
height: 34px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#nav-tool {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
#show-test-tool {
|
||||
float:bottom;
|
||||
top: 100px;
|
||||
left: 0;
|
||||
display: block;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
#display_name {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
margin-top: 5%;
|
||||
}
|
||||
|
||||
#websdk-iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 1px;
|
||||
border-color: red;
|
||||
border-style: dashed;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
left: 50%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.btn-text-default {
|
||||
min-height: 22px;
|
||||
height: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40%;
|
||||
margin-top: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
label {
|
||||
font-size: 11px;
|
||||
margin-bottom: 0 !important;
|
||||
color: #f1f1f1;
|
||||
}
|
||||
.form-control {
|
||||
outline:0 !important;
|
||||
}
|
||||
input[type=text]:focus {
|
||||
outline: 0 !important;
|
||||
}
|
||||
.navbar-form {
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
margin-top: 0;
|
||||
padding: 16px 12px !important;
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
.navbar {
|
||||
border: none;
|
||||
}
|
||||
input,
|
||||
input::-webkit-input-placeholder {
|
||||
font-size: 11px;
|
||||
line-height: 3;
|
||||
}
|
||||
.noselect {
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
||||
-khtml-user-select: none; /* Konqueror */
|
||||
-moz-user-select: none; /* Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none; /* Non-prefixed version, currently
|
||||
not supported by any browser */
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="join_container" style="height: 100%;">
|
||||
<nav id="nav-tool" class="navbar navbar-inverse navbar-fixed-top" style="height: 100%;">
|
||||
<div class="container" style="height: 100%;">
|
||||
<div id="navbar" class="websdktest" style="height: 100%;">
|
||||
<form class="navbar-form navbar-right" id="meeting_form" style="height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative;">
|
||||
<div>
|
||||
<div class="form-group">
|
||||
<label>Name</label>
|
||||
<input type="text" name="display_name" id="display_name" data-id="zoom-display-name-id" value="" maxLength="100" placeholder="Name" class="form-control" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Meeting ID</label>
|
||||
<input type="text" name="meeting_number" id="meeting_number" value="" maxLength="200" style="width:150px" placeholder="Meeting Number" class="form-control" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Meeting password</label>
|
||||
<input type="text" name="meeting_pwd" id="meeting_pwd" value="" style="width:150px" maxLength="32" placeholder="Meeting Password" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="text" name="meeting_email" id="meeting_email" value="" data-id="zoom-email-id" style="width:150px" maxLength="32" placeholder="Email option" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Meeting role</label>
|
||||
<select id="meeting_role" class="sdk-select">
|
||||
<option value=0>Attendee</option>
|
||||
<option value=1>Host</option>
|
||||
<option value=5>Assistant</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Meeting region</label>
|
||||
<select id="meeting_china" class="sdk-select">
|
||||
<option value=0>Global</option>
|
||||
<option value=1>China</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Meeting language</label>
|
||||
<select id="meeting_lang" class="sdk-select">
|
||||
<option value="en-US">English</option>
|
||||
<option value="de-DE">German Deutsch</option>
|
||||
<option value="es-ES">Spanish Español</option>
|
||||
<option value="fr-FR">French Français</option>
|
||||
<option value="jp-JP">Japanese 日本語</option>
|
||||
<option value="pt-PT">Portuguese Portuguese</option>
|
||||
<option value="ru-RU">Russian Русский</option>
|
||||
<option value="zh-CN">Chinese 简体中文</option>
|
||||
<option value="zh-TW">Chinese 繁体中文</option>
|
||||
<option value="ko-KO">Korean 한국어</option>
|
||||
<option value="vi-VN">Vietnamese Tiếng Việt</option>
|
||||
<option value="it-IT">Italian italiano</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<input type="hidden" value="" id="copy_link_value" />
|
||||
<div id="button_wrapper" style="display: flex; justify-content: space-between;">
|
||||
<div type="submit" class="btn-text-default" id="join_meeting" onclick="window.joinMeeting('#joinMeeting')">Join</div>
|
||||
<div type="button" link="" onclick="window.copyJoinLink('#copy_join_link')" class="btn-text-default" id="copy_join_link">Copy Direct join link</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: space-between; margin-top: 16px;">
|
||||
<div id="switch" style="z-index: 9999;">
|
||||
<label class="switch-label noselect" style="cursor:pointer; border-bottom: 1px dashed #f1f1f1; z-index: 9999;">Schedule mode</label>
|
||||
</div>
|
||||
<div id="reconf" style="z-index: 9999;">
|
||||
<label class="reconf-label noselect" style="cursor:pointer; border-bottom: 1px dashed #f1f1f1; z-index: 9999;">Reconfigure</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<!--/.navbar-collapse -->
|
||||
</div>
|
||||
</nav>
|
||||
<div id="show-test-tool">
|
||||
<button type="submit" class="btn btn-primary" id="show-test-tool-btn" title="show or hide top test tool">Show</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="iframe_meeting" style="width:100%; height:100%;margin:0;padding:0; display:none;"></div>
|
||||
|
||||
|
||||
<script>
|
||||
document.getElementById('show-test-tool-btn').addEventListener("click", function (e) {
|
||||
var textContent = e.target.textContent;
|
||||
if (textContent === 'Show') {
|
||||
document.getElementById('nav-tool').style.display = 'block';
|
||||
document.getElementById('show-test-tool-btn').textContent = 'Hide';
|
||||
} else {
|
||||
document.getElementById('nav-tool').style.display = 'none';
|
||||
document.getElementById('show-test-tool-btn').textContent = 'Show';
|
||||
}
|
||||
});
|
||||
window.addEventListener('message', function (msg) {
|
||||
if (typeof(msg.data) === "object")
|
||||
{
|
||||
var oTheme;
|
||||
//event for change theme
|
||||
if (msg.data.oTheme) {
|
||||
oTheme = msg.data.oTheme;
|
||||
var rule = ".form-control, .form-control[readonly], .form-control[disabled] { color : " + oTheme["text-normal"] + "; background-color : " + oTheme["background-normal"] + "; border-color : " + oTheme["border-regular-control"] + ";}\n";
|
||||
rule += ".form-control:focus { border-color : " + oTheme["border-control-focus"] + ";}\n";
|
||||
rule += ".form-control[disabled] { color : " + oTheme["text-invers"] + ";}\n";
|
||||
|
||||
rule += ".btn-text-default { background-color : " + oTheme["background-normal"] + "; border-color : " + oTheme["border-regular-control"] + "; color : " + oTheme["text-normal"] + ";}\n";
|
||||
rule += ".btn-text-default:hover { background-color : " + oTheme["highlight-button-hover"] + ";}\n";
|
||||
rule += ".btn-text-default:active { background-color : " + oTheme["highlight-button-pressed"] + " !important;}\n";
|
||||
rule += ".btn-text-default[disabled]:hover,\
|
||||
.btn-text-default.disabled:hover,\
|
||||
.btn-text-default[disabled]:active,\
|
||||
.btn-text-default[disabled].active,\
|
||||
.btn-text-default.disabled:active,\
|
||||
.btn-text-default.disabled.active: {background-color : " + oTheme["background-normal"] + " !important; color : " + oTheme["text-normal"] + ";}\n";
|
||||
|
||||
rule += ".select2-container--default .select2-selection--single { color : " + oTheme["text-normal"] + " !important; background-color : " + oTheme["background-normal"] + " !important;}\n";
|
||||
rule += ".select2-container--default .select2-selection--single .select2-selection__rendered { color : " + oTheme["text-normal"] + " !important;}\n";
|
||||
rule += ".select2-results { background-color : " + oTheme["background-normal"] + ";}\n";
|
||||
rule += ".select2-container--default .select2-results__option--highlighted[aria-selected] { background-color : " + oTheme["border-regular-control"] + " !important;}\n";
|
||||
rule += ".select2-container--default .select2-results__option[aria-selected=true] { color: " + oTheme["text-contrast-background"] + "!important; background-color : " + oTheme["border-regular-control"] + " !important;}\n";
|
||||
rule += ".select2-dropdown, .select2-container--default .select2-selection--single { border-color : " + oTheme["border-regular-control"] + " !important;}\n";
|
||||
rule += ".select2-container--default.select2-container--open .select2-selection--single { border-color : " + oTheme["border-control-focus"] + " !important;}\n";
|
||||
rule += ".select2-container--default.select2-container--focus:not(.select2-container--open) .select2-selection--single { border-color : " + oTheme["border-regular-control"] + " !important;}\n";
|
||||
rule += ".select2-container--default.select2-container--open.select2-container--focus .select2-selection--single { border-color : " + oTheme["border-control-focus"] + " !important;}\n";
|
||||
rule += ".select2-search--dropdown { background-color : " + oTheme["background-normal"] + " !important;}\n";
|
||||
rule += ".select2-container--default .select2-search--dropdown .select2-search__field { color : " + oTheme["text-normal"] + "; background-color : " + oTheme["background-normal"] + "; border-color : " + oTheme["border-regular-control"] + ";}\n";
|
||||
rule += ".select2-container--default.select2-container--disabled .select2-selection--single { background-color : " + oTheme["background-normal"] +";}\n";
|
||||
rule += ".select2-container--default .select2-selection--single .select2-selection__arrow b { border-color : " + oTheme["text-normal"] + " !important" + ";}\n";
|
||||
rule += ".select2-results__option { color : " + oTheme["text-normal"] + " !important" + ";}\n";
|
||||
|
||||
rule += ".ps .ps__rail-y:hover { background-color : " + oTheme["background-toolbar"] + ";}\n";
|
||||
rule += ".ps .ps__rail-y.ps--clicking { background-color : " + oTheme["background-toolbar"] + ";}\n";
|
||||
rule += ".ps__thumb-y { background-color : " + oTheme["background-normal"] + "; border-color:" + oTheme["Border"] + " !important" + ";}\n";
|
||||
rule += ".ps__rail-y:hover > .ps__thumb-y { border-color : " + oTheme["canvas-scroll-thumb-hover"] + "; background-color : " + oTheme["canvas-scroll-thumb-hover"] + " !important" + ";}\n";
|
||||
rule += ".ps .ps__rail-x:hover { background-color : " + oTheme["background-toolbar"] + ";}\n";
|
||||
rule += ".ps .ps__rail-x.ps--clicking { background-color : " + oTheme["background-toolbar"] + ";}\n";
|
||||
rule += ".ps__thumb-x { background-color : " + oTheme["background-normal"] + "; border-color : " + oTheme["Border"] + " !important" + ";}\n";
|
||||
rule += ".ps__rail-x:hover > .ps__thumb-x { border-color : " + oTheme["canvas-scroll-thumb-hover"] + ";}\n";
|
||||
|
||||
rule += "*::-webkit-scrollbar-track { background : " + oTheme["background-normal"] + ";}\n";
|
||||
rule += "*::-webkit-scrollbar-track:hover { background : " + oTheme["background-toolbar-additional"] + ";}\n";
|
||||
rule += "*::-webkit-scrollbar-thumb { background-color : " + oTheme["background-toolbar"] + "; border-color : " + oTheme["border-regular-control"] + ";}\n";
|
||||
rule += "*::-webkit-scrollbar-thumb:hover { background-color : " + oTheme["canvas-scroll-thumb-hover"] + ";}\n";
|
||||
|
||||
$('#nav-tool').css('background-color', oTheme["background-toolbar"]);
|
||||
$("label").css('color', oTheme["text-normal"]);
|
||||
$('.reconf-label, .switch-label, .label-settings').css('border-bottom', '1px dashed ' + oTheme["text-normal"]);
|
||||
var styleTheme = document.createElement('style');
|
||||
styleTheme.type = 'text/css';
|
||||
styleTheme.innerHTML = rule;
|
||||
document.getElementsByTagName('head')[0].appendChild(styleTheme);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/react.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/react-dom.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/redux.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/redux-thunk.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/lodash.min.js"></script>
|
||||
<script src="https://source.zoom.us/zoom-meeting-2.2.0.min.js"></script>
|
||||
<script src="vendor/zoom-sdk/tool.js"></script>
|
||||
<script src="vendor/zoom-sdk/meeting.js"></script>
|
||||
<script src="vendor/zoom-sdk/vconsole.min.js"></script>
|
||||
<script src="vendor/zoom-sdk/index.js"></script>
|
||||
|
||||
<script>
|
||||
$('.sdk-select').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : '100%',
|
||||
});
|
||||
var Ps = new PerfectScrollbar("#meeting_form", {suppressScrollX: true});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
7
licenses/CORSAnywhere.license
Normal file
@ -0,0 +1,7 @@
|
||||
Copyright (C) 2013 - 2016 Rob Wu rob@robwu.nl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
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.
|
||||
20
licenses/jQuery.license
Normal file
@ -0,0 +1,20 @@
|
||||
Copyright (c) 2009 John Resig, http://jquery.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
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.
|
||||
38
meeting.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<title>Zoom WebSDK</title>
|
||||
<meta charset="utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.9/css/bootstrap.css" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.9/css/react-select.css" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta http-equiv="origin-trial" content="">
|
||||
</head>
|
||||
|
||||
<style>
|
||||
.reaction-picker--in-more {
|
||||
left: 0 !important
|
||||
}
|
||||
.reaction-simple-picker__block.reaction-simple-picker__block--reaction.ax-outline[data-tooltip="More"] {
|
||||
fill: #fff;
|
||||
fill-opacity: 0.62;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/react.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/react-dom.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/redux.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/redux-thunk.min.js"></script>
|
||||
<script src="https://source.zoom.us/2.2.0/lib/vendor/lodash.min.js"></script>
|
||||
<script src="https://source.zoom.us/zoom-meeting-2.2.0.min.js"></script>
|
||||
<script src="vendor/zoom-sdk/tool.js"></script>
|
||||
<script src="vendor/zoom-sdk/vconsole.min.js"></script>
|
||||
<script src="vendor/zoom-sdk/meeting.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
BIN
resources/dark/icon.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
resources/dark/icon@1.25x.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
resources/dark/icon@1.5x.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/dark/icon@1.75x.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
resources/dark/icon@2x.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
resources/img/error_icon.png
Normal file
|
After Width: | Height: | Size: 366 B |
BIN
resources/img/faq_arrow_down.png
Normal file
|
After Width: | Height: | Size: 155 B |
BIN
resources/light/icon.png
Normal file
|
After Width: | Height: | Size: 988 B |
BIN
resources/light/icon@1.25x.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
resources/light/icon@1.5x.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
resources/light/icon@1.75x.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
resources/light/icon@2x.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
570
scripts/zoom.js
Normal file
@ -0,0 +1,570 @@
|
||||
/**
|
||||
*
|
||||
* (c) Copyright Ascensio System SIA 2020
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
|
||||
var Ps;
|
||||
(function(window, undefined){
|
||||
var displayNoneClass = "display-none";
|
||||
var isInit = false;
|
||||
var ifr;
|
||||
var time_hour_data = [];
|
||||
var duration_hour_data = [];
|
||||
var duration_min_data = [];
|
||||
var times = ["12:00","12:30","1:00","1:30","2:00","2:30","3:00","3:30","4:00","4:30","5:00","5:30","6:00","6:30","7:00","7:30","8:00","8:30","9:00","9:30","10:00","10:30","11:00","11:30"];
|
||||
var hours = ["0 hour","1 hour","2 hour","3 hour","4 hour","5 hour","6 hour","7 hour","8 hour","9 hour","10 hour","11 hour","12 hour",
|
||||
"13 hour","14 hour","15 hour","16 hour","17 hour","18 hour","19 hour","20 hour","21 hour","22 hour","23 hour","24 hour"];
|
||||
var minutes = ["0 minutes","15 minutes","30 minutes","45 minutes"];
|
||||
var elements = { };
|
||||
var proxyUrl = "https://proxy-zoom.herokuapp.com/"
|
||||
var zoomApiUrl = "https://api.zoom.us/v2/users/";
|
||||
var email = '';
|
||||
var apiKey = '';
|
||||
var secretKey = '';
|
||||
var tokenKey = '';
|
||||
var oTheme;
|
||||
for (var nTime = 0; nTime < times.length; nTime++) {
|
||||
time_hour_data.push({id: times[nTime], text: times[nTime]});
|
||||
}
|
||||
for (var nHour = 0; nHour < hours.length; nHour++) {
|
||||
duration_hour_data.push({id: hours[nHour].split(' hour')[0], text: hours[nHour]});
|
||||
}
|
||||
for (var nMin = 0; nMin < minutes.length; nMin++) {
|
||||
duration_min_data.push({id: minutes[nMin].split(' minutes')[0], text: minutes[nMin]});
|
||||
}
|
||||
|
||||
var jsonData = { };
|
||||
|
||||
window.oncontextmenu = function(e)
|
||||
{
|
||||
if (e.preventDefault)
|
||||
e.preventDefault();
|
||||
if (e.stopPropagation)
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
};
|
||||
|
||||
function showLoader(elements, bShow) {
|
||||
switchClass(elements.loader, displayNoneClass, !bShow);
|
||||
};
|
||||
function switchClass(el, className, add) {
|
||||
if (add) {
|
||||
el.classList.add(className);
|
||||
} else {
|
||||
el.classList.remove(className);
|
||||
}
|
||||
};
|
||||
|
||||
window.Asc.plugin.init = function () {
|
||||
$('#topic-value').val(window.Asc.plugin.info.documentTitle);
|
||||
|
||||
if (!isInit) {
|
||||
document.getElementById("iframe_join").innerHTML = "";
|
||||
ifr = document.createElement("iframe");
|
||||
ifr.position = "fixed";
|
||||
ifr.name = "zoom";
|
||||
ifr.id = "zoom_id";
|
||||
ifr.src = "./index_zoom.html";
|
||||
ifr.style.top = "0px";
|
||||
ifr.style.left = "0px";
|
||||
ifr.style.width = "100%";
|
||||
ifr.style.height = "100%";
|
||||
ifr.setAttribute("frameBorder", "0");
|
||||
document.getElementById("iframe_join").appendChild(ifr);
|
||||
isInit = true;
|
||||
ifr.onload = function() {
|
||||
}
|
||||
}
|
||||
};
|
||||
window.Asc.plugin.onThemeChanged = function(theme)
|
||||
{
|
||||
window.Asc.plugin.onThemeChangedBase(theme);
|
||||
oTheme = theme;
|
||||
|
||||
var rule = ".select2-container--default.select2-container--open .select2-selection__arrow b { border-color : " + window.Asc.plugin.theme["text-normal"] + " !important; }";
|
||||
var styleTheme = document.createElement('style');
|
||||
styleTheme.type = 'text/css';
|
||||
styleTheme.innerHTML = rule;
|
||||
document.getElementsByTagName('head')[0].appendChild(styleTheme);
|
||||
|
||||
$('.reconf-label, .switch-label, .label-settings').css('border-bottom', '1px dashed ' + window.Asc.plugin.theme["text-normal"]);
|
||||
$('.arrow').css('border-color', window.Asc.plugin.theme["text-normal"]);
|
||||
|
||||
var style = document.getElementsByTagName('head')[0].lastChild;
|
||||
setTimeout(function() {
|
||||
ifr.contentWindow.postMessage({oTheme : oTheme}, '*');
|
||||
});
|
||||
};
|
||||
|
||||
window.openMeeting = function(sUrl) {
|
||||
|
||||
document.getElementById("iframe_meeting").innerHTML = "";
|
||||
ifr = document.createElement("iframe");
|
||||
ifr.position = "fixed";
|
||||
ifr.name = "zoom";
|
||||
ifr.id = "zoom_id";
|
||||
ifr.src = sUrl;
|
||||
ifr.style.top = "0px";
|
||||
ifr.style.left = "0px";
|
||||
ifr.style.width = "100%";
|
||||
ifr.style.height = "100%";
|
||||
ifr.setAttribute("frameBorder", "0");
|
||||
document.getElementById("iframe_meeting").appendChild(ifr);
|
||||
isInit = true;
|
||||
ifr.onload = function() {
|
||||
$('#iframe_join').toggleClass('display-none');
|
||||
$('#iframe_meeting').toggleClass('display-none');
|
||||
}
|
||||
|
||||
};
|
||||
window.switchForms = function(elmToHide, elmToShow) {
|
||||
$(elmToHide).toggleClass('display-none');
|
||||
$(elmToShow).toggleClass('display-none');
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
elements = {
|
||||
loader: document.getElementById("loader-container"),
|
||||
};
|
||||
|
||||
$('input[name="date"]').daterangepicker({
|
||||
singleDatePicker: true,
|
||||
});
|
||||
$('#time-hour').select2({
|
||||
data: time_hour_data
|
||||
});
|
||||
$('#duration-hour').select2({
|
||||
data: duration_hour_data
|
||||
});
|
||||
$('#duration-min').select2({
|
||||
data: duration_min_data
|
||||
});
|
||||
$('.select_example').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : 'calc(100% - 24px)',
|
||||
});
|
||||
$('.select_example.group').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : 'calc(50% - 20px)',
|
||||
});
|
||||
$('.select_example.duration').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : '100%',
|
||||
});
|
||||
|
||||
$('#timezone').select2({
|
||||
minimumResultsForSearch: 0,
|
||||
width : 'calc(100% - 24px)'
|
||||
});
|
||||
|
||||
$('#adv_settings').click(function() {
|
||||
$('#settings_wrapper').find('.settings_group').slideToggle('fast', function() { updateScroll(); });
|
||||
$(this).find(".arrow").toggleClass("down");
|
||||
$(this).find(".arrow").toggleClass("up");
|
||||
});
|
||||
|
||||
$('#saveConfigBtn').click(function() {
|
||||
SaveCredentials(true);
|
||||
});
|
||||
$('#topic-value').focus(function(){
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#emailField').focus(function() {
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#apiKeyField').focus(function() {
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#apiKeyField').change(function() {
|
||||
if ($(this).hasClass('error_border'))
|
||||
$(this).toggleClass('error_border');
|
||||
});
|
||||
$('#secretKeyField').focus(function() {
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#secretKeyField').change(function() {
|
||||
if ($(this).hasClass('error_border'))
|
||||
$(this).toggleClass('error_border');
|
||||
});
|
||||
$('#tokenKeyField').focus(function() {
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#tokenKeyField').change(function() {
|
||||
if ($(this).hasClass('error_border'))
|
||||
$(this).toggleClass('error_border');
|
||||
});
|
||||
$('#reconf').click(function() {
|
||||
$('#create-meeting-container').toggleClass('display-none');
|
||||
$('#configState').toggleClass('display-none');
|
||||
});
|
||||
$('#switch').click(function() {
|
||||
$('#create-meeting-container').toggleClass('display-none');
|
||||
$('#iframe_join').toggleClass('display-none');
|
||||
|
||||
var style = document.getElementsByTagName('head')[0].lastChild;
|
||||
setTimeout(function() {
|
||||
ifr.contentWindow.postMessage({oTheme : oTheme}, '*');
|
||||
});
|
||||
});
|
||||
$('#create_meeting').click(function() {
|
||||
CreateMeeting();
|
||||
});
|
||||
$('#start-meeting').click(function() {
|
||||
CreateMeeting(true);
|
||||
});
|
||||
$('#schedule-meeting').click(function() {
|
||||
$('#scheduler-container').slideToggle('fast', function() { updateScroll(); });
|
||||
});
|
||||
$('#recurring-conf').change(function() {
|
||||
if ($(this).val() !== 'never') {
|
||||
$('input[name="meeting-id"][value="false"]').prop('checked', true);
|
||||
$("input[name=meeting-id]").prop("disabled", true);
|
||||
}
|
||||
else {
|
||||
$("input[name=meeting-id]").prop("disabled", false);
|
||||
}
|
||||
});
|
||||
$('#duration-hour').change(CheckDuration);
|
||||
$('#duration-min').change(CheckDuration);
|
||||
|
||||
$('#recurring-conf').trigger('change');
|
||||
|
||||
$('#duration-hour').val(1);
|
||||
$('#duration-hour').trigger('change');
|
||||
|
||||
SetSavedFromLocalStorage();
|
||||
|
||||
Ps = new PerfectScrollbar("#create-meeting-container", {suppressScrollX: true});
|
||||
|
||||
document.getElementById('emailField').value = localStorage.getItem($('#emailField').attr("data-id")) || "";
|
||||
document.getElementById('apiKeyField').value = localStorage.getItem($('#apiKeyField').attr("data-id")) || "";
|
||||
document.getElementById('secretKeyField').value = localStorage.getItem($('#secretKeyField').attr("data-id")) || "";
|
||||
document.getElementById('tokenKeyField').value = localStorage.getItem($('#tokenKeyField').attr("data-id")) || "";
|
||||
|
||||
SaveCredentials(false);
|
||||
});
|
||||
|
||||
function CheckDuration()
|
||||
{
|
||||
var hour_container = $('#duration-hour').parent().find('.select2-selection.select2-selection--single')[0];
|
||||
var min_container = $('#duration-min').parent().find('.select2-selection.select2-selection--single')[0];
|
||||
|
||||
if ($('#duration-hour').val() === "0" && $('#duration-min').val() === "0") {
|
||||
hour_container.style.setProperty('border-color', '#D9534F', 'important');
|
||||
min_container.style.setProperty('border-color', '#D9534F', 'important');
|
||||
}
|
||||
else {
|
||||
hour_container.style.setProperty('border-color', '');
|
||||
min_container.style.setProperty('border-color', '');
|
||||
}
|
||||
}
|
||||
|
||||
function SaveToLocalStorage() {
|
||||
localStorage.setItem('is-auto-meet-id-zoom', $("input[name=meeting-id]:checked").val());
|
||||
localStorage.setItem($('#is-waiting-room').attr('data-id'), $('#is-waiting-room').prop('checked'));
|
||||
localStorage.setItem($('#timezone').attr('data-id'), $('#timezone').val());
|
||||
localStorage.setItem($('#recurring-conf').attr('data-id'), $('#recurring-conf').val());
|
||||
}
|
||||
|
||||
function SetSavedFromLocalStorage() {
|
||||
var isPersonalMeetId = localStorage.getItem('is-auto-meet-id-zoom');
|
||||
if (isPersonalMeetId !== null) {
|
||||
if (isPersonalMeetId === true.toString())
|
||||
$('input[name="meeting-id"][value="true"]').prop('checked', true);
|
||||
else
|
||||
$('input[name="meeting-id"][value="false"]').prop('checked', true);
|
||||
}
|
||||
|
||||
var isWaitingRoom = localStorage.getItem($('#is-waiting-room').attr('data-id'));
|
||||
if (isWaitingRoom !== null) {
|
||||
if (isWaitingRoom === true.toString())
|
||||
$('#is-waiting-room').prop("checked", true);
|
||||
else
|
||||
$('#is-waiting-room').prop("checked", false);
|
||||
}
|
||||
|
||||
var sTimeZone = localStorage.getItem($('#timezone').attr('data-id'));
|
||||
if (sTimeZone) {
|
||||
$('#timezone').val(sTimeZone);
|
||||
$('#timezone').trigger('change');
|
||||
}
|
||||
|
||||
var sRecurringConf = localStorage.getItem($('#recurring-conf').attr('data-id'));
|
||||
if (sRecurringConf) {
|
||||
$('#recurring-conf').val(sRecurringConf);
|
||||
$('#recurring-conf').trigger('change');
|
||||
}
|
||||
}
|
||||
|
||||
async function IsValidConfigData() {
|
||||
showLoader(elements, true);
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + tokenKey,
|
||||
},
|
||||
dataType: 'json',
|
||||
json: true,
|
||||
data: JSON.stringify(jsonData),
|
||||
url: proxyUrl + zoomApiUrl + email
|
||||
}).success(function (oResponse) {
|
||||
localStorage.setItem($('#emailField').attr("data-id"), email);
|
||||
localStorage.setItem($('#apiKeyField').attr("data-id"), apiKey);
|
||||
localStorage.setItem($('#secretKeyField').attr("data-id"), secretKey);
|
||||
localStorage.setItem($('#tokenKeyField').attr("data-id"), tokenKey);
|
||||
|
||||
$('#configState').toggleClass('display-none');
|
||||
$('#create-meeting-container').toggleClass('display-none');
|
||||
|
||||
showLoader(elements, false);
|
||||
}).error(function(e){
|
||||
alert('Check your details');
|
||||
showLoader(elements, false);
|
||||
});
|
||||
};
|
||||
|
||||
async function SaveCredentials(bShowError) {
|
||||
if (!IsEmptyFields(bShowError)) {
|
||||
email = $('#emailField').val().trim();
|
||||
apiKey = $('#apiKeyField').val().trim();
|
||||
secretKey = $('#secretKeyField').val().trim();
|
||||
tokenKey = $('#tokenKeyField').val().trim();
|
||||
|
||||
await IsValidConfigData();
|
||||
}
|
||||
}
|
||||
|
||||
function IsEmptyFields(bShowError) {
|
||||
var isEmpty = null;
|
||||
|
||||
if ($('#emailField').val() === '') {
|
||||
isEmpty = true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#emailField').hasClass('error_border'))
|
||||
$('#emailField').toggleClass('error_border');
|
||||
}
|
||||
else {
|
||||
isEmpty = false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#emailField').hasClass('error_border'))
|
||||
$('#emailField').toggleClass('error_border');
|
||||
}
|
||||
if ($('#apiKeyField').val() === '') {
|
||||
isEmpty = true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#apiKeyField').hasClass('error_border'))
|
||||
$('#apiKeyField').toggleClass('error_border');
|
||||
}
|
||||
else {
|
||||
isEmpty = false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#apiKeyField').hasClass('error_border'))
|
||||
$('#apiKeyField').toggleClass('error_border');
|
||||
}
|
||||
|
||||
if ($('#secretKeyField').val() === '') {
|
||||
isEmpty = isEmpty && true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#secretKeyField').hasClass('error_border'))
|
||||
$('#secretKeyField').toggleClass('error_border');
|
||||
}
|
||||
else {
|
||||
isEmpty = isEmpty && false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#secretKeyField').hasClass('error_border'))
|
||||
$('#secretKeyField').toggleClass('error_border');
|
||||
}
|
||||
|
||||
if ($('#tokenKeyField').val() === '') {
|
||||
isEmpty = isEmpty && true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#tokenKeyField').hasClass('error_border'))
|
||||
$('#tokenKeyField').toggleClass('error_border');
|
||||
}
|
||||
else {
|
||||
isEmpty = isEmpty && false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#tokenKeyField').hasClass('error_border'))
|
||||
$('#tokenKeyField').toggleClass('error_border');
|
||||
}
|
||||
|
||||
return isEmpty;
|
||||
}
|
||||
|
||||
function CreateMeeting(isNowMeeting) {
|
||||
if ($('#duration-hour').val() === "0" && $('#duration-min').val() === "0")
|
||||
{
|
||||
alert("Duration can't be 0");
|
||||
return;
|
||||
}
|
||||
|
||||
SaveToLocalStorage();
|
||||
showLoader(elements, true);
|
||||
|
||||
// getting parameters
|
||||
var sTopic = $('#topic-value').val();
|
||||
var meetingType = 2;
|
||||
var sDate = '';
|
||||
var sTime = $('#time-hour').val();
|
||||
var sAmPmTime = $('#time-am-pm').val();
|
||||
var sDurationHour = $('#duration-hour').val();
|
||||
var sDurationMin = $('#duration-min').val();
|
||||
var sMeetPasswd = $('#password').val();
|
||||
var bPersonalId = ('true' === $("input[name=meeting-id]:checked").val());
|
||||
var bWaitingRoom = document.getElementById("is-waiting-room").checked;
|
||||
var sTimeZone = $('#timezone').val();
|
||||
var sRecurringConf = null;
|
||||
if ($('#recurring-conf').val() !== 'never') {
|
||||
meetingType = 8;
|
||||
var nType = null;
|
||||
switch ($('#recurring-conf').val()) {
|
||||
case 'daily':
|
||||
nType = 1;
|
||||
break;
|
||||
case 'weekly':
|
||||
nType = 2;
|
||||
break;
|
||||
case 'monthly':
|
||||
nType = 3;
|
||||
break;
|
||||
}
|
||||
sRecurringConf = {
|
||||
"type" : nType
|
||||
}
|
||||
}
|
||||
|
||||
// bringing the date to the required format
|
||||
var sResultTime = '';
|
||||
var arrSplittedDate = $('#date-value').val().split('/');
|
||||
sDate += arrSplittedDate[2] + '-' + arrSplittedDate[0] + '-' + arrSplittedDate[1];
|
||||
|
||||
if (sAmPmTime == 'pm') {
|
||||
var arrSplittedTime = sTime.split(':');
|
||||
sTime = String(Number(arrSplittedTime[0]) + 12) + ':' + arrSplittedTime[1];
|
||||
}
|
||||
sResultTime = sDate + 'T' + sTime + ':00';
|
||||
|
||||
// calc duration in minutes
|
||||
var sResultDuration = String(Number(sDurationHour) * 60 + Number(sDurationMin));
|
||||
|
||||
// filling the jsonData for request
|
||||
var meetingSettings = {
|
||||
"use_pmi" : bPersonalId,
|
||||
"waiting_room" : bWaitingRoom
|
||||
}
|
||||
jsonData["topic"] = sTopic;
|
||||
jsonData["type"] = meetingType;
|
||||
if (!isNowMeeting) {
|
||||
jsonData["start_time"] = sResultTime;
|
||||
jsonData["duration"] = sResultDuration;
|
||||
jsonData["settings"] = meetingSettings;
|
||||
if (sMeetPasswd !== "")
|
||||
jsonData["password"] = sMeetPasswd;
|
||||
jsonData["timezone"] = sTimeZone;
|
||||
jsonData["recurrence"] = sRecurringConf;
|
||||
}
|
||||
else {
|
||||
jsonData["type"] = 1;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
contentType: "application/json; charset=utf-8",
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + tokenKey,
|
||||
},
|
||||
dataType: 'json',
|
||||
json: true,
|
||||
data: JSON.stringify(jsonData),
|
||||
url: proxyUrl + zoomApiUrl + email + '/meetings'
|
||||
}).success(function (oResponse) {
|
||||
var sTopic = 'Topic: ' + oResponse.topic;
|
||||
var sTime = 'Time: ' + $('#date-value').val() + ' ' + $('#time-hour').val() + ' ' + $('#time-am-pm').val().toUpperCase() + ' ' + oResponse["timezone"];
|
||||
var sJoinUrl = 'Join URL: ' + oResponse.join_url;
|
||||
var sConfId = 'Conference ID: ' + oResponse.id;
|
||||
var sPassword = 'Password: ' + oResponse.password;
|
||||
var sResult = sTopic + '\r' + sTime + '\r' + sJoinUrl +'\r' + sConfId + '\r' + sPassword + '\r';
|
||||
|
||||
Asc.scope.meeting_info = sResult;
|
||||
|
||||
window.Asc.plugin.executeMethod('CoAuthoringChatSendMessage', [Asc.scope.meeting_info], function(isTrue) {
|
||||
if (isTrue)
|
||||
alert('Meeting was created');
|
||||
else
|
||||
alert('Meeting was create, please update SDK for checking info about created meeting in chat.');
|
||||
});
|
||||
|
||||
showLoader(elements, false);
|
||||
}).error(function(e) {
|
||||
alert('Meeting was not created');
|
||||
showLoader(elements, false);
|
||||
});
|
||||
}
|
||||
|
||||
window.Asc.plugin.button = function(id)
|
||||
{
|
||||
this.executeCommand("close", "");
|
||||
};
|
||||
|
||||
function updateScroll()
|
||||
{
|
||||
Ps && Ps.update();
|
||||
}
|
||||
|
||||
window.Asc.plugin.onExternalMouseUp = function()
|
||||
{
|
||||
var evt = document.createEvent("MouseEvents");
|
||||
evt.initMouseEvent("mouseup", true, true, window, 1, 0, 0, 0, 0,
|
||||
false, false, false, false, 0, null);
|
||||
|
||||
document.dispatchEvent(evt);
|
||||
$('.select_example').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : 'calc(100% - 24px)',
|
||||
});
|
||||
$('.select_example.group').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : 'calc(50% - 20px)',
|
||||
});
|
||||
$('.select_example.duration').select2({
|
||||
minimumResultsForSearch: Infinity,
|
||||
width : '100%',
|
||||
});
|
||||
$('#timezone').select2({
|
||||
minimumResultsForSearch: 0,
|
||||
width : 'calc(100% - 24px)'
|
||||
});
|
||||
};
|
||||
|
||||
})(window, undefined);
|
||||
7
translations/de-DE.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"Error has occured when loading data.": "Beim Laden von Daten ist ein Fehler aufgetreten.",
|
||||
"Submit": "Übermitteln",
|
||||
"ClipArt Add-on": "ClipArt Add-on",
|
||||
"The add-on is designed to insert the themed image from <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a> into the document editor.": "Mit dem Add-On können Sie das Themenbild aus <a href=\"https://openclipart.org\" target=\"_blank\">Clip Art Library öffnen</a> in den Dokumenteditor einfügen.",
|
||||
"Source code": "Quellcode"
|
||||
}
|
||||
7
translations/es-ES.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"Error has occured when loading data." : "Se ha producido un error al cargar datos.",
|
||||
"Submit" : "Enviar",
|
||||
"ClipArt Add-on" : "Complemento ClipArt",
|
||||
"The add-on is designed to insert the themed image from <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a> into the document editor." : "El complemento está diseñado para insertar la imagen temática de <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a> al editor de documentos.",
|
||||
"Source code" : "Código fuente"
|
||||
}
|
||||
7
translations/fr-FR.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"Error has occured when loading data." : "Une erreur s'est produite lors du chargement des données.",
|
||||
"Submit" : "Envoyer",
|
||||
"ClipArt Add-on" : "Extension ClipArt",
|
||||
"The add-on is designed to insert the themed image from <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a> into the document editor." : "L'extension permet d'inserer des images thématiques de <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a> dans un document.",
|
||||
"Source code" : "Code source"
|
||||
}
|
||||
6
translations/langs.json
Normal file
@ -0,0 +1,6 @@
|
||||
[
|
||||
"de-DE",
|
||||
"es-ES",
|
||||
"fr-FR",
|
||||
"ru-RU"
|
||||
]
|
||||
7
translations/ru-RU.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"Error has occured when loading data." : "Произошла ошибка при загрузке данных.",
|
||||
"Submit" : "Отправить",
|
||||
"ClipArt Add-on" : "Плагин Клипарт",
|
||||
"The add-on is designed to insert the themed image from <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a> into the document editor." : "Плагин позволяет вставлять тематические картинки в документ из библиотеки <a href=\"https://openclipart.org\" target=\"_blank\">Open Clip Art Library</a>.",
|
||||
"Source code" : "Исходный код"
|
||||
}
|
||||
4
vendor/jQuery-2.2.2-min/jquery-v2.2.2-min.js
vendored
Normal file
21
vendor/select2-4.0.6-rc.1/LICENSE.md
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
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.
|
||||
123
vendor/select2-4.0.6-rc.1/README.md
vendored
Normal file
@ -0,0 +1,123 @@
|
||||
Select2
|
||||
=======
|
||||
[![Build Status][travis-ci-image]][travis-ci-status]
|
||||
|
||||
Select2 is a jQuery-based replacement for select boxes. It supports searching,
|
||||
remote data sets, and pagination of results.
|
||||
|
||||
To get started, checkout examples and documentation at
|
||||
https://select2.org/
|
||||
|
||||
Use cases
|
||||
---------
|
||||
* Enhancing native selects with search.
|
||||
* Enhancing native selects with a better multi-select interface.
|
||||
* Loading data from JavaScript: easily load items via AJAX and have them
|
||||
searchable.
|
||||
* Nesting optgroups: native selects only support one level of nesting. Select2
|
||||
does not have this restriction.
|
||||
* Tagging: ability to add new items on the fly.
|
||||
* Working with large, remote datasets: ability to partially load a dataset based
|
||||
on the search term.
|
||||
* Paging of large datasets: easy support for loading more pages when the results
|
||||
are scrolled to the end.
|
||||
* Templating: support for custom rendering of results and selections.
|
||||
|
||||
Browser compatibility
|
||||
---------------------
|
||||
* IE 8+
|
||||
* Chrome 8+
|
||||
* Firefox 10+
|
||||
* Safari 3+
|
||||
* Opera 10.6+
|
||||
|
||||
Select2 is automatically tested on the following browsers.
|
||||
|
||||
[![Sauce Labs Test Status][saucelabs-matrix]][saucelabs-status]
|
||||
|
||||
Usage
|
||||
-----
|
||||
You can source Select2 directly from a CDN like [JSDliver][jsdelivr] or
|
||||
[CDNJS][cdnjs], [download it from this GitHub repo][releases], or use one of
|
||||
the integrations below.
|
||||
|
||||
Integrations
|
||||
------------
|
||||
Third party developers have created plugins for platforms which allow Select2 to be integrated more natively and quickly. For many platforms, additional plugins are not required because Select2 acts as a standard `<select>` box.
|
||||
|
||||
Plugins
|
||||
|
||||
* [Django]
|
||||
- [django-autocomplete-light]
|
||||
- [django-easy-select2]
|
||||
- [django-select2]
|
||||
* [Meteor] - [meteor-select2]
|
||||
* [Ruby on Rails][ruby-on-rails] - [select2-rails]
|
||||
* [Wicket] - [wicketstuff-select2]
|
||||
* [Yii 2][yii2] - [yii2-widget-select2]
|
||||
|
||||
Themes
|
||||
|
||||
- [Bootstrap 3][bootstrap3] - [select2-bootstrap-theme]
|
||||
- [Flat UI][flat-ui] - [select2-flat-theme]
|
||||
- [Metro UI][metro-ui] - [select2-metro]
|
||||
|
||||
Missing an integration? Modify this `README` and make a pull request back here to Select2 on GitHub.
|
||||
|
||||
Internationalization (i18n)
|
||||
---------------------------
|
||||
Select2 supports multiple languages by simply including the right language JS
|
||||
file (`dist/js/i18n/it.js`, `dist/js/i18n/nl.js`, etc.) after
|
||||
`dist/js/select2.js`.
|
||||
|
||||
Missing a language? Just copy `src/js/select2/i18n/en.js`, translate it, and
|
||||
make a pull request back to Select2 here on GitHub.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
The documentation for Select2 is available
|
||||
[through GitHub Pages][documentation] and is located within this repository
|
||||
in the [`docs` folder][documentation-folder].
|
||||
|
||||
Community
|
||||
---------
|
||||
You can find out about the different ways to get in touch with the Select2
|
||||
community at the [Select2 community page][community].
|
||||
|
||||
Copyright and license
|
||||
---------------------
|
||||
The license is available within the repository in the [LICENSE][license] file.
|
||||
|
||||
[cdnjs]: http://www.cdnjs.com/libraries/select2
|
||||
[community]: https://select2.org/getting-help
|
||||
[documentation]: https://select2.org
|
||||
[documentation-folder]: https://github.com/select2/select2/tree/master/docs
|
||||
[freenode]: https://freenode.net/
|
||||
[jsdelivr]: http://www.jsdelivr.com/#!select2
|
||||
[license]: LICENSE.md
|
||||
[releases]: https://github.com/select2/select2/releases
|
||||
[saucelabs-matrix]: https://saucelabs.com/browser-matrix/select2.svg
|
||||
[saucelabs-status]: https://saucelabs.com/u/select2
|
||||
[travis-ci-image]: https://img.shields.io/travis/select2/select2/master.svg
|
||||
[travis-ci-status]: https://travis-ci.org/select2/select2
|
||||
|
||||
[bootstrap3]: https://getbootstrap.com/
|
||||
[django]: https://www.djangoproject.com/
|
||||
[django-autocomplete-light]: https://github.com/yourlabs/django-autocomplete-light
|
||||
[django-easy-select2]: https://github.com/asyncee/django-easy-select2
|
||||
[django-select2]: https://github.com/applegrew/django-select2
|
||||
[flat-ui]: http://designmodo.github.io/Flat-UI/
|
||||
[meteor]: https://www.meteor.com/
|
||||
[meteor-select2]: https://github.com/nate-strauser/meteor-select2
|
||||
[metro-ui]: http://metroui.org.ua/
|
||||
[select2-metro]: http://metroui.org.ua/select2.html
|
||||
[ruby-on-rails]: http://rubyonrails.org/
|
||||
[select2-bootstrap-theme]: https://github.com/select2/select2-bootstrap-theme
|
||||
[select2-flat-theme]: https://github.com/techhysahil/select2-Flat_Theme
|
||||
[select2-rails]: https://github.com/argerim/select2-rails
|
||||
[vue.js]: http://vuejs.org/
|
||||
[select2-vue]: http://vuejs.org/examples/select2.html
|
||||
[wicket]: https://wicket.apache.org/
|
||||
[wicketstuff-select2]: https://github.com/wicketstuff/core/tree/master/select2-parent
|
||||
[yii2]: http://www.yiiframework.com/
|
||||
[yii2-widget-select2]: https://github.com/kartik-v/yii2-widget-select2
|
||||
489
vendor/select2-4.0.6-rc.1/dist/css/select2.css
vendored
Normal file
@ -0,0 +1,489 @@
|
||||
.select2-container {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
vertical-align: middle; }
|
||||
.select2-container .select2-selection--single {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 22px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--single .select2-selection__rendered {
|
||||
font-size: 12px;
|
||||
display: block;
|
||||
padding-left: 8px;
|
||||
padding-right: 20px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-selection--single .select2-selection__clear {
|
||||
position: relative; }
|
||||
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
||||
padding-right: 8px;
|
||||
padding-left: 20px; }
|
||||
.select2-container .select2-selection--multiple {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
min-height: 32px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
padding-left: 8px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-search--inline {
|
||||
float: left; }
|
||||
.select2-container .select2-search--inline .select2-search__field {
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
font-size: 100%;
|
||||
margin-top: 5px;
|
||||
padding: 0; }
|
||||
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
|
||||
.select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -100000px;
|
||||
width: 100%;
|
||||
z-index: 1051; }
|
||||
|
||||
.select2-results {
|
||||
display: block; }
|
||||
|
||||
.select2-results__options {
|
||||
font-size: 12px;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
.select2-results__option {
|
||||
padding: 6px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-results__option[aria-selected] {
|
||||
cursor: pointer; }
|
||||
|
||||
.select2-container--open .select2-dropdown {
|
||||
left: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--above {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--below {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-search--dropdown {
|
||||
display: block;
|
||||
padding: 4px; }
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
.select2-search--dropdown.select2-search--hide {
|
||||
display: none; }
|
||||
|
||||
.select2-close-mask {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
width: auto;
|
||||
opacity: 0;
|
||||
z-index: 99;
|
||||
background-color: #fff;
|
||||
filter: alpha(opacity=0); }
|
||||
|
||||
.select2-hidden-accessible {
|
||||
border: 0 !important;
|
||||
clip: rect(0 0 0 0) !important;
|
||||
-webkit-clip-path: inset(50%) !important;
|
||||
clip-path: inset(50%) !important;
|
||||
height: 1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
white-space: nowrap !important; }
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
outline: none;
|
||||
background-color: #fff;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #444;
|
||||
line-height: 22px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--default .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px;
|
||||
cursor: text; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px;
|
||||
width: 100%; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
||||
list-style: none; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
||||
color: #999;
|
||||
margin-top: 5px;
|
||||
float: left; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #333; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
||||
float: right; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border: solid black 1px;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
outline-color: #7d858c;
|
||||
border: 1px solid #aaa; }
|
||||
|
||||
.select2-container--default .select2-search--inline .select2-search__field {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: textfield; }
|
||||
|
||||
.select2-container--default .select2-results > .select2-results__options {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--default .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--default .select2-results__option[aria-disabled=true] {
|
||||
color: #999; }
|
||||
|
||||
.select2-container--default .select2-results__option[aria-selected=true] {
|
||||
background-color: #7d858c; }
|
||||
|
||||
.select2-container--default .select2-results__option .select2-results__option {
|
||||
padding-left: 1em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
||||
padding-left: 0; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -1em;
|
||||
padding-left: 2em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -2em;
|
||||
padding-left: 3em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -3em;
|
||||
padding-left: 4em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -4em;
|
||||
padding-left: 5em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -5em;
|
||||
padding-left: 6em; }
|
||||
|
||||
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
||||
background-color: rgba(200, 200, 200, 0.5);}
|
||||
|
||||
.select2-container--default .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic .select2-selection--single {
|
||||
background-color: #f7f7f7;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px;
|
||||
outline: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 22px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-right: 10px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
||||
background-color: #ddd;
|
||||
border: none;
|
||||
border-left: 1px solid #aaa;
|
||||
border-top-right-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
border: none;
|
||||
border-right: 1px solid #aaa;
|
||||
border-radius: 0;
|
||||
border-top-left-radius: 2px;
|
||||
border-bottom-left-radius: 2px;
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--single {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
||||
background: transparent;
|
||||
border: none; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
||||
|
||||
.select2-container--classic .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px;
|
||||
cursor: text;
|
||||
outline: 0; }
|
||||
.select2-container--classic .select2-selection--multiple:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
||||
display: none; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 2px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #555; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
||||
border: 1px solid #5897fb; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--inline .select2-search__field {
|
||||
outline: 0;
|
||||
box-shadow: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid transparent; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--above {
|
||||
border-bottom: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--below {
|
||||
border-top: none; }
|
||||
|
||||
.select2-container--classic .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--classic .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
||||
color: grey; }
|
||||
|
||||
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
|
||||
background-color: #3875d7;
|
||||
color: white; }
|
||||
|
||||
.select2-container--classic .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-dropdown {
|
||||
border-color: #5897fb; }
|
||||
1
vendor/select2-4.0.6-rc.1/dist/css/select2.min.css
vendored
Normal file
6559
vendor/select2-4.0.6-rc.1/dist/js/select2.full.js
vendored
Normal file
1
vendor/select2-4.0.6-rc.1/dist/js/select2.full.min.js
vendored
Normal file
5847
vendor/select2-4.0.6-rc.1/dist/js/select2.js
vendored
Normal file
1
vendor/select2-4.0.6-rc.1/dist/js/select2.min.js
vendored
Normal file
1
vendor/select2-4.0.6-rc.1/docs/README.md
vendored
Normal file
@ -0,0 +1 @@
|
||||
Effective beginning September 10, 2017, the Select2 documentation repository is now available at [`select2/docs`](https://github.com/select2/docs).
|
||||
12
vendor/select2-4.0.6-rc.1/docs/announcements-4.0.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>select2</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.location = 'https://select2.org/upgrading/new-in-40';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/select2-4.0.6-rc.1/docs/community.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>select2</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.location = 'https://select2.org/getting-help';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/select2-4.0.6-rc.1/docs/examples.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>select2</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.location = 'https://select2.org/getting-started/basic-usage';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/select2-4.0.6-rc.1/docs/index.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>select2</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.location = 'https://select2.org';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/select2-4.0.6-rc.1/docs/options-old.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>select2</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.location = 'https://select2.org/configuration';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/select2-4.0.6-rc.1/docs/options.html
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>select2</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.location = 'https://select2.org/configuration';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
157
vendor/zoom-sdk/index.js
vendored
Normal file
@ -0,0 +1,157 @@
|
||||
SIGNATURE_SERVER = "https://onlyofficezoom.herokuapp.com/";
|
||||
|
||||
window.addEventListener('DOMContentLoaded', function(event) {
|
||||
console.log('DOM fully loaded and parsed');
|
||||
websdkready();
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.sdk-select').trigger('change');
|
||||
$('#reconf').click(function() {
|
||||
window.parent.switchForms('#iframe_join', '#configState');
|
||||
});
|
||||
$('#switch').click(function() {
|
||||
window.parent.switchForms('#iframe_join', '#create-meeting-container');
|
||||
});
|
||||
});
|
||||
function websdkready() {
|
||||
var testTool = window.testTool;
|
||||
if (testTool.isMobileDevice()) {
|
||||
vConsole = new VConsole();
|
||||
}
|
||||
console.log("checkSystemRequirements");
|
||||
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
|
||||
|
||||
// it's option if you want to change the WebSDK dependency link resources. setZoomJSLib must be run at first
|
||||
// if (!china) ZoomMtg.setZoomJSLib('https://source.zoom.us/1.8.6/lib', '/av'); // CDN version default
|
||||
// else ZoomMtg.setZoomJSLib('https://jssdk.zoomus.cn/1.8.6/lib', '/av'); // china cdn option
|
||||
// ZoomMtg.setZoomJSLib('http://localhost:9999/node_modules/@zoomus/websdk/dist/lib', '/av'); // Local version default, Angular Project change to use cdn version
|
||||
ZoomMtg.preLoadWasm(); // pre download wasm file to save time.
|
||||
|
||||
var API_KEY, API_SECRET;
|
||||
|
||||
/**
|
||||
* NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING
|
||||
* The below generateSignature should be done server side as not to expose your api secret in public
|
||||
* You can find an eaxmple in here: https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature
|
||||
*/
|
||||
|
||||
// some help code, remember mn, pwd, lang to cookie, and autofill.
|
||||
document.getElementById("display_name").value = localStorage.getItem($('#display_name').attr('data-id')) || "";
|
||||
document.getElementById("meeting_number").value = testTool.getCookie(
|
||||
"meeting_number"
|
||||
);
|
||||
document.getElementById("meeting_pwd").value = testTool.getCookie(
|
||||
"meeting_pwd"
|
||||
);
|
||||
if (testTool.getCookie("meeting_lang"))
|
||||
document.getElementById("meeting_lang").value = testTool.getCookie(
|
||||
"meeting_lang"
|
||||
);
|
||||
|
||||
document
|
||||
.getElementById("meeting_lang")
|
||||
.addEventListener("change", function (e) {
|
||||
testTool.setCookie(
|
||||
"meeting_lang",
|
||||
document.getElementById("meeting_lang").value
|
||||
);
|
||||
testTool.setCookie(
|
||||
"_zm_lang",
|
||||
document.getElementById("meeting_lang").value
|
||||
);
|
||||
});
|
||||
// copy zoom invite link to mn, autofill mn and pwd.
|
||||
document
|
||||
.getElementById("meeting_number")
|
||||
.addEventListener("input", function (e) {
|
||||
var tmpMn = e.target.value.replace(/([^0-9])+/i, "");
|
||||
if (tmpMn.match(/([0-9]{9,11})/)) {
|
||||
tmpMn = tmpMn.match(/([0-9]{9,11})/)[1];
|
||||
}
|
||||
var tmpPwd = e.target.value.match(/pwd=([\d,\w]+)/);
|
||||
if (tmpPwd) {
|
||||
document.getElementById("meeting_pwd").value = tmpPwd[1];
|
||||
testTool.setCookie("meeting_pwd", tmpPwd[1]);
|
||||
}
|
||||
document.getElementById("meeting_number").value = tmpMn;
|
||||
testTool.setCookie(
|
||||
"meeting_number",
|
||||
document.getElementById("meeting_number").value
|
||||
);
|
||||
});
|
||||
|
||||
// click join meeting button
|
||||
window.joinMeeting = function () {
|
||||
API_KEY = localStorage.getItem('zoom-client-key') || "";
|
||||
API_SECRET = API_SECRET = localStorage.getItem('zoom-secret-key') || "";
|
||||
|
||||
var meetingConfig = testTool.getMeetingConfig();
|
||||
if (!meetingConfig.mn || !meetingConfig.name) {
|
||||
alert("Meeting number or username is empty");
|
||||
return false;
|
||||
}
|
||||
|
||||
localStorage.setItem($('#display_name').attr('data-id'), $('#display_name').val());
|
||||
localStorage.setItem($('#display_name').attr('data-id'), $('#display_name').val())
|
||||
if ($('#meeting_email').val().trim() !== "")
|
||||
localStorage.setItem($('#meeting_email').attr('data-id'), $('#meeting_email').val());
|
||||
localStorage.setItem($('#display_name').attr('data-id'), $('#display_name').val())
|
||||
|
||||
testTool.setCookie("meeting_number", meetingConfig.mn);
|
||||
testTool.setCookie("meeting_pwd", meetingConfig.pwd);
|
||||
|
||||
$.ajax({
|
||||
method: 'POST',
|
||||
data: {
|
||||
'meet_number': meetingConfig.mn,
|
||||
'role_id': meetingConfig.role,
|
||||
'api_key': API_KEY,
|
||||
'api_secret': API_SECRET
|
||||
},
|
||||
url: SIGNATURE_SERVER
|
||||
|
||||
}).success(function (oResponse) {
|
||||
meetingConfig.signature = oResponse;
|
||||
meetingConfig.apiKey = API_KEY;
|
||||
var joinUrl = document.location.protocol + "//" + document.location.host + document.location.pathname.replace("index_zoom.html", "meeting.html?") + testTool.serialize(meetingConfig);
|
||||
window.parent.openMeeting(joinUrl);
|
||||
}).error(function(oResponse) {
|
||||
console.log(oResponse)
|
||||
})
|
||||
};
|
||||
|
||||
function copyToClipboard(elementId) {
|
||||
var aux = document.createElement("input");
|
||||
aux.setAttribute("value", document.getElementById(elementId).getAttribute('link'));
|
||||
document.body.appendChild(aux);
|
||||
aux.select();
|
||||
document.execCommand("copy");
|
||||
document.body.removeChild(aux);
|
||||
}
|
||||
|
||||
// click copy jon link button
|
||||
window.copyJoinLink = function (element) {
|
||||
var meetingConfig = testTool.getMeetingConfig();
|
||||
if (!meetingConfig.mn || !meetingConfig.name) {
|
||||
alert("Meeting number or username is empty");
|
||||
return false;
|
||||
}
|
||||
var signature = ZoomMtg.generateSignature({
|
||||
meetingNumber: meetingConfig.mn,
|
||||
apiKey: API_KEY,
|
||||
apiSecret: API_SECRET,
|
||||
role: meetingConfig.role,
|
||||
success: function (res) {
|
||||
console.log(res.result);
|
||||
meetingConfig.signature = res.result;
|
||||
meetingConfig.apiKey = API_KEY;
|
||||
var joinUrl = document.location.protocol + "//" + document.location.host + document.location.pathname.replace("index_zoom.html", "meeting.html?") + testTool.serialize(meetingConfig);
|
||||
document.getElementById('copy_link_value').setAttribute('link', joinUrl);
|
||||
copyToClipboard('copy_link_value');
|
||||
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
112
vendor/zoom-sdk/meeting.js
vendored
Normal file
@ -0,0 +1,112 @@
|
||||
window.addEventListener('DOMContentLoaded', function(event) {
|
||||
console.log('DOM fully loaded and parsed');
|
||||
websdkready();
|
||||
});
|
||||
|
||||
console.log("!!!");
|
||||
function websdkready() {
|
||||
var testTool = window.testTool;
|
||||
// get meeting args from url
|
||||
var tmpArgs = testTool.parseQuery();
|
||||
var meetingConfig = {
|
||||
apiKey: tmpArgs.apiKey,
|
||||
meetingNumber: tmpArgs.mn,
|
||||
userName: (function () {
|
||||
if (tmpArgs.name) {
|
||||
try {
|
||||
return testTool.b64DecodeUnicode(tmpArgs.name);
|
||||
} catch (e) {
|
||||
return tmpArgs.name;
|
||||
}
|
||||
}
|
||||
return (
|
||||
"CDN#" +
|
||||
tmpArgs.version +
|
||||
"#" +
|
||||
testTool.detectOS() +
|
||||
"#" +
|
||||
testTool.getBrowserInfo()
|
||||
);
|
||||
})(),
|
||||
passWord: tmpArgs.pwd,
|
||||
leaveUrl: "/index.html",
|
||||
role: parseInt(tmpArgs.role, 10),
|
||||
userEmail: (function () {
|
||||
try {
|
||||
return testTool.b64DecodeUnicode(tmpArgs.email);
|
||||
} catch (e) {
|
||||
return tmpArgs.email;
|
||||
}
|
||||
})(),
|
||||
lang: tmpArgs.lang,
|
||||
signature: tmpArgs.signature || "",
|
||||
china: tmpArgs.china === "1",
|
||||
};
|
||||
|
||||
// a tool use debug mobile device
|
||||
if (testTool.isMobileDevice()) {
|
||||
vConsole = new VConsole();
|
||||
}
|
||||
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
|
||||
|
||||
// it's option if you want to change the WebSDK dependency link resources. setZoomJSLib must be run at first
|
||||
// ZoomMtg.setZoomJSLib("https://source.zoom.us/1.8.6/lib", "/av"); // CDN version defaul
|
||||
if (meetingConfig.china)
|
||||
ZoomMtg.setZoomJSLib("https://jssdk.zoomus.cn/1.9.9/lib", "/av"); // china cdn option
|
||||
ZoomMtg.preLoadWasm();
|
||||
ZoomMtg.prepareJssdk();
|
||||
function beginJoin(signature) {
|
||||
ZoomMtg.init({
|
||||
leaveUrl: meetingConfig.leaveUrl,
|
||||
webEndpoint: meetingConfig.webEndpoint,
|
||||
success: function () {
|
||||
console.log(meetingConfig);
|
||||
console.log("signature", signature);
|
||||
ZoomMtg.i18n.load(meetingConfig.lang);
|
||||
ZoomMtg.i18n.reload(meetingConfig.lang);
|
||||
ZoomMtg.join({
|
||||
meetingNumber: meetingConfig.meetingNumber,
|
||||
userName: meetingConfig.userName,
|
||||
signature: signature,
|
||||
apiKey: meetingConfig.apiKey,
|
||||
userEmail: meetingConfig.userEmail,
|
||||
passWord: meetingConfig.passWord,
|
||||
success: function (res) {
|
||||
console.log("join meeting success");
|
||||
console.log("get attendeelist");
|
||||
ZoomMtg.getAttendeeslist({});
|
||||
ZoomMtg.getCurrentUser({
|
||||
success: function (res) {
|
||||
console.log("success getCurrentUser", res.result.currentUser);
|
||||
},
|
||||
});
|
||||
},
|
||||
error: function (res) {
|
||||
console.log(res);
|
||||
},
|
||||
});
|
||||
},
|
||||
error: function (res) {
|
||||
console.log(res);
|
||||
},
|
||||
});
|
||||
|
||||
ZoomMtg.inMeetingServiceListener('onUserJoin', function (data) {
|
||||
console.log('inMeetingServiceListener onUserJoin', data);
|
||||
});
|
||||
|
||||
ZoomMtg.inMeetingServiceListener('onUserLeave', function (data) {
|
||||
console.log('inMeetingServiceListener onUserLeave', data);
|
||||
});
|
||||
|
||||
ZoomMtg.inMeetingServiceListener('onUserIsInWaitingRoom', function (data) {
|
||||
console.log('inMeetingServiceListener onUserIsInWaitingRoom', data);
|
||||
});
|
||||
|
||||
ZoomMtg.inMeetingServiceListener('onMeetingStatus', function (data) {
|
||||
console.log('inMeetingServiceListener onMeetingStatus', data);
|
||||
});
|
||||
}
|
||||
|
||||
beginJoin(meetingConfig.signature);
|
||||
};
|
||||
332
vendor/zoom-sdk/tool.js
vendored
Normal file
@ -0,0 +1,332 @@
|
||||
var testTool = {
|
||||
b64EncodeUnicode: function (str) {
|
||||
// first we use encodeURIComponent to get percent-encoded UTF-8,
|
||||
// then we convert the percent encodings into raw bytes which
|
||||
// can be fed into btoa.
|
||||
return btoa(
|
||||
encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function toSolidBytes(
|
||||
match,
|
||||
p1
|
||||
) {
|
||||
return String.fromCharCode("0x" + p1);
|
||||
})
|
||||
);
|
||||
},
|
||||
b64DecodeUnicode: function (str) {
|
||||
// Going backwards: from bytestream, to percent-encoding, to original string.
|
||||
return decodeURIComponent(
|
||||
atob(str)
|
||||
.split("")
|
||||
.map(function (c) {
|
||||
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
|
||||
})
|
||||
.join("")
|
||||
);
|
||||
},
|
||||
isMobileDevice: function () {
|
||||
return (
|
||||
navigator.userAgent.match(/Android/i) ||
|
||||
navigator.userAgent.match(/webOS/i) ||
|
||||
navigator.userAgent.match(/iPhone/i) ||
|
||||
navigator.userAgent.match(/iPod/i) ||
|
||||
navigator.userAgent.match(/BlackBerry/i) ||
|
||||
navigator.userAgent.match(/Windows Phone/i)
|
||||
);
|
||||
},
|
||||
getMeetingConfig: function () {
|
||||
return {
|
||||
mn: parseInt(document.getElementById("meeting_number").value),
|
||||
name: testTool.b64EncodeUnicode(
|
||||
document.getElementById("display_name").value
|
||||
),
|
||||
pwd: document.getElementById("meeting_pwd").value,
|
||||
role: parseInt(document.getElementById("meeting_role").value, 10),
|
||||
email: testTool.b64EncodeUnicode(
|
||||
document.getElementById("meeting_email").value
|
||||
),
|
||||
lang: document.getElementById("meeting_lang").value,
|
||||
signature: "",
|
||||
china: document.getElementById("meeting_china").value,
|
||||
};
|
||||
},
|
||||
createZoomNode: function (id, url) {
|
||||
const zoomIframe = document.createElement("iframe");
|
||||
zoomIframe.id = id;
|
||||
zoomIframe.sandbox =
|
||||
"allow-forms allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox";
|
||||
zoomIframe.allow = "microphone; camera; fullscreen;";
|
||||
zoomIframe.src = url;
|
||||
zoomIframe.style = "";
|
||||
if (typeof document.body.append === "function") {
|
||||
document.body.append(zoomIframe);
|
||||
} else {
|
||||
document.body.appendChild(zoomIframe);
|
||||
}
|
||||
},
|
||||
getCurrentDomain: function () {
|
||||
return (
|
||||
window.location.protocol +
|
||||
"//" +
|
||||
window.location.hostname +
|
||||
":" +
|
||||
window.location.port
|
||||
);
|
||||
},
|
||||
parseQuery: function () {
|
||||
return (function () {
|
||||
var href = window.location.href;
|
||||
var queryString = href.substr(href.indexOf("?"));
|
||||
var query = {};
|
||||
var pairs = (queryString[0] === "?"
|
||||
? queryString.substr(1)
|
||||
: queryString
|
||||
).split("&");
|
||||
for (var i = 0; i < pairs.length; i += 1) {
|
||||
var pair = pairs[i].split("=");
|
||||
query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || "");
|
||||
}
|
||||
return query;
|
||||
})();
|
||||
},
|
||||
serialize: function (obj) {
|
||||
// eslint-disable-next-line no-shadow
|
||||
var keyOrderArr = ["name", "mn", "email", "pwd", "role", "lang", "signature", "china"];
|
||||
|
||||
Array.intersect = function () {
|
||||
var result = new Array();
|
||||
var obj = {};
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
for (var j = 0; j < arguments[i].length; j++) {
|
||||
var str = arguments[i][j];
|
||||
if (!obj[str]) {
|
||||
obj[str] = 1;
|
||||
} else {
|
||||
obj[str]++;
|
||||
if (obj[str] == arguments.length) {
|
||||
result.push(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
if (!Array.prototype.includes) {
|
||||
Object.defineProperty(Array.prototype, "includes", {
|
||||
enumerable: false,
|
||||
value: function (obj) {
|
||||
var newArr = this.filter(function (el) {
|
||||
return el === obj;
|
||||
});
|
||||
return newArr.length > 0;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
var tmpInterArr = Array.intersect(keyOrderArr, Object.keys(obj));
|
||||
var sortedObj = [];
|
||||
keyOrderArr.forEach(function (key) {
|
||||
if (tmpInterArr.includes(key)) {
|
||||
sortedObj.push([key, obj[key]]);
|
||||
}
|
||||
});
|
||||
Object.keys(obj)
|
||||
.sort()
|
||||
.forEach(function (key) {
|
||||
if (!tmpInterArr.includes(key)) {
|
||||
sortedObj.push([key, obj[key]]);
|
||||
}
|
||||
});
|
||||
var tmpSortResult = (function (sortedObj) {
|
||||
var str = [];
|
||||
for (var p in sortedObj) {
|
||||
if (typeof sortedObj[p][1] !== "undefined") {
|
||||
str.push(
|
||||
encodeURIComponent(sortedObj[p][0]) +
|
||||
"=" +
|
||||
encodeURIComponent(sortedObj[p][1])
|
||||
);
|
||||
}
|
||||
}
|
||||
return str.join("&");
|
||||
})(sortedObj);
|
||||
return tmpSortResult;
|
||||
},
|
||||
detectOS: function () {
|
||||
var sUserAgent = navigator.userAgent;
|
||||
var isWin =
|
||||
navigator.platform === "Win32" || navigator.platform === "Windows";
|
||||
var isMac =
|
||||
navigator.platform === "Mac68K" ||
|
||||
navigator.platform === "MacPPC" ||
|
||||
navigator.platform === "Macintosh" ||
|
||||
navigator.platform === "MacIntel";
|
||||
if (isMac) return "Mac";
|
||||
var isUnix = navigator.platform === "X11" && !isWin && !isMac;
|
||||
if (isUnix) return "Unix";
|
||||
var isLinux = String(navigator.platform).indexOf("Linux") > -1;
|
||||
if (isLinux) return "Linux";
|
||||
if (isWin) {
|
||||
var isWin2K =
|
||||
sUserAgent.indexOf("Windows NT 5.0") > -1 ||
|
||||
sUserAgent.indexOf("Windows 2000") > -1;
|
||||
if (isWin2K) return "Win2000";
|
||||
var isWinXP =
|
||||
sUserAgent.indexOf("Windows NT 5.1") > -1 ||
|
||||
sUserAgent.indexOf("Windows XP") > -1;
|
||||
if (isWinXP) return "WinXP";
|
||||
var isWin2003 =
|
||||
sUserAgent.indexOf("Windows NT 5.2") > -1 ||
|
||||
sUserAgent.indexOf("Windows 2003") > -1;
|
||||
if (isWin2003) return "Win2003";
|
||||
var isWinVista =
|
||||
sUserAgent.indexOf("Windows NT 6.0") > -1 ||
|
||||
sUserAgent.indexOf("Windows Vista") > -1;
|
||||
if (isWinVista) return "WinVista";
|
||||
var isWin7 =
|
||||
sUserAgent.indexOf("Windows NT 6.1") > -1 ||
|
||||
sUserAgent.indexOf("Windows 7") > -1;
|
||||
if (isWin7) return "Win7";
|
||||
var isWin10 =
|
||||
sUserAgent.indexOf("Windows NT 10") > -1 ||
|
||||
sUserAgent.indexOf("Windows 10") > -1;
|
||||
if (isWin10) return "Win10";
|
||||
}
|
||||
return "other";
|
||||
},
|
||||
detectIE: function () {
|
||||
var ua = window.navigator.userAgent;
|
||||
|
||||
// Test values; Uncomment to check result …
|
||||
|
||||
// IE 10
|
||||
// ua = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)';
|
||||
|
||||
// IE 11
|
||||
// ua = 'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko';
|
||||
|
||||
// Edge 12 (Spartan)
|
||||
// ua = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0';
|
||||
|
||||
// Edge 13
|
||||
// ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586';
|
||||
|
||||
var msie = ua.indexOf("MSIE ");
|
||||
if (msie > 0) {
|
||||
// IE 10 or older => return version number
|
||||
return "IE" + parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)), 10);
|
||||
}
|
||||
|
||||
var trident = ua.indexOf("Trident/");
|
||||
if (trident > 0) {
|
||||
// IE 11 => return version number
|
||||
var rv = ua.indexOf("rv:");
|
||||
return "IE" + parseInt(ua.substring(rv + 3, ua.indexOf(".", rv)), 10);
|
||||
}
|
||||
|
||||
var edge = ua.indexOf("Edge/");
|
||||
if (edge > 0) {
|
||||
// Edge (IE 12+) => return version number
|
||||
return (
|
||||
"Edge" + parseInt(ua.substring(edge + 5, ua.indexOf(".", edge)), 10)
|
||||
);
|
||||
}
|
||||
|
||||
// other browser
|
||||
return false;
|
||||
},
|
||||
getBrowserInfo: function () {
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
var regStr_ff = /firefox\/[\d.]+/gi;
|
||||
var regStr_chrome = /chrome\/[\d.]+/gi;
|
||||
var regStrChrome2 = /ipad; cpu os (\d+_\d+)/gi;
|
||||
var regStr_saf = /version\/[\d.]+/gi;
|
||||
var regStr_saf2 = /safari\/[\d.]+/gi;
|
||||
|
||||
var regStr_edg = /edg\/[\d.]+/gi;
|
||||
|
||||
// firefox
|
||||
if (agent.indexOf("firefox") > 0) {
|
||||
return agent.match(regStr_ff);
|
||||
}
|
||||
|
||||
// Safari
|
||||
if (agent.indexOf("safari") > 0 && agent.indexOf("chrome") < 0) {
|
||||
var tmpInfo = "safari/unknow";
|
||||
var tmpInfo2;
|
||||
tmpInfo = agent.match(regStr_saf);
|
||||
tmpInfo2 = agent.match(regStr_saf2);
|
||||
if (tmpInfo) {
|
||||
tmpInfo = tmpInfo.toString().replace("version", "safari");
|
||||
}
|
||||
if (tmpInfo2) {
|
||||
tmpInfo = tmpInfo2.toString().replace("version", "safari");
|
||||
}
|
||||
return tmpInfo;
|
||||
}
|
||||
|
||||
// IE / Eege
|
||||
var tmpIsIE = testTool.detectIE();
|
||||
if (tmpIsIE) {
|
||||
return tmpIsIE;
|
||||
}
|
||||
// Chrome
|
||||
if (agent.indexOf("chrome") > 0) {
|
||||
return agent.match(regStr_chrome);
|
||||
}
|
||||
|
||||
return "other";
|
||||
},
|
||||
getRandomInt: function (max) {
|
||||
return Math.floor(Math.random() * Math.floor(max));
|
||||
},
|
||||
extractHostname: function (url) {
|
||||
var hostname;
|
||||
if (url.indexOf("//") > -1) {
|
||||
hostname = url.split("/")[2];
|
||||
} else {
|
||||
hostname = url.split("/")[0];
|
||||
}
|
||||
hostname = hostname.split(":")[0];
|
||||
hostname = hostname.split("?")[0];
|
||||
return hostname;
|
||||
},
|
||||
getDomainName: function (hostName) {
|
||||
return hostName.substring(
|
||||
hostName.lastIndexOf(".", hostName.lastIndexOf(".") - 1) + 1
|
||||
);
|
||||
},
|
||||
setCookie: function (cname, cvalue) {
|
||||
var exdays = 1;
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
|
||||
var expires = "expires=" + d.toUTCString();
|
||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
|
||||
},
|
||||
getCookie: function (cname) {
|
||||
var name = cname + "=";
|
||||
var decodedCookie = decodeURIComponent(document.cookie);
|
||||
var ca = decodedCookie.split(";");
|
||||
for (var i = 0; i < ca.length; i += 1) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0) === " ") {
|
||||
c = c.substring(1);
|
||||
}
|
||||
if (c.indexOf(name) === 0) {
|
||||
return c.substring(name.length, c.length);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
deleteAllCookies: function () {
|
||||
var cookies = document.cookie.split(";");
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
var cookie = cookies[i];
|
||||
var eqPos = cookie.indexOf("=");
|
||||
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
|
||||
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
window.testTool = testTool;
|
||||