!function(e,n){e.wp=e.wp||{},e.wp.mediaelement=new function(){var t={};return{initialize:function(){var e=[];(t="undefined"!=typeof _wpmejsSettings?n.extend(!0,{},_wpmejsSettings):t).classPrefix="mejs-",t.success=t.success||function(e){var t,n;e.rendererName&&-1!==e.rendererName.indexOf("flash")&&(t=e.attributes.autoplay&&"false"!==e.attributes.autoplay,n=e.attributes.loop&&"false"!==e.attributes.loop,t&&e.addEventListener("canplay",function(){e.play()},!1),n)&&e.addEventListener("ended",function(){e.play()},!1)},t.customError=function(e,t){if(-1!==e.rendererName.indexOf("flash")||-1!==e.rendererName.indexOf("flv"))return'<a href="'+t.src+'">'+mejsL10n.strings["mejs.download-file"]+"</a>"},void 0!==t.videoShortcodeLibrary&&"mediaelement"!==t.videoShortcodeLibrary||e.push(".wp-video-shortcode"),void 0!==t.audioShortcodeLibrary&&"mediaelement"!==t.audioShortcodeLibrary||e.push(".wp-audio-shortcode"),e.length&&n(e.join(", ")).not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(t)}}},n(e.wp.mediaelement.initialize)}(window,jQuery);
(function($){
"use strict";
var elements=$('.has-background, .has-text-color');
elements.each(function(i){
var element=$(this);
if(!(element.hasClass('has-background')||element.hasClass('has-text-color'))){
return;
}
var classList=element.attr('class').split(/\s+/);
var color='';
var style='';
if(element.hasClass('has-background')){
$.each(classList, function(index, item){
item=item.trim().toLowerCase();
if(0==item.indexOf('has-col-')&&-1!=item.indexOf('-background-color')){
color=item.replace('has-col-', '');
color=color.replace('-background-color', '');
color=color.replace(/-|[^0-9a-fA-F]/g, '');
if(color.length==3||color.length==6){
element.css({ 'background-color': '', 'border-color': '' });
style='undefined'!=typeof element.attr('style') ? element.attr('style') + ';':'';
element.attr('style', style + ' background-color: #' + color + '; border-color: #' + color + ';');
}}
});
}
if(element.hasClass('has-text-color')){
$.each(classList, function(index, item){
item=item.trim().toLowerCase();
if(0==item.indexOf('has-col-')&&-1==item.indexOf('-background-color')&&-1!=item.indexOf('-color')){
var color=item.replace('has-col-', '');
color=color.replace('-color', '');
color=color.replace(/-|[^0-9a-fA-F]/g, '');
if(color.length==3||color.length==6){
element.css('color', '');
style='undefined'!=typeof element.attr('style') ? element.attr('style') + ';':'';
element.attr('style', style + ' color: #' + color + ';');
}}
});
}});
elements=$('[class^="has-fs-"], [class$="-font-size"]');
elements.each(function(i){
var element=$(this);
var classList=element.attr('class').split(/\s+/);
$.each(classList, function(index, item){
item=item.trim().toLowerCase();
if(0==item.indexOf('has-fs-')&&-1!=item.indexOf('-font-size')){
item=item.replace('has-fs-', '');
item=item.replace('-font-size', '');
item=item.split('-');
if(item.length!=2){
return;
}
var style='undefined'!=typeof element.attr('style') ? element.attr('style') + ';':'';
element.attr('style', style + ' font-size:' + item[0] + item[1] + ';');
}});
});
})(jQuery);