add safari and firefox screenshots to /app
After Width: | Height: | Size: 171 KiB |
After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 140 KiB |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 194 KiB |
After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 111 KiB |
|
@ -24,7 +24,17 @@ def before_request():
|
||||||
if not get_setting('Bots') and request.headers.get("Authorization"): abort(403)
|
if not get_setting('Bots') and request.headers.get("Authorization"): abort(403)
|
||||||
|
|
||||||
g.db = db_session()
|
g.db = db_session()
|
||||||
g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua
|
|
||||||
|
if ' firefox/' in ua:
|
||||||
|
g.type = 'firefox'
|
||||||
|
g.inferior_browser = True
|
||||||
|
elif 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua:
|
||||||
|
g.type = 'apple'
|
||||||
|
g.inferior_browser = True
|
||||||
|
else:
|
||||||
|
g.type = 'chromium'
|
||||||
|
g.inferior_browser = False
|
||||||
|
|
||||||
g.is_tor = request.headers.get("cf-ipcountry") == "T1"
|
g.is_tor = request.headers.get("cf-ipcountry") == "T1"
|
||||||
|
|
||||||
request.path = request.path.rstrip('/')
|
request.path = request.path.rstrip('/')
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
<b>How to install {{SITE_NAME}}'s mobile app</b>
|
<b>How to install {{SITE_NAME}}'s mobile app</b>
|
||||||
|
|
||||||
<div class="font-weight-bold mt-4 mb-2">First step:</div>
|
<div class="font-weight-bold mt-4 mb-2">First step:</div>
|
||||||
<img onclick="expandDesktopImage()" alt="First step" style="height:30vh" src="/i/{{SITE_NAME}}/app1.webp">
|
<img onclick="expandDesktopImage()" alt="First step" style="height:30vh" src="/i/{{SITE_NAME}}/app-{{g.type}}-1.webp">
|
||||||
|
|
||||||
<div class="font-weight-bold mt-4 mb-2">Second step:</div>
|
<div class="font-weight-bold mt-4 mb-2">Second step:</div>
|
||||||
<img onclick="expandDesktopImage()" alt="Second step" style="height:30vh" src="/i/{{SITE_NAME}}/app2.webp">
|
<img onclick="expandDesktopImage()" alt="Second step" style="height:30vh" src="/i/{{SITE_NAME}}/app-{{g.type}}-2.webp">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|