{"id":87695,"date":"2000-12-15T10:17:09","date_gmt":"2000-12-15T12:17:09","guid":{"rendered":"https:\/\/motonline.com.br\/noticia\/?p=87695"},"modified":"2019-01-14T15:38:50","modified_gmt":"2019-01-14T17:38:50","slug":"fotos-e-vdeos-da-yamaha-xtz-250-lander","status":"publish","type":"post","link":"https:\/\/motonline.com.br\/noticia\/fotos-e-vdeos-da-yamaha-xtz-250-lander\/","title":{"rendered":"Fotos e V\u00eddeos da Yamaha XTZ 250 Lander"},"content":{"rendered":"<script\n    data-nowprocket\n    data-no-lazyload\n    data-no-optimize\n>\n    window.alpineGalleryData = () => {\n        return {\n            images: [],\n            currentIndex: 0,\n            moveCount: 0,\n            movesToShowAd: 5,\n            startX: 0,\n            endX: 0,\n            currentImage() {\n                return this.images[this.currentIndex];\n            },\n            prevImage() {\n                this.setCurrentImage((this.currentIndex > 0) ? this.currentIndex - 1 : this.images.length - 1);\n            },\n            nextImage() {\n                this.setCurrentImage((this.currentIndex < this.images.length - 1) ? this.currentIndex + 1 : 0);\n            },\n            setCurrentImage(index) {\n                this.moveCount++;\n                if (this.moveCount % this.movesToShowAd === 0 && this.moveCount > 0) {\n                    return;\n                }\n\n                this.currentIndex = index;\n                this.updateUrl();\n            },\n            updateUrl() {\n                const url = new URL(window.location);\n                url.searchParams.set('image', this.currentIndex);\n                window.history.pushState({}, '', url);\n            },\n            handleTouchStart(event) {\n                this.startX = event.touches[0].clientX;\n            },\n            handleTouchEnd(event) {\n                this.endX = event.changedTouches[0].clientX;\n                if (this.startX - this.endX > 50) {\n                    this.nextImage();\n                } else if (this.endX - this.startX > 50) {\n                    this.prevImage();\n                }\n            },\n            init() {\n                this.images = window[this.$el.id];\n                const urlParams = new URLSearchParams(window.location.search);\n                const imageIndex = parseInt(urlParams.get('image'));\n                if (!isNaN(imageIndex) && imageIndex >= 0 && imageIndex < this.images.length) {\n                    this.currentIndex = imageIndex;\n                    this.$el.scrollIntoView({ behavior: 'smooth' });\n                }\n            }\n        }\n    }\n<\/script>\n\n<script\n    data-nowprocket\n    data-no-lazyload\n    data-no-optimize\n>\n    window.GALLERY_6a6873fa64cb2 = [{\"id\":\"87510\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/XTZ250-Lander_geometria.png\",\"caption\":\"\"},{\"id\":\"87472\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-4.png\",\"caption\":\"Lander estar\\u00e1 dispon\\u00edvel em preto (Black Eclipse)...\"},{\"id\":\"87470\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-3.png\",\"caption\":\"... em branco (Sports White)...\"},{\"id\":\"87468\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-2.png\",\"caption\":\"Para cumprir a miss\\u00e3o 'aventureira', kit ser\\u00e1 vendido separadamente com bauletos (de 33 e 35 litros), protetor de motor e parabrisa. Pre\\u00e7o ainda n\\u00e3o foi divulgado\"},{\"id\":\"87473\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-5.jpg\",\"caption\":\"\"},{\"id\":\"87475\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-6.jpg\",\"caption\":\"\"},{\"id\":\"87465\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-1.jpg\",\"caption\":\"Yamaha Lander 250 j\\u00e1 nas lojas\"},{\"id\":\"87467\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-2.jpg\",\"caption\":\"... Enquanto as trail, assim como as scooter, s\\u00e3o 'boas de manobrabilidade'\"},{\"id\":\"87466\",\"url\":\"https:\\\/\\\/motonline.com.br\\\/noticia\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/nova-lander-250-abs-1.png\",\"caption\":\"... e no tradicional azul (Competition Blue)\"}];\n<\/script>\n<div\n    id=\"GALLERY_6a6873fa64cb2\"\n    x-data=\"window.alpineGalleryData\"\n    class=\"gallery\"\n>\n    <div\n        class=\"gallery__main\"\n        @touchstart=\"handleTouchStart\"\n        @touchend=\"handleTouchEnd\"\n    >\n        <button\n            @click=\"prevImage\"\n            class=\"gallery__arrow gallery__arrow--left\"\n        >\n            <svg\n                xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n                viewBox=\"0 0 24 24\"\n                width=\"24\"\n                height=\"24\"\n                fill=\"white\"\n            >\n                <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\" \/>\n            <\/svg>\n        <\/button>\n        <template\n            x-for=\"(image, index) in images\"\n            :key=\"image.id\"\n        >\n            <figure>\n                <img\n                    :src=\"image.url\"\n                    :alt=\"image.caption\"\n                    loading=\"lazy\"\n                    class=\"gallery__image\"\n                    :class=\"{ active: index === currentIndex }\"\n                >\n                <figcaption\n                    x-show=\"image.caption?.length > 0 && index === currentIndex\"\n                    x-text=\"image.caption\"\n                    class=\"text-white text-center\"\n                ><\/figcaption>\n            <\/figure>\n        <\/template>\n        <button\n            @click=\"nextImage\"\n            class=\"gallery__arrow gallery__arrow--right\"\n        >\n            <svg\n                xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n                viewBox=\"0 0 24 24\"\n                width=\"24\"\n                height=\"24\"\n                fill=\"white\"\n            >\n                <path d=\"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z\" \/>\n            <\/svg>\n        <\/button>\n    <\/div>\n    <div class=\"gallery__thumbnails\">\n        <template\n            x-for=\"(image, index) in images\"\n            :key=\"image.id\"\n        >\n            <img\n                :src=\"image.url\"\n                :alt=\"image.caption\"\n                @click=\"setCurrentImage(index)\"\n                :class=\"{'gallery__thumbnail--active': index === currentIndex}\"\n                loading=\"lazy\"\n                class=\"gallery__thumbnail\"\n            >\n        <\/template>\n    <\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Confira Fotos e V\u00eddeos da Yamaha XTZ 250 Lander aqui no Motonline, o Maior Site de Conte\u00fado de Motos do Brasil<\/p>\n","protected":false},"author":1,"featured_media":87466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[1],"tags":[],"class_list":["post-87695","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sem-categoria"],"acf":[],"newsletter_post":false,"_links":{"self":[{"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/posts\/87695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/comments?post=87695"}],"version-history":[{"count":0,"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/posts\/87695\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/media\/87466"}],"wp:attachment":[{"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/media?parent=87695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/categories?post=87695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motonline.com.br\/noticia\/wp-json\/wp\/v2\/tags?post=87695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}