{"id":1412,"date":"2020-05-29T16:27:42","date_gmt":"2020-05-29T08:27:42","guid":{"rendered":"http:\/\/www.toothpickprocessing.com\/slide-anything-popup-preview"},"modified":"2020-05-29T16:41:06","modified_gmt":"2020-05-29T08:41:06","slug":"slide-anything-popup-preview","status":"publish","type":"page","link":"https:\/\/www.toothpickprocessing.com\/es\/slide-anything-popup-preview","title":{"rendered":"Vista previa de Popup de Slide Anything"},"content":{"rendered":"<div class='white' style='background:#fafafa; border:solid 1px #f0f0f0; border-radius:5px; padding:6px 8px 8px 8px;'>\n<div id='sample_slider' class='owl-carousel sa_owl_theme owl-pagination-true autohide-arrows' data-slider-id='sample_slider' style='visibility:hidden;'>\n<div id='sample_slider_slide01' class='sa_hover_container' style='padding:1% 1%; margin:0px 0%; background-image:url(&quot;https:\/\/www.toothpickprocessing.com\/wp-content\/uploads\/2019\/08\/toothpick1.jpg&quot;); background-position:center top; background-size:100% auto; background-repeat:no-repeat; background-color:rgb(255, 255, 255); '><\/div>\n<div id='sample_slider_slide03' class='sa_hover_container' style='padding:1% 1%; margin:0px 0%; background-image:url(&quot;https:\/\/www.toothpickprocessing.com\/wp-content\/uploads\/2019\/08\/toothpick3.jpg&quot;); background-position:center top; background-size:100% auto; background-repeat:no-repeat; background-color:rgb(255, 255, 255); '><\/div>\n<div id='sample_slider_slide02' class='sa_hover_container' style='padding:1% 1%; margin:0px 0%; background-image:url(&quot;https:\/\/www.toothpickprocessing.com\/wp-content\/uploads\/2019\/08\/toothpick2.jpg&quot;); background-position:left top; background-size:100% auto; background-repeat:no-repeat; background-color:rgb(255, 255, 255); '><\/div>\n<\/div>\n<\/div>\n<script type='text\/javascript'>\n\tjQuery(document).ready(function() {\n\t\tjQuery('#sample_slider').owlCarousel({\n\t\t\titems : 1,\n\t\t\tsmartSpeed : 300,\n\t\t\tautoplay : true,\n\t\t\tautoplayTimeout : 4000,\n\t\t\tautoplayHoverPause : true,\n\t\t\tsmartSpeed : 300,\n\t\t\tfluidSpeed : 300,\n\t\t\tautoplaySpeed : 300,\n\t\t\tnavSpeed : 300,\n\t\t\tdotsSpeed : 300,\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 : true,\n\t\t\tmouseDrag : false,\n\t\t\ttouchDrag : true\n\t\t});\n\t\tjQuery('#sample_slider').css('visibility', 'visible');\n\t\tsa_resize_sample_slider();\n\t\twindow.addEventListener('resize', sa_resize_sample_slider);\n\t\tfunction sa_resize_sample_slider() {\n\t\t\tvar min_height = '16';\n\t\t\tvar win_width = jQuery(window).width();\n\t\t\tvar slider_width = jQuery('#sample_slider').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('#sample_slider .owl-item .sa_hover_container').css('min-height', slide_height+'px');\n\t\t}\n\t\tvar owl_goto = jQuery('#sample_slider');\n\t\tjQuery('.sample_slider_goto1').click(function(event){\n\t\t\towl_goto.trigger('to.owl.carousel', 0);\n\t\t});\n\t\tjQuery('.sample_slider_goto2').click(function(event){\n\t\t\towl_goto.trigger('to.owl.carousel', 1);\n\t\t});\n\t\tjQuery('.sample_slider_goto3').click(function(event){\n\t\t\towl_goto.trigger('to.owl.carousel', 2);\n\t\t});\n\t\tvar resize_535 = jQuery('.owl-carousel');\n\t\tresize_535.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>\n\n","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-1412","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/pages\/1412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/comments?post=1412"}],"version-history":[{"count":0,"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/pages\/1412\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.toothpickprocessing.com\/es\/wp-json\/wp\/v2\/media?parent=1412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}