Jelajahi Sumber

Manage cookie icon

Clement G 5 tahun lalu
induk
melakukan
d44bee32eb
3 mengubah file dengan 47 tambahan dan 0 penghapusan
  1. 3 0
      README.md
  2. 39 0
      css/tarteaucitron.css
  3. 5 0
      tarteaucitron.js

+ 3 - 0
README.md

@@ -39,6 +39,9 @@ tarteaucitron.init({
     "orientation": "middle", /* Banner position (top - bottom) */
     "showAlertSmall": true, /* Show the small banner on bottom right */
     "cookieslist": true, /* Show the cookie list */
+    
+    "showIcon": true, /* Show cookie icon to manage cookies */
+    "iconPosition": "BottomRight", /* Position of the icon between BottomRight, BottomLeft, TopRight and TopLeft */
 
     "adblocker": false, /* Show a Warning if an adblocker is detected */
     "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */

+ 39 - 0
css/tarteaucitron.css

@@ -554,6 +554,45 @@ div#tarteaucitronServices {
     z-index: 2147483644;
 }
 
+/***
+ * Icon
+ */
+.tarteaucitronIconBottomRight {
+    bottom: 0;
+    right: 0;
+}
+.tarteaucitronIconBottomLeft {
+    bottom: 0;
+    left: 0;
+}
+.tarteaucitronIconTopRight {
+    top: 0;
+    right: 0;
+}
+.tarteaucitronIconTopLeft {
+    top: 0;
+    left: 0;
+}
+
+#tarteaucitronIcon {
+    background: transparent;
+    position: fixed;
+    width: auto;
+    z-index: 2147483646;
+}
+#tarteaucitronIcon #tarteaucitronManager {
+    color: transparent;
+    cursor: pointer;
+    display: inline-block;
+    font-size: 11px !important;
+    padding: 8px 10px 8px;
+    border: none;
+}
+#tarteaucitronIcon #tarteaucitronManager img {
+    width: 50px;
+    height: 50px;
+}
+
 /***
  * Small alert
  */

File diff ditekan karena terlalu besar
+ 5 - 0
tarteaucitron.js


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini