ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
.pr-gpc-notification-wrap{
|
||||
padding: 20px 30px;
|
||||
border-radius: 6px;
|
||||
background: #F0F6FC;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
#pr-gpc-notification-modal .pr-gpc-notification-wrap {
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.pr-gpc-notification,
|
||||
.pr-gpc-notification-wrap p,
|
||||
.pr-gpc-notification-wrap span{
|
||||
color: #3E3E3E;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-wrap h2{
|
||||
margin: 0 0 18px 0;
|
||||
color: #1F1F1F;
|
||||
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.pr-gpc-text-with-icon{
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.pr-gpc-text-with-icon img{
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-wrap p{
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
|
||||
/* Popup styles */
|
||||
.pr-gpc-notification-modal._has-modal{
|
||||
overflow: initial;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-popup.modal-popup .modal-header{
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-popup .pr-gpc-notification-wrap > h2{
|
||||
margin: 0 0 14px 0;
|
||||
padding-bottom: 14px;
|
||||
border-bottom: 1px solid #EDEDED;
|
||||
color: #1F1F1F;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-popup .pr-gpc-notification-wrap,
|
||||
.pr-gpc-notification-popup .pr-gpc-notification-wrap p,
|
||||
.pr-gpc-notification-popup .pr-gpc-notification-wrap span{
|
||||
color: #3E3E3E;
|
||||
font-size: 13px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-popup .modal-inner-wrap{
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
max-width: 100%;
|
||||
width: auto;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #E7E7E7;
|
||||
box-shadow: 0px 5px 24.9px 0px rgba(0, 0, 0, 0.10);
|
||||
}
|
||||
|
||||
.pr-gpc-notification-popup .modal-footer{
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-popup .modal-footer .action.primary{
|
||||
padding: 8px 20px;
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
.pr-gpc-notification-backdrop.modals-overlay{
|
||||
background-color: transparent;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@media (min-width: 768px){
|
||||
.pr-gpc-notification-popup .modal-inner-wrap{
|
||||
right: auto;
|
||||
left: 33px;
|
||||
margin-bottom: 33px;
|
||||
width: 460px;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 792 B |
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @package Plumrocket_GlobalPrivacyControl
|
||||
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://plumrocket.com)
|
||||
* @license https://plumrocket.com/license End-user License Agreement
|
||||
*/
|
||||
|
||||
define([], function() {
|
||||
'use strict';
|
||||
|
||||
return window.prGlobalPrivacyControlApi;
|
||||
});
|
||||
@@ -0,0 +1,64 @@
|
||||
define([
|
||||
'jquery',
|
||||
'Magento_Ui/js/modal/modal',
|
||||
'prCookieService',
|
||||
'prGlobalPrivacyControlApi'
|
||||
], function ($, modal, prCookieService, prGlobalPrivacyControlApi) {
|
||||
'use strict';
|
||||
|
||||
$.widget('plumrocket.gpcOptOutNotification', {
|
||||
options: {
|
||||
cookieName: 'pr-gpc-notification-shown'
|
||||
},
|
||||
|
||||
/**
|
||||
* Widget initialization
|
||||
* @private
|
||||
*/
|
||||
_create: function () {
|
||||
var self = this;
|
||||
|
||||
// Initialize modal options
|
||||
var modalOptions = {
|
||||
type: 'popup',
|
||||
innerScroll: true,
|
||||
modalClass: 'pr-gpc-notification-popup',
|
||||
overlayClass: 'pr-gpc-notification-backdrop modals-overlay',
|
||||
parentModalClass: 'pr-gpc-notification-modal _has-modal',
|
||||
buttons: [{
|
||||
text: $.mage.__('OK'),
|
||||
class: 'action primary',
|
||||
click: function () {
|
||||
this.closeModal();
|
||||
}
|
||||
}],
|
||||
closed: function () {
|
||||
self._setCookie();
|
||||
}
|
||||
};
|
||||
|
||||
modal(modalOptions, $(this.element));
|
||||
prGlobalPrivacyControlApi.signalHandlers.addHandler(this._showModal.bind(this));
|
||||
},
|
||||
|
||||
_showModal: function () {
|
||||
if (prCookieService.get(this.options.cookieName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout($.proxy(function () {
|
||||
$(this.element).modal('openModal');
|
||||
}, this), 1000);
|
||||
},
|
||||
|
||||
/**
|
||||
* Set cookie to remember that notification was shown
|
||||
* @private
|
||||
*/
|
||||
_setCookie: function () {
|
||||
prCookieService.set(this.options.cookieName, '1', {expires: null});
|
||||
}
|
||||
});
|
||||
|
||||
return $.plumrocket.gpcOptOutNotification;
|
||||
});
|
||||
Reference in New Issue
Block a user