Skip to content

Commit

Permalink
Keep meta and noscript tags similar across all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Feb 1, 2024
1 parent 01d54ee commit 13d0dd9
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if __name__ == '__main__':
```

### Env Variables
> :bulb: &nbsp; Environment variables can _(optionally)_ be loaded from any file.<br>
> :bulb: &nbsp; Environment variables can _(optionally)_ be loaded from any plain text file.<br>
> Refer the [wiki page][wiki] for more information.
**Mandatory**
Expand Down
24 changes: 24 additions & 0 deletions pystream/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@
<meta name="author" content="Vignesh Rao">
<meta name="image" property="og:image" content="https://thevickypedia.com/img/apple-touch-icon.jpg">
<meta content="width=device-width, initial-scale=1" name="viewport">
<noscript>
<style>
body {
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
<div style="position: fixed; text-align:center;
height: 100%; width: 100%; background-image: url('https://vigneshrao.com/img/auth_server/bg.jpg')">
<h2 style="margin-top:5%">This page requires JavaScript
to be enabled.
<br><br>
Please refer <a href="https://www.enable-javascript.com/">enable-javascript</a> for how to.
</h2>
<p>
<img src="https://vigneshrao.com/img/auth_server/javascript.gif" width="230" height="200"
alt="loader" class="center">
</p>
<form>
<button type="submit" onClick="<meta httpEquiv='refresh' content='0'>">RETRY</button>
</form>
</div>
</noscript>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js"></script>
<!-- Disables 404 for favicon.ico which is a logo on top of the webpage tab -->
Expand Down
24 changes: 24 additions & 0 deletions pystream/templates/land.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,30 @@
<link rel="shortcut icon" href="#">
<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<noscript>
<style>
body {
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
<div style="position: fixed; text-align:center;
height: 100%; width: 100%; background-image: url('https://vigneshrao.com/img/auth_server/bg.jpg')">
<h2 style="margin-top:5%">This page requires JavaScript
to be enabled.
<br><br>
Please refer <a href="https://www.enable-javascript.com/">enable-javascript</a> for how to.
</h2>
<p>
<img src="https://vigneshrao.com/img/auth_server/javascript.gif" width="230" height="200"
alt="loader" class="center">
</p>
<form>
<button type="submit" onClick="<meta httpEquiv='refresh' content='0'>">RETRY</button>
</form>
</div>
</noscript>
<!-- Button CSS -->
<style>
.iter {
Expand Down
24 changes: 24 additions & 0 deletions pystream/templates/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,30 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/thevickypedia/open-source/main/nightmode/night.js" defer></script>
<link rel="stylesheet" href="https://rawgit.com/thevickypedia/open-source/main/nightmode/night.css">
<noscript>
<style>
body {
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
<div style="position: fixed; text-align:center;
height: 100%; width: 100%; background-image: url('https://vigneshrao.com/img/auth_server/bg.jpg')">
<h2 style="margin-top:5%">This page requires JavaScript
to be enabled.
<br><br>
Please refer <a href="https://www.enable-javascript.com/">enable-javascript</a> for how to.
</h2>
<p>
<img src="https://vigneshrao.com/img/auth_server/javascript.gif" width="230" height="200"
alt="loader" class="center">
</p>
<form>
<button type="submit" onClick="<meta httpEquiv='refresh' content='0'>">RETRY</button>
</form>
</div>
</noscript>
<!-- Button CSS -->
<style>
body {
Expand Down
7 changes: 6 additions & 1 deletion pystream/templates/logout.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FastAPI video streaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:type" content="VideoStreaming">
<meta name="keywords" content="Python, streaming, fastapi, JavaScript, HTML, CSS">
<meta name="author" content="Vignesh Rao">
<meta name="image" property="og:image" content="https://thevickypedia.com/img/apple-touch-icon.jpg">
<meta content="width=device-width, initial-scale=1" name="viewport">
<style>
img {
display: block;
Expand Down
7 changes: 6 additions & 1 deletion pystream/templates/session.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FastAPI video streaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:type" content="VideoStreaming">
<meta name="keywords" content="Python, streaming, fastapi, JavaScript, HTML, CSS">
<meta name="author" content="Vignesh Rao">
<meta name="image" property="og:image" content="https://thevickypedia.com/img/apple-touch-icon.jpg">
<meta content="width=device-width, initial-scale=1" name="viewport">
<style>
img {
display: block;
Expand Down
7 changes: 6 additions & 1 deletion pystream/templates/unauthorized.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FastAPI video streaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:type" content="VideoStreaming">
<meta name="keywords" content="Python, streaming, fastapi, JavaScript, HTML, CSS">
<meta name="author" content="Vignesh Rao">
<meta name="image" property="og:image" content="https://thevickypedia.com/img/apple-touch-icon.jpg">
<meta content="width=device-width, initial-scale=1" name="viewport">
<style>
img {
display: block;
Expand Down

0 comments on commit 13d0dd9

Please sign in to comment.