diff options
| author | root | 2014-09-15 00:43:22 +0200 |
|---|---|---|
| committer | root | 2014-09-15 00:43:22 +0200 |
| commit | 93b2daff3db922541e3cd1cb59081f15025439c8 (patch) | |
| tree | fbdbe33e13df7a5da17f14d3a75bd44c51b1b31c /stream.php | |
| parent | dfc4ee6bfbff601328f6bf8dadf9716a58cbd903 (diff) | |
| download | video-dl-93b2daff3db922541e3cd1cb59081f15025439c8.tar.gz | |
fixed typos and improved usability
Diffstat (limited to 'stream.php')
| -rw-r--r-- | stream.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -61,7 +61,8 @@ unset($db); if(canPlay != true){ var canWebm = false; if(v.canPlayType && v.canPlayType('video/webm').replace(/no/, '')){ - if(window.confirm("It seems your browser doesn't support mp4 videos. Do you want to convert it to webm?")){ + if(window.confirm('It seems your browser doesn\'t support mp4 videos. Do you want to convert it to WebM?')){ + document.getElementById('middle').innerHTML='<div class="row"><h3>Converting the video to <a href="//en.wikipedia.org/wiki/WebM" title="Wikipedia: WebM" target="__blank">WebM.</h3></div><div class="row"><br><br><img src="/static/ajax-loader.gif" alt="ajax-loader"/></div>'; doVideo("convert"); } } else { @@ -74,7 +75,7 @@ unset($db); doVideo("player"); } } else if(r.status == 504){ - document.getElementById('middle').innerHTML="<h1>The connection timed out</h1><br>Please refresh the page."; + document.getElementById('middle').innerHTML="<h3>The connection timed out</h3><br>Please refresh the page."; window.reload; } } @@ -94,7 +95,7 @@ unset($db); <div class="text-center"> <div id='middle'> <div class="row"> - <h1>This may take <span id='counter'>some</span> time.</h1> + <h3>This may take <span id='counter'>some</span> time.</h3> </div> <div class="row"> <p>( meanwhile we are proving P = NP ...   )</p> |
