mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Added Zoom plugin
This commit is contained in:
11
3rd-Party.txt
Normal file
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
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 ONLYOFFICE
|
||||
|
||||
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.
|
||||
21
README.md
21
README.md
@ -1,4 +1,23 @@
|
||||
## Overview
|
||||
# Zoom plugin
|
||||
|
||||
The Zoom plugin allows users to schedule meetings and make calls.
|
||||
The plugin is pre-installed in ONLYOFFICE Enterprise Edition, Community Edition (Document Server + Community Server), ONLYOFFICE cloud service, and ONLYOFFICE Personal.
|
||||
|
||||
## How to install
|
||||
|
||||
Detailed instructions can be found in [ONLYOFFICE API documentation](https://api.onlyoffice.com/plugin/installation).
|
||||
|
||||
## How to use
|
||||
|
||||
1. Click the Plugins icon on the left sidebar and find the WordPress plugin.
|
||||
2. Enter your app credentials, save.
|
||||
3. Select the schedule/meeting mode, use it.
|
||||
|
||||
## Configuration
|
||||
|
||||
1. You need to create a JWT application at [page](https://marketplace.zoom.us/develop/create). Fill the all necessary fields and activate an app.
|
||||
2. Copy API Key, API Secret and JWT Token from your app credentials and paste it to specified fields in plugin, save.
|
||||
|
||||
## User feedback and support
|
||||
|
||||
To ask questions and share feedback, use Issues in this repository.
|
||||
|
||||
81
config.json
Normal file
81
config.json
Normal file
@ -0,0 +1,81 @@
|
||||
{
|
||||
"name": "Zoom",
|
||||
"nameLocale": {
|
||||
"ru": "Zoom",
|
||||
"fr": "Zoom",
|
||||
"es": "Zoom",
|
||||
"de": "Zoom"
|
||||
},
|
||||
"guid": "asc.{3f15a9bc-51d3-4b59-b32f-75cfe2f07f54}",
|
||||
|
||||
"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" ],
|
||||
"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 ]
|
||||
}
|
||||
]
|
||||
}
|
||||
638
index.html
Normal file
638
index.html
Normal file
@ -0,0 +1,638 @@
|
||||
<!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>
|
||||
<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">
|
||||
<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 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;
|
||||
}
|
||||
.button {
|
||||
cursor:pointer;
|
||||
}
|
||||
.input_container {
|
||||
display: flex;
|
||||
}
|
||||
.checkbox {
|
||||
margin-top: 1px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.transform {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.radiobox {
|
||||
margin-left: 7px;
|
||||
}
|
||||
.display-none {
|
||||
display: none !important;
|
||||
}
|
||||
.error_api {
|
||||
border: 1px solid #D9534F;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body style="width: 100%;height: 100%; margin: 0;">
|
||||
<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="scheduler-container" class="display-none" style="width:100%; height:90%;margin:0;padding:0; display:flex; flex-direction:column;">
|
||||
<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 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 8px 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);">
|
||||
<label style="margin-bottom: 4px;">hour</label>
|
||||
<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);">
|
||||
<label style="margin-bottom: 4px;">min</label>
|
||||
<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="schedule_meeting" onсlick="" class="btn-text-default" style="width:100%; height: 30px;">Schedule meeting</button>
|
||||
</div>
|
||||
<div id="settings_wrapper" style="margin-top: 16px;">
|
||||
<div class="legend"><div id="adv_settings" class="button"><label class="header cursor_pointer" style="margin-left: 12px;">Advanced settings</label><img class="arrow" style="margin-top: -2px; margin-left: 5px;" src="resources/img/faq_arrow_down.png"></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" 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" 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"> <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">
|
||||
<option value="Pacific/Midway">
|
||||
Midway Island, Samoa
|
||||
</option>
|
||||
<option value="Pacific/Pago_Pago">
|
||||
Pago Pago
|
||||
</option>
|
||||
<option value="Pacific/Honolulu">
|
||||
Hawaii
|
||||
</option>
|
||||
<option value="America/Anchorage">
|
||||
Alaska
|
||||
</option>
|
||||
<option value="America/Vancouver">
|
||||
Vancouver
|
||||
</option>
|
||||
<option value="America/Los_Angeles">
|
||||
Pacific Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Tijuana">
|
||||
Tijuana
|
||||
</option>
|
||||
<option value="America/Edmonton">
|
||||
Edmonton
|
||||
</option>
|
||||
<option value="America/Denver">
|
||||
Mountain Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Phoenix">
|
||||
Arizona
|
||||
</option>
|
||||
<option value="America/Mazatlan">
|
||||
Mazatlan
|
||||
</option>
|
||||
<option value="America/Winnipeg">
|
||||
Winnipeg
|
||||
</option>
|
||||
<option value="America/Regina">
|
||||
Saskatchewan
|
||||
</option>
|
||||
<option value="America/Chicago">
|
||||
Central Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Mexico_City">
|
||||
Mexico City
|
||||
</option>
|
||||
<option value="America/Guatemala">
|
||||
Guatemala
|
||||
</option>
|
||||
<option value="America/El_Salvador">
|
||||
El Salvador
|
||||
</option>
|
||||
<option value="America/Managua">
|
||||
Managua
|
||||
</option>
|
||||
<option value="America/Costa_Rica">
|
||||
Costa Rica
|
||||
</option>
|
||||
<option value="America/Montreal">
|
||||
Montreal
|
||||
</option>
|
||||
<option value="America/New_York">
|
||||
Eastern Time (US and Canada)
|
||||
</option>
|
||||
<option value="America/Indianapolis">
|
||||
Indiana (East)
|
||||
</option>
|
||||
<option value="America/Panama">
|
||||
Panama
|
||||
</option>
|
||||
<option value="America/Bogota">
|
||||
Bogota
|
||||
</option>
|
||||
<option value="America/Lima">
|
||||
Lima
|
||||
</option>
|
||||
<option value="America/Halifax">
|
||||
Halifax
|
||||
</option>
|
||||
<option value="America/Puerto_Rico">
|
||||
Puerto Rico
|
||||
</option>
|
||||
<option value="America/Caracas">
|
||||
Caracas
|
||||
</option>
|
||||
<option value="America/Santiago">
|
||||
Santiago
|
||||
</option>
|
||||
<option value="America/St_Johns">
|
||||
Newfoundland and Labrador
|
||||
</option>
|
||||
<option value="America/Montevideo">
|
||||
Montevideo
|
||||
</option>
|
||||
<option value="America/Araguaina">
|
||||
Brasilia
|
||||
</option>
|
||||
<option value="America/Argentina/Buenos_Aires">
|
||||
Buenos Aires, Georgetown
|
||||
</option>
|
||||
<option value="America/Godthab">
|
||||
Greenland
|
||||
</option>
|
||||
<option value="America/Sao_Paulo">
|
||||
Sao Paulo
|
||||
</option>
|
||||
<option value="Atlantic/Azores">
|
||||
Azores
|
||||
</option>
|
||||
<option value="Canada/Atlantic">
|
||||
Atlantic Time (Canada)
|
||||
</option>
|
||||
<option value="Atlantic/Cape_Verde">
|
||||
Cape Verde Islands
|
||||
</option>
|
||||
<option value="UTC">
|
||||
Universal Time UTC
|
||||
</option>
|
||||
<option value="Etc/Greenwich">
|
||||
Greenwich Mean Time
|
||||
</option>
|
||||
<option value="Europe/Belgrade">
|
||||
Belgrade, Bratislava, Ljubljana
|
||||
</option>
|
||||
<option value="CET">
|
||||
Sarajevo, Skopje, Zagreb
|
||||
</option>
|
||||
<option value="Atlantic/Reykjavik">
|
||||
Reykjavik
|
||||
</option>
|
||||
<option value="Europe/Dublin">
|
||||
Dublin
|
||||
</option>
|
||||
<option value="Europe/London">
|
||||
London
|
||||
</option>
|
||||
<option value="Europe/Lisbon">
|
||||
Lisbon
|
||||
</option>
|
||||
<option value="Africa/Casablanca">
|
||||
Casablanca
|
||||
</option>
|
||||
<option value="Africa/Nouakchott">
|
||||
Nouakchott
|
||||
</option>
|
||||
<option value="Europe/Oslo">
|
||||
Oslo
|
||||
</option>
|
||||
<option value="Europe/Copenhagen">
|
||||
Copenhagen
|
||||
</option>
|
||||
<option value="Europe/Brussels">
|
||||
Brussels
|
||||
</option>
|
||||
<option value="Europe/Berlin">
|
||||
Amsterdam, Berlin, Rome, Stockholm, Vienna
|
||||
</option>
|
||||
<option value="Europe/Helsinki">
|
||||
Helsinki
|
||||
</option>
|
||||
<option value="Europe/Amsterdam">
|
||||
Amsterdam
|
||||
</option>
|
||||
<option value="Europe/Rome">
|
||||
Rome
|
||||
</option>
|
||||
<option value="Europe/Stockholm">
|
||||
Stockholm
|
||||
</option>
|
||||
<option value="Europe/Vienna">
|
||||
Vienna
|
||||
</option>
|
||||
<option value="Europe/Luxembourg">
|
||||
Luxembourg
|
||||
</option>
|
||||
<option value="Europe/Paris">
|
||||
Paris
|
||||
</option>
|
||||
<option value="Europe/Zurich">
|
||||
Zurich
|
||||
</option>
|
||||
<option value="Europe/Madrid">
|
||||
Madrid
|
||||
</option>
|
||||
<option value="Africa/Bangui">
|
||||
West Central Africa
|
||||
</option>
|
||||
<option value="Africa/Algiers">
|
||||
Algiers
|
||||
</option>
|
||||
<option value="Africa/Tunis">
|
||||
Tunis
|
||||
</option>
|
||||
<option value="Africa/Harare">
|
||||
Harare, Pretoria
|
||||
</option>
|
||||
<option value="Africa/Nairobi">
|
||||
Nairobi
|
||||
</option>
|
||||
<option value="Europe/Warsaw">
|
||||
Warsaw
|
||||
</option>
|
||||
<option value="Europe/Prague">
|
||||
Prague Bratislava
|
||||
</option>
|
||||
<option value="Europe/Budapest">
|
||||
Budapest
|
||||
</option>
|
||||
<option value="Europe/Sofia">
|
||||
Sofia
|
||||
</option>
|
||||
<option value="Europe/Istanbul">
|
||||
Istanbul
|
||||
</option>
|
||||
<option value="Europe/Athens">
|
||||
Athens
|
||||
</option>
|
||||
<option value="Europe/Bucharest">
|
||||
Bucharest
|
||||
</option>
|
||||
<option value="Asia/Nicosia">
|
||||
Nicosia
|
||||
</option>
|
||||
<option value="Asia/Beirut">
|
||||
Beirut
|
||||
</option>
|
||||
<option value="Asia/Damascus">
|
||||
Damascus
|
||||
</option>
|
||||
<option value="Asia/Jerusalem">
|
||||
Jerusalem
|
||||
</option>
|
||||
<option value="Asia/Amman">
|
||||
Amman
|
||||
</option>
|
||||
<option value="Africa/Tripoli">
|
||||
Tripoli
|
||||
</option>
|
||||
<option value="Africa/Cairo">
|
||||
Cairo
|
||||
</option>
|
||||
<option value="Africa/Johannesburg">
|
||||
Johannesburg
|
||||
</option>
|
||||
<option value="Europe/Moscow">
|
||||
Moscow
|
||||
</option>
|
||||
<option value="Asia/Baghdad">
|
||||
Baghdad
|
||||
</option>
|
||||
<option value="Asia/Kuwait">
|
||||
Kuwait
|
||||
</option>
|
||||
<option value="Asia/Riyadh">
|
||||
Riyadh
|
||||
</option>
|
||||
<option value="Asia/Bahrain">
|
||||
Bahrain
|
||||
</option>
|
||||
<option value="Asia/Qatar">
|
||||
Qatar
|
||||
</option>
|
||||
<option value="Asia/Aden">
|
||||
Aden
|
||||
</option>
|
||||
<option value="Asia/Tehran">
|
||||
Tehran
|
||||
</option>
|
||||
<option value="Africa/Khartoum">
|
||||
Khartoum
|
||||
</option>
|
||||
<option value="Africa/Djibouti">
|
||||
Djibouti
|
||||
</option>
|
||||
<option value="Africa/Mogadishu">
|
||||
Mogadishu
|
||||
</option>
|
||||
<option value="Asia/Dubai">
|
||||
Dubai
|
||||
</option>
|
||||
<option value="Asia/Muscat">
|
||||
Muscat
|
||||
</option>
|
||||
<option value="Asia/Baku">
|
||||
Baku, Tbilisi, Yerevan
|
||||
</option>
|
||||
<option value="Asia/Kabul">
|
||||
Kabul
|
||||
</option>
|
||||
<option value="Asia/Yekaterinburg">
|
||||
Yekaterinburg
|
||||
</option>
|
||||
<option value="Asia/Tashkent">
|
||||
Islamabad, Karachi, Tashkent
|
||||
</option>
|
||||
<option value="Asia/Calcutta">
|
||||
India
|
||||
</option>
|
||||
<option value="Asia/Kathmandu">
|
||||
Kathmandu
|
||||
</option>
|
||||
<option value="Asia/Novosibirsk">
|
||||
Novosibirsk
|
||||
</option>
|
||||
<option value="Asia/Almaty">
|
||||
Almaty
|
||||
</option>
|
||||
<option value="Asia/Dacca">
|
||||
Dacca
|
||||
</option>
|
||||
<option value="Asia/Krasnoyarsk">
|
||||
Krasnoyarsk
|
||||
</option>
|
||||
<option value="Asia/Dhaka">
|
||||
Astana, Dhaka
|
||||
</option>
|
||||
<option value="Asia/Bangkok">
|
||||
Bangkok
|
||||
</option>
|
||||
<option value="Asia/Saigon">
|
||||
Vietnam
|
||||
</option>
|
||||
<option value="Asia/Jakarta">
|
||||
Jakarta
|
||||
</option>
|
||||
<option value="Asia/Irkutsk">
|
||||
Irkutsk, Ulaanbaatar
|
||||
</option>
|
||||
<option value="Asia/Shanghai">
|
||||
Beijing, Shanghai
|
||||
</option>
|
||||
<option value="Asia/Hong_Kong">
|
||||
Hong Kong
|
||||
</option>
|
||||
<option value="Asia/Taipei">
|
||||
Taipei
|
||||
</option>
|
||||
<option value="Asia/Kuala_Lumpur">
|
||||
Kuala Lumpur
|
||||
</option>
|
||||
<option value="Asia/Singapore">
|
||||
Singapore
|
||||
</option>
|
||||
<option value="Australia/Perth">
|
||||
Perth
|
||||
</option>
|
||||
<option value="Asia/Yakutsk">
|
||||
Yakutsk
|
||||
</option>
|
||||
<option value="Asia/Seoul">
|
||||
Seoul
|
||||
</option>
|
||||
<option value="Asia/Tokyo">
|
||||
Osaka, Sapporo, Tokyo
|
||||
</option>
|
||||
<option value="Australia/Darwin">
|
||||
Darwin
|
||||
</option>
|
||||
<option value="Australia/Adelaide">
|
||||
Adelaide
|
||||
</option>
|
||||
<option value="Asia/Vladivostok">
|
||||
Vladivostok
|
||||
</option>
|
||||
<option value="Pacific/Port_Moresby">
|
||||
Guam, Port Moresby
|
||||
</option>
|
||||
<option value="Australia/Brisbane">
|
||||
Brisbane
|
||||
</option>
|
||||
<option value="Australia/Sydney">
|
||||
Canberra, Melbourne, Sydney
|
||||
</option>
|
||||
<option value="Australia/Hobart">
|
||||
Hobart
|
||||
</option>
|
||||
<option value="Asia/Magadan">
|
||||
Magadan
|
||||
</option>
|
||||
<option value="SST">
|
||||
Solomon Islands
|
||||
</option>
|
||||
<option value="Pacific/Noumea">
|
||||
New Caledonia
|
||||
</option>
|
||||
<option value="Asia/Kamchatka">
|
||||
Kamchatka
|
||||
</option>
|
||||
<option value="Pacific/Fiji">
|
||||
Fiji Islands, Marshall Islands
|
||||
</option>
|
||||
<option value="Pacific/Auckland">
|
||||
Auckland, Wellington
|
||||
</option>
|
||||
<option value="Asia/Kolkata">
|
||||
Mumbai, Kolkata, New Delhi
|
||||
</option>
|
||||
<option value="Europe/Kiev">
|
||||
Kiev
|
||||
</option>
|
||||
<option value="America/Tegucigalpa">
|
||||
Tegucigalpa
|
||||
</option>
|
||||
<option value="Pacific/Apia">
|
||||
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="rec-conf">
|
||||
<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" 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" class="button__radiobox checked"><span>All participants</span></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="reconf">
|
||||
<label style="cursor:pointer; border-bottom: 1px dashed #444444; position:absolute; bottom: 15px; right: 10px;">Reconfigure</label>
|
||||
</div>
|
||||
<div id="switch">
|
||||
<label style="cursor:pointer; border-bottom: 1px dashed #444444; position:absolute; bottom: 15px; left: 10px;">Meeting mode</label>
|
||||
</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="Client ID" />
|
||||
</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="Client ID" />
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; margin: 12px;">
|
||||
<span>Secret key</span>
|
||||
<input id="secretKeyField" autocomplete="off" class="form-control" data-id="zoom-secret-key" type="text" placeholder="Client ID" />
|
||||
</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 onсlick="" class="btn-text-default" style="width:calc(100% - 24px); margin: 0 12px 0px 12px; height: 30px;">Save</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
213
index_zoom.html
Normal file
213
index_zoom.html
Normal file
@ -0,0 +1,213 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<title>Zoom WebSDK</title>
|
||||
<meta charset="utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.8.6/css/bootstrap.css" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.8.6/css/react-select.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
|
||||
<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">
|
||||
<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>
|
||||
</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
|
||||
}
|
||||
.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;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="join_container">
|
||||
<nav id="nav-tool" class="navbar navbar-inverse navbar-fixed-top" style="height: 100%;">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="#">Zoom WebSDK</a>
|
||||
</div>
|
||||
<div id="navbar" class="websdktest">
|
||||
<form class="navbar-form navbar-right" id="meeting_form">
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
<div id="reconf" style="z-index: 9999;">
|
||||
<label style="cursor:pointer; border-bottom: 1px dashed #f1f1f1; position:absolute; bottom: 15px; right: 10px; z-index: 9999;">Reconfigure</label>
|
||||
</div>
|
||||
<div id="switch" style="z-index: 9999;">
|
||||
<label style="cursor:pointer; border-bottom: 1px dashed #f1f1f1; position:absolute; bottom: 15px; left: 10px; z-index: 9999;">Schedule mode</label>
|
||||
</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';
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<script src="https://source.zoom.us/1.8.6/lib/vendor/react.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.8.6/lib/vendor/react-dom.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.8.6/lib/vendor/redux.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.8.6/lib/vendor/redux-thunk.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.8.6/lib/vendor/lodash.min.js"></script>
|
||||
<script src="https://source.zoom.us/zoom-meeting-1.8.6.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%',
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
7
licenses/CORSAnywhere.license
Normal file
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
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.
|
||||
32
meeting.html
Normal file
32
meeting.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<title>Zoom WebSDK</title>
|
||||
<meta charset="utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.0/css/bootstrap.css" />
|
||||
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/1.9.0/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>
|
||||
|
||||
<body>
|
||||
<script src="https://source.zoom.us/1.9.0/lib/vendor/react.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.9.0/lib/vendor/react-dom.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.9.0/lib/vendor/redux.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.9.0/lib/vendor/redux-thunk.min.js"></script>
|
||||
<script src="https://source.zoom.us/1.9.0/lib/vendor/lodash.min.js"></script>
|
||||
<script src="https://source.zoom.us/zoom-meeting-1.9.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>
|
||||
const simd = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 253, 15, 26, 11]))
|
||||
simd().then((res) => {
|
||||
console.log("simd check", res);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
BIN
resources/img/error_icon.png
Normal file
BIN
resources/img/error_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 366 B |
BIN
resources/img/faq_arrow_down.png
Normal file
BIN
resources/img/faq_arrow_down.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 155 B |
BIN
resources/img/icon.png
Normal file
BIN
resources/img/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 590 B |
BIN
resources/img/icon@2x.png
Normal file
BIN
resources/img/icon@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
387
scripts/zoom.js
Normal file
387
scripts/zoom.js
Normal file
@ -0,0 +1,387 @@
|
||||
var Ps;
|
||||
(function(window, undefined){
|
||||
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","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"];
|
||||
var minutes = ["0","15","30","45"];
|
||||
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 = '';
|
||||
for (var nTime = 0; nTime < times.length; nTime++) {
|
||||
time_hour_data.push({id: nHour, text: times[nTime]});
|
||||
}
|
||||
for (var nHour = 0; nHour < hours.length; nHour++) {
|
||||
duration_hour_data.push({id: hours[nHour], text: hours[nHour]});
|
||||
}
|
||||
for (var nMin = 0; nMin < minutes.length; nMin++) {
|
||||
duration_min_data.push({id: minutes[nMin], text: minutes[nMin]});
|
||||
}
|
||||
|
||||
var jsonData = { };
|
||||
|
||||
window.oncontextmenu = function(e)
|
||||
{
|
||||
if (e.preventDefault)
|
||||
e.preventDefault();
|
||||
if (e.stopPropagation)
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
};
|
||||
|
||||
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.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 () {
|
||||
$('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(); });
|
||||
$('#settings_wrapper').find(".arrow").toggleClass("transform");
|
||||
});
|
||||
|
||||
$('#saveConfigBtn').click(function() {
|
||||
SaveConfiguration(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_api'))
|
||||
$(this).toggleClass('error_api');
|
||||
});
|
||||
$('#secretKeyField').focus(function() {
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#secretKeyField').change(function() {
|
||||
if ($(this).hasClass('error_api'))
|
||||
$(this).toggleClass('error_api');
|
||||
});
|
||||
$('#tokenKeyField').focus(function() {
|
||||
if(this.value !== this.defaultValue){
|
||||
this.select();
|
||||
}
|
||||
});
|
||||
$('#tokenKeyField').change(function() {
|
||||
if ($(this).hasClass('error_api'))
|
||||
$(this).toggleClass('error_api');
|
||||
});
|
||||
$('#reconf').click(function() {
|
||||
$('#scheduler-container').toggleClass('display-none');
|
||||
$('#configState').toggleClass('display-none');
|
||||
});
|
||||
$('#switch').click(function() {
|
||||
$('#scheduler-container').toggleClass('display-none');
|
||||
$('#iframe_join').toggleClass('display-none');
|
||||
});
|
||||
$('#schedule_meeting').click(function() {
|
||||
ScheduleMeeting();
|
||||
});
|
||||
Ps = new PerfectScrollbar("#scheduler-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")) || "";
|
||||
SaveConfiguration(false);
|
||||
});
|
||||
|
||||
function SaveConfiguration(bShowError) {
|
||||
if (!IsEmptyFields(bShowError)) {
|
||||
email = $('#emailField').val().trim();
|
||||
apiKey = $('#apiKeyField').val().trim();
|
||||
secretKey = $('#secretKeyField').val().trim();
|
||||
tokenKey = $('#tokenKeyField').val().trim();
|
||||
|
||||
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');
|
||||
$('#scheduler-container').toggleClass('display-none');
|
||||
}
|
||||
};
|
||||
function IsEmptyFields(bShowError) {
|
||||
var isEmpty = null;
|
||||
|
||||
if ($('#emailField').val() === '') {
|
||||
isEmpty = true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#emailField').hasClass('error_api'))
|
||||
$('#emailField').toggleClass('error_api');
|
||||
}
|
||||
else {
|
||||
isEmpty = false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#emailField').hasClass('error_api'))
|
||||
$('#emailField').toggleClass('error_api');
|
||||
}
|
||||
if ($('#apiKeyField').val() === '') {
|
||||
isEmpty = true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#apiKeyField').hasClass('error_api'))
|
||||
$('#apiKeyField').toggleClass('error_api');
|
||||
}
|
||||
else {
|
||||
isEmpty = false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#apiKeyField').hasClass('error_api'))
|
||||
$('#apiKeyField').toggleClass('error_api');
|
||||
}
|
||||
|
||||
if ($('#secretKeyField').val() === '') {
|
||||
isEmpty = isEmpty && true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#secretKeyField').hasClass('error_api'))
|
||||
$('#secretKeyField').toggleClass('error_api');
|
||||
}
|
||||
else {
|
||||
isEmpty = isEmpty && false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#secretKeyField').hasClass('error_api'))
|
||||
$('#secretKeyField').toggleClass('error_api');
|
||||
}
|
||||
|
||||
if ($('#tokenKeyField').val() === '') {
|
||||
isEmpty = isEmpty && true;
|
||||
|
||||
if (bShowError)
|
||||
if (!$('#tokenKeyField').hasClass('error_api'))
|
||||
$('#tokenKeyField').toggleClass('error_api');
|
||||
}
|
||||
else {
|
||||
isEmpty = isEmpty && false;
|
||||
|
||||
if (bShowError)
|
||||
if ($('#tokenKeyField').hasClass('error_api'))
|
||||
$('#tokenKeyField').toggleClass('error_api');
|
||||
}
|
||||
|
||||
return isEmpty;
|
||||
}
|
||||
function ScheduleMeeting() {
|
||||
// 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;
|
||||
jsonData["start_time"] = sResultTime;
|
||||
jsonData["duration"] = sResultDuration;
|
||||
jsonData["settings"] = meetingSettings;
|
||||
if (sMeetPasswd !== "")
|
||||
jsonData["password"] = sMeetPasswd;
|
||||
jsonData["timezone"] = sTimeZone;
|
||||
jsonData["recurrence"] = sRecurringConf;
|
||||
|
||||
$.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() + ' ' + jsonData["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.callCommand(function() {
|
||||
Api.CoAuthoringChatSendMessage(Asc.scope.meeting_info);
|
||||
});
|
||||
}).error(function(e){
|
||||
|
||||
});
|
||||
};
|
||||
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
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
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
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"
|
||||
}
|
||||
7
translations/ru-RU.json
Normal file
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
4
vendor/jQuery-2.2.2-min/jquery-v2.2.2-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
21
vendor/select2-4.0.6-rc.1/LICENSE.md
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
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
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
1
vendor/select2-4.0.6-rc.1/dist/css/select2.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6559
vendor/select2-4.0.6-rc.1/dist/js/select2.full.js
vendored
Normal file
6559
vendor/select2-4.0.6-rc.1/dist/js/select2.full.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
vendor/select2-4.0.6-rc.1/dist/js/select2.full.min.js
vendored
Normal file
1
vendor/select2-4.0.6-rc.1/dist/js/select2.full.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
5847
vendor/select2-4.0.6-rc.1/dist/js/select2.js
vendored
Normal file
5847
vendor/select2-4.0.6-rc.1/dist/js/select2.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
vendor/select2-4.0.6-rc.1/dist/js/select2.min.js
vendored
Normal file
1
vendor/select2-4.0.6-rc.1/dist/js/select2.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
vendor/select2-4.0.6-rc.1/docs/README.md
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
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
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
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
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
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
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>
|
||||
154
vendor/zoom-sdk/index.js
vendored
Normal file
154
vendor/zoom-sdk/index.js
vendored
Normal file
@ -0,0 +1,154 @@
|
||||
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', '#scheduler-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 = localStorage.getItem('zoom-client-key') || "";
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
var API_SECRET = localStorage.getItem('zoom-secret-key') || "";
|
||||
|
||||
// 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 (element) {
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
window.parent.openMeeting(joinUrl);
|
||||
},
|
||||
});
|
||||
console.log("!!!");
|
||||
};
|
||||
|
||||
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 =
|
||||
testTool.getCurrentDomain() +
|
||||
"http://127.0.0.1:8001/sdkjs-plugins/plugin-zoom//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
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.8.6/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
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;
|
||||
10
vendor/zoom-sdk/vconsole.min.js
vendored
Normal file
10
vendor/zoom-sdk/vconsole.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user