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
<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>
<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>
