Add message for when JavaScript is disabled

- Added padding to the "You need JavaScript page"
 - Added padding to the "You need JavaScript page" - Added info about the CLI tthe "You need JavaScript" page
 - Added a message for people who don't have JavaScript enabled

Signed-off-by: Rillian Grant <rillian.grant@hotmail.com>
This commit is contained in:
Rillian Grant 2018-04-26 11:09:47 +00:00 committed by Alex Ellis
parent 3c7e222ab2
commit 829262e493

View File

@ -11,9 +11,18 @@
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<noscript>
<style>
.jsonly {
display: none;
}
</style>
</noscript>
</head>
<body ng-controller="home">
<div class="jsonly">
<div layout="column" ng-cloak>
<md-toolbar class="md-theme-indigo" hide-gt-sm>
@ -188,6 +197,14 @@
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.4/angular-material.min.js"></script>
<script src="script/funcstore.js"></script>
<script src="script/bootstrap.js"></script>
</div>
<noscript>
<div style="padding: 15px;">
<h2>You need JavaScript to view this page</h2>
<p>You don't need the web dashboard to use OpenFaaS, you can get the CLI with this command: <code>curl -sL cli.openfaas.com | sh</code></p>
</div>
</noscript>
</body>
</html>