{"id":792,"date":"2021-06-24T13:17:22","date_gmt":"2021-06-24T10:17:22","guid":{"rendered":"https:\/\/www.tiittalankartano.fi\/slide-anything-popup-preview\/"},"modified":"2022-01-12T21:28:11","modified_gmt":"2022-01-12T19:28:11","slug":"slide-anything-popup-preview","status":"publish","type":"page","link":"https:\/\/www.tiittalankartano.fi\/en\/slide-anything-popup-preview\/","title":{"rendered":"Slide Anything Popup Preview"},"content":{"rendered":"<div class='white' style='background:rgba(0,0,0,0); border:solid 0px rgba(0,0,0,0); border-radius:0px; padding:0px 0px 0px 0px;'>\n<div id='slider_791' class='owl-carousel sa_owl_theme owl-pagination-true autohide-arrows' data-slider-id='slider_791' style='visibility:hidden;'>\n<div id='slider_791_slide02' class='sa_hover_container' style='padding:5% 5%; margin:0px 0%; background-image:url(&quot;https:\/\/www.tiittalankartano.fi\/wp-content\/uploads\/2022\/01\/slider-vohveli-suolainen2.jpg&quot;); background-position:left top; background-size:cover; background-repeat:no-repeat; '><\/div>\n<div id='slider_791_slide03' class='sa_hover_container' style='padding:5% 5%; margin:0px 0%; background-image:url(&quot;https:\/\/www.tiittalankartano.fi\/wp-content\/uploads\/2022\/01\/slider-vohveli-sisa-1.jpg&quot;); background-position:left top; background-size:cover; background-repeat:no-repeat; '><\/div>\n<div id='slider_791_slide01' class='sa_hover_container' style='padding:5% 5%; margin:0px 0%; background-image:url(&quot;https:\/\/www.tiittalankartano.fi\/wp-content\/uploads\/2022\/01\/slider-vohveli-lahikuva2.jpg&quot;); background-position:left top; background-size:cover; background-repeat:no-repeat; '><\/div>\n<\/div>\n<\/div>\n<script type='text\/javascript'>\n\tjQuery(document).ready(function() {\n\t\tjQuery('#slider_791').owlCarousel({\n\t\t\titems : 1,\n\t\t\tanimateOut : 'fadeOut',\n\t\t\tsmartSpeed : 200,\n\t\t\tautoplay : true,\n\t\t\tautoplayTimeout : 5000,\n\t\t\tautoplayHoverPause : true,\n\t\t\tsmartSpeed : 200,\n\t\t\tfluidSpeed : 200,\n\t\t\tautoplaySpeed : 200,\n\t\t\tnavSpeed : 200,\n\t\t\tdotsSpeed : 200,\n\t\t\tloop : true,\n\t\t\tnav : true,\n\t\t\tnavText : ['Previous','Next'],\n\t\t\tdots : true,\n\t\t\tresponsiveRefreshRate : 200,\n\t\t\tslideBy : 1,\n\t\t\tmergeFit : true,\n\t\t\tautoHeight : false,\n\t\t\tmouseDrag : false,\n\t\t\ttouchDrag : true\n\t\t});\n\t\tjQuery('#slider_791').css('visibility', 'visible');\n\t\tsa_resize_slider_791();\n\t\twindow.addEventListener('resize', sa_resize_slider_791);\n\t\tfunction sa_resize_slider_791() {\n\t\t\tvar min_height = 'aspect43';\n\t\t\tvar win_width = jQuery(window).width();\n\t\t\tvar slider_width = jQuery('#slider_791').width();\n\t\t\tif (win_width < 480) {\n\t\t\t\tvar slide_width = slider_width \/ 1;\n\t\t\t} else if (win_width < 768) {\n\t\t\t\tvar slide_width = slider_width \/ 1;\n\t\t\t} else if (win_width < 980) {\n\t\t\t\tvar slide_width = slider_width \/ 1;\n\t\t\t} else if (win_width < 1200) {\n\t\t\t\tvar slide_width = slider_width \/ 1;\n\t\t\t} else if (win_width < 1500) {\n\t\t\t\tvar slide_width = slider_width \/ 1;\n\t\t\t} else {\n\t\t\t\tvar slide_width = slider_width \/ 1;\n\t\t\t}\n\t\t\tslide_width = Math.round(slide_width);\n\t\t\tvar slide_height = '0';\n\t\t\tif (min_height == 'aspect43') {\n\t\t\t\tslide_height = (slide_width \/ 4) * 3;\t\t\t\tslide_height = Math.round(slide_height);\n\t\t\t} else if (min_height == 'aspect169') {\n\t\t\t\tslide_height = (slide_width \/ 16) * 9;\t\t\t\tslide_height = Math.round(slide_height);\n\t\t\t} else {\n\t\t\t\tslide_height = (slide_width \/ 100) * min_height;\t\t\t\tslide_height = Math.round(slide_height);\n\t\t\t}\n\t\t\tjQuery('#slider_791 .owl-item .sa_hover_container').css('min-height', slide_height+'px');\n\t\t}\n\t\tvar owl_goto = jQuery('#slider_791');\n\t\tjQuery('.slider_791_goto1').click(function(event){\n\t\t\towl_goto.trigger('to.owl.carousel', 0);\n\t\t});\n\t\tjQuery('.slider_791_goto2').click(function(event){\n\t\t\towl_goto.trigger('to.owl.carousel', 1);\n\t\t});\n\t\tjQuery('.slider_791_goto3').click(function(event){\n\t\t\towl_goto.trigger('to.owl.carousel', 2);\n\t\t});\n\t\tvar resize_818 = jQuery('.owl-carousel');\n\t\tresize_818.on('initialized.owl.carousel', function(e) {\n\t\t\tif (typeof(Event) === 'function') {\n\t\t\t\twindow.dispatchEvent(new Event('resize'));\n\t\t\t} else {\n\t\t\t\tvar evt = window.document.createEvent('UIEvents');\n\t\t\t\tevt.initUIEvent('resize', true, false, window, 0);\n\t\t\t\twindow.dispatchEvent(evt);\n\t\t\t}\n\t\t});\n\t});\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":9999,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-792","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/pages\/792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/comments?post=792"}],"version-history":[{"count":4,"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/pages\/792\/revisions"}],"predecessor-version":[{"id":829,"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/pages\/792\/revisions\/829"}],"wp:attachment":[{"href":"https:\/\/www.tiittalankartano.fi\/en\/wp-json\/wp\/v2\/media?parent=792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}