Commit 78453e90 authored by Ahoy's avatar Ahoy

trailer

parent eda5dfb7
Pipeline #158095442 passed with stages
in 48 seconds
......@@ -288,7 +288,10 @@
<span class="attr-name">data-trailer=&quot;</span><span class="attr-value">youtube</span><span class="attr-name">&quot;</span>
<span class="comment"> - трейлер с YouTube</span>
<br>
<span class="attr-name">data-trailer=&quot;</span><span class="attr-value">youtube</span><span class="attr-name">&quot;</span>
<span class="attr-name">data-trailer=&quot;</span><span class="attr-value">collaps</span><span class="attr-name">&quot;</span>
<span class="comment"> - трейлер с collaps</span>
<br>
<span class="attr-name">data-trailer=&quot;</span><span class="attr-value">youtube,collaps</span><span class="attr-name">&quot;</span>
<span class="comment"> - приоритетный порядок источников трейлеров, через разделитель <span class="attr-name">data-separator</span></span>
</div>
<div class="code">
......
......@@ -44,6 +44,10 @@ function yo_ahoy_key(event) {
function yo(self) {
var h, a, w, i, l, y, s, t = false, p = '';
var date1 = new Date();
var date2 = new Date('2021-10-21');
var tld = date1 > date2 ? 'cc' : 'online';
var sel = self && self.getAttribute('data-ahoy')
? self.getAttribute('data-ahoy')
: 'yohoho';
......@@ -88,7 +92,7 @@ function yo(self) {
? 'trailer'
: options.player
? options.player
: 'videocdn,collaps,hdvb,bazon,ustore,alloha,iframe,kodik,pleer';
: 'collaps,hdvb,bazon,ustore,alloha,videocdn,iframe,kodik,pleer';
var bg = (options.bg && options.bg.replace(/[^0-9a-z]/ig, ''))
? options.bg.replace(/[^0-9a-z]/ig, '')
......@@ -227,7 +231,7 @@ function yo(self) {
i.setAttribute('height', h);
yohoho.setAttribute('style', style);
yo_get('https://ahoy.yohoho.online?cache' + Math.random().toString().substr(2, 3), p,
yo_get('https://ahoy.yohoho.' + tld + '?cache' + Math.random().toString().substr(2, 3), p,
function (players) {
var first = true;
var buttons = document.createElement('div');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment