This repository was archived by the owner on Jul 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,36 @@ hr {
351
351
.grid-item .history { border-left : 4px solid # 5270f5 ; color : # 5270f5 ;}
352
352
.grid-item .debug { border-left : 4px solid # 9c0000 ; color : # 9c0000 ;}
353
353
354
+ /* ---- GDPR BANNER ---- */
355
+ .gdpr-wrapper {
356
+ display : none;
357
+ font-family : Arial, Helvetica, sans-serif;
358
+ position : fixed;
359
+ bottom : 0px ;
360
+ left : 0px ;
361
+ right : 0px ;
362
+ height : 45px ;
363
+ text-align : center;
364
+ color : # fff ;
365
+ font-size : 14px ;
366
+ background-color : # 21252b ;
367
+ border-top : 2px solid # ff5252 ;
368
+ -webkit-touch-callout : none;
369
+ -webkit-user-select : none;
370
+ -khtml-user-select : none;
371
+ -moz-user-select : none;
372
+ -ms-user-select : none;
373
+ user-select : none;
374
+ }
375
+
376
+ .gdpr-close {
377
+ font-size : 25px ;
378
+ position : fixed;
379
+ right : 15px ;
380
+ bottom : 5px ;
381
+ color : # fff ;
382
+ }
383
+
354
384
/* ---- OCTOCAT! ---- */
355
385
.github-corner : hover .octo-arm {
356
386
animation : octocat-wave 560ms ease-in-out
Original file line number Diff line number Diff line change 1
1
let isAdvanced = false ;
2
2
let lang = "en" ;
3
+ let showGDPR = true ;
4
+ let gdprBanner ;
3
5
6
+ //Cookies.remove("showGDPR")
4
7
// Cookies
5
8
if ( Cookies . get ( "showAdvanced" ) ) {
6
9
isAdvanced = Cookies . get ( "showAdvanced" ) == "true" ? true : false ;
@@ -11,6 +14,14 @@ if (Cookies.get("language")) {
11
14
lang = Cookies . get ( "language" ) ;
12
15
}
13
16
17
+ if ( Cookies . get ( "showGDPR" ) ) {
18
+ showGDPR = Cookies . get ( "showGDPR" ) ;
19
+ }
20
+
21
+ $ ( document ) . ready ( function ( ) {
22
+ toggleGDPR ( showGDPR ) ;
23
+ } ) ;
24
+
14
25
// init isotope
15
26
let qsRegex ;
16
27
const $grid = $ ( ".grid" ) . isotope ( {
@@ -224,6 +235,21 @@ $("#ShowAdvanced").change(function() {
224
235
refreshList ( ) ;
225
236
} ) ;
226
237
238
+ function toggleGDPR ( isShow ) {
239
+ console . log ( "ShowGDPR: " + isShow ) ;
240
+
241
+ if ( isShow === true )
242
+ $ ( ".gdpr-wrapper" ) . show ( ) ;
243
+ // else
244
+ // $(".gdpr-wrapper").hide();
245
+ //
246
+ }
247
+
248
+ $ ( ".gdpr-close" ) . click ( function ( ) {
249
+ Cookies . set ( "showGDPR" , false ) ;
250
+ $ ( ".gdpr-wrapper" ) . hide ( ) ;
251
+ } ) ;
252
+
227
253
function getURLParameter ( sParam ) {
228
254
const sPageURL = window . location . search . substring ( 1 ) ;
229
255
const sURLVariables = sPageURL . split ( "&" ) ;
Original file line number Diff line number Diff line change 86
86
< div class ="grid ">
87
87
</ div >
88
88
89
+ <!-- GDPR BANNER -->
90
+ < div class ="gdpr-wrapper ">
91
+ < p > We use cookies to store only your app related settings to your machine. By using our site, you consent to cookies.</ p >
92
+ < a href ="# "> < div class ="gdpr-close "> ✖</ div > </ a >
93
+ </ div >
94
+
89
95
< script src ="assets/app.js "> </ script >
90
96
</ body >
91
97
You can’t perform that action at this time.
0 commit comments