Compare commits
2 Commits
master
...
feature/fe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a018bfc27 | ||
|
|
51741653f8 |
16
README.md
16
README.md
@ -304,18 +304,4 @@ benötigt "Fader"
|
||||
<noscript><p><img src="https://log.seemsleg.it/logit?idsite=10&rec=1" style="border:0;" alt="" /></p></noscript>
|
||||
<!-- End logit -->
|
||||
```
|
||||
nicht vergessen bei setSiteId die richtige id anzugeben
|
||||
|
||||
## Flag
|
||||
einfach folgende zeilen in den footer
|
||||
```
|
||||
<script src="/cssjs/flag.min.js"></script>
|
||||
<link rel="stylesheet" href="/cssjs/flag.min.css">
|
||||
|
||||
```
|
||||
|
||||
um zusätzliche infos zu liefern muss ein
|
||||
```
|
||||
data-flaginfo="<key>:<val>"
|
||||
```
|
||||
in irgend ein html tag gepackt werden, ,das wird dann vom script abgeholt wenn es gebraucht wird.
|
||||
nicht vergessen bei setSiteId die richtige id anzugeben
|
||||
@ -1,8 +1,3 @@
|
||||
body {
|
||||
background-color: #000 !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
textarea {
|
||||
display: block;
|
||||
width: 100%;
|
||||
@ -26,6 +21,7 @@ form .label {
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
|
||||
.hover {
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
2
admin.min.css
vendored
2
admin.min.css
vendored
@ -1 +1 @@
|
||||
body{background-color:#000!important;color:#fff}textarea{display:block;width:100%}form .label{float:left;width:200px}.admin_navi{display:block;width:100%;border-bottom:1px solid #000;overflow:overlay}.admin_navi li{display:block;float:left;margin:0 10px}.hover{border:1px solid #fff}.hover:hover{border:1px solid #000}
|
||||
textarea{display:block;width:100%}form .label{float:left;width:200px}.admin_navi{display:block;width:100%;border-bottom:1px solid #000;overflow:overlay}.admin_navi li{display:block;float:left;margin:0 10px}.hover{border:1px solid #fff}.hover:hover{border:1px solid #000}
|
||||
@ -9,15 +9,6 @@ function copyToClipboard(id) {
|
||||
document.execCommand("copy");
|
||||
}
|
||||
|
||||
function copyDivToClipboard(id) {
|
||||
let range = document.createRange();
|
||||
range.selectNode(document.getElementById(id));
|
||||
window.getSelection().removeAllRanges();
|
||||
window.getSelection().addRange(range);
|
||||
document.execCommand("copy");
|
||||
window.getSelection().removeAllRanges();
|
||||
}
|
||||
|
||||
function copiedToClipboard(id) {
|
||||
var tooltip = document.getElementById(id);
|
||||
tooltip.innerHTML = "Kopiert";
|
||||
|
||||
2
copy-to-clipboard.min.css
vendored
2
copy-to-clipboard.min.css
vendored
@ -1 +1 @@
|
||||
.copy-to-clipboard{position:relative;display:inline-block}.copy-to-clipboard .tooltiptext{visibility:hidden;width:140px;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px;position:absolute;z-index:1;bottom:150%;left:50%;margin-left:-75px}.copy-to-clipboard .tooltiptext::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent}.copy-to-clipboard:hover .tooltiptext{visibility:visible;opacity:1}
|
||||
.copy-to-clipboard{position:relative;display:inline-block}.copy-to-clipboard .tooltiptext{visibility:hidden;width:140px;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px;position:absolute;z-index:1;bottom:150%;left:50%;margin-left:-75px}.copy-to-clipboard .tooltiptext::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.copy-to-clipboard:hover .tooltiptext{visibility:visible;opacity:1}
|
||||
3
copy-to-clipboard.min.js
vendored
3
copy-to-clipboard.min.js
vendored
@ -1 +1,2 @@
|
||||
function copyToClipboard(e){var n=document.getElementById(e);n.select(),n.setSelectionRange(0,99999),document.execCommand("copy")}function copyDivToClipboard(e){let n=document.createRange();n.selectNode(document.getElementById(e)),window.getSelection().removeAllRanges(),window.getSelection().addRange(n),document.execCommand("copy"),window.getSelection().removeAllRanges()}function copiedToClipboard(e){document.getElementById(e).innerHTML="Kopiert"}function resetClipboard(e){document.getElementById(e).innerHTML="Kopieren"}
|
||||
function copyToClipboard(id){var copyText=document.getElementById(id);copyText.select(),copyText.setSelectionRange(0,99999),document.execCommand("copy")}function copiedToClipboard(id){var tooltip;document.getElementById(id).innerHTML="Kopiert"}function resetClipboard(id){var tooltip;document.getElementById(id).innerHTML="Kopieren"}
|
||||
//# sourceMappingURL=copy-to-clipboard.min.js.map
|
||||
28
feedback.js
28
feedback.js
@ -22,34 +22,6 @@ function ajaxFeedback(e,url,css) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function ajaxCommentFeedback(e,url,css) {
|
||||
let comment = prompt("Was funktioniert nicht?");
|
||||
if(comment) {
|
||||
url = url + "&comment="+encodeURIComponent(comment);
|
||||
}
|
||||
$.ajax({
|
||||
url: url,
|
||||
success: function(res) {
|
||||
if(res =='success') {
|
||||
successMarker(e,css);
|
||||
return;
|
||||
}else{
|
||||
if(res =='warn') {
|
||||
warnMarker(e,css);
|
||||
return;
|
||||
}else{
|
||||
errorMarker(e,css);
|
||||
return;
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (res,err) {
|
||||
errorMarker(e,css);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function formFeedback(e,f,url,css) {
|
||||
var formData = {}
|
||||
$(f).each(function(i, obj) {
|
||||
|
||||
3
feedback.min.js
vendored
3
feedback.min.js
vendored
File diff suppressed because one or more lines are too long
14
flag.css
14
flag.css
@ -2,23 +2,14 @@
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
width: 170px;
|
||||
width: 150px;
|
||||
border: 1px solid #fff;
|
||||
border-top-left-radius: 15px;
|
||||
border-bottom-left-radius: 15px;
|
||||
margin-right: -145px;
|
||||
margin-right: -130px;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
@media (max-width:1081px) {
|
||||
#flag-panel {
|
||||
border: 10px solid #fff;
|
||||
border-top-left-radius: 23px;
|
||||
border-bottom-left-radius: 23px;
|
||||
margin-right: -135px;
|
||||
}
|
||||
}
|
||||
|
||||
#flag-panel.open {
|
||||
margin-right: 0px !important;
|
||||
}
|
||||
@ -30,6 +21,7 @@
|
||||
#flag-panel span {
|
||||
margin-right: 10px;
|
||||
margin-left: 5px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#flag-overlay {
|
||||
|
||||
29
flag.js
29
flag.js
@ -55,15 +55,6 @@
|
||||
});*/
|
||||
var fields = {};
|
||||
fields['s'] = window.location.hostname;
|
||||
var datas = document.querySelectorAll('[data-flaginfo]');
|
||||
if(datas) {
|
||||
for(var i=0; i<datas.length;i++) {
|
||||
console.log(datas[i].dataset['flaginfo']);
|
||||
var tmp = datas[i].dataset['flaginfo'];
|
||||
tmp = tmp.split(':',2);
|
||||
fields[tmp[0]] = tmp[1];
|
||||
}
|
||||
}
|
||||
if(document.referrer) {fields['r'] = document.referrer;}
|
||||
if(window.location.href) {fields['u'] = window.location.href;}
|
||||
if(navigator.userAgent) {fields['a'] = navigator.userAgent;}
|
||||
@ -95,10 +86,24 @@
|
||||
var tab = document.createElement('span');
|
||||
tab.innerHTML = '⚑';
|
||||
tab.addEventListener('mouseenter',function(ev) {
|
||||
if(!panel.classList.contains('opened')) {
|
||||
panel.classList.add('opened');
|
||||
if(!panel.classList.contains('tapped')) {
|
||||
if(!panel.classList.contains('opened')) {
|
||||
panel.classList.add('open');
|
||||
panel.classList.add('opened');
|
||||
}else{
|
||||
panel.classList.toggle('open');
|
||||
}
|
||||
}
|
||||
});
|
||||
//TODO open feedback btn with click
|
||||
tab.addEventListener('click',function(ev) {
|
||||
if(!panel.classList.contains('opened')) {
|
||||
panel.classList.add('tapped');
|
||||
panel.classList.add('open');
|
||||
panel.classList.add('opened');
|
||||
}else{
|
||||
panel.classList.toggle('open');
|
||||
}
|
||||
panel.classList.toggle('open');
|
||||
});
|
||||
|
||||
var button = document.createElement('button');
|
||||
|
||||
2
flag.min.css
vendored
2
flag.min.css
vendored
@ -1 +1 @@
|
||||
#flag-panel{position:fixed;bottom:0;right:0;width:170px;border:1px solid #fff;border-top-left-radius:15px;border-bottom-left-radius:15px;margin-right:-145px;z-index:99999}@media (max-width:1081px){#flag-panel{border:10px solid #fff;border-top-left-radius:23px;border-bottom-left-radius:23px;margin-right:-135px}}#flag-panel.open{margin-right:0!important}#flag-panel.opened{transition:margin-right 1s}#flag-panel span{margin-right:10px;margin-left:5px}#flag-overlay{position:fixed;width:100%;height:100vh;top:0;left:0;background-color:rgba(0,0,0,.5);z-index:9999}#flag-iframe{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:10000;background-color:#000;border:3px solid #fff;border-radius:1em;overflow-y:scroll;height:97vh;min-width:350px;width:80%;display:block;margin:1vh auto 0}#flag-overlay.closing{transition:opacity .5s}#flag-iframe.closing{transition:margin 1s,width 1s,height 1s;width:350px;height:170px;margin-top:calc(50vh - 50px);overflow:hidden}
|
||||
#flag-panel{position:fixed;bottom:0;right:0;width:150px;border:1px solid #fff;border-top-left-radius:15px;border-bottom-left-radius:15px;margin-right:-130px;z-index:99999}#flag-panel.open{margin-right:0!important}#flag-panel.opened{transition:margin-right 1s}#flag-panel span{margin-right:10px;margin-left:5px;float:left}#flag-overlay{position:fixed;width:100%;height:100vh;top:0;left:0;background-color:rgba(0,0,0,.5);z-index:9999}#flag-iframe{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:10000;background-color:#000;border:3px solid #fff;border-radius:1em;overflow-y:scroll;height:97vh;min-width:350px;width:80%;display:block;margin:0 auto;margin-top:1vh}#flag-overlay.closing{transition:opacity .5s}#flag-iframe.closing{transition:margin 1s ease,width 1s ease,height 1s ease;width:350px;height:170px;margin-top:calc(50vh - 50px);overflow:hidden}
|
||||
2
flag.min.js
vendored
2
flag.min.js
vendored
@ -1,2 +1,2 @@
|
||||
!function(connector){"use strict";var style="default",iframe,flag;document.body.dataset.feedbackstyle&&(style=document.body.dataset.feedbackstyle);var col="light",closeFlag=function(ev){flag.classList.add("closing"),iframe.classList.add("closing"),setTimeout((function(){flag.style.opacity=0,iframe.style.opacity=0,setTimeout((function(){flag.remove(),iframe.remove(),document.body.style.overflowY="auto"}),500)}),1e3)},openFlag=function(ev,infos=!1){flag=document.createElement("div"),document.body.style.overflowY="hidden",flag.id="flag-overlay",(iframe=document.createElement("iframe")).src="",iframe.name="flag-iframe",iframe.id="flag-iframe",document.body.appendChild(flag),setTimeout((function(){flag.addEventListener("click",(function(){closeFlag()}))}),3e3),document.body.appendChild(iframe);var form=document.createElement("form");form.action=connector+"?style="+style,form.target="flag-iframe",form.method="POST";const screenshotTarget=document.body;var fields={};fields.s=window.location.hostname;var datas=document.querySelectorAll("[data-flaginfo]");if(datas)for(var i=0;i<datas.length;i++){console.log(datas[i].dataset.flaginfo);var tmp=datas[i].dataset.flaginfo;fields[(tmp=tmp.split(":",2))[0]]=tmp[1]}if(document.referrer&&(fields.r=document.referrer),window.location.href&&(fields.u=window.location.href),navigator.userAgent&&(fields.a=navigator.userAgent),fields.d=window.screen.width+"x"+window.screen.height+" ("+window.screen.colorDepth+"bit)",infos&&typeof infos==typeof{})for(var i in infos)fields[i]=infos[i];for(var f in console.log("Fields",fields),fields){var inp=document.createElement("input");inp.type="hidden",inp.name=f,inp.value=fields[f],form.appendChild(inp)}form.style="display:none",document.body.appendChild(form),form.submit(),form.remove()},panel=document.createElement("div");panel.id="flag-panel";var tab=document.createElement("span");tab.innerHTML="⚑",tab.addEventListener("mouseenter",(function(ev){panel.classList.contains("opened")||panel.classList.add("opened"),panel.classList.toggle("open")}));var button=document.createElement("button");button.innerHTML="Problem melden",button.addEventListener("click",openFlag),window.addEventListener("message",event=>{"close"==event.data&&closeFlag()});var links=document.getElementsByClassName("flag-link");if(links.length>0)for(var l=0;l<links.length;l++)links[l].addEventListener("click",(function(ev){return openFlag(ev,ev.target.dataset),ev.preventDefault(),!1}));panel.appendChild(tab),panel.appendChild(button),document.body.appendChild(panel)}("https://troy-grunt.de/feedback");
|
||||
!function(connector){"use strict";var style="default",iframe,flag;document.body.dataset.feedbackstyle&&(style=document.body.dataset.feedbackstyle);var col="light",closeFlag=function(ev){flag.classList.add("closing"),iframe.classList.add("closing"),setTimeout((function(){flag.style.opacity=0,iframe.style.opacity=0,setTimeout((function(){flag.remove(),iframe.remove(),document.body.style.overflowY="auto"}),500)}),1e3)},openFlag=function(ev,infos=!1){flag=document.createElement("div"),document.body.style.overflowY="hidden",flag.id="flag-overlay",(iframe=document.createElement("iframe")).src="",iframe.name="flag-iframe",iframe.id="flag-iframe",document.body.appendChild(flag),setTimeout((function(){flag.addEventListener("click",(function(){closeFlag()}))}),3e3),document.body.appendChild(iframe);var form=document.createElement("form");form.action=connector+"?style="+style,form.target="flag-iframe",form.method="POST";const screenshotTarget=document.body;var fields={};if(fields.s=window.location.hostname,document.referrer&&(fields.r=document.referrer),window.location.href&&(fields.u=window.location.href),navigator.userAgent&&(fields.a=navigator.userAgent),fields.d=window.screen.width+"x"+window.screen.height+" ("+window.screen.colorDepth+"bit)",infos&&typeof infos==typeof{})for(var i in infos)fields[i]=infos[i];for(var f in console.log("Fields",fields),fields){var inp=document.createElement("input");inp.type="hidden",inp.name=f,inp.value=fields[f],form.appendChild(inp)}form.style="display:none",document.body.appendChild(form),form.submit(),form.remove()},panel=document.createElement("div");panel.id="flag-panel";var tab=document.createElement("span");tab.innerHTML="⚑",tab.addEventListener("mouseenter",(function(ev){panel.classList.contains("tapped")||(panel.classList.contains("opened")?panel.classList.toggle("open"):(panel.classList.add("open"),panel.classList.add("opened")))})),tab.addEventListener("click",(function(ev){panel.classList.contains("opened")?panel.classList.toggle("open"):(panel.classList.add("tapped"),panel.classList.add("open"),panel.classList.add("opened"))}));var button=document.createElement("button");button.innerHTML="Problem melden",button.addEventListener("click",openFlag),window.addEventListener("message",event=>{"close"==event.data&&closeFlag()});var links=document.getElementsByClassName("flag-link");if(links.length>0)for(var l=0;l<links.length;l++)links[l].addEventListener("click",(function(ev){return openFlag(ev,ev.target.dataset),ev.preventDefault(),!1}));panel.appendChild(tab),panel.appendChild(button),document.body.appendChild(panel)}("https://troy-grunt.de/feedback");
|
||||
//# sourceMappingURL=flag.min.js.map
|
||||
@ -38,14 +38,6 @@
|
||||
"window",
|
||||
"location",
|
||||
"hostname",
|
||||
"datas",
|
||||
"querySelectorAll",
|
||||
"i",
|
||||
"length",
|
||||
"console",
|
||||
"log",
|
||||
"tmp",
|
||||
"split",
|
||||
"referrer",
|
||||
"href",
|
||||
"navigator",
|
||||
@ -54,7 +46,10 @@
|
||||
"width",
|
||||
"height",
|
||||
"colorDepth",
|
||||
"i",
|
||||
"f",
|
||||
"console",
|
||||
"log",
|
||||
"inp",
|
||||
"type",
|
||||
"value",
|
||||
@ -69,9 +64,10 @@
|
||||
"data",
|
||||
"links",
|
||||
"getElementsByClassName",
|
||||
"length",
|
||||
"l",
|
||||
"preventDefault"
|
||||
],
|
||||
"mappings": "CAAA,SAAUA,WACR,aAEA,IAAIC,MAAQ,UAKRC,OACAC,KALDC,SAASC,KAAKC,QAAQC,gBACvBN,MAAQG,SAASC,KAAKC,QAAQC,eAKhC,IAAIC,IAAM,QAINC,UAAY,SAASC,IACvBP,KAAKQ,UAAUC,IAAI,WACnBV,OAAOS,UAAUC,IAAI,WACrBC,YAAW,WACTV,KAAKF,MAAMa,QAAU,EACrBZ,OAAOD,MAAMa,QAAU,EACvBD,YAAW,WACTV,KAAKY,SACLb,OAAOa,SACPX,SAASC,KAAKJ,MAAMe,UAAY,SAChC,OACF,MAGAC,SAAW,SAASP,GAAIQ,OAAM,GAChCf,KAAOC,SAASe,cAAc,OAC9Bf,SAASC,KAAKJ,MAAMe,UAAY,SAChCb,KAAKiB,GAAK,gBACVlB,OAASE,SAASe,cAAc,WACzBE,IAAK,GACZnB,OAAOoB,KAAO,cACdpB,OAAOkB,GAAK,cACZhB,SAASC,KAAKkB,YAAYpB,MAC1BU,YAAW,WACTV,KAAKqB,iBAAiB,SAAQ,WAC5Bf,iBAGF,KACFL,SAASC,KAAKkB,YAAYrB,QAE1B,IAAIuB,KAAOrB,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AAI,UACpBsC,MAAMvC,UAAUC,IAAI,QACpBsC,MAAMvC,UAAUC,IAAI,cAMxB,IAAI2C,OAASnD,SAASe,cAAc,UAEpCoC,OAAOH,UAAY,iBACnBG,OAAO/B,iBAAiB,QAAQP,UAEhCc,OAAOP,iBAAiB,UAAYgC,QAEjB,SAAdA,MAAMC,MAEPhD,cAIJ,IAAIiD,MAAQtD,SAASuD,uBAAuB,aAC5C,GAAGD,MAAME,OAAS,EAChB,IAAI,IAAIC,EAAE,EAAEA,EAAEH,MAAME,OAAOC,IAEzBH,MAAMG,GAAGrC,iBAAiB,SAAQ,SAASd,IAGzC,OAFAO,SAASP,GAAGA,GAAGiB,OAAOrB,SACtBI,GAAGoD,kBACI,KAKbZ,MAAM3B,YAAY4B,KAClBD,MAAM3B,YAAYgC,QAElBnD,SAASC,KAAKkB,YAAY2B,OAxI5B,CAyIG",
|
||||
"file": "flag.js"
|
||||
}
|
||||
47
frontlog.css
47
frontlog.css
@ -1,47 +0,0 @@
|
||||
frontlog {
|
||||
position: fixed;
|
||||
min-width: 200px;
|
||||
max-width: 300px;
|
||||
bottom: 0;
|
||||
right: 0.5em;
|
||||
}
|
||||
|
||||
flogelem {
|
||||
display:block;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
max-height: 0;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
-webkit-transition: max-height 3s, margin-bottom 3s, padding 3s,opacity 3s, bottom 3s;
|
||||
-moz-transition: max-height 3s, margin-bottom 3s, padding 3s,opacity 3s, bottom 3s;
|
||||
transition: max-height 3s, margin-bottom 3s, padding 3s,opacity 3s, bottom 3s;
|
||||
}
|
||||
|
||||
.flshow {
|
||||
max-height: 200px!important;
|
||||
margin-bottom: 1em;
|
||||
padding: 4px;
|
||||
opacity: 1;
|
||||
}
|
||||
.flvanish {
|
||||
position: relative;
|
||||
bottom: 3em;
|
||||
max-height: 0 !important;
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
fltitle {
|
||||
display: block;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
flogelem img {
|
||||
float: left;
|
||||
width: 25px;
|
||||
}
|
||||
68
frontlog.js
68
frontlog.js
@ -1,68 +0,0 @@
|
||||
let frontlogList = [];
|
||||
let frontlogMaxEl = document.body.dataset['frontlog']||3;
|
||||
let frontlog = document.createElement('frontlog');
|
||||
document.body.appendChild(frontlog);
|
||||
|
||||
let frontlogVanish = function(elem) {
|
||||
elem.classList.add('flvanish');
|
||||
setTimeout(function() {
|
||||
elem.remove();
|
||||
let elems = document.getElementsByTagName('flogelem');
|
||||
if(elems.length < frontlogMaxEl && frontlogList.length) {
|
||||
let p = frontlogList.shift();
|
||||
frontlogPipe(p.title,p.icon,p.msg,p.col,p.time);
|
||||
}
|
||||
},3100);
|
||||
}
|
||||
|
||||
let frontlogAdd = function(title,icon,msg,col,time) {
|
||||
let elems = document.getElementsByTagName('flogelem');
|
||||
if(elems.length < frontlogMaxEl) {
|
||||
frontlogPipe(title,icon,msg,col,time);
|
||||
}else{
|
||||
let pElem = {"title":title,"icon":icon,"msg":msg,"col":col,"time":time};
|
||||
frontlogList.push(pElem);
|
||||
}
|
||||
}
|
||||
|
||||
let frontlogPipe = function(title,icon,msg,col, time) {
|
||||
let elem = document.createElement('flogelem');
|
||||
{
|
||||
let elemid = 'fl_';
|
||||
{
|
||||
let ch = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
||||
let chl = ch.length;
|
||||
for ( let i = 0; i < 16; i++ ) {
|
||||
elemid += ch.charAt(Math.floor(Math.random() * chl));
|
||||
}
|
||||
}
|
||||
elem.id = elemid;
|
||||
let flicon = document.createElement('img');
|
||||
flicon.src = icon;
|
||||
elem.appendChild(flicon);
|
||||
|
||||
let fltitle = document.createElement('fltitle');
|
||||
fltitle.innerText = title;
|
||||
elem.appendChild(fltitle);
|
||||
|
||||
let flmsg = document.createElement('flmsg');
|
||||
flmsg.innerText = msg;
|
||||
elem.appendChild(flmsg);
|
||||
}
|
||||
|
||||
elem.style = 'border-color: '+col+';';
|
||||
elem.addEventListener('click',function(ev){
|
||||
let tg = ev.target;
|
||||
if(tg.tagName.toLowerCase() != 'flogelem') {
|
||||
tg = ev.target.parentNode;
|
||||
}
|
||||
frontlogVanish(tg);
|
||||
});
|
||||
setTimeout(function(){
|
||||
frontlogVanish(elem);
|
||||
},time*1000)
|
||||
frontlog.appendChild(elem);
|
||||
setTimeout(function(){
|
||||
elem.classList.add('flshow');
|
||||
},10);
|
||||
}
|
||||
@ -1,5 +1,4 @@
|
||||
window.onerror = function(message, source, lineno, colno, error) {
|
||||
if(message == 'Script Error' && lineno == 0) return;
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.open("POST", "https://troy-grunt.de/api.php", true);
|
||||
xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||
|
||||
3
js-error-logger.min.js
vendored
3
js-error-logger.min.js
vendored
@ -1 +1,2 @@
|
||||
window.onerror=function(e,r,o,t,n){if("Script Error"!=e||0!=o){var p=new XMLHttpRequest;p.open("POST","https://troy-grunt.de/api.php",!0),p.setRequestHeader("Content-type","application/x-www-form-urlencoded");var i=JSON.stringify({type:"error_collector",message:e,source:r,line:o,col:t,err:n});p.send(i)}};
|
||||
window.onerror=function(message,source,lineno,colno,error){var xmlhttp=new XMLHttpRequest;xmlhttp.open("POST","https://troy-grunt.de/api.php",!0),xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");var params=JSON.stringify({type:"error_collector",message:message,source:source,line:lineno,col:colno,err:error});xmlhttp.send(params)};
|
||||
//# sourceMappingURL=js-error-logger.min.js.map
|
||||
@ -1,8 +0,0 @@
|
||||
img[loading='lazy'] {
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s ease !important;
|
||||
}
|
||||
|
||||
img.loaded {
|
||||
opacity: 1;
|
||||
}
|
||||
14
lazy-img.js
14
lazy-img.js
@ -1,14 +0,0 @@
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
/*var cssLink = document.createElement("link");
|
||||
cssLink.rel = "stylesheet";
|
||||
cssLink.href = "/cssjs/lazy-img.css";
|
||||
document.head.appendChild(cssLink);*/
|
||||
|
||||
var images = document.querySelectorAll('img[loading="lazy"]');
|
||||
|
||||
images.forEach(function(image) {
|
||||
image.onload = function() {
|
||||
image.classList.add('loaded');
|
||||
};
|
||||
});
|
||||
});
|
||||
1
lazy-img.min.js
vendored
1
lazy-img.min.js
vendored
@ -1 +0,0 @@
|
||||
document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('img[loading="lazy"]').forEach(function(n){n.onload=function(){n.classList.add("loaded")}})});
|
||||
@ -12,7 +12,7 @@ input.switch[type="checkbox"] + label {
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
transition: background-color 0.5s linear;
|
||||
margin-bottom: 15px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
input.switch[type="checkbox"] + label:hover {
|
||||
cursor: pointer;
|
||||
|
||||
2
switch.min.css
vendored
2
switch.min.css
vendored
@ -1 +1 @@
|
||||
input.switch[type=checkbox]{display:none}input.switch[type=checkbox]+label{width:60px;height:30px;border-radius:30px;border:2px solid #ddd;background-color:#eee;display:inline-block;content:"";float:left;margin-right:5px;transition:background-color .5s linear;margin-bottom:15px}input.switch[type=checkbox]+label:hover{cursor:pointer}input.switch[type=checkbox]+label::before{width:30px;height:30px;border-radius:30px;background-color:#fff;display:block;content:"";float:left;margin-right:5px;transition:margin .1s linear;box-shadow:0 0 5px #aaa}input.switch[type=checkbox]:checked+label{background-color:#2b8718}input.switch[type=checkbox]:checked+label::before{margin:0 0 0 30px}
|
||||
input.switch[type=checkbox]{display:none}input.switch[type=checkbox]+label{width:60px;height:30px;border-radius:30px;border:2px solid #ddd;background-color:#eee;display:inline-block;content:"";float:left;margin-right:5px;transition:background-color .5s linear;margin-top:15px}input.switch[type=checkbox]+label:hover{cursor:pointer}input.switch[type=checkbox]+label::before{width:30px;height:30px;border-radius:30px;background-color:#fff;display:block;content:"";float:left;margin-right:5px;transition:margin .1s linear;box-shadow:0 0 5px #aaa}input.switch[type=checkbox]:checked+label{background-color:#2b8718}input.switch[type=checkbox]:checked+label::before{margin:0 0 0 30px}
|
||||
@ -3,7 +3,7 @@ function myFilter() {
|
||||
input = document.getElementById("suchstr");
|
||||
filter = input.value.toUpperCase();
|
||||
|
||||
li = document.querySelectorAll("#suchlist .row");
|
||||
li = jQuery("#suchlist .row");
|
||||
for (i = 0; i < li.length; i++) {
|
||||
txtValue = li[i].textContent || li[i].innerText;
|
||||
if (txtValue.toUpperCase().indexOf(filter) > -1) {
|
||||
|
||||
3
tablefilter.min.js
vendored
3
tablefilter.min.js
vendored
@ -1 +1,2 @@
|
||||
function myFilter(){var e,t,l,n,r;for(n=0,t=(e=document.getElementById("suchstr")).value.toUpperCase(),l=document.querySelectorAll("#suchlist .row");n<l.length;n++)(r=l[n].textContent||l[n].innerText).toUpperCase().indexOf(t)>-1?l[n].style.display="":l[n].style.display="none"}
|
||||
function myFilter(){var input,filter,ul,li,a,i,txtValue;for(filter=(input=document.getElementById("suchstr")).value.toUpperCase(),li=jQuery("#suchlist .row"),i=0;i<li.length;i++)(txtValue=li[i].textContent||li[i].innerText).toUpperCase().indexOf(filter)>-1?li[i].style.display="":li[i].style.display="none"}
|
||||
//# sourceMappingURL=tablefilter.min.js.map
|
||||
Loading…
Reference in New Issue
Block a user