PluginProbe ʕ •ᴥ•ʔ
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more / 4.2.4
EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Videos, 3D FlipBook, Social feeds & more v4.2.4
4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.14 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.10 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.4.0 4.4.1 4.4.10 4.4.11 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5.0 4.5.1
embedpress / assets / js / admin.js
embedpress / assets / js Last commit date
vendor 7 years ago admin.js 1 year ago ads.js 1 year ago carousel.js 1 year ago carousel.min.js 2 years ago documents-viewer-script.js 3 years ago embed-ui.min.js 1 year ago front.js 1 year ago gallery-justify.js 1 year ago glider.js 1 year ago glider.min.js 2 years ago gutneberg-script.js 1 year ago index.html 7 years ago initCarousel.js 2 years ago initplyr.js 2 years ago instafeed.js 2 years ago license.js 2 years ago pdfobject.js 1 year ago plyr.js 1 year ago plyr.polyfilled.js 3 years ago preview.js 3 years ago settings.js 6 years ago vimeo-player.js 2 years ago ytiframeapi.js 2 years ago
admin.js
111 lines
1 /**
2 * @package EmbedPress
3 * @author EmbedPress <help@embedpress.com>
4 * @copyright Copyright (C) 2018 EmbedPress. All rights reserved.
5 * @license GPLv2 or later
6 * @since 1.7.0
7 */
8 (function ($) {
9 'use strict';
10
11 var __ = wp.i18n.__;
12 $(document).on('click', '.embedpress-plugin-notice-dismissible.is-dismissible', function () {
13 var data = {
14 action: 'embedpress_notice_dismiss',
15 security: EMBEDPRESS_ADMIN_PARAMS.nonce,
16 };
17
18 $.post(EMBEDPRESS_ADMIN_PARAMS.ajaxurl, data, function () {
19
20 });
21 });
22
23
24 })(jQuery);
25
26
27
28
29 // leon js
30
31 const rengeControls = document.querySelectorAll('.range-control');
32 const adToggleSwitch = document.querySelector('.sponsored-active_btn');
33 const videoBtn = document.querySelector('.btn-video');
34 const imgBtn = document.querySelector('.btn-img');
35 const videoBtnBody = document.querySelector('.video-body');
36 const imgBtnBody = document.querySelector('.img-body');
37 const videoPlayBtn = document.querySelector('.video-play_btn');
38 const videoPopPup = document.querySelector('.popup-video-wrap');
39 const closePopPup = document.querySelector('.close-video_btn');
40 const slideLink = document.querySelector('.sponsored-floating_quick-links_wrapper');
41 const floatingQuckLinks = document.querySelector('.sponsored-floating_quick-links');
42 const activeIcon = document.querySelector('.active-icon');
43 const closeIcon = document.querySelector('.close-icon');
44
45 rengeControls?.forEach((rangeControl) => {
46 const minus = rangeControl.querySelector('.range_negative');
47 const plus = rangeControl.querySelector('.range_positive');
48 const input = rangeControl.querySelector('.range__value');
49
50
51 minus.addEventListener('click', function () {
52 let v = parseInt(input.value);
53
54 if (v > 0) {
55 input.value = v - 1;
56 }
57 })
58
59 plus.addEventListener('click', function () {
60 input.value = parseInt(input.value) + 1;
61 })
62 })
63
64 videoBtn?.addEventListener('click', function () {
65
66 if (adToggleSwitch) {
67 this.classList.add('sponsored-active_btn');
68 imgBtn.classList.remove('sponsored-active_btn');
69 videoBtnBody.classList.add('toggle-active');
70 imgBtnBody.classList.remove('toggle-active');
71 }
72 });
73
74 imgBtn?.addEventListener('click', function () {
75 if (adToggleSwitch) {
76 this.classList.add('sponsored-active_btn');
77 videoBtn.classList.remove('sponsored-active_btn');
78 imgBtnBody.classList.add('toggle-active');
79 videoBtnBody.classList.remove('toggle-active');
80
81 }
82 });
83
84 videoPlayBtn?.addEventListener('click', function () {
85 videoPopPup.classList.add('popup-active');
86 })
87
88 closePopPup?.addEventListener('click', function () {
89 videoPopPup.classList.remove('popup-active');
90 })
91
92 activeIcon?.addEventListener('click', function(){
93 slideLink.classList.add('sponsored-link_active');
94 this.classList.remove('sponsored-link_active');
95 closeIcon.classList.add('sponsored-link_active')
96 })
97 closeIcon?.addEventListener('click', function(){
98 slideLink.classList.remove('sponsored-link_active');
99 this.classList.remove('sponsored-link_active');
100 activeIcon.classList.add('sponsored-link_active')
101 })
102 floatingQuckLinks?.addEventListener('click', function(){
103 slideLink.classList.remove('sponsored-link_active');
104 activeIcon.classList.add('sponsored-link_active');
105 closeIcon.classList.remove('sponsored-link_active')
106 })
107
108
109
110
111