update
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,61 @@
|
||||
(function( $ ) {
|
||||
'use strict';
|
||||
$(document).on('update-blocker-layer-position', function() {
|
||||
setTimeout(function(){
|
||||
$(document).find('.dpd-blocker-layer:visible').each(function(){
|
||||
var parent = $(this).parent();
|
||||
var thumbnail = parent.find('.thumbnail-youtube');
|
||||
var blocker_layer = parent.find('.dpd-blocker-layer');
|
||||
if(Math.ceil(thumbnail.height()) >= Math.ceil(2 * (blocker_layer.find('.dpd-blocker-layer-content').height() + 80))){
|
||||
blocker_layer.addClass('override');
|
||||
}else{
|
||||
blocker_layer.removeClass('override');
|
||||
}
|
||||
});
|
||||
}, 300);
|
||||
});
|
||||
|
||||
$(document).on('append-blocker-layer', function() {
|
||||
$(document).find('img.thumbnail-youtube').each(function(){
|
||||
// ignore modules 017b, 018, 019, 029
|
||||
if(!$(this).closest('.module-017b').length && !$(this).closest('.stage-home-018-include').length && !$(this).closest('.header-theme-page-019-include').length && !$(this).closest('.w-benefits-3').length){
|
||||
var parent = $(this).parent();
|
||||
var blocker_layer = $('<div>');
|
||||
var content = $('<div>');
|
||||
var wrap_play_button = $('<div>');
|
||||
var play_button = $('<img/>');
|
||||
var note = $('<p>');
|
||||
var button = $('<button type="button">');
|
||||
note.addClass('font-normal').text(DPDBlockerLayer.text_note).attr('style', 'color: #fff !important');
|
||||
button.addClass('btn btn-primary').text(DPDBlockerLayer.text_button).attr('style', 'width: auto');
|
||||
content.addClass('dpd-blocker-layer-content').append(note).append(button);
|
||||
play_button.addClass('play-button').attr({src: DPDBlockerLayer.icon, alt: ''});
|
||||
wrap_play_button.addClass('wrap-play-button').append(play_button);
|
||||
blocker_layer.addClass('dpd-blocker-layer override').append(wrap_play_button).append(content);
|
||||
parent.find('.dpd-blocker-layer').remove();
|
||||
parent.append(blocker_layer);
|
||||
|
||||
// click to show cookie settings
|
||||
button.on('click', function(){
|
||||
tC.privacyCenter.showPrivacyCenter();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
});
|
||||
$(document).trigger('update-blocker-layer-position');
|
||||
});
|
||||
$(document).on('remove-blocker-layer', function() {
|
||||
$(document).find('.dpd-blocker-layer').remove();
|
||||
});
|
||||
var timeout_resize = null;
|
||||
$(window).resize(function(){
|
||||
clearTimeout(timeout_resize);
|
||||
timeout_resize = setTimeout(function(){
|
||||
$(document).trigger('update-blocker-layer-position');
|
||||
}, 100);
|
||||
});
|
||||
// update for tab modules 007, 025c, 026b, 030-031, 004, 005
|
||||
$(document).on('click', '.collapsible-toggle, .nav-item a[data-toggle="tab"]', function(){
|
||||
$(document).trigger('update-blocker-layer-position');
|
||||
});
|
||||
})( jQuery );
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
jQuery(document).ready((function($){$(".carousel").on("touchstart",(function(event){var xClick=event.originalEvent.touches[0].pageX;$(this).one("touchmove",(function(event){var xMove=event.originalEvent.touches[0].pageX;Math.floor(xClick-xMove)>5?$(this).carousel("next"):Math.floor(xClick-xMove)<-5&&$(this).carousel("prev")})),$(".carousel").on("touchend",(function(){$(this).off("touchmove")}))})),$(".dpd-new-header-parcel-tracking").each((function(){openLink=$(this).find(".target-open-tab").val(),$(this).find(".icon-for-search-parcel-tracking").click((function(event){event.preventDefault();var input_id=$(this).siblings(".input-search").find("input").data("id"),keyword=$("input#"+input_id).val(),trackingLink=$(this).attr("value");trackingLink||(trackingLink=$(this).siblings("span.icon-for-search-parcel-tracking").attr("value"));var search=trackingLink+keyword;window.open(search,openLink).focus()}))})),$(this).find(".dpd-new-header-parcel-tracking input").on("keypress",(function(e){if(13===e.which){var span_e=$(this).closest(".dpd-new-header-parcel-tracking").find("span:visible");if(span_e.length>1)return void span_e.eq(1).click();span_e.eq(0).click()}}))}));
|
||||
@@ -0,0 +1 @@
|
||||
jQuery(document).ready((function($){$(this).find(".so-widget-search-parcel-tracking-embedded-widget").each((function(){openLink=$(this).find(".target-open-tab").val(),$(this).find(".icon-for-search-parcel-tracking").click((function(event){event.preventDefault();var input_id=$(this).siblings("input").data("id"),keyword=$("input#"+input_id).val(),trackingLink=$(this).attr("value");trackingLink||(trackingLink=$(this).siblings("span.icon-for-search-parcel-tracking").attr("value"));var search=trackingLink+keyword;window.open(search,openLink).focus()}))})),$(this).find(".so-widget-search-parcel-tracking-embedded-widget input").on("keypress",(function(e){if(13===e.which){var span_e=$(this).closest(".so-widget-search-parcel-tracking-embedded-widget").find("span:visible");if(span_e.length>1)return void span_e.eq(1).click();span_e.eq(0).click()}}))}));
|
||||
@@ -0,0 +1 @@
|
||||
jQuery(document).ready((function($){$(this).find(".so-widget-search-parcel-tracking-widget").each((function(){openLink=$(this).find(".target-open-tab").val(),$(this).find(".icon-for-search-parcel-tracking").click((function(event){event.preventDefault();var input_id=$(this).siblings("input").data("id"),keyword=$("input#"+input_id).val(),trackingLink=$(this).attr("value");trackingLink||(trackingLink=$(this).siblings("span.icon-for-search-parcel-tracking").attr("value"));var search=trackingLink+keyword;window.open(search,openLink).focus()}))})),$(this).find(".so-widget-search-parcel-tracking-widget input").on("keypress",(function(e){if(13===e.which){var span_e=$(this).closest(".so-widget-search-parcel-tracking-widget").find("span:visible");if(span_e.length>1)return void span_e.eq(1).click();span_e.eq(0).click()}}))}));
|
||||
@@ -0,0 +1 @@
|
||||
jQuery(document).ready(function($){$("#search-support").click(function(event){event.preventDefault();var keyword=$("input#sp-search").val();$("#search-form").submit(),window.open(search,"_blank").focus()})});
|
||||
@@ -0,0 +1 @@
|
||||
jQuery(document).ready(function($){var $$=$(".so-widget-dpd-text-teaser-psfinder-widget");$$.find("input").focus(function(){$(this).css("color","#414042"),$(this).val()==$(this).attr("placeholder")&&$(this).val("")}),$$.find("input").blur(function(){""===$(this).val()&&($(this).val($(this).attr("placeholder")),$(this).css("color",$(this).data("placeholder-color")))}),$$.find("i").click(function(event){event.preventDefault();var keyword=$(this).parent().find("input").val();keyword==$(this).parent().find("input").attr("placeholder")&&(keyword="");var url=$(this).data("url")+keyword,target=$(this).data("target");window.open(url,target).focus()}),$$.find("input").on("keypress",function(e){if(13===e.which){var keyword=$(this).val();keyword==$(this).attr("placeholder")&&(keyword="");var url=$(this).data("url")+keyword,target=$(this).data("target");window.open(url,target).focus()}})});
|
||||
@@ -0,0 +1 @@
|
||||
jQuery(document).ready((function($){var $$;jQuery(this).find(".so-widget-dpd-topic-switch-widget").each((function(){var module_id=jQuery(this).parent().find("input[type=hidden]").val(),id="#"+module_id,activeStyle="display: block; opacity: 1;",inactiveStyle="display: none; opacity: 0; transition: opacity 0.15s linear;";$(id).children().find("a").each((function(index){$(this).find("img").attr("src")||($(this).find("img").hide(),$(this).find("p").css("margin-left","21px")),$(this).click((function(){var image_id=module_id+"-"+(index+1)+"-media",btn_id=module_id+"-"+(index+1)+"-btn";$("#"+image_id).attr("style",""),$("#"+image_id).attr("style",activeStyle),$("#"+image_id).siblings("img").attr("style",inactiveStyle),$("#"+image_id).siblings("video").attr("style",inactiveStyle),$("#"+image_id).siblings("iframe").attr("style",inactiveStyle),$("#"+btn_id).attr("style",""),$("#"+btn_id).attr("style",activeStyle),$("#"+btn_id).siblings("div").attr("style",inactiveStyle);var active=$(this).find("img").data("active"),alt=$(this).find("img").data("active-alt");active?($(this).find("img").show(),$(this).find("img").attr("src",active),$(this).find("img").attr("alt",alt),$(this).find("p").css("margin-left","25px")):($(this).find("img").hide(),$(this).find("p").css("margin-left","21px")),$(this).closest("li").siblings().each((function(){var inactive=$(this).find("img").data("inactive"),in_alt=$(this).find("img").data("inactive-alt");inactive?($(this).find("img").show(),$(this).find("img").attr("src",inactive),$(this).find("img").attr("alt",in_alt),$(this).find("p").css("margin-left","25px")):($(this).find("img").hide(),$(this).find("p").css("margin-left","21px"))}))}))})),$(id+"-mb-tab").find(".w-tw-icon-box").each((function(index){$(this).find("img").first().attr("src")||($(this).find("img").first().hide(),$(this).find("p").first().css("margin-left","0px")),$(this).click((function(){var active=$(this).find("img").first().data("active"),inactive=$(this).find("img").first().data("inactive"),alt=$(this).find("img").first().data("active-alt"),in_alt=$(this).find("img").first().data("inactive-alt");$(this).hasClass("show")?active?($(this).find("img").first().show(),$(this).find("img").first().attr("src",active),$(this).find("img").first().attr("alt",alt),$(this).find("p").first().css("margin-left","16px")):($(this).find("img").first().hide(),$(this).find("p").first().css("margin-left","0px")):inactive?($(this).find("img").first().show(),$(this).find("img").first().attr("src",inactive),$(this).find("img").first().attr("alt",in_alt),$(this).find("p").first().css("margin-left","16px")):($(this).find("img").first().hide(),$(this).find("p").first().css("margin-left","0px"))}))}))}))}));
|
||||
@@ -0,0 +1 @@
|
||||
.input-box.textarea.focus{padding-top:15px!important}.input-box.textarea textarea{padding-top:3px}form#search-form span.input-clear{top:10px;right:35px}form#search-form input#search-term-input{width:calc(100% - 35px)}form#search-form input#search-term-input:focus{width:calc(100% - 55px)}.fm-form .input-box.textarea{padding-top:17px!important;border:solid 1px #808285;padding-bottom:0!important}.fm-form .input-box.textarea.no-placeholder{padding-top:0!important}.fm-form .input-box.textarea.focus{padding-top:17px!important;padding-bottom:0!important}.fm-form .input-box.textarea.no-placeholder.focus{padding-top:0!important}.fm-form .input-box.textarea textarea{border:none!important;padding-top:0;padding-bottom:0}.fm-form-container .ui-spinner{border:none!important;border-radius:0!important}.fm-form-container .ui-spinner .ui-spinner-button{background:0 0!important}
|
||||
@@ -0,0 +1 @@
|
||||
!function($,window){$(":input").off("keypress")}(jQuery,window);
|
||||
@@ -0,0 +1,183 @@
|
||||
.guest-teaser-001,
|
||||
.user-login-001,
|
||||
.so-widget-dpd-news-widget .news-box > .row,
|
||||
.widget_sow-editor .panel-widget-style,
|
||||
.so-widget-search-parcel-tracking-widget .boxed,
|
||||
.stage-home-018-include .boxed.oppa,
|
||||
.module-007,
|
||||
.so-widget-dpd-benefits-2-widget,
|
||||
.w-benefits-3 .block-image,
|
||||
.module-045,
|
||||
.so-widget-download-module-widget .download-button{
|
||||
border-radius: 11px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.w-teaser-002 .boxed,
|
||||
.so-widget-dpd-news-widget .news-filter,
|
||||
.module-025a,
|
||||
.module-026b,
|
||||
.module-025c,
|
||||
.benefits-1,
|
||||
.header-theme-page-019-include .boxed.oppa,
|
||||
.module-014,
|
||||
.module-015,
|
||||
.module-022{
|
||||
border-radius: 11px;
|
||||
}
|
||||
button.btn,
|
||||
a.btn:not(.dpd-floating-button),
|
||||
.fm-form-container .fm-form button.button-submit,
|
||||
.fm-form-container .fm-form button.button-reset,
|
||||
button.btn_calculate{
|
||||
border-radius: 7px;
|
||||
}
|
||||
.dpd-timeline-button .w-button a{
|
||||
border-radius: 0;
|
||||
}
|
||||
.preview .so-widget-dpd-image-textbox-025a-widget,
|
||||
.preview .so-widget-dpd-image-textbox-026b-widget,
|
||||
.preview .so-widget-dpd-image-textbox-025c-widget,
|
||||
.preview .so-widget-dpd-new-header-widget,
|
||||
.preview .so-widget-dpd-benefits-3-widget,
|
||||
.preview .so-widget-dpd-full-image-text-045-widget{
|
||||
padding: 0 30px;
|
||||
}
|
||||
.preview .module-020 .button-wrap a{
|
||||
display: block;
|
||||
}
|
||||
.dpd-at-delivery-driver .js_fileuploader_button,
|
||||
.fm-type_file_upload .btn-upload,
|
||||
.input-upload .btn-upload{
|
||||
margin-left: 8px;
|
||||
}
|
||||
.w-newsletter-mail-input .input-box{
|
||||
width: calc(100% - 8px);
|
||||
margin-right: 8px;
|
||||
}
|
||||
@media screen and (max-width: 767.98px){
|
||||
.w-newsletter-mail-input .input-box{
|
||||
width: 100%;
|
||||
margin-right: 0;
|
||||
}
|
||||
.content-wrap-004 .so-widget-dpd-news-widget .mg-left-right-news-mobile-revert {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
.guest-teaser-001,
|
||||
.user-login-001,
|
||||
.so-widget-dpd-news-widget .news-box > .row,
|
||||
.w-teaser-002 .boxed,
|
||||
.widget_sow-editor .panel-widget-style,
|
||||
.module-007,
|
||||
.so-widget-dpd-benefits-2-widget,
|
||||
.w-benefits-3 .block-image,
|
||||
.module-014,
|
||||
.module-015,
|
||||
.module-045,
|
||||
.so-widget-download-module-widget .download-button,
|
||||
.module-022{
|
||||
border-radius: 7px;
|
||||
}
|
||||
.module-025a,
|
||||
.module-026b,
|
||||
.module-025c,
|
||||
.benefits-1,
|
||||
.so-widget-search-parcel-tracking-widget .boxed,
|
||||
.stage-home-018-include .boxed.oppa,
|
||||
.header-theme-page-019-include .boxed.oppa{
|
||||
border-radius: 0;
|
||||
}
|
||||
.preview .news-module{
|
||||
padding: 0 10px !important;
|
||||
}
|
||||
.preview .so-widget-dpd-new-header-widget,
|
||||
.preview .header-theme-page-019-include,
|
||||
.preview .so-widget-dpd-topic-switch-widget,
|
||||
.preview .so-widget-dpd-benefits-3-widget,
|
||||
.preview .so-widget-dpd-full-image-text-045-widget{
|
||||
padding: 0 10px;
|
||||
}
|
||||
.content-wrap-004 .so-widget-dpd-topic-switch-widget,
|
||||
.content-wrap-005 .so-widget-dpd-topic-switch-widget{
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.geopost-module-015 {
|
||||
border-left: 1px solid lightgray;
|
||||
border-bottom: 1px solid lightgray;
|
||||
border-radius: 0px 0px 0px 11px;
|
||||
padding-top: 48px;
|
||||
}
|
||||
|
||||
.so-widget-geopost-download-module-widget .download-button {
|
||||
background: #dc0032 !important;
|
||||
height: 84px;
|
||||
border-radius: 11px;
|
||||
padding: 15px;
|
||||
padding-top: 0;
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .download-text {
|
||||
color: #fff;
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .size-image-icon-010 {
|
||||
margin: 19px !important;
|
||||
width: 33px !important;
|
||||
height: 33px !important;
|
||||
position: relative;
|
||||
right: 27px;
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .download-icon {
|
||||
border-radius: 11px;
|
||||
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .download-text .small-text {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .download-text p {
|
||||
color: #fff;
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .text-title {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
.so-widget-geopost-download-module-widget .text-extension, .text-sizetype {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.so-widget-geopost-social-links a {
|
||||
padding: 11px 8px;
|
||||
border: 1px solid lightgray;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.social-links-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.social-links-heading {
|
||||
margin-bottom: 23px;
|
||||
}
|
||||
.social-links-heading p {
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.geopost-module-015 h3 {
|
||||
line-height: 27px;
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
.geopost-module-015 a {
|
||||
line-height: 27px;
|
||||
font-size: 18px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.geopost-module-015 table img {
|
||||
max-width: fit-content;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.siteorigin-widget-form .siteorigin-widget-field-type-social-adv .dpd-share-at-item img {
|
||||
background-color: #fff;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
@@ -0,0 +1,32 @@
|
||||
(function( $ ) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* All of the code for your public-facing JavaScript source
|
||||
* should reside in this file.
|
||||
*
|
||||
* Note: It has been assumed you will write jQuery code here, so the
|
||||
* $ function reference has been prepared for usage within the scope
|
||||
* of this function.
|
||||
*
|
||||
* This enables you to define handlers, for when the DOM is ready:
|
||||
*
|
||||
* $(function() {
|
||||
*
|
||||
* });
|
||||
*
|
||||
* When the window is loaded:
|
||||
*
|
||||
* $( window ).load(function() {
|
||||
*
|
||||
* });
|
||||
*
|
||||
* ...and/or other possibilities.
|
||||
*
|
||||
* Ideally, it is not considered best practise to attach more than a
|
||||
* single DOM-ready or window-load handler for a particular page.
|
||||
* Although scripts in the WordPress core, Plugins and Themes may be
|
||||
* practising this, we should strive to set a better example in our own work.
|
||||
*/
|
||||
|
||||
})( jQuery );
|
||||
@@ -0,0 +1,93 @@
|
||||
(function($){
|
||||
$(window).on('load', function(){
|
||||
|
||||
var wdtGoogleCharts = [];
|
||||
// Variable use by setInterval function for fix display in IE, Edge, FireFox
|
||||
var wdtTimeoutForRender = {};
|
||||
|
||||
if (typeof wpDataCharts !== 'undefined') {
|
||||
|
||||
for( var chart_id in wpDataCharts ){
|
||||
|
||||
if( wpDataCharts[chart_id].engine == 'google' ){
|
||||
var wdtChart = new wpDataTablesGoogleChart();
|
||||
wdtChart.setType( wpDataCharts[chart_id].render_data.type );
|
||||
wdtChart.setColumns( wpDataCharts[chart_id].render_data.columns );
|
||||
wdtChart.setRows( wpDataCharts[chart_id].render_data.rows );
|
||||
wdtChart.setOptions( wpDataCharts[chart_id].render_data.options );
|
||||
wdtChart.setGrouping( wpDataCharts[chart_id].group_chart );
|
||||
wdtChart.setContainer( wpDataCharts[chart_id].container );
|
||||
wdtChart.setColumnIndexes( wpDataCharts[chart_id].render_data.column_indexes );
|
||||
if( typeof wpDataChartsCallbacks !== 'undefined' && typeof wpDataChartsCallbacks[chart_id] !== 'undefined' ){
|
||||
wdtChart.setRenderCallback( wpDataChartsCallbacks[chart_id] );
|
||||
}
|
||||
wdtGoogleCharts.push( wdtChart );
|
||||
} else if ( wpDataCharts[chart_id].engine == 'highcharts' ) {
|
||||
var wdtChart = new wpDataTablesHighchart();
|
||||
wdtChart.setOptions( wpDataCharts[chart_id].render_data.options );
|
||||
wdtChart.setMultiplyYaxis( wpDataCharts[chart_id].render_data );
|
||||
wdtChart.setType( wpDataCharts[chart_id].render_data.type );
|
||||
wdtChart.setWidth( wpDataCharts[chart_id].render_data.width );
|
||||
wdtChart.setHeight( wpDataCharts[chart_id].render_data.height );
|
||||
wdtChart.setColumnIndexes( wpDataCharts[chart_id].render_data.column_indexes );
|
||||
wdtChart.setGrouping( wpDataCharts[chart_id].group_chart );
|
||||
wdtChart.setContainer( '#'+wpDataCharts[chart_id].container );
|
||||
if( typeof wpDataChartsCallbacks !== 'undefined' && typeof wpDataChartsCallbacks[chart_id] !== 'undefined' ){
|
||||
wdtChart.setRenderCallback( wpDataChartsCallbacks[chart_id] );
|
||||
}
|
||||
if( wpDataCharts[chart_id].follow_filtering != 1 ) {
|
||||
wdtChart.render();
|
||||
}
|
||||
} else if ( wpDataCharts[chart_id].engine == 'chartjs' ) {
|
||||
var wdtChart = new wpDataTablesChartJS();
|
||||
wdtChart.setData( wpDataCharts[chart_id].render_data.options.data );
|
||||
wdtChart.setOptions( wpDataCharts[chart_id].render_data.options.options );
|
||||
wdtChart.setGlobalOptions( wpDataCharts[chart_id].render_data.options.globalOptions );
|
||||
wdtChart.setType( wpDataCharts[chart_id].render_data.configurations.type );
|
||||
wdtChart.setColumnIndexes( wpDataCharts[chart_id].render_data.column_indexes );
|
||||
wdtChart.setGrouping( wpDataCharts[chart_id].group_chart );
|
||||
wdtChart.setContainer( document.getElementById("chartJSContainer_" + chart_id));
|
||||
wdtChart.setCanvas( document.getElementById("chartJSCanvas_" + chart_id));
|
||||
wdtChart.setContainerOptions( wpDataCharts[chart_id].render_data.configurations );
|
||||
if( typeof wpDataChartsCallbacks !== 'undefined' && typeof wpDataChartsCallbacks[chart_id] !== 'undefined' ){
|
||||
wdtChart.setRenderCallback( wpDataChartsCallbacks[chart_id] );
|
||||
}
|
||||
if( wpDataCharts[chart_id].follow_filtering != 1 ) {
|
||||
wdtChart.render();
|
||||
}
|
||||
}
|
||||
|
||||
if( wpDataCharts[chart_id].follow_filtering == 1 ){
|
||||
// Find the wpDataTable object
|
||||
var $wdtable = $('table.wpDataTable[data-wpdatatable_id='+wpDataCharts[chart_id].wpdatatable_id+']');
|
||||
if( $wdtable.length > 0 ){
|
||||
//SPCCMS-2255
|
||||
wdtTimeoutForRender[chart_id] = setInterval(function(_wdtChart, _chartId) {
|
||||
if (typeof wpDataTables[$wdtable.get(0).id] !== 'undefined') {
|
||||
var wdtObj = wpDataTables[$wdtable.get(0).id];
|
||||
_wdtChart.setConnectedWPDataTable(wdtObj);
|
||||
_wdtChart.enableFollowFiltering();
|
||||
wdtObj.fnDraw();
|
||||
clearInterval(wdtTimeoutForRender[_chartId])
|
||||
}
|
||||
}, 50, wdtChart, chart_id); // Pass variables in this scope to function of setInterval
|
||||
}else{
|
||||
wdtChart.render();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Setting the callback for rendering Google Charts
|
||||
if( wdtGoogleCharts.length ){
|
||||
var wdtGoogleRenderCallback = function(){
|
||||
for( var i in wdtGoogleCharts ){
|
||||
wdtGoogleCharts[i].render();
|
||||
}
|
||||
}
|
||||
google.charts.setOnLoadCallback( wdtGoogleRenderCallback );
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
@@ -0,0 +1,49 @@
|
||||
(function( $ ) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* All of the code for your public-facing JavaScript source
|
||||
* should reside in this file.
|
||||
*
|
||||
* Note: It has been assumed you will write jQuery code here, so the
|
||||
* $ function reference has been prepared for usage within the scope
|
||||
* of this function.
|
||||
*
|
||||
* This enables you to define handlers, for when the DOM is ready:
|
||||
*
|
||||
* $(function() {
|
||||
*
|
||||
* });
|
||||
*
|
||||
* When the window is loaded:
|
||||
*
|
||||
* $( window ).load(function() {
|
||||
*
|
||||
* });
|
||||
*
|
||||
* ...and/or other possibilities.
|
||||
*
|
||||
* Ideally, it is not considered best practise to attach more than a
|
||||
* single DOM-ready or window-load handler for a particular page.
|
||||
* Although scripts in the WordPress core, Plugins and Themes may be
|
||||
* practising this, we should strive to set a better example in our own work.
|
||||
*/
|
||||
|
||||
$(function() {
|
||||
$.post(exchange_media_object_public.ajax_url, {action: 'load_media_changed'}, function(response) {
|
||||
if (response) {
|
||||
for(let i = 0; i < response.length; i++){
|
||||
let el = $('img[src*="'+response[i]+'"], video[src*="'+response[i]+'"], source[src*="'+response[i]+'"]');
|
||||
if (el.length) {
|
||||
let new_src = response[i] + '?v=' + $.now();
|
||||
el.attr('src', new_src);
|
||||
if (el.is('source')) {
|
||||
el.closest('video').attr('src', new_src);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})( jQuery );
|
||||
@@ -0,0 +1,226 @@
|
||||
.fm-form-container {
|
||||
width: 100%;
|
||||
}
|
||||
.fm-form-container .fm-form {
|
||||
padding: 20px 0 0 0 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .fm-header-bg {
|
||||
display: block;
|
||||
}
|
||||
.fm-form-container .fm-form .fm-header {
|
||||
text-align: center;
|
||||
}
|
||||
.fm-form-container .fm-form .image_left_right.fm-header {
|
||||
padding: 0 !important;
|
||||
}
|
||||
.fm-form-container
|
||||
.fm-form.header_left_right
|
||||
.wdform-page-and-images {
|
||||
width: 100%;
|
||||
}
|
||||
.fm-topbar .fm-form-container .fm-form .fm-header {
|
||||
width: 40% !important;
|
||||
}
|
||||
.fm-form-container .fm-form .fm-header-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
.fm-form-container .fm-form .fm-header-description {
|
||||
font-size: 15px;
|
||||
}
|
||||
.fm-form-container .fm-scrollbox {
|
||||
width: 30%;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform-page-and-images {
|
||||
border-style: unset !important;
|
||||
width: 100%;
|
||||
}
|
||||
.fm-topbar .fm-form-container .fm-form .wdform-page-and-images {
|
||||
width: 60% !important;
|
||||
}
|
||||
.fm-form-container .fm-form .mini_label {
|
||||
font-weight: normal;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section {
|
||||
background: transparent;
|
||||
}
|
||||
.fm-form-container .fm-popover .fm-popover-content {
|
||||
width: 100%;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_footer {
|
||||
margin: 15px 0 0 0;
|
||||
}
|
||||
.fm-form-container .fm-pages .page_active {
|
||||
padding: 8px;
|
||||
background-color: #7f7f7f;
|
||||
}
|
||||
.fm-form-container .fm-pages .page_deactive {
|
||||
background-color: #999999;
|
||||
margin: 0 0 10px 0;
|
||||
padding: 4px 6px;
|
||||
}
|
||||
.fm-form-container .fm-pages .page_percentage_active {
|
||||
padding: 8px;
|
||||
background-color: #7f7f7f;
|
||||
}
|
||||
.fm-form-container .fm-pages .page_percentage_deactive {
|
||||
width: 100%;
|
||||
margin: 0 0 10px 0;
|
||||
padding: 4px 6px;
|
||||
background-color: #999999;
|
||||
}
|
||||
.fm-form-container .fm-action-buttons * {
|
||||
font-size: 20px !important;
|
||||
}
|
||||
.fm-form-container .closing-form,
|
||||
.fm-form-container .minimize-form {
|
||||
position: absolute;
|
||||
}
|
||||
.fm-form-container .closing-form {
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
.fm-form-container .minimize-form {
|
||||
top: 10px;
|
||||
right: 43px;
|
||||
}
|
||||
.fm-form-container .closing-form:hover,
|
||||
.fm-form-container .minimize-form:hover {
|
||||
border: none;
|
||||
}
|
||||
.fm-form-container .fm-form .file-upload-status {
|
||||
display: none;
|
||||
}
|
||||
.fm-form-container .fm-form .file-upload input {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form input[type="text"],
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
.ui-corner-all:not(.ui-spinner):not(.ui-slider-horizontal),
|
||||
.fm-form-container .fm-form input[type="number"],
|
||||
.fm-form-container .fm-form input[type="password"],
|
||||
.fm-form-container .fm-form input[type="url"],
|
||||
.fm-form-container .fm-form input[type="email"],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .StripeElement,
|
||||
.fm-form-container .fm-form .ui-spinner-input,
|
||||
.fm-form-container .fm-form .file-upload-status,
|
||||
.fm-form-container .fm-form select {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
.fm-form-container .fm-form input[type="text"],
|
||||
.fm-form-container .fm-form .ui-corner-all,
|
||||
.fm-form-container .fm-form input[type="number"],
|
||||
.fm-form-container .fm-form input[type="password"],
|
||||
.fm-form-container .fm-form input[type="url"],
|
||||
.fm-form-container .fm-form input[type="email"],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .StripeElement,
|
||||
.fm-form-container .fm-form .ui-spinner-input,
|
||||
.fm-form-container .fm-form .file-upload-status,
|
||||
.fm-form-container .fm-form .country-name,
|
||||
.fm-form-container .fm-form select {
|
||||
font-size: 16px;
|
||||
border-radius: 2px !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-slider-range {
|
||||
border-radius: 2px 0 0 2px !important;
|
||||
}
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="text"]:not(.ui-spinner-input),
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="number"]:not(.ui-spinner-input),
|
||||
.fm-form-container .fm-form input[type="password"],
|
||||
.fm-form-container .fm-form input[type="url"],
|
||||
.fm-form-container .fm-form input[type="email"],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .StripeElement,
|
||||
.fm-form-container .fm-form .ui-spinner,
|
||||
.fm-form-container .fm-form .ui-slider,
|
||||
.fm-form-container .fm-form .ui-slider-handle,
|
||||
.fm-form-container .fm-form select {
|
||||
border-top: 1px !important;
|
||||
border-top-style: solid !important;
|
||||
border-top-color: #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-slider-range {
|
||||
background: #808285 !important;
|
||||
}
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="text"]:not(.ui-spinner-input),
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="number"]:not(.ui-spinner-input),
|
||||
.fm-form-container .fm-form input[type="password"],
|
||||
.fm-form-container .fm-form input[type="url"],
|
||||
.fm-form-container .fm-form input[type="email"],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .StripeElement,
|
||||
.fm-form-container .fm-form .ui-spinner,
|
||||
.fm-form-container .fm-form .ui-slider,
|
||||
.fm-form-container .fm-form .ui-slider-handle,
|
||||
.fm-form-container .fm-form select {
|
||||
border-left: 1px !important;
|
||||
border-left-style: solid !important;
|
||||
border-left-color: #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-spinner-button {
|
||||
border-left: 1px !important;
|
||||
border-left-style: solid !important;
|
||||
border-left-color: #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-slider-range {
|
||||
background: #808285 !important;
|
||||
}
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="text"]:not(.ui-spinner-input),
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="number"]:not(.ui-spinner-input),
|
||||
.fm-form-container .fm-form input[type="password"],
|
||||
.fm-form-container .fm-form input[type="url"],
|
||||
.fm-form-container .fm-form input[type="email"],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .StripeElement,
|
||||
.fm-form-container .fm-form .ui-spinner,
|
||||
.fm-form-container .fm-form .ui-slider,
|
||||
.fm-form-container .fm-form .ui-slider-handle,
|
||||
.fm-form-container .fm-form select {
|
||||
border-right: 1px !important;
|
||||
border-right-style: solid !important;
|
||||
border-right-color: #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-slider-range {
|
||||
background: #808285 !important;
|
||||
}
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="text"]:not(.ui-spinner-input),
|
||||
.fm-form-container
|
||||
.fm-form
|
||||
input[type="number"]:not(.ui-spinner-input),
|
||||
.fm-form-container .fm-form input[type="password"],
|
||||
.fm-form-container .fm-form input[type="url"],
|
||||
.fm-form-container .fm-form input[type="email"],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .StripeElement,
|
||||
.fm-form-container .fm-form .ui-spinner,
|
||||
.fm-form-container .fm-form .ui-slider,
|
||||
.fm-form-container .fm-form .ui-slider-handle,
|
||||
.fm-form-container .fm-form select {
|
||||
border-bottom: 1px !important;
|
||||
border-bottom-style: solid !important;
|
||||
border-bottom-color: #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-slider-range {
|
||||
background: #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .button-submit {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -0,0 +1,327 @@
|
||||
.d-none-editor {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fm-form-builder .wdform_column {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
.fm-type_submit_reset {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fm-form-container {
|
||||
margin: auto;
|
||||
width: auto !important;
|
||||
max-width: 936px;
|
||||
}
|
||||
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section.dpd-col-2 {
|
||||
width: 50% !important;
|
||||
}
|
||||
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section.dpd-col-3 {
|
||||
width: 33.33% !important;
|
||||
}
|
||||
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section.dpd-col-4 {
|
||||
width: 25% !important;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form input[type="text"],
|
||||
.fm-form-container .fm-form input[type="number"],
|
||||
.fm-form-container .fm-form input[type=password],
|
||||
.fm-form-container .fm-form input[type=url],
|
||||
.fm-form-container .fm-form input[type=email],
|
||||
.fm-form-container .fm-form textarea,
|
||||
.fm-form-container .fm-form .file-upload-status,
|
||||
.fm-form-container .fm-form select {
|
||||
width: 100% !important;
|
||||
font-size: 14px !important;
|
||||
min-height: 45px;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-spinner.ui-corner-all,
|
||||
.fm-form-container .fm-form .ui-spinner-input{
|
||||
font-size: 14px !important;
|
||||
min-height: 45px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.fm-form-container .fm-form .file-upload input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .button-submit {
|
||||
max-width: 228px;
|
||||
padding: 12px 18px;
|
||||
min-width: 146px;
|
||||
margin: 5px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
height: 45px;
|
||||
background-color: #dc0032;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .button-reset {
|
||||
max-width: 228px;
|
||||
padding: 12px 18px;
|
||||
min-width: 146px;
|
||||
margin: 5px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
height: 45px;
|
||||
background-color: #808285;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .btn-width .btn-upload {
|
||||
background-color: #a90034;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .fm-type_own_select button,
|
||||
.fm-form-container .fm-form .fm-type_country button,
|
||||
.fm-form-container .fm-form .fm-type_address button {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .fm-type_own_select .select-option-wrap,
|
||||
.fm-form-container .fm-form .fm-type_country .select-option-wrap,
|
||||
.fm-form-container .fm-form .fm-type_address .select-option-wrap {
|
||||
margin: 0;
|
||||
top: 43px;
|
||||
max-height: 250px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .fm-type_country .select-option-wrap .select-option,
|
||||
.fm-form-container .fm-form .fm-type_address .select-option-wrap .select-option {
|
||||
min-height: 37px;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-form .time_box {
|
||||
text-align: left;
|
||||
}
|
||||
.fm-form-container .fm-type_submit_reset .wd-flex{
|
||||
justify-content: center;
|
||||
}
|
||||
.fm-form-container .fm-type_submit_reset .button-reset{
|
||||
order: 1;
|
||||
}
|
||||
.fm-form-container .fm-type_submit_reset .button-submit{
|
||||
order: 2;
|
||||
}
|
||||
.fm-form-container .fm-type_spinner .ui-spinner-input{
|
||||
padding-left: 10px;
|
||||
}
|
||||
.fm-form-container .fm-type_spinner .ui-spinner .ui-spinner-button{
|
||||
border: none;
|
||||
}
|
||||
.fm-form-container .fm-form input[type=email],
|
||||
.fm-form-container .fm-form input[type=text],
|
||||
.fm-form-container .fm-form textarea{
|
||||
border: solid 1px #808285 !important;
|
||||
}
|
||||
.fm-form-container .fm-type_slider .ui-slider-handle,
|
||||
.fm-form-container .fm-type_slider .ui-state-active{
|
||||
border: 1px solid #dc0032;
|
||||
background: #dc0032;
|
||||
outline: 0;
|
||||
}
|
||||
.fm-form-container .ui-widget-content{
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
.fm-form-container .fm-form .file-upload-status{
|
||||
display: none;
|
||||
}
|
||||
.fm-form-container .fm-type_time .wdform-element-section .wd-flex-column{
|
||||
max-width: 5em;
|
||||
min-width: 9px;
|
||||
}
|
||||
.fm-form-container .fm-type_time input[type=number].time_box{
|
||||
min-width: 40px;
|
||||
}
|
||||
.fm-form-container .fm-type_time input[type=number].time_box{
|
||||
border: solid 1px #808285;
|
||||
text-align: center;
|
||||
padding: 3px;
|
||||
border-radius: 7px;
|
||||
}
|
||||
.fm-form-container .fm-type_time .wdform-element-section label{
|
||||
text-align: center;
|
||||
}
|
||||
.fm-form-container .fm-type_time .wdform-element-section .wd-flex-column:nth-child(2){
|
||||
display: block !important;
|
||||
}
|
||||
.fm-form-container .fm-header-title{
|
||||
font-family: "PlutoSansExtraLight";
|
||||
font-weight: 200;
|
||||
font-size: 30px;
|
||||
line-height: 37px;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform-matrix-column > label{
|
||||
padding-left: 10px;
|
||||
}
|
||||
.fm-form-container .fm-type_signature button{
|
||||
max-width: 228px;
|
||||
padding: 12px 18px;
|
||||
min-width: 146px;
|
||||
margin: 5px 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
height: 45px;
|
||||
background-color: #dc0032;
|
||||
}
|
||||
.fm-form-container .fm-not-filled ~ .fm-not-filled{
|
||||
margin-top: -4px;
|
||||
}
|
||||
.fm-form-container .fm-type_file_upload .fm-not-filled{
|
||||
display: none;
|
||||
}
|
||||
.fm-form-container .fm-type_file_upload > .wdform-element-section{
|
||||
width: 0;
|
||||
}
|
||||
.fm-form-container .fm-type_file_upload.wd-flex-row > .field-upload{
|
||||
width: 70%;
|
||||
}
|
||||
.fm-form-container .fm-form .fm-type_range input[type=text]{
|
||||
border: none !important;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform-field:not([type=type_hidden]){
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.fm-form-container .fm-header-img.fm-animated{
|
||||
animation-duration: 5s;
|
||||
}
|
||||
.fm_empty_margin {
|
||||
margin-top: 0;
|
||||
}
|
||||
.fm-form .wdform-field {
|
||||
-webkit-align-items: start;
|
||||
align-items: start;
|
||||
}
|
||||
.fm-form .wdform-required {
|
||||
color: #dc0032;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_row select.am_pm_select,
|
||||
.fm-form-container .fm-form .wdform_row select.am_pm_select ~ .mini_label{
|
||||
min-width: 5em;
|
||||
}
|
||||
.fm-form-container .fm-type_checkbox .wdform-element-section > .wd-flex-row {
|
||||
width: 100%;
|
||||
}
|
||||
.fm-form-container .fm-type_checkbox .wd-flex-row[data-number_child="2"] > .checkbox-div {
|
||||
width: calc(100% / 2 - 10px);
|
||||
}
|
||||
.fm-form-container .fm-type_checkbox .wd-flex-row[data-number_child="3"] > .checkbox-div {
|
||||
width: calc(100% / 3 - 10px);
|
||||
}
|
||||
|
||||
.fm-form-container .fm-type_mark_map .wd-width-30 {
|
||||
max-width: 30%;
|
||||
}
|
||||
|
||||
.form_maker_widget .widget-title {
|
||||
display: none;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.fm-form-container div[type=type_radio].wd-flex-column .wdform-label-section .wdform-label {
|
||||
padding-left: 0px;
|
||||
}
|
||||
/* Error Require */
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-required{
|
||||
color: #414042;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .error_label ~ .wdform-required,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .error_label_confirm ~ .wdform-required,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wd-error-label ~ .wdform-required{
|
||||
color: #FF0000;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_send_copy label,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_checkbox .wdform-label,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_checkbox .wdform-required{
|
||||
color: #FF0000;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_checkbox .checkbox-div .check-box,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_radio .radio-div .radio-box{
|
||||
border-color: #FF0000;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_range .ui-spinner,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_spinner .ui-spinner,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required .wdform-element-section.wdform_select,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_date_fields select,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_address .select-box,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required input[type="text"],
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required input[type="password"],
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required input[type="number"],
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required textarea,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required .wdform-matrix-table,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required .fm-signature{
|
||||
border: 1px solid #ff0000 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_own_select .input-box,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_country .input-box,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required .wdform-element-section.wdform_select select,
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.error-required.fm-type_range input[type="text"]{
|
||||
border: 0 !important;
|
||||
}
|
||||
.fm-form-container .fm-form .wdform_section .wdform_column .wdform-field.fm-type_send_copy label{
|
||||
margin: 0;
|
||||
}
|
||||
.fm-form-container .fm-form .fm-type_time input[type=number] {
|
||||
-moz-appearance: textfield !important;
|
||||
}
|
||||
@media screen and (max-width: 767px){
|
||||
.fm-form-container .fm-not-filled{
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
.fm-form-container .fm-type_file_upload.wd-flex-row > .field-upload{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-type_submit_reset .wd-flex {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.fm-form-container .fm-form .button-submit,
|
||||
.fm-form-container .fm-form .button-reset{
|
||||
min-width: 228px;
|
||||
}
|
||||
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section.dpd-col-2,
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section.dpd-col-3,
|
||||
.fm-form .fm-form-builder.wdform-old-page .wdform_section.dpd-col-4 {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-type_checkbox .wd-flex-row[data-number_child] > .checkbox-div {
|
||||
width: calc(100% / 1 - 10px) !important;
|
||||
}
|
||||
.fm-form-container .fm-form .ui-spinner.ui-corner-all,
|
||||
.fm-form-container .fm-form .ui-spinner-input{
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.fm-form-container .fm-type_mark_map .wd-width-30 {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,317 @@
|
||||
(function ($) {
|
||||
|
||||
let custom_html = '';
|
||||
|
||||
let field_text = $('.fm-type_text');
|
||||
if (field_text.length) {
|
||||
field_text.each(function () {
|
||||
// tip trick to bypass validate regex
|
||||
custom_html = '<span class="wdform-required d-none"></span>';
|
||||
$(this).append(custom_html);
|
||||
})
|
||||
}
|
||||
|
||||
let field_file_upload = $('.fm-type_file_upload');
|
||||
if (field_file_upload.length) {
|
||||
field_file_upload.each(function () {
|
||||
custom_html = '<div class="field-upload wd-flex wd-flex-row wd-width-100">';
|
||||
custom_html += '<div class="wdform-element-section wd-width-100">';
|
||||
custom_html += '<input type="text" class="text-box" id="" readonly value="'+DFM.No_file_chosen+'">';
|
||||
custom_html += '<span class="placeholder font-light focus small-text"></span>';
|
||||
custom_html += '</div>';
|
||||
custom_html += '<div class="btn-width px-0">';
|
||||
custom_html += '<button type="button" class="wd-width-100 btn btn-upload">'+DFM.Choose_File+'</button>';
|
||||
custom_html += '</div>';
|
||||
custom_html += '</div>';
|
||||
$(this).append(custom_html);
|
||||
})
|
||||
}
|
||||
|
||||
let field_radio = $('.fm-type_radio');
|
||||
if (field_radio.length) {
|
||||
field_radio.each(function () {
|
||||
$(this).find('.radio-div').each(function () {
|
||||
custom_html = '<div class="radio-box '+(($(this).find('input').is(':checked')) ? 'selected' : '')+'"> <div class="radio-selected"></div> </div>';
|
||||
$(this).prepend(custom_html);
|
||||
$(this).find('input').hide();
|
||||
});
|
||||
});
|
||||
//script for radio box
|
||||
$('.fm-type_radio .radio-box').on('click', function(){
|
||||
if (!$(this).hasClass('selected')) {
|
||||
$(this).parents('.fm-type_radio').find('.radio-box').removeClass('selected');
|
||||
$(this).addClass('selected');
|
||||
$(this).siblings('input').click();
|
||||
}
|
||||
});
|
||||
|
||||
$('.fm-type_radio .radio-div label').on('click', function(){
|
||||
$(this).closest('.radio-div').find('.radio-box').trigger('click');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
let field_slider = $('.fm-type_slider');
|
||||
if (field_slider.length) {
|
||||
field_slider.each(function () {
|
||||
let field_slide = this;
|
||||
let value = $(field_slide).find('input[type="hidden"]').val();
|
||||
setTimeout(function () {
|
||||
$(field_slide).find('.ui-widget-content').slider('value', value);
|
||||
}, 500)
|
||||
})
|
||||
}
|
||||
|
||||
let field_select = $('.fm-type_own_select');
|
||||
if (field_select.length) {
|
||||
field_select.each(function () {
|
||||
let select_hidden_field = $(this).find('select');
|
||||
select_hidden_field.hide();
|
||||
let select_box = $('<div>');
|
||||
select_box.addClass('input-box select-box no-placeholder"').append(
|
||||
'<span class="placeholder font-light"></span>'
|
||||
).append(
|
||||
'<div class="select-option-wrap select-option-wrap-up" style="display: none;"></div>'
|
||||
).append(
|
||||
'<button class="select-expand" type="button"></button>'
|
||||
);
|
||||
$(this).find('.wdform-element-section').prepend(select_box);
|
||||
$(this).find('select').find('option').each(function (){
|
||||
if($(this).is(':selected')){
|
||||
select_box.find('.placeholder').text($(this).text());
|
||||
}
|
||||
select_box.find('.select-option-wrap').append('<div class="select-option" data-value="'+ $(this).attr('value') +'"><span>'+ $(this).text() +'</span> </div>');
|
||||
});
|
||||
})
|
||||
$('.fm-type_own_select').find('.select-option').on('click', function (){
|
||||
let select_hidden_field = $(this).closest('.fm-type_own_select').find('select');
|
||||
select_hidden_field.val($(this).data('value')).focus();
|
||||
select_hidden_field.focus(); // Fix bug message require did not hide when select first time
|
||||
});
|
||||
}
|
||||
|
||||
let field_select_country = $('.fm-type_country');
|
||||
if (field_select_country.length) {
|
||||
field_select_country.each(function () {
|
||||
let select_hidden_field = $(this).find('select');
|
||||
select_hidden_field.hide();
|
||||
let select_box = $('<div>');
|
||||
select_box.addClass('input-box select-box no-placeholder"').append(
|
||||
'<span class="placeholder font-light"></span>'
|
||||
).append(
|
||||
'<div class="select-option-wrap select-option-wrap-up" style="display: none;"></div>'
|
||||
).append(
|
||||
'<button class="select-expand" type="button"></button>'
|
||||
);
|
||||
$(this).find('.wdform-element-section').prepend(select_box);
|
||||
$(this).find('select').find('option').each(function (){
|
||||
if($(this).is(':selected')){
|
||||
select_box.find('.placeholder').text($(this).text());
|
||||
}
|
||||
select_box.find('.select-option-wrap').append('<div class="select-option" data-value="'+ $(this).attr('value') +'"><span>'+ $(this).text() +'</span> </div>');
|
||||
});
|
||||
})
|
||||
$('.fm-type_country').find('.select-option').on('click', function (){
|
||||
let select_hidden_field = $(this).closest('.fm-type_country').find('select');
|
||||
select_hidden_field.val($(this).data('value')).focus();
|
||||
select_hidden_field.focus(); // Fix bug message require did not hide when select first time
|
||||
});
|
||||
}
|
||||
|
||||
let field_address = $('.fm-type_address');
|
||||
if (field_address.length) {
|
||||
field_address.each(function () {
|
||||
let select_hidden_field = $(this).find('select');
|
||||
select_hidden_field.hide();
|
||||
let select_box = $('<div>');
|
||||
select_box.addClass('input-box select-box no-placeholder"').append(
|
||||
'<span class="placeholder font-light"></span>'
|
||||
).append(
|
||||
'<div class="select-option-wrap select-option-wrap-up" style="display: none;"></div>'
|
||||
).append(
|
||||
'<button class="select-expand" type="button"></button>'
|
||||
);
|
||||
$(select_hidden_field).parent().prepend(select_box);
|
||||
$(this).find('select').find('option').each(function (){
|
||||
if($(this).is(':selected')){
|
||||
select_box.find('.placeholder').text($(this).text());
|
||||
}
|
||||
select_box.find('.select-option-wrap').append('<div class="select-option" data-value="'+ $(this).attr('value') +'"><span>'+ $(this).text() +'</span> </div>');
|
||||
});
|
||||
})
|
||||
$('.fm-type_address').find('.select-option').on('click', function (){
|
||||
let select_hidden_field = $(this).closest('.fm-type_address').find('select');
|
||||
select_hidden_field.val($(this).data('value')).focus();
|
||||
select_hidden_field.focus(); // Fix bug message require did not hide when select first time
|
||||
});
|
||||
}
|
||||
|
||||
let field_time = $('.fm-type_time');
|
||||
if (field_time.length) {
|
||||
field_time.each(function () {
|
||||
$(this).find('.wdform-element-section').each(function () {
|
||||
$(this).find('.wd-flex-column').eq(0).css({width: '30%'});
|
||||
$(this).find('.wd-flex-column').eq(1).hide();
|
||||
custom_html = '';
|
||||
custom_html += '<span class="placeholder font-light focus small-text"> </span>';
|
||||
|
||||
$(this).find('.wd-flex-column').eq(2).prepend(custom_html).css({width: '70%'}).addClass('input-box calendar no-placeholder focus');
|
||||
|
||||
});
|
||||
})
|
||||
}
|
||||
let field_send_copy = $('.fm-type_send_copy');
|
||||
if (field_send_copy.length) {
|
||||
field_send_copy.each(function () {
|
||||
$(this).find('.wdform-required').insertBefore($(this).find('label'));
|
||||
})
|
||||
}
|
||||
$('.fm-form-container .fm-form').on('submit', function(e){
|
||||
let form = $(this);
|
||||
var allow_submit_form = true;
|
||||
form.find('.wdform_row > .fm-type_submitter_mail:first-child').each(function () {
|
||||
let wrapper = $(this).closest('.wdform_row');
|
||||
let confirm_email_field = wrapper.find('.fm-type_submitter_mail').eq(1);
|
||||
if (confirm_email_field.length && confirm_email_field.find('.wdform-required').length) {
|
||||
let _input = confirm_email_field.find('input[type=text]');
|
||||
let _label = confirm_email_field.find('.wdform-label');
|
||||
let _validate_required = function (){
|
||||
if(_input.val().trim() == ''){
|
||||
_label.addClass('error_label');
|
||||
confirm_email_field.next('.confirm_email_field_required').remove();
|
||||
confirm_email_field.after('<div class="fm-not-filled confirm_email_field_required" style="margin-left: 0px">'+DFM.Field_is_required+'</div>');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
allow_submit_form = _validate_required();
|
||||
|
||||
_input.on('focus', function(){
|
||||
_label.removeClass('error_label error_label_confirm');
|
||||
confirm_email_field.next('.confirm_email_field_required').remove();
|
||||
}).on('blur', function(){
|
||||
allow_submit_form = _validate_required();
|
||||
if (allow_submit_form) {
|
||||
_input.trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (!allow_submit_form) {
|
||||
e.preventDefault();
|
||||
form.find('.button-submit').prop('disabled', false);
|
||||
}
|
||||
});
|
||||
|
||||
$('.fm-form-container .button-reset ').on('click', function(){
|
||||
var wrapper = $(this).closest('.fm-form');
|
||||
wrapper.find('.radio-box').removeClass('selected');
|
||||
wrapper.find('.check-box').find('.check-box-checked').addClass('d-none');
|
||||
wrapper.find('.fm-type_own_select').find('.input-box .placeholder').text('');
|
||||
wrapper.find('.fm-type_time').find('input').val('');
|
||||
wrapper.find('.fm-type_file_upload').find('input').val('');
|
||||
wrapper.find('.fm-type_file_upload').find('.text-box').val('');
|
||||
});
|
||||
$('.fm-form-container .button-submit').on('click', function(){
|
||||
var wrapper = $(this).closest('.fm-form');
|
||||
wrapper.find('.wdform-field').each(function(){
|
||||
$(this).removeClass('error-required');
|
||||
if($(this).find('label[class*="error_label"]').length){
|
||||
$(this).addClass('error-required');
|
||||
}
|
||||
if($(this).hasClass('fm-type_send_copy') && $(this).siblings('.fm-not-filled')){
|
||||
$(this).addClass('error-required');
|
||||
}
|
||||
if($(this).hasClass('wd-flex-row') && !$(this).hasClass('fm-type_recaptcha')){
|
||||
var lb_width = $(this).find('.wdform-label-section').width();
|
||||
var element = $(this);
|
||||
setTimeout(function(){
|
||||
if(element.siblings('.fm-not-filled').length){
|
||||
element.siblings('.fm-not-filled').css('margin-left', lb_width);
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.fm-form-container input, .fm-form-container select, .fm-form-container textarea').focus(function() {
|
||||
var wrapper = $(this).closest('.wdform-field');
|
||||
setTimeout(function(){
|
||||
wrapper.removeClass('error-required');
|
||||
}, 200)
|
||||
}).blur(function() {
|
||||
var wrapper = $(this).closest('.wdform-field');
|
||||
if(wrapper.hasClass('wd-flex-row') && !wrapper.hasClass('fm-type_recaptcha')){
|
||||
var lb_width = wrapper.find('.wdform-label-section').width();
|
||||
setTimeout(function(){
|
||||
if(wrapper.siblings('.fm-not-filled').length){
|
||||
wrapper.siblings('.fm-not-filled').css('margin-left', lb_width);
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
if(wrapper.hasClass('fm-type_submitter_mail') && wrapper.siblings('.fm-type_submitter_mail').find('label[class*="error_label"]').length){
|
||||
wrapper.siblings('.fm-type_submitter_mail').addClass('error-required');
|
||||
}
|
||||
setTimeout(function(){
|
||||
if(wrapper.find('label[class*="error_label"]').length){
|
||||
wrapper.addClass('error-required');
|
||||
}
|
||||
}, 200)
|
||||
});
|
||||
$('.fm-form-container input[type="text"], .fm-form-container input[type="checkbox"], .fm-form-container input[type="radio"], .fm-form-container input[type="file"]').change(function() {
|
||||
var wrapper = $(this).closest('.wdform-field');
|
||||
if(wrapper.hasClass('wd-flex-row') && !wrapper.hasClass('fm-type_recaptcha')){
|
||||
var lb_width = wrapper.find('.wdform-label-section').width();
|
||||
setTimeout(function(){
|
||||
if(wrapper.siblings('.fm-not-filled').length){
|
||||
wrapper.siblings('.fm-not-filled').css('margin-left', lb_width);
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
if(wrapper.hasClass('fm-type_matrix')){
|
||||
wrapper.siblings('.fm-not-filled').remove();
|
||||
}
|
||||
setTimeout(function(){
|
||||
if(wrapper.find('label[class*="error_label"]').length || (wrapper.hasClass('fm-type_checkbox') && wrapper.siblings('.fm-not-filled').length)){
|
||||
wrapper.addClass('error-required');
|
||||
}else{
|
||||
wrapper.removeClass('error-required');
|
||||
}
|
||||
}, 200)
|
||||
});
|
||||
|
||||
$('.fm-form-container .fm-type_file_upload .btn-upload').on("click", function () {
|
||||
$(this).closest('.fm-type_file_upload').find('input[type="file"]').trigger("click");
|
||||
});
|
||||
$('.fm-type_file_upload input[type="file"]').on('change', function (){
|
||||
var wrapper = $(this).closest('.fm-type_file_upload');
|
||||
setTimeout(function () {
|
||||
var fileName = wrapper.find('.file-upload-status').text();
|
||||
wrapper.find('.text-box').val(fileName);
|
||||
}, 500);
|
||||
});
|
||||
let field_number = $('.fm-type_spinner');
|
||||
if(field_number.length){
|
||||
setTimeout(function () {
|
||||
$('.wd-type-number[style*="width: px;"]').parent().css({width: '100%'});
|
||||
$('.wd-type-number[style="width: px;"]').css({width: '100%'})
|
||||
}, 500)
|
||||
}
|
||||
|
||||
let page_nextback = $('.wdform-page-and-images');
|
||||
if(page_nextback.length){
|
||||
page_nextback.find('.wdform_page').each(function () {
|
||||
var wrapper = $(this);
|
||||
var link_next = wrapper.attr('next_title');
|
||||
var link_prev = wrapper.attr('previous_title');
|
||||
if(wrapper.attr('next_type') == 'img' && link_next.indexOf("http") == -1 && link_next.indexOf('wp-content/plugins/form-maker/') != -1){
|
||||
link_next = link_next.replace('wp-content/plugins/form-maker/', '');
|
||||
wrapper.attr('next_title', link_next)
|
||||
}
|
||||
if(wrapper.attr('previous_type') == 'img' && link_prev.indexOf("http") == -1 && link_prev.indexOf('wp-content/plugins/form-maker/') != -1){
|
||||
link_prev = link_prev.replace('wp-content/plugins/form-maker/', '');
|
||||
wrapper.attr('previous_title', link_prev)
|
||||
}
|
||||
});
|
||||
}
|
||||
})(jQuery)
|
||||
File diff suppressed because one or more lines are too long
5
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/dpd-news/js/popper.min.js
vendored
Normal file
5
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/dpd-news/js/popper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,143 @@
|
||||
/**
|
||||
* All of the CSS for your public-facing functionality should be
|
||||
* included in this file.
|
||||
*/
|
||||
|
||||
.chronopost-theme .btn-agree {
|
||||
background-color: #009adf !important;
|
||||
}
|
||||
|
||||
.chronopost-theme .disagree {
|
||||
color: #009adf !important;
|
||||
}
|
||||
|
||||
#dpd-popup-modal-overlay{
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
z-index: 999997;
|
||||
display: none;
|
||||
}
|
||||
#dpd-popup-modal{
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 80% !important;
|
||||
max-width: 803px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
border-radius: 11px;
|
||||
background-color: #FFFFFF;
|
||||
z-index: 999999;
|
||||
}
|
||||
#dpd-popup-modal .close{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
#dpd-popup-modal .image img{
|
||||
height: 187px;
|
||||
width: auto;
|
||||
}
|
||||
#dpd-popup-modal .headline{
|
||||
font-size: 20px;
|
||||
line-height: 30px;
|
||||
}
|
||||
#dpd-popup-modal .question{
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
#dpd-popup-modal .btn{
|
||||
white-space: normal;
|
||||
height: auto;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
#dpd-popup-modal .bgr_414042{
|
||||
background-color: #414042;
|
||||
color: #ffffff;
|
||||
}
|
||||
#dpd-popup-modal .bgr_009adf{
|
||||
background-color: #009adf;
|
||||
color: #ffffff;
|
||||
}
|
||||
#dpd-popup-modal .bgr_dc0032{
|
||||
background-color: #dc0032;
|
||||
color: #ffffff;
|
||||
}
|
||||
#dpd-popup-modal .bgr_a90034{
|
||||
background-color: #a90034;
|
||||
color: #ffffff;
|
||||
}
|
||||
#dpd-popup-modal .bgr_ffffff{
|
||||
background-color: #ffffff;
|
||||
color: #dc0032;
|
||||
}
|
||||
#dpd-popup-modal .bgr_cac4be{
|
||||
background-color: #cac4be;
|
||||
color: #414042;
|
||||
}
|
||||
#dpd-popup-modal .bgr_808285{
|
||||
background-color: #808285;
|
||||
color: #ffffff;
|
||||
}
|
||||
#dpd-popup-modal .bgr_e6e7e8{
|
||||
background-color: #e6e7e8;
|
||||
color: #414042;
|
||||
}
|
||||
#dpd-popup-modal .bgr_efedeb{
|
||||
background-color: #efedeb;
|
||||
color: #414042;
|
||||
}
|
||||
#dpd-popup-modal .bgr_509e2f{
|
||||
background-color: #509e2f;
|
||||
color: #ffffff;
|
||||
}
|
||||
.dpd-popup-wraper-remember-selection{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
margin: 30px 0;
|
||||
}
|
||||
.dpd-checkbox-popup{
|
||||
position: relative;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.dpd-checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
border: 1px solid #414042;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.dpd-checkbox-popup .dpd-popup-icon-check{
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
top: 4px;
|
||||
display: none;
|
||||
}
|
||||
.dpd-checkbox-popup.checked .dpd-popup-icon-check{
|
||||
display: block;
|
||||
}
|
||||
.dpd-popup-text-remember{
|
||||
font-size: 13px;
|
||||
margin-left: 9px;
|
||||
line-height: 13px;
|
||||
}
|
||||
@media only screen and (max-width: 767.98px){
|
||||
#dpd-popup-modal{
|
||||
padding: 1.5rem!important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
(function( $ ) {
|
||||
'use strict';
|
||||
function dpd_setCookie(name,value,days) {
|
||||
var expires = "";
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime() + (days*24*60*60*1000));
|
||||
expires = "; expires=" + date.toUTCString();
|
||||
}
|
||||
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
||||
}
|
||||
function dpd_getCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
var ca = document.cookie.split(';');
|
||||
for(var i=0;i < ca.length;i++) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
||||
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
$(function() {
|
||||
var previous_selecttion = dpd_getCookie('dpd_remember_selection_'+DPDPopup.blog_id);
|
||||
var url_redirect = dpd_getCookie('dpd_remember_selection_'+DPDPopup.blog_id+'_url');
|
||||
if( previous_selecttion != null) {
|
||||
DPDPopup.is_configured = false;
|
||||
if(previous_selecttion == 'agree' && url_redirect != null && location.href != url_redirect && location.href != url_redirect + '/'){
|
||||
location.href = url_redirect;
|
||||
}
|
||||
}
|
||||
if(DPDPopup.is_configured){
|
||||
$.ajax({
|
||||
url: DPDPopup.rest_api_url,
|
||||
method: 'post',
|
||||
data: {
|
||||
referrer : document.referrer.length ? document.referrer : document.location.href,
|
||||
language : DPDPopup.current_language,
|
||||
blog_id: DPDPopup.blog_id
|
||||
},
|
||||
success: function(data){
|
||||
if(data.popup){
|
||||
$('body').append(
|
||||
'<div id="dpd-popup-modal" class="text-center p-3" tabindex="-1">' +
|
||||
'<button type="button" class="close"><img src="' + data.icon_close + '" alt="' + data.icon_close_alt + '"></button>' +
|
||||
( (data.media_url) ? '<div class="image mb-3"><img src="' + data.media_url + '" class="img-responsive" alt="' + data.media_alt + '"></div>' : '') +
|
||||
'<h1 class="headline font-normal">' + DPDPopup.headline.replace('%s', data.country_name) + '</h1>' +
|
||||
'<p class="question font-light mb-0">' + DPDPopup.question.replace('%s', data.country_name) + '</p>' +
|
||||
'<div class="dpd-popup-wraper-remember-selection"><div class="dpd-checkbox-popup"><span class="dpd-checkmark"></span><img src="' + DPDPopup.icon + '" class="dpd-popup-icon-check" alt="' + DPDPopup.icon_alt + '"></div><span class="dpd-popup-text-remember font-light">' + DPDPopup.text_remember + ' </span></div>'+
|
||||
'<div><a target="' + data.target + '" href="' + data.link + '" class="btn btn-agree ' + data.background_color_1 + '">' + DPDPopup.text_1.replace('%s', data.country_name) + '</a></div>' +
|
||||
'<div class="mt-1"><a href="javascript:;" class="btn ' + data.background_color_2 + ' disagree">' + DPDPopup.text_2.replace('%s', data.bu_name) + '</a></div>' +
|
||||
'</div>' +
|
||||
'<div id="dpd-popup-modal-overlay"></div>'
|
||||
);
|
||||
var count_timeout = 0;
|
||||
var append_overlay = function(){
|
||||
if($('#privacy-overlay').length && $('#privacy-overlay').is(':visible')){
|
||||
$('#dpd-popup-modal-overlay, #dpd-popup-modal').hide();
|
||||
}else{
|
||||
count_timeout++;
|
||||
if(count_timeout < 5){
|
||||
setTimeout(function(){
|
||||
append_overlay();
|
||||
},100);
|
||||
}else{
|
||||
$('#dpd-popup-modal-overlay, #dpd-popup-modal').show();
|
||||
}
|
||||
}
|
||||
}
|
||||
append_overlay();
|
||||
$(document).on('click', '#dpd-popup-modal .dpd-checkbox-popup', function(){
|
||||
$(this).toggleClass('checked');
|
||||
});
|
||||
$(document).on('click', '#dpd-popup-modal .disagree, #dpd-popup-modal .close', function(){
|
||||
$('#dpd-popup-modal').addClass('d-none');
|
||||
$('#dpd-popup-modal-overlay').addClass('d-none');
|
||||
if($('.dpd-checkbox-popup').hasClass('checked')) {
|
||||
dpd_setCookie('dpd_remember_selection_'+DPDPopup.blog_id, 'stayat', 180);
|
||||
}else{
|
||||
dpd_setCookie('dpd_remember_selection_'+DPDPopup.blog_id, 'stayat', 1);
|
||||
}
|
||||
|
||||
});
|
||||
$(document).on('click', '#dpd-popup-modal .btn-agree', function(){
|
||||
if($('.dpd-checkbox-popup').hasClass('checked')) {
|
||||
dpd_setCookie('dpd_remember_selection_'+DPDPopup.blog_id, 'agree', 180);
|
||||
dpd_setCookie('dpd_remember_selection_'+DPDPopup.blog_id+'_url', $(this).attr('href'), 180);
|
||||
}
|
||||
});
|
||||
$(document).on('click', '#popin_tc_privacy_button, #popin_tc_privacy_button_2, #popin_tc_privacy_button_3', function(){
|
||||
var interval_event = setInterval(function(){
|
||||
if(document.cookie.indexOf('TC_PRIVACY') > -1){
|
||||
$('#dpd-popup-modal-overlay, #dpd-popup-modal').show();
|
||||
clearInterval(interval_event);
|
||||
}
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
if ($('body').hasClass('chronopost-theme')) {
|
||||
$('head').append('<style>.chronopost-theme .btn-agree { background-color: #009adf; } .chronopost-theme .disagree { color: #009adf; }</style>');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
})( jQuery );
|
||||
|
||||
|
||||
12
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/form-maker/css/styles.min.css
vendored
Normal file
12
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/form-maker/css/styles.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/form-maker/js/scripts.min.js
vendored
Normal file
1
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/form-maker/js/scripts.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.panel-grid.panel-has-style>.panel-row-style,.panel-grid.panel-no-style{display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:nowrap;-ms-justify-content:space-between;-webkit-justify-content:space-between;justify-content:space-between}.panel-grid .so-parallax{position:relative}.panel-grid .so-parallax>:not(.simpleParallax){position:relative;z-index:1}.panel-grid .so-parallax .simpleParallax{overflow:hidden}.panel-grid .so-parallax .simpleParallax,.panel-grid .so-parallax img[data-siteorigin-parallax]{bottom:0;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}.panel-background-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.panel-has-overlay .panel-cell-style,.panel-has-overlay .panel-row-style,.panel-has-overlay .panel-widget-style{overflow:hidden;position:relative;z-index:1}.panel-layout.panel-is-rtl .panel-grid.panel-has-style>.panel-row-style,.panel-layout.panel-is-rtl .panel-grid.panel-no-style{-ms-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.panel-grid-cell{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.panel-grid-cell .panel-cell-style{height:100%}.panel-grid-cell .so-panel{zoom:1}.panel-grid-cell .so-panel:before{content:'';display:block}.panel-grid-cell .so-panel:after{content:'';display:table;clear:both}.panel-grid-cell .panel-last-child{margin-bottom:0}.panel-grid-cell .widget-title{margin-top:0}body.siteorigin-panels-before-js:not(.siteorigin-panels-css-container){overflow-x:hidden}body.siteorigin-panels-before-js:not(.siteorigin-panels-css-container) .siteorigin-panels-stretch{margin-right:-1000px!important;margin-left:-1000px!important;padding-right:1000px!important;padding-left:1000px!important}.so-panel .panel-widget-style{box-shadow:none!important;transition:unset}
|
||||
11
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/siteorigin-premium/css/animate.min.css
vendored
Normal file
11
a1_pl_dpd_post/public/Q3h9Lm2Rk8VzNwXa/wp-content/plugins/siteorigin-premium/css/animate.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
window.SiteOriginPremium=window.SiteOriginPremium||{},SiteOriginPremium.setupAnimations=function(a){a("[data-so-animation]").each(function(){var t=a(this),o=t.data("so-animation"),e=parseFloat(o.duration);isNaN(e)||t.css({"-webkit-animation-duration":e+"s","animation-duration":e+"s"});var n=function(e){var n=function(){o.hide&&t.css("opacity",1),e?t.removeClass("animated "+o.animation).addClass("animated "+o.animation):t.addClass("animated "+o.animation),t.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){t.removeClass("animated "+o.animation),"hidden"===o.finalState?t.css("opacity",0):"removed"===o.finalState&&t.css("display","none")})},i=parseFloat(o.delay);!isNaN(i)&&0<i?setTimeout(function(){n()},1e3*i):n()},i=1e3*o.debounce||1;switch(o.event){case"enter":setTimeout(function(){var e=new OnScreen({tolerance:parseInt(o.offset),debounce:i});e.on("enter",o.selector,function(){n(!1),e.off("enter",o.selector)})},150);break;case"in":setTimeout(function(){var e=new OnScreen({tolerance:parseInt(o.offset)+t.outerHeight(),debounce:i});e.on("enter",o.selector,function(){n(!1),e.off("enter",o.selector)})},150);break;case"hover":o.repeat?t.on("mouseenter",function(){n(!0),t.addClass("infinite")}).on("mouseleave",function(){t.removeClass("infinite")}):t.on("mouseenter",function(){n(!0)});break;case"slide_display":t.closest(".sow-slider-image").on("sowSlideCycleAfter",function(e){setTimeout(function(){n(!0)},100)}),o.hide&&t.closest(".sow-slider-image").on("sowSlideCycleBefore",function(e){t.css("opacity",0)}),setTimeout(function(){n(!0)},100);break;case"load":n(!1)}})},jQuery(function(i){SiteOriginPremium.setupAnimations(i),window.sowb&&i(window.sowb).on("setup_widgets",function(e,n){n&&n.preview&&SiteOriginPremium.setupAnimations(i)})});
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user