From 13b1e2926f90fb3f523a1431f4a4f9505a4f51d8 Mon Sep 17 00:00:00 2001 From: troy Date: Thu, 24 Feb 2022 20:33:46 +0100 Subject: [PATCH] flag --- flag.css | 7 +++++++ flag.js | 16 ++++++++++++++++ flag.min.css | 1 + flag.min.js | 2 ++ flag.min.js.map | 18 ++++++++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 flag.css create mode 100644 flag.js create mode 100644 flag.min.css create mode 100644 flag.min.js create mode 100644 flag.min.js.map diff --git a/flag.css b/flag.css new file mode 100644 index 0000000..132dece --- /dev/null +++ b/flag.css @@ -0,0 +1,7 @@ +#flag-panel { + position: fixed; + bottom: 0px; + right: 0px; + width: 200px; + border: 1px solid #fff; +} \ No newline at end of file diff --git a/flag.js b/flag.js new file mode 100644 index 0000000..436685d --- /dev/null +++ b/flag.js @@ -0,0 +1,16 @@ +(function() { + 'use strict'; + + var panel = document.createElement('div'); + panel.id = 'flag-panel'; + + var tab = document.createElement('span'); + tab.innerHTML = '⚑'; + + var button = document.createElement('button'); + button.innerHTML = 'Problem melden'; + panel.appendChild(tab); + panel.appendChild(button); + + document.body.appendChild(panel); +})(); \ No newline at end of file diff --git a/flag.min.css b/flag.min.css new file mode 100644 index 0000000..0508493 --- /dev/null +++ b/flag.min.css @@ -0,0 +1 @@ +#flag-panel{position:fixed;bottom:0;right:0;width:200px;border:1px solid #fff} \ No newline at end of file diff --git a/flag.min.js b/flag.min.js new file mode 100644 index 0000000..15daf38 --- /dev/null +++ b/flag.min.js @@ -0,0 +1,2 @@ +!function(){"use strict";var panel=document.createElement("div");panel.id="flag-panel";var button=document.createElement("button");button.innerHTML="Problem melden",panel.appendChild(button),document.body.appendChild(panel)}(); +//# sourceMappingURL=flag.min.js.map \ No newline at end of file diff --git a/flag.min.js.map b/flag.min.js.map new file mode 100644 index 0000000..11badc4 --- /dev/null +++ b/flag.min.js.map @@ -0,0 +1,18 @@ +{ + "version": 3, + "sources": [ + "flag.js" + ], + "names": [ + "panel", + "document", + "createElement", + "id", + "button", + "innerHTML", + "appendChild", + "body" + ], + "mappings": "CAAA,WACE,aAEA,IAAIA,MAAQC,SAASC,cAAc,OACnCF,MAAMG,GAAK,aAEX,IAAIC,OAASH,SAASC,cAAc,UACpCE,OAAOC,UAAY,iBACnBL,MAAMM,YAAYF,QAElBH,SAASM,KAAKD,YAAYN,OAV5B", + "file": "flag.js" +} \ No newline at end of file