RV Blogs – RV Tips, Stories, And Photos From The 10 Best Travel Blogs {{{ data._highlightResult.post_title.value }}} {{{ data._snippetResult[‘content’].value }}} ]]> {{{ data._highlightResult.name.value }}} ]]> {{{ data._highlightResult.display_name.value }}} ]]> ‘).replace(/__/ais-highlight__/g, ”); } for (var key in hit._snippetResult) { /* We do not deal with arrays. */ if (typeof hit._snippetResult[key].value !== ‘string’) { continue; } hit._snippetResult[key].value = _.escape(hit._snippetResult[key].value); hit._snippetResult[key].value = hit._snippetResult[key].value.replace(/__ais-highlight__/g, ‘‘).replace(/__/ais-highlight__/g, ”); } return suggestion_template(hit); } } }); }); /* Setup dropdown menus */ jQuery(algolia.autocomplete.input_selector).each(function (i) { var $searchInput = jQuery(this); var config = { debug: algolia.debug, hint: false, openOnFocus: true, appendTo: ‘body’, templates: { empty: wp.template(‘autocomplete-empty’) } }; if (algolia.powered_by_enabled) { config.templates.footer = wp.template(‘autocomplete-footer’); } /* Instantiate autocomplete.js */ var autocomplete = algoliaAutocomplete($searchInput[0], config, sources) .on(‘autocomplete:selected’, function (e, suggestion) { /* Redirect the user when we detect a suggestion selection. */ window.location.href = suggestion.permalink; }); /* Force the dropdown to be re-drawn on scroll to handle fixed containers. */ jQuery(window).scroll(function() { if(autocomplete.autocomplete.getWrapper().style.display === “block”) { autocomplete.autocomplete.close(); autocomplete.autocomplete.open(); } }); }); jQuery(document).on(“click”, “.algolia-powered-by-link”, function (e) { e.preventDefault(); window.location = “https://www.algolia.com/?utm_source=WordPress&utm_medium=extension&utm_content=” + window.location.hostname + “&utm_campaign=poweredby”; }); }); ]]> × Please don’t show me this widget (disabled on future page views).’); }, 4000); function disableVid() { document.cookie = “no_widget_content=1”; }; ]]> 0 || rocketlazy_count > 0){ lazyLoadInstance.update(); } } ); var b = document.getElementsByTagName(“body”)[0]; var config = { childList: true, subtree: true }; observer.observe(b, config); } }, false);]]>
Source