Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit8341db30cae82f48eb46d3980c8694e20a17e4b5 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-01-17 18:29:33 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-01-17 18:29:33 +0200
Files99886004107467d89ba243fbf6078da0436489e7
web-buttons-8341db30cae82f48eb46d3980c8694e20a17e4b5.tar
web-buttons-8341db30cae82f48eb46d3980c8694e20a17e4b5.tar.gz
web-buttons-8341db30cae82f48eb46d3980c8694e20a17e4b5.zip
Parent9c644b0ed556614ed1f5b04d63e47d1a8bc2ca87 (diff)
[sh] Added security headers with rating A+
2 files changed, 56 insertions, 1 deletions
-rw-r--r--public/index.html4
-rw-r--r--public/security-headers.html53
diff --git a/public/index.html b/public/index.html
index 1866a19..3e36f1f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -18,8 +18,10 @@
<hr>
<p>These are all of my creations. Each one has it's own page, but I've also included them here. The first is my HTML code from which the image is generated, and the second is the image.</p>
<dl>
- <dt><a href="./mozilla-observatory.html">Mozilla Observatory Rating: A+</a></dt>
+ <dt><a id="mo" href="./mozilla-observatory.html">Mozilla Observatory Rating: A+</a></dt>
<dd><iframe src="./mozilla-observatory.html"></iframe></dd>
+ <dt><a id="sh" href="./security-headers.html">Security Headers Rating: A+</a></dt>
+ <dd><iframe src="./security-headers.html"></iframe></dd>
</dl>
</body>
</html>
diff --git a/public/security-headers.html b/public/security-headers.html
new file mode 100644
index 0000000..bf3931e
--- /dev/null
+++ b/public/security-headers.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Security Headers button</title>
+ <link rel="stylesheet" href="https://syndamia.gitlab.io/web-buttons/common-styles.css" crossorigin="anonymous">
+<style>
+* {
+}
+#button {
+ background: #DEF;
+ border: 2px outset #A8C0C1;
+ width: 100px;
+ padding: 2px;
+}
+#button > * {
+ height: 31px;
+}
+#sh-title {
+ float: left;
+ font: 12px sans-serif;
+ color: #444;
+ font-weight: 700;
+ padding: 2px;
+}
+#score {
+ color: white;
+ background-color: #34af00;
+ float: right;
+ font: 18px Arial;
+ font-weight: 700 !important;
+ height: 31px;
+ width: 31px;
+ text-align: center;
+ padding-top: 4px;
+ border-radius: 5px;
+ border: 2px solid #309d00;
+}
+</style>
+ </head>
+ <body>
+ <div id="button" class="button-x39">
+ <div id="sh-title">
+ Security<br>Headers
+ </div>
+ <div id="score">
+ A+
+ </div>
+ </div>
+ <br>
+ <script src="./dom-to-image/src/dom-to-image.js"></script>
+ <script src="./simple-image.js"></script>
+ </body>
+</html>