Improve web app

Standalone mode
Don't display bookmarklet in standalone mode
Correct start URL
This commit is contained in:
Pierre Rudloff 2016-07-10 13:10:20 +02:00
parent 94527e11e1
commit 28d1319d73
3 changed files with 9 additions and 3 deletions

View file

@ -658,3 +658,9 @@ h1 {
} }
} }
@media all and (display-mode: standalone) {
.bookmarklet {
display: none;
}
}

View file

@ -1,7 +1,7 @@
{ {
"short_name": "AllTube", "short_name": "AllTube",
"name": "AllTube Download", "name": "AllTube Download",
"display": "minimal-ui", "display": "standalone",
"icons": [{ "icons": [{
"src": "img/favicon.png", "src": "img/favicon.png",
"sizes": "32x32", "sizes": "32x32",
@ -24,6 +24,6 @@
"type": "image/png" "type": "image/png"
}], }],
"lang": "en", "lang": "en",
"start_url": "./index.php", "start_url": "./",
"theme_color": "#4F4F4F" "theme_color": "#4F4F4F"
} }

View file

@ -21,7 +21,7 @@
</div> </div>
</form> </form>
<a class="combatiblelink" href="{path_for name="extractors"}">See all supported websites</a> <a class="combatiblelink" href="{path_for name="extractors"}">See all supported websites</a>
<div id="bookmarklet"> <div id="bookmarklet" class="bookmarklet">
<p> Drag this to your bookmarks bar: </p> <p> Drag this to your bookmarks bar: </p>
<a class="bookmarklet" href="javascript:window.location='{base_url|noscheme}{path_for name='video'}?url='+encodeURIComponent(location.href);">Bookmarklet</a> <a class="bookmarklet" href="javascript:window.location='{base_url|noscheme}{path_for name='video'}?url='+encodeURIComponent(location.href);">Bookmarklet</a>
</div> </div>