Commit cf6484cc authored by Ahoy's avatar Ahoy

Moonwalk start_time

parent 9b5af265
Pipeline #12216836 passed with stages
in 1 minute 28 seconds
......@@ -198,6 +198,14 @@
<span class="attr-name">data-limit=&quot;</span><span class="attr-value">5</span><span class="attr-name">&quot;</span>
<span class="comment"> - максимальное число торрентов</span>
</div>
<div class="code">
<span class="comment">
Параметр <span class="attr-name">data-start_time</span>
</span>
<br>
<span class="attr-name">data-start_time=&quot;</span><span class="attr-value">60</span><span class="attr-name">&quot;</span>
<span class="comment"> - с какой секунды запустить видео</span>
</div>
<div class="code">
<span class="comment">
Параметр <span class="attr-name">data-button</span>
......
......@@ -120,6 +120,9 @@ function yo() {
for (var i = 0, len = keys.length; i < len; i++) {
var key = keys[i].toLowerCase().trim();
if (players.hasOwnProperty(key) && players[key]) {
players[key] = (key === 'moonwalk' && options.start_time)
? players[key] + '?start_time=' + options.start_time
: players[key];
var option = document.createElement('div');
option.setAttribute('onclick', 'showPlayer("' + players[key] + '", this)');
option.dataset.iframe = players[key];
......
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