diff --git a/static/blog/wp-content/plugins/akismet/_inc/form.js b/static/blog/wp-content/plugins/akismet/_inc/form.js new file mode 100644 index 000000000..3a5be8af0 --- /dev/null +++ b/static/blog/wp-content/plugins/akismet/_inc/form.js @@ -0,0 +1,30 @@ +var ak_js = document.getElementById( "ak_js" ); + +if ( ! ak_js ) { + ak_js = document.createElement( 'input' ); + ak_js.setAttribute( 'id', 'ak_js' ); + ak_js.setAttribute( 'name', 'ak_js' ); + ak_js.setAttribute( 'type', 'hidden' ); +} +else { + ak_js.parentNode.removeChild( ak_js ); +} + +ak_js.setAttribute( 'value', ( new Date() ).getTime() ); + +var commentForm = document.getElementById( 'commentform' ); + +if ( commentForm ) { + commentForm.appendChild( ak_js ); +} +else { + var replyRowContainer = document.getElementById( 'replyrow' ); + + if ( replyRowContainer ) { + var children = replyRowContainer.getElementsByTagName( 'td' ); + + if ( children.length > 0 ) { + children[0].appendChild( ak_js ); + } + } +} \ No newline at end of file diff --git a/static/blog/wp-content/plugins/table-of-contents-plus/front.min.js b/static/blog/wp-content/plugins/table-of-contents-plus/front.min.js new file mode 100644 index 000000000..5c9c7a59b --- /dev/null +++ b/static/blog/wp-content/plugins/table-of-contents-plus/front.min.js @@ -0,0 +1 @@ +!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' ['+i+"]"),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("
").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("
").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}}); \ No newline at end of file diff --git a/static/blog/wp-content/plugins/table-of-contents-plus/screen.min.css b/static/blog/wp-content/plugins/table-of-contents-plus/screen.min.css new file mode 100644 index 000000000..9bf6a9f02 --- /dev/null +++ b/static/blog/wp-content/plugins/table-of-contents-plus/screen.min.css @@ -0,0 +1 @@ +#toc_container li,#toc_container ul{margin:0;padding:0}#toc_container.no_bullets li,#toc_container.no_bullets ul,#toc_container.no_bullets ul li,.toc_widget_list.no_bullets,.toc_widget_list.no_bullets li{background:0 0;list-style-type:none;list-style:none}#toc_container.have_bullets li{padding-left:12px}#toc_container ul ul{margin-left:1.5em}#toc_container{background:#f9f9f9;border:1px solid #aaa;padding:10px;margin-bottom:1em;width:auto;display:table;font-size:95%}#toc_container.toc_light_blue{background:#edf6ff}#toc_container.toc_white{background:#fff}#toc_container.toc_black{background:#000}#toc_container.toc_transparent{background:none transparent}#toc_container p.toc_title{text-align:center;font-weight:700;margin:0;padding:0}#toc_container.toc_black p.toc_title{color:#aaa}#toc_container span.toc_toggle{font-weight:400;font-size:90%}#toc_container p.toc_title+ul.toc_list{margin-top:1em}.toc_wrap_left{float:left;margin-right:10px}.toc_wrap_right{float:right;margin-left:10px}#toc_container a{text-decoration:none;text-shadow:none}#toc_container a:hover{text-decoration:underline}.toc_sitemap_posts_letter{font-size:1.5em;font-style:italic} \ No newline at end of file diff --git a/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/ajax-loader.gif b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/ajax-loader.gif new file mode 100644 index 000000000..e0e6e9760 Binary files /dev/null and b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/ajax-loader.gif differ diff --git a/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/arrow-left.png b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/arrow-left.png new file mode 100644 index 000000000..692f34956 Binary files /dev/null and b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/arrow-left.png differ diff --git a/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/arrow-right.png b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/arrow-right.png new file mode 100644 index 000000000..ccac56695 Binary files /dev/null and b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/arrow-right.png differ diff --git a/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/slick-slider-style.css b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/slick-slider-style.css new file mode 100644 index 000000000..590ba736d --- /dev/null +++ b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/slick-slider-style.css @@ -0,0 +1,196 @@ +/************************************************************ + Box Sizing +************************************************************/ +.wpcolumns, .wpcolumns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;} +.wpsisac-slick-slider *, .wpsisac-slick-carousal * {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;} + +/************************************************************ + Clearfix +************************************************************/ +.wpsisac-clearfix:before, .wpsisac-clearfix:after{content: "";display: table;} +.wpsisac-clearfix::after{clear: both;} +.wpsisac-clearfix{clear: both;} + +/************************************************************ + Slick slider +************************************************************/ +.wpsisac-slick-slider .slick-arrow{text-indent:-99999px;} +.wpsisac-slick-slider button.slick-arrow {background-color: transparent!important; width:22px; height:38px; position:absolute; z-index:9; border:0px !important; +padding:0 !important; margin:0px !important; border-radius:0px !important; cursor:pointer;} +.wpsisac-slick-slider button.slick-next, .wpsisac-slick-slider button.slick-next:hover, .wpsisac-slick-slider button.slick-next:focus{background:rgba(255,255,255,0.7) url(arrow-right.png) center center no-repeat !important; background-size:15px 26px !important; outline:none !important} +.wpsisac-slick-slider button.slick-prev, .wpsisac-slick-slider button.slick-prev:hover, .wpsisac-slick-slider button.slick-prev:focus{background:rgba(255,255,255,0.7) url(arrow-left.png) center center no-repeat !important; background-size:15px 26px !important; outline:none !important} +.wpsisac-slick-slider .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;} +.wpsisac-slick-slider .slick-dots li button{text-indent:-99999px;} +.wpsisac-slick-slider .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 2px !important; padding:0px !important; } +.wpsisac-slick-slider .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;} +.wpsisac-slick-slider .slick-dots li button:focus{outline:none !important} +.wpsisac-slick-slider .slick-dots li.slick-active button{background:#444 !important;} +.wpsisac-slick-slider .slick-slide{padding:0px !important} + +.wpsisac-slick-carousal .slick-arrow{text-indent:-99999px;} +.wpsisac-slick-carousal button.slick-arrow {background-color: transparent!important; width:30px; height:51px; position:absolute; z-index:9; border:0px !important; +padding:0 !important; margin:0px !important; border-radius:0px !important} +.wpsisac-slick-carousal button.slick-next, .wpsisac-slick-carousal button.slick-next:hover, .wpsisac-slick-carousal button.slick-next:focus{background:rgba(255,255,255,0.7) url(arrow-right.png) center center no-repeat !important; background-size:15px 26px !important; outline:none !important} +.wpsisac-slick-carousal button.slick-prev, .wpsisac-slick-carousal button.slick-prev:hover, .wpsisac-slick-carousal button.slick-prev:focus{background:rgba(255,255,255,0.7) url(arrow-left.png) center center no-repeat !important; background-size:15px 26px !important; outline:none !important} +.wpsisac-slick-carousal .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;} +.wpsisac-slick-carousal .slick-dots li button{text-indent:-99999px;} +.wpsisac-slick-carousal .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 5px !important; padding:0px !important; } +.wpsisac-slick-carousal .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;} +.wpsisac-slick-carousal .slick-dots li button:focus{outline:none !important} +.wpsisac-slick-carousal .slick-dots li.slick-active button{background:#444 !important;} +.wpsisac-slick-carousal .slick-slide{padding:0px !important} + +.wpcolumn, .wpcolumns {-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;} +.wpsisac-slick-slider, .wpsisac-slick-carousal{visibility: hidden; opacity:0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -webkit-transition: opacity 0.5s linear; transition:opacity 0.5s linear; } +.wpsisac-slick-slider.slick-initialized, .wpsisac-slick-carousal.slick-initialized { visibility: visible !important; opacity:1 !important; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; } + +.slick-image-slide-wrap{position: relative;overflow: hidden;} +.slick-image-slide-wrap img{display:inline-block !important; cursor:pointer;height: 100%;width: 100%;-o-object-fit: cover;object-fit: cover;-o-object-position: top center;object-position: top center; max-width:100%; max-height:100%;} +.variablewidthv img{height:auto !important; width:auto !important;} +.wpsisac-slick-slider h2.slide-title{margin:5px 0 !important; font-size:30px; line-height:35px; } + +.slick-image-slide{position:relative;} +.wpsisac-hide{display:none;} +.slide-title{padding:0px !important; margin:0 0 8px 0 !important} + +.wpsisac-slick-slider .readmore{clear:both;} +.wpsisac-slick-slider .readmore a{display:inline-block;} + +.wpsisac-slick-slider .slick-image-slide{text-align:center;} +.wpsisac-slick-carousal .slick-image-slide{margin:0 2px;} + +/************************************************************ + Designs +************************************************************/ + +.wpsisac-slick-slider.design-1 .slick-image-slide img{max-width:100%; height:auto; display:inline-block;} +.wpsisac-slick-slider.design-1 .slick-image-slide {width:100%; } +.wpsisac-slick-slider.design-1 .slick-arrow { top:45% !important;} +.wpsisac-slick-slider.design-1 .slick-next{right:0px !important;} +.wpsisac-slick-slider.design-1 .slick-prev{left:0px !important;} +.wpsisac-slick-slider.design-1 .slick-dots{left:15px !important; right:15px; text-align:center; bottom:8px !important;} + +.wpsisac-slick-slider.design-2 .slick-image-slide img{max-width:100%; height:auto; display:inline-block;} +.wpsisac-slick-slider.design-2 .slick-image-slide {width:100%; } +.wpsisac-slick-slider.design-2 .slick-image-slide .slide-wrap .slider-overlay{background:rgba(0,0,0,0.4); position:absolute; left:0; right:0; bottom:0; top:0;} +.wpsisac-slick-slider.design-2 .slick-image-slide .slide-wrap .slider-content{ + z-index: 1000;color: #fff;position: absolute; left: 0;text-align: center;width: 80%; top: 50%;-webkit-transform: translateY(-50%);transform: translateY(-50%);right: 0;margin:0 auto;float: left;} +.wpsisac-slick-slider.design-2 .slick-image-slide .slide-wrap .slide-title{color:#fff; text-shadow: 0 1px 2px #000;} +.wpsisac-slick-slider.design-2 .slick-image-slide .slide-wrap .slick-slider-short-content{ text-align:center;} +.wpsisac-slick-slider.design-2 .slick-image-slide .slide-wrap .slick-slider-short-content p{ text-align:center; font-weight:bold; color:#fff; text-shadow: 0 1px 2px #000; font-size:16px;} + +.wpsisac-slick-slider.design-2 .slick-arrow { top:45% !important;} +.wpsisac-slick-slider.design-2 .slick-next{right:0px !important;} +.wpsisac-slick-slider.design-2 .slick-prev{left:0px !important;} +.wpsisac-slick-slider.design-2 .slick-dots{left:15px !important; right:15px; text-align:center; bottom:8px !important;} + +.wpsisac-slick-slider.design-3 .slick-image-slide img{max-width:100%; height:auto; display:inline-block;} +.wpsisac-slick-slider.design-3 .slick-image-slide {width:100%; } +.wpsisac-slick-slider.design-3 .slick-image-slide .slide-wrap .slider-content{left:0px; right:0px; text-align:left; position:absolute; top:0; padding:40px;} +.wpsisac-slick-slider.design-3 .slick-image-slide .slide-wrap .slide-title{color:#fff; text-shadow: 0 1px 2px #000; text-align:left;} +.wpsisac-slick-slider.design-3 .slick-image-slide .slide-wrap .slick-slider-short-content{ text-align:left;} +.wpsisac-slick-slider.design-3 .slick-image-slide .slide-wrap .slick-slider-short-content p{ text-align:left; color:#fff; text-shadow: 0 1px 2px #000; font-size:16px;} + +.wpsisac-slick-slider.design-3 .slick-image-slide .slide-wrap .slider-content .bg-overlay{padding:20px; background:rgba(0,0,0,.5)} +.wpsisac-slick-slider.design-3 .slick-arrow { top:45% !important;} +.wpsisac-slick-slider.design-3 .slick-next{right:0px !important;} +.wpsisac-slick-slider.design-3 .slick-prev{left:0px !important;} +.wpsisac-slick-slider.design-3 .slick-dots{left:15px !important; right:15px; text-align:center; bottom:8px !important;} + + +.wpsisac-slick-slider.design-4 .slick-image-slide img{max-width:100%; height:auto; display:inline-block;} +.wpsisac-slick-slider.design-4 .slick-image-slide {width:100%; } + +.wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slider-content-left{padding:50px 30px; text-align:left;} +.wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slider-content-right{} +.wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slider-content{left:30px; right:30px; position:absolute; top:15%; padding:0 15px;} +.wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slide-title{ text-align:left;} +.wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slick-slider-short-content{ text-align:left;} +.wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slick-slider-short-content p{ text-align:left; font-size:16px;} + +.wpsisac-slick-slider.design-4 .slick-arrow { top:45% !important;} +.wpsisac-slick-slider.design-4 .slick-next{right:0px !important;} +.wpsisac-slick-slider.design-4 .slick-prev{left:0px !important;} +.wpsisac-slick-slider.design-4 .slick-dots{left:15px !important; right:15px; text-align:center; bottom:8px !important;} + + +.wpsisac-slick-slider.design-5 .slick-image-slide img{max-width:100%; height:auto; display:inline-block;} +.wpsisac-slick-slider.design-5 .slick-image-slide {width:100%; } + +.wpsisac-slick-slider.design-5 .slick-image-slide .slide-wrap .slider-content{ text-align:center; padding:60px 50px;} +.wpsisac-slick-slider.design-5 .slick-image-slide .slide-wrap .slick-slider-short-content{ text-align:center;} +.wpsisac-slick-slider.design-5 .slick-image-slide .slide-wrap .slick-slider-short-content p{ text-align:center; font-size:16px;} +.wpsisac-slick-slider.design-5 .slick-image-slide .slide-wrap .readmore a.slider-readmore{padding:5px 10px; border:1px solid #fff; text-transform:uppercase} +.wpsisac-slick-slider.design-5 .slick-arrow { top:45% !important;} +.wpsisac-slick-slider.design-5 .slick-next{right:0px !important;} +.wpsisac-slick-slider.design-5 .slick-prev{left:0px !important;} +.wpsisac-slick-slider.design-5 .slick-dots{left:15px !important; right:15px; text-align:center; bottom:8px !important;} + +.wpsisac-slick-carousal.design-6{margin-bottom:25px;} +.wpsisac-slick-carousal.design-6 .slick-image-slide{text-align:center; } +.wpsisac-slick-carousal.design-6 .slick-image-slide img{display:inline-block !important; } +.wpsisac-slick-carousal.wpsisac-center .slick-slide .slick-image-slide-wrap { + opacity: 0.5; + transform: scale(0.7); + transition: all 300ms ease 0s; +} +.wpsisac-slick-carousal.wpsisac-center .slick-center .slick-image-slide-wrap { + opacity: 1; + transform: scale(1); +} +.wpsisac-center.variablewidthv .slick-image-slide-wrap{ opacity: 1!important; transform: scale(1) !important;} +.wpsisac-slick-carousal.design-6 .slick-arrow { top:50% !important; cursor:pointer; -webkit-transform: translateY(-50%);transform: translateY(-50%);} +.wpsisac-slick-carousal.design-6 .slick-next{right:0px !important;} +.wpsisac-slick-carousal.design-6 .slick-prev{left:0px !important;} +.wpsisac-slick-carousal.design-6 .slick-dots{left:15px !important; right:15px; text-align:center; bottom:0px !important;} + +.slide-wrap .readmore a.slider-readmore{padding:5px 10px; background:rgba(0,0,0,0.8); text-decoration:none !important; color:#fff;border:1px solid #fff; text-transform:uppercase} +.wpcolumn, +.wpcolumns { padding-left: 0.9375em; padding-right: 0.9375em; float: left; width:100%; + position: relative; } + +@media only screen { + .wpcolumn, .wpcolumns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em; float: left; } + } + @media only screen and (min-width: 40.0625em) { + .wpcolumn, + .wpcolumns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em;float: left; } + .wp-medium-1 { width: 8.33333%; } + .wp-medium-2 { width: 16.66667%; } + .wp-medium-3 { width: 25%; } + .wp-medium-4 { width: 33.33333%; } + .wp-medium-5 { width: 41.66667%; } + .wp-medium-6 { width: 50%; } + .wp-medium-7 { width: 58.33333%; } + .wp-medium-8 { width: 66.66667%; } + .wp-medium-9 { width: 75%; } + .wp-medium-10 { width: 83.33333%; } + .wp-medium-11 { width: 91.66667%; } + .wp-medium-12 { width: 100%; } + .medium-offset-0 { margin-left: 0 !important; } + .medium-offset-1 { margin-left: 8.33333% !important; } + .medium-offset-2 { margin-left: 16.66667% !important; } + .medium-offset-3 { margin-left: 25% !important; } + .medium-offset-4 { margin-left: 33.33333% !important; } + .medium-offset-5 { margin-left: 41.66667% !important; } + .medium-offset-6 { margin-left: 50% !important; } + .medium-offset-7 { margin-left: 58.33333% !important; } + .medium-offset-8 { margin-left: 66.66667% !important; } + .medium-offset-9 { margin-left: 75% !important; } + .medium-offset-10 { margin-left: 83.33333% !important; } + .medium-offset-11 { margin-left: 91.66667% !important; } + } + +@media only screen and (max-width: 40.0625em) { + .slick-image-slide img{height: 100% !important;width: 100% !important;object-fit: cover;object-position: top center;} + .slick-image-slide, .slide-wrap{height:350px;} + .wpsisac-slick-slider.design-5 .slick-image-slide, .wpsisac-slick-slider.design-5 .slide-wrap{height:auto !important;} + .wpsisac-slick-slider h2{font-size:22px; line-height:26px;} + .slick-slider-short-content p{font-weight:normal !important} + .wpsisac-slick-slider.design-4 .slick-image-slide, .wpsisac-slick-slider.design-4 .slide-wrap{height:auto !important;} + .wpsisac-slick-slider.design-4 .slick-image-slide .slide-wrap .slider-content-left{padding:20px} + .wpsisac-slick-carousal .slick-image-slide-wrap, .wpsisac-slick-carousal .slick-image-slide{height:auto !important} + } +@media only screen and (max-width: 480px) { + .wpsisac-slick-carousal.wpsisac-center .slick-slide .slick-image-slide-wrap { opacity: 1; transform: scale(1); transition: all 300ms ease 0s;} +} \ No newline at end of file diff --git a/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/slick.css b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/slick.css new file mode 100644 index 000000000..8160c125c --- /dev/null +++ b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/css/slick.css @@ -0,0 +1,29 @@ +/* Slider */ +.slick-loading .slick-list{ background: #fff url('ajax-loader.gif') center center no-repeat;} +.slick-slider{ position: relative;display: block; -moz-box-sizing: border-box;box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none; + -ms-user-select: none; user-select: none; -webkit-touch-callout: none;-khtml-user-select: none; -ms-touch-action: pan-y; + touch-action: pan-y; -webkit-tap-highlight-color: transparent; +} +.slick-list{ position: relative;display: block; overflow: hidden; margin: 0; padding: 0;} +.slick-list:focus{ outline: none;} +.slick-list.dragging{ cursor: pointer; cursor: hand;} +.slick-slider .slick-track, +.slick-slider .slick-list{ + -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); + transform: translate3d(0, 0, 0); +} +.slick-track{ position: relative;top: 0;left: 0; display: block;} +.slick-track:before, +.slick-track:after{ display: table; content: '';} +.slick-track:after{ clear: both;} +.slick-loading .slick-track{ visibility: hidden;} +.slick-slide{ display: none; float: left; height: 100%; min-height: 1px;} +[dir='rtl'] .slick-slide +{ float: right;} +.slick-slide img{ display: block;} +.slick-slide.slick-loading img{ display: none;} +.slick-slide.dragging img{ pointer-events: none;} +.slick-initialized .slick-slide{ display: block;} +.slick-loading .slick-slide{ visibility: hidden;} +.slick-vertical .slick-slide{ display: block; height: auto; border: 1px solid transparent;} +.slick-arrow.slick-hidden { display: none;} \ No newline at end of file diff --git a/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/js/slick.min.js b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/js/slick.min.js new file mode 100644 index 000000000..9e8addcd5 --- /dev/null +++ b/static/blog/wp-content/plugins/wp-slick-slider-and-image-carousel/assets/js/slick.min.js @@ -0,0 +1 @@ +!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(b){A();var c=a(this);if(typeof b=="string")if(b==="open"){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var C="inline",D,E,F,G=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(C,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(C),w(b+"."+C,function(){G()})},getInline:function(b,c){G();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(E||(D=d.hiddenClass,E=x(D),D="mfp-"+D),F=e.after(E).detach().removeClass(D)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("
");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var H="ajax",I,J=function(){I&&a(document.body).removeClass(I)},K=function(){J(),n.req&&n.req.abort()};a.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){n.types.push(H),I=n.st.ajax.cursor,w(b+"."+H,K),w("BeforeChange."+H,K)},getAjax:function(b){I&&a(document.body).addClass(I),n.updateStatus("loading");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};y("ParseAjax",f),n.appendContent(a(f.data),H),b.finished=!0,J(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),b.finished=b.loadError=!0,n.updateStatus("error",n.st.ajax.tError.replace("%url%",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),""}}});var L,M=function(b){if(b.data&&b.data.title!==undefined)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=n.st.image,d=".image";n.types.push("image"),w(g+d,function(){n.currItem.type==="image"&&c.cursor&&a(document.body).addClass(c.cursor)}),w(b+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),r.off("resize"+j)}),w("Resize"+d,n.resizeImage),n.isLowIE&&w("AfterChange",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(!a||!a.img)return;if(n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){L&&clearInterval(L),L=setInterval(function(){if(c.naturalWidth>0){n._onImageHasSize(a);return}b>200&&clearInterval(L),b++,b===3?d(10):b===40?d(50):b===100&&d(500)},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("ready")),b.hasSize=!0,b.loaded=!0,y("ImageLoadComplete")):(d++,d<200?setTimeout(e,100):f()))},f=function(){b&&(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("error",g.tError.replace("%url%",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(".mfp-img");if(h.length){var i=document.createElement("img");i.className="mfp-img",b.el&&b.el.find("img").length&&(i.alt=b.el.find("img").attr("alt")),b.img=a(i).on("load.mfploader",e).on("error.mfploader",f),i.src=b.src,h.is("img")&&(b.img=b.img.clone()),i=b.img[0],i.naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:M(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(L&&clearInterval(L),b.loadError?(c.addClass("mfp-loading"),n.updateStatus("error",g.tError.replace("%url%",b.src))):(c.removeClass("mfp-loading"),n.updateStatus("ready")),c):(n.updateStatus("loading"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass("mfp-loading"),n.findImageSize(b)),c)}}});var N,O=function(){return N===undefined&&(N=document.createElement("p").style.MozTransform!==undefined),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=n.st.zoom,d=".zoom",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")},i,j;w("BuildControls"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css("visibility","hidden"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,y("ZoomAnimationEnded")},16)},f)},16)}}),w(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),w(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type==="image"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return O()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}});var P="iframe",Q="//about:blank",R=function(a){if(n.currTemplate[P]){var b=n.currTemplate[P].find("iframe");b.length&&(a||(b[0].src=Q),n.isIE8&&b.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){n.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(b+"."+P,function(){R()})},getIframe:function(b,c){var d=b.src,e=n.st.iframe;a.each(e.patterns,function(){if(d.indexOf(this.index)>-1)return this.id&&(typeof this.id=="string"?d=d.substr(d.lastIndexOf(this.id)+this.id.length,d.length):d=this.id.call(this,d)),d=this.src.replace("%id%",d),!1});var f={};return e.srcAction&&(f[e.srcAction]=d),n._parseMarkup(c,f,b),n.updateStatus("ready"),c}}});var S=function(a){var b=n.items.length;return a>b-1?a-b:a<0?b+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=n.st.gallery,d=".mfp-gallery",e=Boolean(a.fn.mfpFastClick);n.direction=!0;if(!c||!c.enabled)return!1;u+=" mfp-gallery",w(g+d,function(){c.navigateByImgClick&&n.wrap.on("click"+d,".mfp-img",function(){if(n.items.length>1)return n.next(),!1}),s.on("keydown"+d,function(a){a.keyCode===37?n.prev():a.keyCode===39&&n.next()})}),w("UpdateStatus"+d,function(a,b){b.text&&(b.text=T(b.text,n.currItem.index,n.items.length))}),w(f+d,function(a,b,d,e){var f=n.items.length;d.counter=f>1?T(c.tCounter,e.index,f):""}),w("BuildControls"+d,function(){if(n.items.length>1&&c.arrows&&!n.arrowLeft){var b=c.arrowMarkup,d=n.arrowLeft=a(b.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(m),f=n.arrowRight=a(b.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(m),g=e?"mfpFastClick":"click";d[g](function(){n.prev()}),f[g](function(){n.next()}),n.isIE7&&(x("b",d[0],!1,!0),x("a",d[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),n.container.append(d.add(f))}}),w(h+d,function(){n._preloadTimeout&&clearTimeout(n._preloadTimeout),n._preloadTimeout=setTimeout(function(){n.preloadNearbyImages(),n._preloadTimeout=null},16)}),w(b+d,function(){s.off(d),n.wrap.off("click"+d),n.arrowLeft&&e&&n.arrowLeft.add(n.arrowRight).destroyMfpFastClick(),n.arrowRight=n.arrowLeft=null})},next:function(){n.direction=!0,n.index=S(n.index+1),n.updateItemHTML()},prev:function(){n.direction=!1,n.index=S(n.index-1),n.updateItemHTML()},goTo:function(a){n.direction=a>=n.index,n.index=a,n.updateItemHTML()},preloadNearbyImages:function(){var a=n.st.gallery.preload,b=Math.min(a[0],n.items.length),c=Math.min(a[1],n.items.length),d;for(d=1;d<=(n.direction?c:b);d++)n._preloadItem(n.index+d);for(d=1;d<=(n.direction?b:c);d++)n._preloadItem(n.index-d)},_preloadItem:function(b){b=S(b);if(n.items[b].preloaded)return;var c=n.items[b];c.parsed||(c=n.parseEl(b)),y("LazyLoad",c),c.type==="image"&&(c.img=a('').on("load.mfploader",function(){c.hasSize=!0}).on("error.mfploader",function(){c.hasSize=!0,c.loadError=!0,y("LazyLoadError",c)}).attr("src",c.src)),c.preloaded=!0}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=n.st.retina,b=a.ratio;b=isNaN(b)?b():b,b>1&&(w("ImageHasSize."+U,function(a,c){c.img.css({"max-width":c.img[0].naturalWidth/b,width:"100%"})}),w("ElementParse."+U,function(c,d){d.src=a.replaceSrc(d,b)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){r.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g=a(this),h;if(c){var i,j,k,l,m,n;g.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,r.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0];if(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)l=!0,d()}).on("touchend"+f,function(a){d();if(l||n>1)return;h=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){h=!1},b),e()})})}g.on("click"+f,function(){h||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&r.off("touchmove"+f+" touchend"+f)}}(),A()}) \ No newline at end of file diff --git a/static/blog/wp-content/themes/Divi3/includes/builder/scripts/jquery.mobile.custom.min.js b/static/blog/wp-content/themes/Divi3/includes/builder/scripts/jquery.mobile.custom.min.js new file mode 100644 index 000000000..058c3453d --- /dev/null +++ b/static/blog/wp-content/themes/Divi3/includes/builder/scripts/jquery.mobile.custom.min.js @@ -0,0 +1,3 @@ +/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */ + +(function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;di||Math.abs(n.pageY-p)>i,d&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}function I(e){if(g)return;A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t),n&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0)),P("vmouseout",e,t),d=!1,_()}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{});var r=e.data(this,i);r[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(x=0;xMath.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.floor(e.pageX))i-=n,s-=r;else if(se.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)},r.on(u,s.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)}); \ No newline at end of file diff --git a/static/blog/wp-content/themes/Divi3/includes/builder/scripts/waypoints.min.js b/static/blog/wp-content/themes/Divi3/includes/builder/scripts/waypoints.min.js new file mode 100644 index 000000000..39955396d --- /dev/null +++ b/static/blog/wp-content/themes/Divi3/includes/builder/scripts/waypoints.min.js @@ -0,0 +1,7 @@ +/*! +Waypoints - 4.0.0 +Copyright © 2011-2015 Caleb Troughton +Licensed under the MIT license. +https://github.com/imakewebthings/waypoints/blog/master/licenses.txt +*/ +!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=y+l-f,h=w=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(); \ No newline at end of file diff --git a/static/blog/wp-content/themes/Divi3/includes/builder/styles/images/preloader.gif b/static/blog/wp-content/themes/Divi3/includes/builder/styles/images/preloader.gif new file mode 100644 index 000000000..c65270d31 Binary files /dev/null and b/static/blog/wp-content/themes/Divi3/includes/builder/styles/images/preloader.gif differ diff --git a/static/blog/wp-content/themes/Divi3/includes/builder/styles/images/subscribe-loader.gif b/static/blog/wp-content/themes/Divi3/includes/builder/styles/images/subscribe-loader.gif new file mode 100644 index 000000000..5327c3586 Binary files /dev/null and b/static/blog/wp-content/themes/Divi3/includes/builder/styles/images/subscribe-loader.gif differ diff --git a/static/blog/wp-content/themes/Divi3/includes/builder/styles/magnific_popup.css b/static/blog/wp-content/themes/Divi3/includes/builder/styles/magnific_popup.css new file mode 100644 index 000000000..340489c43 --- /dev/null +++ b/static/blog/wp-content/themes/Divi3/includes/builder/styles/magnific_popup.css @@ -0,0 +1,97 @@ +/* Magnific Popup Reset */ +.mfp-wrap .mfp-container button:hover { background: transparent !important; } +.mfp-wrap .mfp-arrow:active { position: absolute; top: 50%; } +.mfp-wrap .mfp-close:active { position: absolute; top: -10px; } + +/* Magnific Popup CSS */ +.mfp-arrow-left:after, .mfp-arrow-left .mfp-a, .mfp-arrow-right:after, .mfp-arrow-right .mfp-a { font-family: 'ETmodules'; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } +.mfp-fade.mfp-bg { opacity: 0.001; -webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; transition: all 0.5s ease-out; } +.mfp-fade.mfp-bg.mfp-ready { opacity: 0.8; } +.mfp-fade.mfp-bg.mfp-removing { opacity: 0; } +.mfp-fade.mfp-wrap .mfp-content { opacity: 0.001; -webkit-transition: all 0.5s ease-out; -moz-transition: all 0.5s ease-out; transition: all 0.5s ease-out; } +.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity: 1; } +.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity: 0; } +.mfp-bg { top: 0; left: 0; width: 100%; height: 100%; z-index: 1000000; overflow: hidden; position: fixed; background: #0b0b0b; opacity: 0.8; filter: alpha(opacity=80); } +.mfp-wrap { top: 0; left: 0; width: 100%; height: 100%; z-index: 1000001; position: fixed; outline: none !important; -webkit-backface-visibility: hidden; } +.mfp-container { text-align: center; position: absolute; width: 100%; height: 100%; left: 0; top: 0; padding: 0 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } +.mfp-container:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; } +.mfp-align-top .mfp-container:before { display: none; } +.mfp-content { position: relative; display: inline-block; vertical-align: middle; margin: 0 auto; text-align: left; z-index: 1045; } +.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content { width: 100%; cursor: auto; } +.mfp-ajax-cur { cursor: progress; } +.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close { cursor: -moz-zoom-out; cursor: -webkit-zoom-out; cursor: zoom-out; } +.mfp-zoom { cursor: pointer; cursor: -webkit-zoom-in; cursor: -moz-zoom-in; cursor: zoom-in; } +.mfp-auto-cursor .mfp-content { cursor: auto; } +.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter { -webkit-user-select: none; -moz-user-select: none; user-select: none; } +.mfp-loading.mfp-figure { display: none; } +.mfp-hide { display: none !important; } +.mfp-preloader { color: #cccccc; position: absolute; top: 50%; width: auto; text-align: center; margin-top: -0.8em; left: 8px; right: 8px; z-index: 1044; } +.mfp-preloader a { color: #cccccc; } +.mfp-preloader a:hover { color: white; } +.mfp-s-ready .mfp-preloader { display: none; } +.mfp-s-error .mfp-content { display: none; } +button.mfp-close, button.mfp-arrow { overflow: visible; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; display: block; outline: none; padding: 0; z-index: 1046; -webkit-box-shadow: none; box-shadow: none; } +button::-moz-focus-inner { padding: 0; border: 0; } +.mfp-close { width: 44px; height: 44px; line-height: 44px; position: absolute; right: 0; top: 0; text-decoration: none; text-align: center; opacity: 0.65; filter: alpha(opacity=65); padding: 0 0 18px 10px; color: white; font-style: normal; font-size: 28px; font-family: Arial, Baskerville, monospace; } +.mfp-close:hover, .mfp-close:focus { opacity: 1; filter: alpha(opacity=100); } +.mfp-close:active { top: 1px; } +.mfp-close-btn-in .mfp-close { color: #333333; } +.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close { color: white; right: -6px; text-align: right; padding-right: 6px; width: 100%; } +.mfp-counter { position: absolute; top: 0; right: 0; color: #cccccc; font-size: 12px; line-height: 18px; } +.mfp-arrow { position: absolute; opacity: 0.55; filter: alpha(opacity=55); margin: 0; top: 50%; margin-top: -32px; padding: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } +.mfp-arrow:hover { opacity: 1; filter: alpha(opacity=100); } +.mfp-arrow-left { left: 10px; } +.mfp-arrow-right { right: 10px; } +.mfp-iframe-holder { padding-top: 40px; padding-bottom: 40px; } +.mfp-iframe-holder .mfp-content { line-height: 0; width: 100%; max-width: 900px; } +.mfp-iframe-holder .mfp-close { top: -40px; } +.mfp-iframe-scaler { width: 100%; height: 0; overflow: hidden; padding-top: 56.25%; } +.mfp-iframe-scaler iframe { position: absolute; display: block; top: 0; left: 0; width: 100%; height: 100%; box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); background: black; } +.mfp-arrow-left:after, .mfp-arrow-left .mfp-a, .mfp-arrow-right:after, .mfp-arrow-right .mfp-a { border: none; font-size: 64px; color: #fff; } +.mfp-arrow-left:before, .mfp-arrow-right:before { display: none; } +.mfp-arrow-left:after, .mfp-arrow-left .mfp-a { content: "\34"; } +.mfp-arrow-right:after, .mfp-arrow-right .mfp-a { content: "\35"; } +.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close { font-size: 64px; font-family: 'Open Sans', Arial, sans-serif; font-weight: 200; top: -10px; opacity: 0.2; } +.mfp-image-holder .mfp-close:hover, .mfp-iframe-holder .mfp-close:hover { opacity: 1; } + +.mfp-arrow { background: none !important; margin-top: -32px !important; width: 48px !important; height: 48px !important; line-height: 1em !important; } +.mfp-arrow:after { margin: 0 !important; top: 0 !important; border: none !important; width: 48px !important; height: 48px !important; } +.mfp-arrow-left { left: 0 !important; } + + /* Image In Popup */ + img.mfp-img { width: auto; max-width: 100%; height: auto; display: block; line-height: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 40px 0 40px; margin: 0 auto; } + + /* Image Shadow */ + .mfp-figure { line-height: 0; } .mfp-figure:after { content: ''; position: absolute; left: 0; top: 40px; bottom: 40px; display: block; right: 0; width: auto; height: auto; z-index: -1; box-shadow: 0 0 8px rgba(0, 0, 0, 0.6); background: #444444; } + .mfp-figure small { color: #bdbdbd; display: block; font-size: 12px; line-height: 14px; } + .mfp-figure figure { margin: 0; } + .mfp-bottom-bar { margin-top: -36px; position: absolute; top: 100%; left: 0; width: 100%; cursor: auto; } + .mfp-title { text-align: left; line-height: 18px; color: #f3f3f3; word-wrap: break-word; padding-right: 36px; } + .mfp-image-holder .mfp-content { max-width: 100%; } + .mfp-gallery .mfp-image-holder .mfp-figure { cursor: pointer; } + + /* Responsive Styles */ + @media screen and ( max-width: 800px ) and ( orientation: landscape ), screen and ( max-height: 300px ) { + .mfp-img-mobile .mfp-image-holder { padding-left: 0; padding-right: 0; } + .mfp-img-mobile img.mfp-img { padding: 0; } + .mfp-img-mobile .mfp-figure:after { top: 0; bottom: 0; } + .mfp-img-mobile .mfp-figure small { display: inline; margin-left: 5px; } + .mfp-img-mobile .mfp-bottom-bar { background: rgba(0, 0, 0, 0.6); bottom: 0; margin: 0; top: auto; padding: 3px 5px; position: fixed; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } + .mfp-img-mobile .mfp-bottom-bar:empty { padding: 0; } + .mfp-img-mobile .mfp-counter { right: 5px; top: 3px; } + .mfp-img-mobile .mfp-close { top: 0; right: 0; width: 35px; height: 35px; line-height: 35px; background: rgba(0, 0, 0, 0.6); position: fixed; text-align: center; padding: 0; } + } + + @media all and ( max-width: 900px ) { + .mfp-arrow { -webkit-transform: scale(0.75); transform: scale(0.75); } + .mfp-arrow-left { -webkit-transform-origin: 0; transform-origin: 0; } + .mfp-arrow-right { -webkit-transform-origin: 100%; transform-origin: 100%; } + .mfp-container { padding-left: 6px; padding-right: 6px; } + } + + /* IE7 Fix */ + .mfp-ie7 .mfp-img { padding: 0; } + .mfp-ie7 .mfp-bottom-bar { width: 600px; left: 50%; margin-left: -300px; margin-top: 5px; padding-bottom: 5px; } + .mfp-ie7 .mfp-container { padding: 0; } + .mfp-ie7 .mfp-content { padding-top: 44px; } + .mfp-ie7 .mfp-close { top: 0; right: 0; padding-top: 0; } \ No newline at end of file diff --git a/static/blog/wp-content/themes/Divi3/js/custom.js b/static/blog/wp-content/themes/Divi3/js/custom.js new file mode 100644 index 000000000..086aa804f --- /dev/null +++ b/static/blog/wp-content/themes/Divi3/js/custom.js @@ -0,0 +1,1295 @@ +(function($){ + window.et_calculating_scroll_position = false; + window.et_side_nav_links_initialized = false; + + var $et_pb_post_fullwidth = $( '.single.et_pb_pagebuilder_layout.et_full_width_page' ), + et_is_mobile_device = navigator.userAgent.match( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/ ), + et_is_ipad = navigator.userAgent.match( /iPad/ ), + $et_container = $( '.container' ), + et_container_width = $et_container.width(), + et_is_fixed_nav = $( 'body' ).hasClass( 'et_fixed_nav' ), + et_is_vertical_fixed_nav = $( 'body' ).hasClass( 'et_vertical_fixed' ), + et_is_rtl = $( 'body' ).hasClass( 'rtl' ), + et_hide_nav = $( 'body' ).hasClass( 'et_hide_nav' ), + et_header_style_left = $( 'body' ).hasClass( 'et_header_style_left' ), + $top_header = $('#top-header'), + $main_header = $('#main-header'), + $main_container_wrapper = $( '#page-container' ), + $et_main_content_first_row = $( '#main-content .container:first-child' ), + $et_main_content_first_row_meta_wrapper = $et_main_content_first_row.find('.et_post_meta_wrapper:first'), + $et_main_content_first_row_meta_wrapper_title = $et_main_content_first_row_meta_wrapper.find( 'h1.entry-title' ), + $et_main_content_first_row_content = $et_main_content_first_row.find('.entry-content:first'), + $et_single_post = $( 'body.single-post' ), + $et_window = $(window), + etRecalculateOffset = false, + et_header_height, + et_header_modifier, + et_header_offset, + et_primary_header_top, + $et_header_style_split = $('.et_header_style_split'), + $et_top_navigation = $('#et-top-navigation'), + $logo = $('#logo'), + $et_pb_first_row = $( 'body.et_pb_pagebuilder_layout .et_pb_section:first-child' ), + et_is_touch_device = 'ontouchstart' in window || navigator.maxTouchPoints; + + $(document).ready( function(){ + var $et_top_menu = $( 'ul.nav' ), + $et_search_icon = $( '#et_search_icon' ), + et_parent_menu_longpress_limit = 300, + et_parent_menu_longpress_start, + et_parent_menu_click = true; + + $et_top_menu.find( 'li' ).hover( function() { + if ( ! $(this).closest( 'li.mega-menu' ).length || $(this).hasClass( 'mega-menu' ) ) { + $(this).addClass( 'et-show-dropdown' ); + $(this).removeClass( 'et-hover' ).addClass( 'et-hover' ); + } + }, function() { + var $this_el = $(this); + + $this_el.removeClass( 'et-show-dropdown' ); + + setTimeout( function() { + if ( ! $this_el.hasClass( 'et-show-dropdown' ) ) { + $this_el.removeClass( 'et-hover' ); + } + }, 200 ); + } ); + + // Dropdown menu adjustment for touch screen + $et_top_menu.find( '.menu-item-has-children > a' ).on( 'touchend', function(){ + var $et_parent_menu = $( this ).parent( 'li' ); + // open submenu on 1st tap + // open link on second tap + if ( $et_parent_menu.hasClass( 'et-hover' ) ) { + window.location = $( this ).attr( 'href' ); + } else { + $et_parent_menu.trigger( 'mouseenter' ); + } + } ); + + $et_top_menu.find( 'li.mega-menu' ).each(function(){ + var $li_mega_menu = $(this), + $li_mega_menu_item = $li_mega_menu.children( 'ul' ).children( 'li' ), + li_mega_menu_item_count = $li_mega_menu_item.length; + + if ( li_mega_menu_item_count < 4 ) { + $li_mega_menu.addClass( 'mega-menu-parent mega-menu-parent-' + li_mega_menu_item_count ); + } + }); + + function et_header_menu_split(){ + var $logo_container = $( '#main-header > .container > .logo_container' ), + $logo_container_splitted = $('.centered-inline-logo-wrap > .logo_container'), + et_top_navigation_li_size = $et_top_navigation.children('nav').children('ul').children('li').size(), + et_top_navigation_li_break_index = Math.round( et_top_navigation_li_size / 2 ) - 1, + window_width = $et_window.prop('outerWidth') || $et_window.width(); + + if ( window_width > 980 && $logo_container.length ) { + $('
  • ').insertAfter($et_top_navigation.find('nav > ul >li:nth('+et_top_navigation_li_break_index+')') ); + $logo_container.appendTo( $et_top_navigation.find('.centered-inline-logo-wrap') ); + } + + if ( window_width <= 980 && $logo_container_splitted.length ) { + $logo_container_splitted.prependTo('#main-header > .container'); + $('#main-header .centered-inline-logo-wrap').remove(); + } + } + + if ( $et_header_style_split.length && ! window.et_is_vertical_nav ) { + et_header_menu_split(); + + $(window).resize(function(){ + et_header_menu_split(); + }); + } + + if ( $('ul.et_disable_top_tier').length ) { + $("ul.et_disable_top_tier > li > ul").prev('a').attr('href','#'); + } + + if ( window.et_is_vertical_nav ) { + if ( $( '#main-header' ).height() < $( '#et-top-navigation' ).height() ) { + $( '#main-header' ).height( $( '#et-top-navigation' ).height() + $( '#logo' ).height() + 100 ); + } + } + + window.et_calculate_header_values = function() { + var $top_header = $( '#top-header' ), + secondary_nav_height = $top_header.length && $top_header.is( ':visible' ) ? parseInt( $top_header.innerHeight() ) : 0, + admin_bar_height = $( '#wpadminbar' ).length ? parseInt( $( '#wpadminbar' ).innerHeight() ) : 0, + $slide_menu_container = $( '.et_header_style_slide .et_slide_in_menu_container' ); + + et_header_height = parseInt( $( '#main-header' ).innerHeight() ) + secondary_nav_height; + et_header_modifier = et_header_height <= 90 ? et_header_height - 29 : et_header_height - 56; + et_header_offset = et_header_modifier + admin_bar_height; + + et_primary_header_top = secondary_nav_height + admin_bar_height; + + if ( $slide_menu_container.length && ! $( 'body' ).hasClass( 'et_pb_slide_menu_active' ) ) { + $slide_menu_container.css( { right: '-' + parseInt( $slide_menu_container.innerWidth() ) + 'px', 'display' : 'none' } ); + + if ( $( 'body' ).hasClass( 'et_boxed_layout' ) ) { + var page_container_margin = $main_container_wrapper.css( 'margin-left' ); + $main_header.css( { left : page_container_margin } ); + } + } + }; + + var $comment_form = $('#commentform'); + + et_pb_form_placeholders_init( $comment_form ); + + $comment_form.submit(function(){ + et_pb_remove_placeholder_text( $comment_form ); + }); + + et_duplicate_menu( $('#et-top-navigation ul.nav'), $('#et-top-navigation .mobile_nav'), 'mobile_menu', 'et_mobile_menu' ); + et_duplicate_menu( '', $('.et_pb_fullscreen_nav_container'), 'mobile_menu_slide', 'et_mobile_menu', 'no_click_event' ); + + if ( $( '#et-secondary-nav' ).length ) { + $('#et-top-navigation #mobile_menu').append( $( '#et-secondary-nav' ).clone().html() ); + } + + // adding arrows for the slide/fullscreen menus + if ( $( '.et_slide_in_menu_container' ).length ) { + var $item_with_sub = $( '.et_slide_in_menu_container' ).find( '.menu-item-has-children > a' ); + // add arrows for each menu item which has submenu + if ( $item_with_sub.length ) { + $item_with_sub.append( '' ); + } + } + + function et_change_primary_nav_position( delay ) { + setTimeout( function() { + var $body = $('body'), + $wpadminbar = $( '#wpadminbar' ), + $top_header = $( '#top-header' ), + et_primary_header_top = 0; + + if ( $wpadminbar.length ) { + et_primary_header_top += $wpadminbar.innerHeight(); + } + + if ( $top_header.length && $top_header.is(':visible') ) { + et_primary_header_top += $top_header.innerHeight(); + } + + if ( ! window.et_is_vertical_nav && ( $body.hasClass( 'et_fixed_nav' ) ) ) { + $('#main-header').css( 'top', et_primary_header_top ); + } + }, delay ); + } + + function et_hide_nav_transofrm( ) { + var $body = $( 'body' ), + $body_height = $( document ).height(), + $viewport_height = $( window ).height() + et_header_height + 200; + + if ( $body.hasClass( 'et_hide_nav' ) || $body.hasClass( 'et_hide_nav_disabled' ) && ( $body.hasClass( 'et_fixed_nav' ) ) ) { + if ( $body_height > $viewport_height ) { + if ( $body.hasClass( 'et_hide_nav_disabled' ) ) { + $body.addClass( 'et_hide_nav' ); + $body.removeClass( 'et_hide_nav_disabled' ); + } + $('#main-header').css( 'transform', 'translateY(-' + et_header_height +'px)' ); + $('#top-header').css( 'transform', 'translateY(-' + et_header_height +'px)' ); + } else { + $('#main-header').css( { 'transform': 'translateY(0)', 'opacity': '1' } ); + $('#top-header').css( { 'transform': 'translateY(0)', 'opacity': '1' } ); + $body.removeClass( 'et_hide_nav' ); + $body.addClass( 'et_hide_nav_disabled' ); + } + } + } + + function et_page_load_scroll_to_anchor() { + var $map_container = $( window.et_location_hash + ' .et_pb_map_container' ), + $map = $map_container.children( '.et_pb_map' ), + $target = $( window.et_location_hash ); + + // Make the target element visible again + $target.css( 'display', window.et_location_hash_style ); + + var distance = ( 'undefined' !== typeof( $target.offset().top ) ) ? $target.offset().top : 0, + speed = ( distance > 4000 ) ? 1600 : 800; + + if ( $map_container.length ) { + google.maps.event.trigger( $map[0], 'resize' ); + } + + // Allow the header sizing functions enough time to finish before scrolling the page + setTimeout( function() { + et_pb_smooth_scroll( $target, false, speed, 'swing'); + + // During the page scroll animation, the header's height might change. + // Do the scroll animation again to ensure its accuracy. + setTimeout( function() { + et_pb_smooth_scroll( $target, false, 150, 'linear' ); + }, speed + 25 ); + + }, 700 ); + } + + // Retrieving padding/margin value based on formatted saved padding/margin strings + function et_get_saved_padding_margin_value( saved_value, order ) { + if ( typeof saved_value === 'undefined' ) { + return false; + } + + var values = saved_value.split('|'); + + return typeof values[order] !== 'undefined' ? values[order] : false; + } + + function et_fix_page_container_position(){ + var et_window_width = parseInt( $et_window.width() ), + $top_header = $( '#top-header' ), + secondary_nav_height = $top_header.length && $top_header.is( ':visible' ) ? parseInt( $top_header.innerHeight() ) : 0, + main_header_fixed_height = 0, + header_height; + + // Set data-height-onload for header if the page is loaded on large screen + // If the page is loaded from small screen, rely on data-height-onload printed on the markup, + // prevent window resizing issue from small to large + if ( et_window_width > 980 && ! $main_header.attr( 'data-height-loaded' ) ){ + $main_header.attr({ 'data-height-onload' : parseInt( $main_header.height() ), 'data-height-loaded' : true }); + } + + // Use on page load calculation for large screen. Use on the fly calculation for small screen (980px below) + if ( et_window_width <= 980 ) { + header_height = parseInt( $main_header.innerHeight() ) + secondary_nav_height - 1; + + // If transparent is detected, #main-content .container's padding-top needs to be added to header_height + // And NOT a pagebuilder page + if ( window.et_is_transparent_nav && ! $et_pb_first_row.length ) { + header_height += 58; + } + } else { + + // Get header height from header attribute + header_height = parseInt( $main_header.attr( 'data-height-onload' ) ) + secondary_nav_height; + + // Non page builder page needs to be added by #main-content .container's fixed height + if ( window.et_is_transparent_nav && ! window.et_is_vertical_nav && $et_main_content_first_row.length ) { + header_height += 58; + } + + // Calculate fixed header height by cloning, emulating, and calculating its height + $main_header.clone().addClass( + 'main-header-clone et-fixed-header' + ).css({ + opacity: 0, + position: 'fixed', + top: 'auto', + right: 0, + bottom: 0, + left: 0 + }).appendTo( $('body') ); + + main_header_fixed_height = $('.main-header-clone').height(); + + $('.main-header-clone').remove(); + } + + // Saved fixed main header height calculation + $main_header.attr({ + 'data-fixed-height-onload': main_header_fixed_height + }); + + // Specific adjustment required for transparent nav + not vertical nav + if ( window.et_is_transparent_nav && ! window.et_is_vertical_nav ){ + + // Add class for first row for custom section padding purpose + $et_pb_first_row.addClass( 'et_pb_section_first' ); + + // List of conditionals + var is_pb = $et_pb_first_row.length, + is_post_pb = is_pb && $et_single_post.length, + is_post_pb_full_layout_has_title = $et_pb_post_fullwidth.length && $et_main_content_first_row_meta_wrapper_title.length, + is_post_pb_full_layout_no_title = $et_pb_post_fullwidth.length && 0 === $et_main_content_first_row_meta_wrapper_title.length, + is_pb_fullwidth_section_first = $et_pb_first_row.is( '.et_pb_fullwidth_section' ), + is_no_pb_mobile = et_window_width <= 980 && $et_main_content_first_row.length; + + if ( is_post_pb && ! ( is_post_pb_full_layout_no_title && is_pb_fullwidth_section_first ) ) { + + /* Desktop / Mobile + Single Post */ + + /* + * EXCEPT for fullwidth layout + fullwidth section ( at the first row ). + * It is basically the same as page + fullwidth section with few quirk. + * Instead of duplicating the conditional for each module, it'll be simpler to negate + * fullwidth layout + fullwidth section in is_post_pb and rely it to is_pb_fullwidth_section_first + */ + + // Remove main content's inline padding to styling to prevent looping padding-top calculation + $et_main_content_first_row.css({ 'paddingTop' : '' }); + + if ( et_window_width < 980 ) { + header_height += 40; + } + + if ( is_pb_fullwidth_section_first ) { + // If the first section is fullwidth, restore the padding-top modified area at first section + $et_pb_first_row.css({ + 'paddingTop' : '0' + }); + } + + if ( is_post_pb_full_layout_has_title ) { + + // Add header height to post meta wrapper as padding top + $et_main_content_first_row_meta_wrapper.css({ + 'paddingTop' : header_height + }); + + } else if ( is_post_pb_full_layout_no_title ) { + + $et_pb_first_row.css({ + 'paddingTop' : header_height + }); + + } else { + + // Add header height to first row content as padding top + $et_main_content_first_row.css({ + 'paddingTop' : header_height + }); + + } + + } else if ( is_pb_fullwidth_section_first ){ + + /* Desktop / Mobile + Pagebuilder + Fullwidth Section */ + + var $et_pb_first_row_first_module = $et_pb_first_row.children( '.et_pb_module:first' ); + + // Quirks: If this is post with fullwidth layout + no title + fullwidth section at first row, + // Remove the added height at line 2656 + if ( is_post_pb_full_layout_no_title && is_pb_fullwidth_section_first && et_window_width > 980 ) { + header_height = header_height - 58; + } + + if ( $et_pb_first_row_first_module.is( '.et_pb_slider' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth slider */ + + var $et_pb_first_row_first_module_slide_image = $et_pb_first_row_first_module.find( '.et_pb_slide_image' ), + $et_pb_first_row_first_module_slide = $et_pb_first_row_first_module.find( '.et_pb_slide' ), + $et_pb_first_row_first_module_slide_container = $et_pb_first_row_first_module.find( '.et_pb_slide .et_pb_container' ), + et_pb_slide_image_margin_top = 0 - ( parseInt( $et_pb_first_row_first_module_slide_image.height() ) / 2 ), + et_pb_slide_container_height = 0, + $et_pb_first_row_first_module_slider_arrow = $et_pb_first_row_first_module.find( '.et-pb-slider-arrows a'), + et_pb_first_row_slider_arrow_height = $et_pb_first_row_first_module_slider_arrow.height(); + + // Adding padding top to each slide so the transparency become useful + $et_pb_first_row_first_module_slide.css({ + 'paddingTop' : header_height + }); + + // delete container's min-height + $et_pb_first_row_first_module_slide_container.css({ + 'min-height' : '' + }); + + // Adjusting slider's image, considering additional top padding of slideshow + $et_pb_first_row_first_module_slide_image.css({ + 'marginTop' : et_pb_slide_image_margin_top + }); + + // Adjusting slider's arrow, considering additional top padding of slideshow + $et_pb_first_row_first_module_slider_arrow.css({ + 'marginTop' : ( ( header_height / 2 ) - ( et_pb_first_row_slider_arrow_height / 2 ) ) + }); + + // Looping the slide and get the highest height of slide + var et_pb_first_row_slide_container_height_new = 0; + + $et_pb_first_row_first_module.find( '.et_pb_slide' ).each( function(){ + var $et_pb_first_row_first_module_slide_item = $(this), + $et_pb_first_row_first_module_slide_container = $et_pb_first_row_first_module_slide_item.find( '.et_pb_container' ); + + // Make sure that the slide is visible to calculate correct height + $et_pb_first_row_first_module_slide_item.show(); + + // Remove existing inline css to make sure that it calculates the height + $et_pb_first_row_first_module_slide_container.css({ 'min-height' : '' }); + + var et_pb_first_row_slide_container_height = $et_pb_first_row_first_module_slide_container.innerHeight(); + + if ( et_pb_first_row_slide_container_height_new < et_pb_first_row_slide_container_height ){ + et_pb_first_row_slide_container_height_new = et_pb_first_row_slide_container_height; + } + + // Hide the slide back if it isn't active slide + if ( $et_pb_first_row_first_module_slide_item.is( ':not(".et-pb-active-slide")' ) ){ + $et_pb_first_row_first_module_slide_item.hide(); + } + }); + + // Setting appropriate min-height, considering additional top padding of slideshow + $et_pb_first_row_first_module_slide_container.css({ + 'min-height' : et_pb_first_row_slide_container_height_new + }); + + } else if ( $et_pb_first_row_first_module.is( '.et_pb_fullwidth_header' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth header */ + + // Remove existing inline stylesheet to prevent looping padding + $et_pb_first_row_first_module.removeAttr( 'style' ); + + // Get paddingTop from stylesheet + var et_pb_first_row_first_module_fullwidth_header_padding_top = parseInt( $et_pb_first_row_first_module.css( 'paddingTop' ) ); + + // Implement stylesheet's padding-top + header_height + $et_pb_first_row_first_module.css({ + 'paddingTop' : ( header_height + et_pb_first_row_first_module_fullwidth_header_padding_top ) + } ); + + } else if ( $et_pb_first_row_first_module.is( '.et_pb_fullwidth_portfolio' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth Portfolio */ + + $et_pb_first_row_first_module.css({ 'paddingTop' : header_height }); + + } else if ( $et_pb_first_row_first_module.is( '.et_pb_map_container' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth Map */ + + var $et_pb_first_row_map = $et_pb_first_row_first_module.find( '.et_pb_map' ); + + // Remove existing inline height to prevent looping height calculation + $et_pb_first_row_map.css({ 'height' : '' }); + + // Implement map height + header height + $et_pb_first_row_first_module.find('.et_pb_map').css({ + 'height' : header_height + parseInt( $et_pb_first_row_map.css( 'height' ) ) + }); + + // Adding specific class to mark the map as first row section element + $et_pb_first_row_first_module.addClass( 'et_beneath_transparent_nav' ); + + } else if ( $et_pb_first_row_first_module.is( '.et_pb_fullwidth_menu' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth Menu */ + $et_pb_first_row_first_module.css({ 'marginTop' : header_height }); + + } else if ( $et_pb_first_row_first_module.is( '.et_pb_fullwidth_code' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth code */ + + var $et_pb_first_row_first_module_code = $et_pb_first_row_first_module; + + $et_pb_first_row_first_module_code.css({ 'paddingTop' : '' }); + + var et_pb_first_row_first_module_code_padding_top = parseInt( $et_pb_first_row_first_module_code.css( 'paddingTop' ) ); + + $et_pb_first_row_first_module_code.css({ + 'paddingTop' : header_height + et_pb_first_row_first_module_code_padding_top + }); + + } else if ( $et_pb_first_row_first_module.is( '.et_pb_post_title' ) ) { + + /* Desktop / Mobile + Pagebuilder + Fullwidth Post Title */ + + $et_pb_first_row_first_module.css({ + 'paddingTop' : header_height + 50 + }); + } + + } else if ( is_pb ) { + + /* Desktop / Mobile + Pagebuilder + Regular section */ + + // Remove first row's inline padding top styling to prevent looping padding-top calculation + $et_pb_first_row.css({ 'paddingTop' : '' }); + + // Get saved custom padding from data-* attributes. Builder automatically adds + // saved custom paddings to data-* attributes on first section + var saved_custom_padding = $et_pb_first_row.attr('data-padding'), + saved_custom_padding_top = et_get_saved_padding_margin_value( saved_custom_padding, 0 ), + saved_custom_padding_tablet = $et_pb_first_row.attr('data-padding-tablet'), + saved_custom_padding_tablet_top = et_get_saved_padding_margin_value( saved_custom_padding_tablet, 0 ), + saved_custom_padding_phone = $et_pb_first_row.attr('data-padding-phone'), + saved_custom_padding_phone_top = et_get_saved_padding_margin_value( saved_custom_padding_phone, 0 ), + applied_saved_custom_padding; + + if ( saved_custom_padding_top || saved_custom_padding_tablet_top || saved_custom_padding_phone_top ) { + // Applies padding top to first section to automatically convert saved unit into px + if ( et_window_width > 980 && saved_custom_padding_top ) { + $et_pb_first_row.css({ + paddingTop: saved_custom_padding_top + }); + } else if ( et_window_width > 767 && saved_custom_padding_tablet_top ) { + $et_pb_first_row.css({ + paddingTop: saved_custom_padding_tablet_top + }); + } else if ( saved_custom_padding_phone_top ) { + $et_pb_first_row.css({ + paddingTop: saved_custom_padding_phone_top + }); + } + + // Get converted custom padding top value + applied_saved_custom_padding = parseInt( $et_pb_first_row.css( 'paddingTop' ) ); + + // Implemented saved & converted padding top + header height + $et_pb_first_row.css({ + paddingTop: ( header_height + applied_saved_custom_padding ) + }); + } else { + // Pagebuilder ignores #main-content .container's fixed height and uses its row's padding + // Anticipate the use of custom section padding. + et_pb_first_row_padding_top = header_height + parseInt( $et_pb_first_row.css( 'paddingBottom' ) ); + + // Implementing padding-top + header_height + $et_pb_first_row.css({ + 'paddingTop' : et_pb_first_row_padding_top + }); + } + } else if ( is_no_pb_mobile ) { + + // Mobile + not pagebuilder + $et_main_content_first_row.css({ + 'paddingTop' : header_height + }); + + } else { + + $('#main-content .container:first-child').css({ + 'paddingTop' : header_height + }); + + } + + // Set #page-container's padding-top to zero after inline styling first row's content has been added + if ( ! $('#et_fix_page_container_position').length ){ + $( '