mycpen-blog 0.0.0-fyupepumck → 0.0.0-fyvdazuhhw

Sign up to get free protection for your applications and to get access to all the features.
package/js/Meting.js CHANGED
@@ -1 +1,163 @@
1
- "use strict";var aplayers=[],loadMeting=function(){function e(e,t){var a={container:e,audio:t,mini:null,fixed:null,autoplay:!1,mutex:!0,lrcType:3,listFolded:!1,preload:"auto",theme:"#2980b9",loop:"all",order:"list",volume:null,listMaxHeight:null,customAudioType:null,storageName:"metingjs"};if(t.length){t[0].lrc||(a.lrcType=0);var r={};for(var s in a){var n=s.toLowerCase();(e.dataset.hasOwnProperty(n)||e.dataset.hasOwnProperty(s)||null!==a[s])&&(r[s]=e.dataset[n]||e.dataset[s]||a[s],"true"!==r[s]&&"false"!==r[s]||(r[s]="true"==r[s]))}aplayers.push(new APlayer(r))}}var t="https://api.i-meto.com/meting/api?server=:server&type=:type&id=:id&r=:r";"undefined"!=typeof meting_api&&(t=meting_api);for(var a=0;a<aplayers.length;a++)if(!aplayers[a].container.classList.contains("no-destroy"))try{aplayers[a].destroy()}catch(e){console.log(e)}aplayers=[];for(var r=document.querySelectorAll(".aplayer"),s=0;s<r.length;s++)!function(){var a=r[s];if(a.classList.contains("no-reload"))return"continue";if(a.classList.contains("no-destroy")&&a.classList.add("no-reload"),a.dataset.id){var n=a.dataset.api||t;n=(n=(n=(n=(n=n.replace(":server",a.dataset.server)).replace(":type",a.dataset.type)).replace(":id",a.dataset.id)).replace(":auth",a.dataset.auth)).replace(":r",Math.random());var l=new XMLHttpRequest;l.onreadystatechange=function(){if(4===l.readyState&&(l.status>=200&&l.status<300||304===l.status)){var t=JSON.parse(l.responseText);e(a,t)}},l.open("get",n,!0),l.send(null)}else if(a.dataset.url){var o=[{name:a.dataset.name||a.dataset.title||"Audio name",artist:a.dataset.artist||a.dataset.author||"Audio artist",url:a.dataset.url,cover:a.dataset.cover||a.dataset.pic,lrc:a.dataset.lrc,type:a.dataset.type||"auto"}];e(a,o)}}()};document.addEventListener("DOMContentLoaded",loadMeting,!1);
1
+ 'use strict';
2
+ var _0x3afc93 = _0x5f06;
3
+ function _0x1375() {
4
+ var _0x46d4bf = [
5
+ 'replace',
6
+ '263632pzZnIo',
7
+ 'addEventListener',
8
+ 'DOMContentLoaded',
9
+ 'hasOwnProperty',
10
+ 'name',
11
+ ':id',
12
+ 'false',
13
+ 'send',
14
+ 'status',
15
+ 'list',
16
+ 'auth',
17
+ 'url',
18
+ 'cover',
19
+ 'random',
20
+ 'responseText',
21
+ 'pic',
22
+ 'classList',
23
+ '11033200jHNdAr',
24
+ 'no-reload',
25
+ '1043606dhdOAr',
26
+ 'continue',
27
+ '32808mgCwyC',
28
+ ':server',
29
+ '.aplayer',
30
+ 'dataset',
31
+ '27FAsPpK',
32
+ 'parse',
33
+ 'author',
34
+ 'onreadystatechange',
35
+ 'undefined',
36
+ 'true',
37
+ '#2980b9',
38
+ 'no-destroy',
39
+ 'server',
40
+ 'contains',
41
+ 'title',
42
+ ':auth',
43
+ 'metingjs',
44
+ '12325600agGNax',
45
+ 'lrcType',
46
+ '15736653SxToEb',
47
+ 'api',
48
+ 'auto',
49
+ '5499624lwlFEN',
50
+ 'open',
51
+ 'lrc',
52
+ 'add',
53
+ 'container',
54
+ 'type',
55
+ 'destroy',
56
+ 'Audio\x20artist',
57
+ 'push',
58
+ '890MMxMji',
59
+ 'all',
60
+ 'length',
61
+ '2XIoBMA'
62
+ ];
63
+ _0x1375 = function () {
64
+ return _0x46d4bf;
65
+ };
66
+ return _0x1375();
67
+ }
68
+ (function (_0x553be5, _0x4a55c8) {
69
+ var _0x3b7685 = _0x5f06, _0x7011c = _0x553be5();
70
+ while (!![]) {
71
+ try {
72
+ var _0x1ab54f = -parseInt(_0x3b7685(0x8b)) / 0x1 * (-parseInt(_0x3b7685(0x67)) / 0x2) + -parseInt(_0x3b7685(0x6d)) / 0x3 * (-parseInt(_0x3b7685(0x8d)) / 0x4) + -parseInt(_0x3b7685(0x88)) / 0x5 * (-parseInt(_0x3b7685(0x69)) / 0x6) + -parseInt(_0x3b7685(0x7a)) / 0x7 + parseInt(_0x3b7685(0x7f)) / 0x8 + -parseInt(_0x3b7685(0x7c)) / 0x9 + parseInt(_0x3b7685(0x9e)) / 0xa;
73
+ if (_0x1ab54f === _0x4a55c8)
74
+ break;
75
+ else
76
+ _0x7011c['push'](_0x7011c['shift']());
77
+ } catch (_0xff55da) {
78
+ _0x7011c['push'](_0x7011c['shift']());
79
+ }
80
+ }
81
+ }(_0x1375, 0xd9a92));
82
+ function _0x5f06(_0x1837bc, _0x5d6c0f) {
83
+ var _0x1375da = _0x1375();
84
+ return _0x5f06 = function (_0x5f06e1, _0xebec0c) {
85
+ _0x5f06e1 = _0x5f06e1 - 0x66;
86
+ var _0x1ca643 = _0x1375da[_0x5f06e1];
87
+ return _0x1ca643;
88
+ }, _0x5f06(_0x1837bc, _0x5d6c0f);
89
+ }
90
+ var aplayers = [], loadMeting = function () {
91
+ var _0x5f12e8 = _0x5f06;
92
+ function _0x1d5c8f(_0x52e0a1, _0x27e036) {
93
+ var _0x5787b5 = _0x5f06, _0x2509e4 = {
94
+ 'container': _0x52e0a1,
95
+ 'audio': _0x27e036,
96
+ 'mini': null,
97
+ 'fixed': null,
98
+ 'autoplay': !0x1,
99
+ 'mutex': !0x0,
100
+ 'lrcType': 0x3,
101
+ 'listFolded': !0x1,
102
+ 'preload': _0x5787b5(0x7e),
103
+ 'theme': _0x5787b5(0x73),
104
+ 'loop': _0x5787b5(0x89),
105
+ 'order': _0x5787b5(0x96),
106
+ 'volume': null,
107
+ 'listMaxHeight': null,
108
+ 'customAudioType': null,
109
+ 'storageName': _0x5787b5(0x79)
110
+ };
111
+ if (_0x27e036[_0x5787b5(0x8a)]) {
112
+ _0x27e036[0x0][_0x5787b5(0x81)] || (_0x2509e4[_0x5787b5(0x7b)] = 0x0);
113
+ var _0x24fcb5 = {};
114
+ for (var _0x570609 in _0x2509e4) {
115
+ var _0x545803 = _0x570609['toLowerCase']();
116
+ (_0x52e0a1[_0x5787b5(0x6c)]['hasOwnProperty'](_0x545803) || _0x52e0a1[_0x5787b5(0x6c)][_0x5787b5(0x90)](_0x570609) || null !== _0x2509e4[_0x570609]) && (_0x24fcb5[_0x570609] = _0x52e0a1[_0x5787b5(0x6c)][_0x545803] || _0x52e0a1[_0x5787b5(0x6c)][_0x570609] || _0x2509e4[_0x570609], _0x5787b5(0x72) !== _0x24fcb5[_0x570609] && _0x5787b5(0x93) !== _0x24fcb5[_0x570609] || (_0x24fcb5[_0x570609] = _0x5787b5(0x72) == _0x24fcb5[_0x570609]));
117
+ }
118
+ aplayers[_0x5787b5(0x87)](new APlayer(_0x24fcb5));
119
+ }
120
+ }
121
+ var _0x272a05 = 'https://api.i-meto.com/meting/api?server=:server&type=:type&id=:id&r=:r';
122
+ _0x5f12e8(0x71) != typeof meting_api && (_0x272a05 = meting_api);
123
+ for (var _0x4af02b = 0x0; _0x4af02b < aplayers[_0x5f12e8(0x8a)]; _0x4af02b++)
124
+ if (!aplayers[_0x4af02b][_0x5f12e8(0x83)][_0x5f12e8(0x9d)][_0x5f12e8(0x76)](_0x5f12e8(0x74)))
125
+ try {
126
+ aplayers[_0x4af02b][_0x5f12e8(0x85)]();
127
+ } catch (_0x1201af) {
128
+ console['log'](_0x1201af);
129
+ }
130
+ aplayers = [];
131
+ for (var _0x3790bc = document['querySelectorAll'](_0x5f12e8(0x6b)), _0x16b0ea = 0x0; _0x16b0ea < _0x3790bc[_0x5f12e8(0x8a)]; _0x16b0ea++) {
132
+ (function () {
133
+ var _0x153749 = _0x5f12e8, _0x2410cc = _0x3790bc[_0x16b0ea];
134
+ if (_0x2410cc[_0x153749(0x9d)]['contains'](_0x153749(0x66)))
135
+ return _0x153749(0x68);
136
+ if (_0x2410cc[_0x153749(0x9d)]['contains']('no-destroy') && _0x2410cc['classList'][_0x153749(0x82)](_0x153749(0x66)), _0x2410cc['dataset']['id']) {
137
+ var _0x65ae34 = _0x2410cc['dataset'][_0x153749(0x7d)] || _0x272a05;
138
+ _0x65ae34 = _0x65ae34[_0x153749(0x8c)](_0x153749(0x6a), _0x2410cc[_0x153749(0x6c)][_0x153749(0x75)]), _0x65ae34 = _0x65ae34[_0x153749(0x8c)](':type', _0x2410cc['dataset'][_0x153749(0x84)]), _0x65ae34 = _0x65ae34['replace'](_0x153749(0x92), _0x2410cc[_0x153749(0x6c)]['id']), _0x65ae34 = _0x65ae34['replace'](_0x153749(0x78), _0x2410cc['dataset'][_0x153749(0x97)]), _0x65ae34 = _0x65ae34['replace'](':r', Math[_0x153749(0x9a)]());
139
+ var _0x21f3dc = new XMLHttpRequest();
140
+ _0x21f3dc[_0x153749(0x70)] = function () {
141
+ var _0x3f0537 = _0x153749;
142
+ if (0x4 === _0x21f3dc['readyState'] && (_0x21f3dc[_0x3f0537(0x95)] >= 0xc8 && _0x21f3dc['status'] < 0x12c || 0x130 === _0x21f3dc[_0x3f0537(0x95)])) {
143
+ var _0x1a2519 = JSON[_0x3f0537(0x6e)](_0x21f3dc[_0x3f0537(0x9b)]);
144
+ _0x1d5c8f(_0x2410cc, _0x1a2519);
145
+ }
146
+ }, _0x21f3dc[_0x153749(0x80)]('get', _0x65ae34, !0x0), _0x21f3dc[_0x153749(0x94)](null);
147
+ } else {
148
+ if (_0x2410cc[_0x153749(0x6c)][_0x153749(0x98)]) {
149
+ var _0x43dfe8 = [{
150
+ 'name': _0x2410cc[_0x153749(0x6c)][_0x153749(0x91)] || _0x2410cc['dataset'][_0x153749(0x77)] || 'Audio\x20name',
151
+ 'artist': _0x2410cc[_0x153749(0x6c)]['artist'] || _0x2410cc[_0x153749(0x6c)][_0x153749(0x6f)] || _0x153749(0x86),
152
+ 'url': _0x2410cc[_0x153749(0x6c)][_0x153749(0x98)],
153
+ 'cover': _0x2410cc[_0x153749(0x6c)][_0x153749(0x99)] || _0x2410cc['dataset'][_0x153749(0x9c)],
154
+ 'lrc': _0x2410cc[_0x153749(0x6c)][_0x153749(0x81)],
155
+ 'type': _0x2410cc[_0x153749(0x6c)][_0x153749(0x84)] || _0x153749(0x7e)
156
+ }];
157
+ _0x1d5c8f(_0x2410cc, _0x43dfe8);
158
+ }
159
+ }
160
+ }());
161
+ }
162
+ };
163
+ document[_0x3afc93(0x8e)](_0x3afc93(0x8f), loadMeting, !0x1);