snipt

Ctrl+h for KB shortcuts

JavaScript

Hate computers.

var endTimeMilliseconds = parser.startTime(subtitleScope.subtitle) / 1000;
var startTimeMilliseconds = parser.endTime(subtitleScope.subtitle) / 1000;
https://snipt.net/embed/e840609579de20f193dd5b22ee21c1c2/
/raw/e840609579de20f193dd5b22ee21c1c2/
e840609579de20f193dd5b22ee21c1c2
js
JavaScript
2
2019-08-12T14:55:17
True
False
False
Jan 28, 2013 at 06:14 PM
/api/public/snipt/54677/
hate-computers
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="kd">var</span> <span class="nx">endTimeMilliseconds</span> <span class="o">=</span> <span class="nx">parser</span><span class="p">.</span><span class="nx">startTime</span><span class="p">(</span><span class="nx">subtitleScope</span><span class="p">.</span><span class="nx">subtitle</span><span class="p">)</span> <span class="o">/</span> <span class="mi">1000</span><span class="p">;</span> </span><span id="L-2"><a name="L-2"></a><span class="kd">var</span> <span class="nx">startTimeMilliseconds</span> <span class="o">=</span> <span class="nx">parser</span><span class="p">.</span><span class="nx">endTime</span><span class="p">(</span><span class="nx">subtitleScope</span><span class="p">.</span><span class="nx">subtitle</span><span class="p">)</span> <span class="o">/</span> <span class="mi">1000</span><span class="p">;</span> </span></pre></div> </td></tr></table>
hate