Skip to content

Commit 3bb9af8

Browse files
committed
Code refactoring and minor improvements
1 parent 375b972 commit 3bb9af8

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

assets/css/style.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -660,14 +660,13 @@ input[type="number"]::-webkit-inner-spin-button {
660660
display: none; /* Hidden by default */
661661
position: fixed; /* Stay in place */
662662
z-index: 1; /* Sit on top */
663-
padding-top: 300px; /* Location of the box */
663+
padding-top: 85px; /* Location of the box */
664664
left: 0;
665665
top: 0;
666666
width: 100%; /* Full width */
667667
height: 100%; /* Full height */
668668
overflow: auto; /* Enable scroll if needed */
669-
background-color: rgb(0, 0, 0); /* Fallback color */
670-
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
669+
background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
671670
}
672671

673672
.text-consent-banner {
@@ -676,8 +675,11 @@ input[type="number"]::-webkit-inner-spin-button {
676675
margin: auto;
677676
padding: 20px;
678677
border: 1px solid #888;
679-
width: 25%;
678+
width: 27%;
680679
border-radius: 20px;
680+
h2 {
681+
margin-left: 50px;
682+
}
681683
span {
682684
display: block;
683685
padding-bottom: 20px;
@@ -738,7 +740,7 @@ input[type="number"]::-webkit-inner-spin-button {
738740

739741
.consent-close-x {
740742
top: -25px;
741-
left: -35px;
743+
left: -25px;
742744
}
743745

744746
@keyframes slide {
@@ -975,7 +977,7 @@ aside {
975977
background: mediumseagreen;
976978
}
977979

978-
@media screen and (min-width: 320px) and (max-width: 840px) {
980+
@media screen and (min-width: 320px) and (max-width: 1280px) {
979981
.github-badges {
980982
display: inline-block;
981983
margin: auto 0;
@@ -1014,11 +1016,11 @@ aside {
10141016
}
10151017

10161018
.text-consent-banner {
1017-
width: 80%;
1019+
width: 70%;
10181020
}
10191021

10201022
.consent-close-x {
1021-
left: -10px;
1023+
left: -15px;
10221024
}
10231025
}
10241026

assets/js/function.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
window.dataLayer.push(arguments);
2727
}
2828

29-
if (localStorage.getItem('consentMode') === null) {
29+
if (localStorage.getItem('CONSENT_MODE') === null) {
3030
gtag('consent', 'default', {
3131
ad_storage: 'denied',
3232
ad_user_data: 'denied',
@@ -37,7 +37,7 @@
3737
security_storage: 'denied',
3838
});
3939
} else {
40-
gtag('consent', 'default', JSON.parse(localStorage.getItem('consentMode')));
40+
gtag('consent', 'default', JSON.parse(localStorage.getItem('CONSENT_MODE')));
4141
}
4242

4343
gtag('set', 'url_passthrough', true);
@@ -915,10 +915,10 @@ <h2>Consent Banner Privacy Settings</h2>
915915
/**
916916
* Detect if Consent banner needs to be displayed
917917
*/
918-
if (localStorage.getItem('consentMode') === null) {
918+
if (localStorage.getItem('CONSENT_MODE') === null) {
919919
showBanner();
920920
}
921921
</script>
922922
</body>
923923

924-
</html>
924+
</html>

0 commit comments

Comments
 (0)