var woocommerce_price_slider_params = { "min_price": "", "max_price": "", "currency_format_num_decimals": "0", "currency_format_symbol": "$", "currency_format_decimal_sep": ".", "currency_format_thousand_sep": ",", "currency_format": "%s%v" }; var wc_add_to_cart_variation_params = { "wc_ajax_url": "\/product\/parmesan-cheese\/?wc-ajax=%%endpoint%%", "i18n_no_matching_variations_text": "Sorry, no products matched your selection. Please choose a different combination.", "i18n_make_a_selection_text": "Please select some product options before adding this product to your cart.", "i18n_unavailable_text": "Sorry, this product is unavailable. Please choose a different combination." }; var wc_single_product_params = { "i18n_required_rating_text": "Please select a rating", "review_rating_required": "yes", "flexslider": { "rtl": false, "animation": "slide", "smoothHeight": true, "directionNav": false, "controlNav": "thumbnails", "slideshow": false, "animationSpeed": 500, "animationLoop": false }, "zoom_enabled": "1", "photoswipe_enabled": "1", "photoswipe_options": { "shareEl": false, "closeOnScroll": false, "history": false, "hideAnimationDuration": 0, "showAnimationDuration": 0 }, "flexslider_enabled": "1" }; var wc_add_to_cart_params = { "ajax_url": "\/wp-admin\/admin-ajax.php", "wc_ajax_url": "\/?wc-ajax=%%endpoint%%", "i18n_view_cart": "View cart", "cart_url": "cart\/", "is_cart": "", "cart_redirect_after_add": "no" }; var woocommerce_params = { "ajax_url": "\/wp-admin\/admin-ajax.php", "wc_ajax_url": "\/?wc-ajax=%%endpoint%%" }; var wc_cart_fragments_params = { "ajax_url": "\/wp-admin\/admin-ajax.php", "wc_ajax_url": "\/?wc-ajax=%%endpoint%%", "fragment_name": "wc_fragments_842f46279d579ec2dde2842d24d5faa4" }; var DAIRY_FARM_STORAGE = { "system_message": { "message": "", "status": "", "header": "" }, "theme_font": "Average", "theme_color": "#231f20", "theme_bg_color": "#ffffff", "strings": { "ajax_error": "Invalid server answer", "bookmark_add": "Add the bookmark", "bookmark_added": "Current page has been successfully added to the bookmarks. You can see it in the right panel on the tab 'Bookmarks'", "bookmark_del": "Delete this bookmark", "bookmark_title": "Enter bookmark title", "bookmark_exists": "Current page already exists in the bookmarks list", "search_error": "Error occurs in AJAX search! Please, type your query and press search icon for the traditional search way.", "email_confirm": "On the e-mail address "%s" we sent a confirmation email. Please, open it and click on the link.", "reviews_vote": "Thanks for your vote! New average rating is:", "reviews_error": "Error saving your vote! Please, try again later.", "error_like": "Error saving your like! Please, try again later.", "error_global": "Global error text", "name_empty": "The name can't be empty", "name_long": "Too long name", "email_empty": "Too short (or empty) email address", "email_long": "Too long email address", "email_not_valid": "Invalid email address", "subject_empty": "The subject can't be empty", "subject_long": "Too long subject", "text_empty": "The message text can't be empty", "text_long": "Too long message text", "send_complete": "Send message complete!", "send_error": "Transmit failed!", "geocode_error": "Geocode was not successful for the following reason:", "googlemap_not_avail": "Google map API not available!", "editor_save_success": "Post content saved!", "editor_save_error": "Error saving post data!", "editor_delete_post": "You really want to delete the current post?", "editor_delete_post_header": "Delete post", "editor_delete_success": "Post deleted!", "editor_delete_error": "Error deleting post!", "editor_caption_cancel": "Cancel", "editor_caption_close": "Close" }, "ajax_url": "http:\/\/dairy-farm.ancorathemes.com\/wp-admin\/admin-ajax.php", "ajax_nonce": "792b2ed5ab", "site_url": "http:\/\/dairy-farm.ancorathemes.com", "site_protocol": "http", "vc_edit_mode": "", "accent1_color": "#fec321", "accent1_hover": "#d7a92b", "slider_height": "100", "user_logged_in": "", "toc_menu": "float", "toc_menu_home": "1", "toc_menu_top": "1", "menu_fixed": "1", "menu_mobile": "1024", "menu_hover": "fade", "button_hover": "default", "input_hover": "default", "demo_time": "0", "media_elements_enabled": "1", "ajax_search_enabled": "1", "ajax_search_min_length": "3", "ajax_search_delay": "200", "css_animation": "1", "menu_animation_in": "fadeInUp", "menu_animation_out": "fadeOutDown", "popup_engine": "pretty", "email_mask": "^([a-zA-Z0-9_\\-]+\\.)*[a-zA-Z0-9_\\-]+@[a-z0-9_\\-]+(\\.[a-z0-9_\\-]+)*\\.[a-z]{2,6}$", "contacts_maxlength": "1000", "comments_maxlength": "1000", "remember_visitors_settings": "", "admin_mode": "", "isotope_resize_delta": "0.3", "error_message_box": null, "viewmore_busy": "", "video_resize_inited": "", "top_panel_height": "0" }; var mejsL10n = { "language": "en-US", "strings": { "Close": "Close", "Fullscreen": "Fullscreen", "Turn off Fullscreen": "Turn off Fullscreen", "Go Fullscreen": "Go Fullscreen", "Download File": "Download File", "Download Video": "Download Video", "Play": "Play", "Pause": "Pause", "Captions\/Subtitles": "Captions\/Subtitles", "None": "None", "Time Slider": "Time Slider", "Skip back %1 seconds": "Skip back %1 seconds", "Video Player": "Video Player", "Audio Player": "Audio Player", "Volume Slider": "Volume Slider", "Mute Toggle": "Mute Toggle", "Unmute": "Unmute", "Mute": "Mute", "Use Up\/Down Arrow keys to increase or decrease volume.": "Use Up\/Down Arrow keys to increase or decrease volume.", "Use Left\/Right Arrow keys to advance one second, Up\/Down arrows to advance ten seconds.": "Use Left\/Right Arrow keys to advance one second, Up\/Down arrows to advance ten seconds." } }; var _wpmejsSettings = { "pluginPath": "\/wp-includes\/js\/mediaelement\/" }; window._wpemojiSettings = { "baseUrl": "https:\/\/s.w.org\/images\/core\/emoji\/2.3\/72x72\/", "ext": ".png", "svgUrl": "https:\/\/s.w.org\/images\/core\/emoji\/2.3\/svg\/", "svgExt": ".svg", "source": { "concatemoji": "js/vendor/emoji-release.min.js" } }; window.yumprintRecipePlugin = "http://dairy-farm.ancorathemes.com/wp-content/plugins/recipe-card"; window.yumprintRecipeAjaxUrl = "http://dairy-farm.ancorathemes.com/wp-admin/admin-ajax.php"; window.yumprintRecipeUrl = "http://dairy-farm.ancorathemes.com/"; ! function(a, b, c) { "use strict"; function d(a) { var b, c, d, e, f = String.fromCharCode; if (!k || !k.fillText) return !1; switch (k.clearRect(0, 0, j.width, j.height), k.textBaseline = "top", k.font = "600 32px Arial", a) { case "flag": return k.fillText(f(55356, 56826, 55356, 56819), 0, 0), b = j.toDataURL(), k.clearRect(0, 0, j.width, j.height), k.fillText(f(55356, 56826, 8203, 55356, 56819), 0, 0), c = j.toDataURL(), b !== c && (k.clearRect(0, 0, j.width, j.height), k.fillText(f(55356, 57332, 56128, 56423, 56128, 56418, 56128, 56421, 56128, 56430, 56128, 56423, 56128, 56447), 0, 0), b = j.toDataURL(), k.clearRect(0, 0, j.width, j.height), k.fillText(f(55356, 57332, 8203, 56128, 56423, 8203, 56128, 56418, 8203, 56128, 56421, 8203, 56128, 56430, 8203, 56128, 56423, 8203, 56128, 56447), 0, 0), c = j.toDataURL(), b !== c); case "emoji4": return k.fillText(f(55358, 56794, 8205, 9794, 65039), 0, 0), d = j.toDataURL(), k.clearRect(0, 0, j.width, j.height), k.fillText(f(55358, 56794, 8203, 9794, 65039), 0, 0), e = j.toDataURL(), d !== e } return !1 } function e(a) { var c = b.createElement("script"); c.src = a, c.defer = c.type = "text/javascript", b.getElementsByTagName("head")[0].appendChild(c) } var f, g, h, i, j = b.createElement("canvas"), k = j.getContext && j.getContext("2d"); for (i = Array("flag", "emoji4"), c.supports = { everything: !0, everythingExceptFlag: !0 }, h = 0; h < i.length; h++) c.supports[i[h]] = d(i[h]), c.supports.everything = c.supports.everything && c.supports[i[h]], "flag" !== i[h] && (c.supports.everythingExceptFlag = c.supports.everythingExceptFlag && c.supports[i[h]]); c.supports.everythingExceptFlag = c.supports.everythingExceptFlag && !c.supports.flag, c.DOMReady = !1, c.readyCallback = function() { c.DOMReady = !0 }, c.supports.everything || (g = function() { c.readyCallback() }, b.addEventListener ? (b.addEventListener("DOMContentLoaded", g, !1), a.addEventListener("load", g, !1)) : (a.attachEvent("onload", g), b.attachEvent("onreadystatechange", function() { "complete" === b.readyState && c.readyCallback() })), f = c.source || {}, f.concatemoji ? e(f.concatemoji) : f.wpemoji && f.twemoji && (e(f.twemoji), e(f.wpemoji))) }(window, document, window._wpemojiSettings); /////////////////////////////////// jQuery(document).ready(function() { "use strict"; if (jQuery(".slider_engine_revo").length > 0) initRev(); if (jQuery(".esg-grid").length > 0) initEsg(); }); /////////////////////////////////// function initEsg() { "use strict"; function eggbfc(winw, resultoption) { var lasttop = winw, lastbottom = 0, smallest = 9999, largest = 0, samount = 0, lamoung = 0, lastamount = 0, resultid = 0, resultidb = 0, responsiveEntries = [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 960, amount: 3, mmheight: 0 }, { width: 778, amount: 3, mmheight: 0 }, { width: 640, amount: 3, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }]; if (responsiveEntries != undefined && responsiveEntries.length > 0) jQuery.each(responsiveEntries, function(index, obj) { var curw = obj.width != undefined ? obj.width : 0, cura = obj.amount != undefined ? obj.amount : 0; if (smallest > curw) { smallest = curw; samount = cura; resultidb = index; } if (largest < curw) { largest = curw; lamount = cura; } if (curw > lastbottom && curw <= lasttop) { lastbottom = curw; lastamount = cura; resultid = index; } }); if (smallest > winw) { lastamount = samount; resultid = resultidb; } var obj = new Object; obj.index = resultid; obj.column = lastamount; if (resultoption == "id") return obj; else return lastamount; } if ("cobbles" == "even") { var coh = 0, container = jQuery("#esg-grid-3-1"); var cwidth = container.width(), ar = "4:3", gbfc = eggbfc(jQuery(window).width(), "id"), row = 3; ar = ar.split(":"); aratio = parseInt(ar[0], 0) / parseInt(ar[1], 0); coh = cwidth / aratio; coh = coh / gbfc.column * row; var ul = container.find("ul").first(); ul.css({ display: "block", height: coh + "px" }); } var essapi_3; jQuery(document).ready(function() { essapi_3 = jQuery("#esg-grid-3-1").tpessential({ gridID: 3, layout: "cobbles", forceFullWidth: "off", lazyLoad: "off", row: 3, loadMoreAjaxToken: "e25cbd3b20", loadMoreAjaxUrl: "http://dairy-farm.ancorathemes.com/wp-admin/admin-ajax.php", loadMoreAjaxAction: "Essential_Grid_Front_request_ajax", ajaxContentTarget: "ess-grid-ajax-container-", ajaxScrollToOffset: "0", ajaxCloseButton: "off", ajaxContentSliding: "on", ajaxScrollToOnLoad: "on", ajaxCallbackArgument: "off", ajaxNavButton: "off", ajaxCloseType: "type1", ajaxCloseInner: "false", ajaxCloseStyle: "light", ajaxClosePosition: "tr", space: 30, pageAnimation: "fade", paginationScrollToTop: "off", spinner: "spinner0", lightBoxMode: "single", lightboxSpinner: "off", lightBoxFeaturedImg: "off", lightBoxPostTitle: "off", lightBoxPostTitleTag: "h2", animSpeed: 1000, delayBasic: 1, mainhoverdelay: 1, filterType: "single", showDropFilter: "hover", filterGroupClass: "esg-fgc-3", googleFonts: ['Open+Sans:300,400,600,700,800', 'Raleway:100,200,300,400,500,600,700,800,900', 'Droid+Serif:400,700'], aspectratio: "4:3", responsiveEntries: [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 960, amount: 3, mmheight: 0 }, { width: 778, amount: 3, mmheight: 0 }, { width: 640, amount: 3, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }] }); try { jQuery("#esg-grid-3-1 .esgbox").esgbox({ padding: [0, 0, 0, 0], width: "800", height: "600", minWidth: "100", minHeight: "100", maxWidth: "9999", maxHeight: "9999", autoPlay: false, playSpeed: 3000, preload: 3, beforeLoad: function(t) { return essapi_3.eslightboxpost(t); }, afterLoad: function() { if (this.element.hasClass("esgboxhtml5")) { this.type = "html5"; var mp = this.element.data("mp4"), ogv = this.element.data("ogv"), webm = this.element.data("webm"); ratio = this.element.data("ratio"); ratio = ratio === "16:9" ? "56.25%" : "75%" this.content = '
'; }; }, beforeShow: function() { this.title = jQuery(this.element).attr('lgtitle'); if (this.title) { this.title = ""; this.title = '
' + this.title + '
'; } }, afterShow: function() {}, openEffect: 'fade', closeEffect: 'fade', nextEffect: 'fade', prevEffect: 'fade', openSpeed: 'normal', closeSpeed: 'normal', nextSpeed: 'normal', prevSpeed: 'normal', helpers: { overlay: { locked: false } }, helpers: { media: {}, overlay: { locked: false }, title: { type: "" } } }); } catch (e) {} }); function eggbfc(winw, resultoption) { var lasttop = winw, lastbottom = 0, smallest = 9999, largest = 0, samount = 0, lamoung = 0, lastamount = 0, resultid = 0, resultidb = 0, responsiveEntries = [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 960, amount: 3, mmheight: 0 }, { width: 778, amount: 3, mmheight: 0 }, { width: 640, amount: 3, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }]; if (responsiveEntries != undefined && responsiveEntries.length > 0) jQuery.each(responsiveEntries, function(index, obj) { var curw = obj.width != undefined ? obj.width : 0, cura = obj.amount != undefined ? obj.amount : 0; if (smallest > curw) { smallest = curw; samount = cura; resultidb = index; } if (largest < curw) { largest = curw; lamount = cura; } if (curw > lastbottom && curw <= lasttop) { lastbottom = curw; lastamount = cura; resultid = index; } }); if (smallest > winw) { lastamount = samount; resultid = resultidb; } var obj = new Object; obj.index = resultid; obj.column = lastamount; if (resultoption == "id") return obj; else return lastamount; } if ("even" == "even") { var coh = 0, container = jQuery("#esg-grid-1-1"); var cwidth = container.width(), ar = "4:3", gbfc = eggbfc(jQuery(window).width(), "id"), row = 3; var aratio; ar = ar.split(":"); aratio = parseInt(ar[0], 0) / parseInt(ar[1], 0); coh = cwidth / aratio; coh = coh / gbfc.column * row; var ul = container.find("ul").first(); ul.css({ display: "block", height: coh + "px" }); } var essapi_1; jQuery(document).ready(function() { essapi_1 = jQuery("#esg-grid-1-1").tpessential({ gridID: 1, layout: "even", forceFullWidth: "off", lazyLoad: "off", row: 3, loadMoreAjaxToken: "e25cbd3b20", loadMoreAjaxUrl: "http://dairy-farm.ancorathemes.com/wp-admin/admin-ajax.php", loadMoreAjaxAction: "Essential_Grid_Front_request_ajax", ajaxContentTarget: "ess-grid-ajax-container-", ajaxScrollToOffset: "0", ajaxCloseButton: "off", ajaxContentSliding: "on", ajaxScrollToOnLoad: "on", ajaxCallbackArgument: "off", ajaxNavButton: "off", ajaxCloseType: "type1", ajaxCloseInner: "false", ajaxCloseStyle: "light", ajaxClosePosition: "tr", space: 30, pageAnimation: "fade", paginationScrollToTop: "off", spinner: "spinner0", evenGridMasonrySkinPusher: "off", lightBoxMode: "single", lightboxSpinner: "off", lightBoxFeaturedImg: "off", lightBoxPostTitle: "off", lightBoxPostTitleTag: "h2", animSpeed: 1000, delayBasic: 1, mainhoverdelay: 1, filterType: "single", showDropFilter: "hover", filterGroupClass: "esg-fgc-1", googleFonts: ['Open+Sans:300,400,600,700,800', 'Raleway:100,200,300,400,500,600,700,800,900', 'Droid+Serif:400,700'], aspectratio: "4:3", responsiveEntries: [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 960, amount: 3, mmheight: 0 }, { width: 778, amount: 3, mmheight: 0 }, { width: 640, amount: 3, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }] }); try { jQuery("#esg-grid-1-1 .esgbox").esgbox({ padding: [0, 0, 0, 0], width: "800", height: "600", minWidth: "100", minHeight: "100", maxWidth: "9999", maxHeight: "9999", autoPlay: false, playSpeed: 3000, preload: 3, beforeLoad: function(t) { return essapi_1.eslightboxpost(t); }, afterLoad: function() { if (this.element.hasClass("esgboxhtml5")) { this.type = "html5"; var mp = this.element.data("mp4"), ogv = this.element.data("ogv"), webm = this.element.data("webm"); ratio = this.element.data("ratio"); ratio = ratio === "16:9" ? "56.25%" : "75%" this.content = '
'; }; }, beforeShow: function() { this.title = jQuery(this.element).attr('lgtitle'); if (this.title) { this.title = ""; this.title = '
' + this.title + '
'; } }, afterShow: function() {}, openEffect: 'fade', closeEffect: 'fade', nextEffect: 'fade', prevEffect: 'fade', openSpeed: 'normal', closeSpeed: 'normal', nextSpeed: 'normal', prevSpeed: 'normal', helpers: { overlay: { locked: false } }, helpers: { media: {}, overlay: { locked: false }, title: { type: "" } } }); } catch (e) {} }); function eggbfc(winw, resultoption) { var lasttop = winw, lastbottom = 0, smallest = 9999, largest = 0, samount = 0, lamoung = 0, lastamount = 0, resultid = 0, resultidb = 0, responsiveEntries = [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 960, amount: 3, mmheight: 0 }, { width: 778, amount: 3, mmheight: 0 }, { width: 640, amount: 3, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }]; if (responsiveEntries != undefined && responsiveEntries.length > 0) jQuery.each(responsiveEntries, function(index, obj) { var curw = obj.width != undefined ? obj.width : 0, cura = obj.amount != undefined ? obj.amount : 0; var lamount; if (smallest > curw) { smallest = curw; samount = cura; resultidb = index; } if (largest < curw) { largest = curw; lamount = cura; } if (curw > lastbottom && curw <= lasttop) { lastbottom = curw; lastamount = cura; resultid = index; } }); if (smallest > winw) { lastamount = samount; resultid = resultidb; } var obj = new Object; obj.index = resultid; obj.column = lastamount; if (resultoption == "id") return obj; else return lastamount; } if ("masonry" == "even") { var coh = 0, container = jQuery("#esg-grid-2-1"); var cwidth = container.width(), ar = "4:3", gbfc = eggbfc(jQuery(window).width(), "id"), row = 3; ar = ar.split(":"); aratio = parseInt(ar[0], 0) / parseInt(ar[1], 0); coh = cwidth / aratio; coh = coh / gbfc.column * row; var ul = container.find("ul").first(); ul.css({ display: "block", height: coh + "px" }); } var essapi_2; jQuery(document).ready(function() { essapi_2 = jQuery("#esg-grid-2-1").tpessential({ gridID: 2, layout: "masonry", forceFullWidth: "off", lazyLoad: "off", row: 3, loadMoreAjaxToken: "e25cbd3b20", loadMoreAjaxUrl: "http://dairy-farm.ancorathemes.com/wp-admin/admin-ajax.php", loadMoreAjaxAction: "Essential_Grid_Front_request_ajax", ajaxContentTarget: "ess-grid-ajax-container-", ajaxScrollToOffset: "0", ajaxCloseButton: "off", ajaxContentSliding: "on", ajaxScrollToOnLoad: "on", ajaxCallbackArgument: "off", ajaxNavButton: "off", ajaxCloseType: "type1", ajaxCloseInner: "false", ajaxCloseStyle: "light", ajaxClosePosition: "tr", space: 30, pageAnimation: "fade", paginationScrollToTop: "off", spinner: "spinner0", lightBoxMode: "single", lightboxSpinner: "off", lightBoxFeaturedImg: "off", lightBoxPostTitle: "off", lightBoxPostTitleTag: "h2", animSpeed: 1000, delayBasic: 1, mainhoverdelay: 1, filterType: "single", showDropFilter: "hover", filterGroupClass: "esg-fgc-2", googleFonts: ['Open+Sans:300,400,600,700,800', 'Raleway:100,200,300,400,500,600,700,800,900', 'Droid+Serif:400,700'], responsiveEntries: [{ width: 1400, amount: 3, mmheight: 0 }, { width: 1170, amount: 3, mmheight: 0 }, { width: 1024, amount: 3, mmheight: 0 }, { width: 960, amount: 3, mmheight: 0 }, { width: 778, amount: 3, mmheight: 0 }, { width: 640, amount: 3, mmheight: 0 }, { width: 480, amount: 1, mmheight: 0 }] }); try { jQuery("#esg-grid-2-1 .esgbox").esgbox({ padding: [0, 0, 0, 0], width: "800", height: "600", minWidth: "100", minHeight: "100", maxWidth: "9999", maxHeight: "9999", autoPlay: false, playSpeed: 3000, preload: 3, beforeLoad: function(t) { return essapi_2.eslightboxpost(t); }, afterLoad: function() { if (this.element.hasClass("esgboxhtml5")) { this.type = "html5"; var mp = this.element.data("mp4"), ogv = this.element.data("ogv"), webm = this.element.data("webm"); ratio = this.element.data("ratio"); ratio = ratio === "16:9" ? "56.25%" : "75%" this.content = '
'; }; }, beforeShow: function() { this.title = jQuery(this.element).attr('lgtitle'); if (this.title) { this.title = ""; this.title = '
' + this.title + '
'; } }, afterShow: function() {}, openEffect: 'fade', closeEffect: 'fade', nextEffect: 'fade', prevEffect: 'fade', openSpeed: 'normal', closeSpeed: 'normal', nextSpeed: 'normal', prevSpeed: 'normal', helpers: { overlay: { locked: false } }, helpers: { media: {}, overlay: { locked: false }, title: { type: "" } } }); } catch (e) {} }); } /////////////////////////////////// function initRev() { "use strict"; var ajaxRevslider; jQuery(document).ready(function() { ajaxRevslider = function(obj) { var content = ""; data = {}; data.action = 'revslider_ajax_call_front'; data.client_action = 'get_slider_html'; data.token = '1d182d641e'; data.type = obj.type; data.id = obj.id; data.aspectratio = obj.aspectratio; // SYNC AJAX REQUEST jQuery.ajax({ type: "post", url: "http://dairy-farm.ancorathemes.com/wp-admin/admin-ajax.php", dataType: 'json', data: data, async: false, success: function(ret, textStatus, XMLHttpRequest) { if (ret.success == true) content = ret.data; }, error: function(e) { console.log(e); } }); // FIRST RETURN THE CONTENT WHEN IT IS LOADED !! return content; }; // CUSTOM AJAX FUNCTION TO REMOVE THE SLIDER var ajaxRemoveRevslider = function(obj) { return jQuery(obj.selector + " .rev_slider").revkill(); }; // EXTEND THE AJAX CONTENT LOADING TYPES WITH TYPE AND FUNCTION var extendessential = setInterval(function() { if (jQuery.fn.tpessential != undefined) { clearInterval(extendessential); if (typeof(jQuery.fn.tpessential.defaults) !== 'undefined') { jQuery.fn.tpessential.defaults.ajaxTypes.push({ type: "revslider", func: ajaxRevslider, killfunc: ajaxRemoveRevslider, openAnimationSpeed: 0.3 }); } } }, 30); }); var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss = ""; if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = ""; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss = ".tp-caption.BigWhiteText,.BigWhiteText{color:rgba(255,255,255,1.00);font-size:108px;line-height:150px;font-weight:700;font-style:normal;font-family:Libre Baskerville;padding:0px 0px 0px 0px;text-decoration:none;text-align:left;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0px 0px 0px 0px}.tp-caption.SmallWhiteText,.SmallWhiteText{color:rgba(255,255,255,1.00);font-size:40px;line-height:50px;font-weight:400;font-style:normal;font-family:Oswald;padding:0px 0px 0px 0px;text-decoration:none;text-align:left;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0px 0px 0px 0px}.tp-caption.ButtonText,.ButtonText{color:rgba(35,31,32,1.00);font-size:15px;line-height:23px;font-weight:400;font-style:normal;font-family:Oswald;padding:12px 35px 12px 35px;text-decoration:none;text-align:left;background-color:rgba(254,195,33,1.00);border-color:rgba(254,195,33,1.00);border-style:solid;border-width:2px;border-radius:0px 0px 0px 0px}.tp-caption.ButtonText:hover,.ButtonText:hover{color:rgba(255,255,255,1.00);text-decoration:none;background-color:rgba(255,255,255,0);border-color:rgba(255,255,255,1.00);border-style:solid;border-width:2px;border-radius:0px 0px 0px 0px;cursor:pointer}"; if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = ""; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } var setREVStartSize = function() { try { var e = new Object, i = jQuery(window).width(), t = 9999, r = 0, n = 0, l = 0, f = 0, s = 0, h = 0; e.c = jQuery('#rev_slider_1_1'); e.gridwidth = [1240]; e.gridheight = [762]; e.sliderLayout = "auto"; if (e.responsiveLevels && (jQuery.each(e.responsiveLevels, function(e, f) { f > i && (t = r = f, l = e), i > f && f > r && (r = f, n = e) }), t > r && (l = n)), f = e.gridheight[l] || e.gridheight[0] || e.gridheight, s = e.gridwidth[l] || e.gridwidth[0] || e.gridwidth, h = i / s, h = h > 1 ? 1 : h, f = Math.round(h * f), "fullscreen" == e.sliderLayout) { var u = (e.c.width(), jQuery(window).height()); if (void 0 != e.fullScreenOffsetContainer) { var c = e.fullScreenOffsetContainer.split(","); if (c) jQuery.each(c, function(e, i) { u = jQuery(i).length > 0 ? u - jQuery(i).outerHeight(!0) : u }), e.fullScreenOffset.split("%").length > 1 && void 0 != e.fullScreenOffset && e.fullScreenOffset.length > 0 ? u -= jQuery(window).height() * parseInt(e.fullScreenOffset, 0) / 100 : void 0 != e.fullScreenOffset && e.fullScreenOffset.length > 0 && (u -= parseInt(e.fullScreenOffset, 0)) } f = u } else void 0 != e.minHeight && f < e.minHeight && (f = e.minHeight); e.c.closest(".rev_slider_wrapper").css({ height: f }) } catch (d) { console.log("Failure at Presize of Slider:" + d) } }; setREVStartSize(); var tpj = jQuery; var revapi1; tpj(document).ready(function() { if (tpj("#rev_slider_1_1").revolution == undefined) { revslider_showDoubleJqueryError("#rev_slider_1_1"); } else { revapi1 = tpj("#rev_slider_1_1").show().revolution({ sliderType: "standard", jsFileLocation: "//dairy-farm.ancorathemes.com/wp-content/plugins/revslider/public/assets/js/", sliderLayout: "auto", dottedOverlay: "none", delay: 9000, navigation: { keyboardNavigation: "off", keyboard_direction: "horizontal", mouseScrollNavigation: "off", mouseScrollReverse: "default", onHoverStop: "off", touch: { touchenabled: "on", swipe_threshold: 75, swipe_min_touches: 1, swipe_direction: "horizontal", drag_block_vertical: false }, bullets: { enable: true, hide_onmobile: false, style: "custom", hide_onleave: false, direction: "horizontal", h_align: "center", v_align: "bottom", h_offset: 0, v_offset: 30, space: 10, tmp: '' } }, visibilityLevels: [1240, 1024, 778, 480], gridwidth: 1240, gridheight: 762, lazyType: "none", shadow: 0, spinner: "spinner0", stopLoop: "off", stopAfterLoops: -1, stopAtSlide: -1, shuffle: "off", autoHeight: "off", disableProgressBar: "on", hideThumbsOnMobile: "off", hideSliderAtLimit: 0, hideCaptionAtLimit: 0, hideAllCaptionAtLilmit: 0, debugMode: false, fallbacks: { simplifyAll: "off", nextSlideOnWindowFocus: "off", disableFocusListener: false, } }); } }); var htmlDivCss = unescape(".custom.tp-bullets%20%7B%0A%7D%0A.custom.tp-bullets%3Abefore%20%7B%0A%09content%3A%22%20%22%3B%0A%09position%3Aabsolute%3B%0A%09width%3A100%25%3B%0A%09height%3A100%25%3B%0A%09background%3Atransparent%3B%0A%09padding%3A10px%3B%0A%09margin-left%3A-10px%3Bmargin-top%3A-10px%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.custom%20.tp-bullet%20%7B%0A%09width%3A12px%3B%0A%09height%3A12px%3B%0A%09position%3Aabsolute%3B%0A%09background%3A%23aaa%3B%0A%20%20%20%20background%3Argba%28125%2C125%2C125%2C0.5%29%3B%0A%09cursor%3A%20pointer%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.custom%20.tp-bullet%3Ahover%2C%0A.custom%20.tp-bullet.selected%20%7B%0A%09background%3Argb%28125%2C125%2C125%29%3B%0A%7D%0A.custom%20.tp-bullet-image%20%7B%0A%7D%0A.custom%20.tp-bullet-title%20%7B%0A%7D%0A%0A"); var htmlDiv = document.getElementById('rs-plugin-settings-inline-css'); if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement('div'); htmlDiv.innerHTML = ''; document.getElementsByTagName('head')[0].appendChild(htmlDiv.childNodes[0]); } var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss = ""; if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = ""; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss = ".tp-caption.BigWhiteText,.BigWhiteText{color:rgba(255,255,255,1.00);font-size:108px;line-height:150px;font-weight:700;font-style:normal;font-family:Libre Baskerville;padding:0px 0px 0px 0px;text-decoration:none;text-align:left;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0px 0px 0px 0px}.tp-caption.SmallWhiteText,.SmallWhiteText{color:rgba(255,255,255,1.00);font-size:40px;line-height:50px;font-weight:400;font-style:normal;font-family:Oswald;padding:0px 0px 0px 0px;text-decoration:none;text-align:left;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0px 0px 0px 0px}.tp-caption.ButtonText,.ButtonText{color:rgba(35,31,32,1.00);font-size:15px;line-height:23px;font-weight:400;font-style:normal;font-family:Oswald;padding:12px 35px 12px 35px;text-decoration:none;text-align:left;background-color:rgba(254,195,33,1.00);border-color:rgba(254,195,33,1.00);border-style:solid;border-width:2px;border-radius:0px 0px 0px 0px}.tp-caption.ButtonText:hover,.ButtonText:hover{color:rgba(255,255,255,1.00);text-decoration:none;background-color:rgba(255,255,255,0);border-color:rgba(255,255,255,1.00);border-style:solid;border-width:2px;border-radius:0px 0px 0px 0px;cursor:pointer}"; if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = ""; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } var setREVStartSize = function() { try { var e = new Object, i = jQuery(window).width(), t = 9999, r = 0, n = 0, l = 0, f = 0, s = 0, h = 0; e.c = jQuery('#rev_slider_1_1'); e.gridwidth = [1240]; e.gridheight = [762]; e.sliderLayout = "auto"; if (e.responsiveLevels && (jQuery.each(e.responsiveLevels, function(e, f) { f > i && (t = r = f, l = e), i > f && f > r && (r = f, n = e) }), t > r && (l = n)), f = e.gridheight[l] || e.gridheight[0] || e.gridheight, s = e.gridwidth[l] || e.gridwidth[0] || e.gridwidth, h = i / s, h = h > 1 ? 1 : h, f = Math.round(h * f), "fullscreen" == e.sliderLayout) { var u = (e.c.width(), jQuery(window).height()); if (void 0 != e.fullScreenOffsetContainer) { var c = e.fullScreenOffsetContainer.split(","); if (c) jQuery.each(c, function(e, i) { u = jQuery(i).length > 0 ? u - jQuery(i).outerHeight(!0) : u }), e.fullScreenOffset.split("%").length > 1 && void 0 != e.fullScreenOffset && e.fullScreenOffset.length > 0 ? u -= jQuery(window).height() * parseInt(e.fullScreenOffset, 0) / 100 : void 0 != e.fullScreenOffset && e.fullScreenOffset.length > 0 && (u -= parseInt(e.fullScreenOffset, 0)) } f = u } else void 0 != e.minHeight && f < e.minHeight && (f = e.minHeight); e.c.closest(".rev_slider_wrapper").css({ height: f }) } catch (d) { console.log("Failure at Presize of Slider:" + d) } }; setREVStartSize(); var tpj = jQuery; var revapi1; tpj(document).ready(function() { if (tpj("#rev_slider_1_1").revolution == undefined) { revslider_showDoubleJqueryError("#rev_slider_1_1"); } else { revapi1 = tpj("#rev_slider_1_1").show().revolution({ sliderType: "standard", jsFileLocation: "//dairy-farm.ancorathemes.com/wp-content/plugins/revslider/public/assets/js/", sliderLayout: "auto", dottedOverlay: "none", delay: 9000, navigation: { keyboardNavigation: "off", keyboard_direction: "horizontal", mouseScrollNavigation: "off", mouseScrollReverse: "default", onHoverStop: "off", touch: { touchenabled: "on", swipe_threshold: 75, swipe_min_touches: 1, swipe_direction: "horizontal", drag_block_vertical: false }, bullets: { enable: true, hide_onmobile: false, style: "custom", hide_onleave: false, direction: "horizontal", h_align: "center", v_align: "bottom", h_offset: 0, v_offset: 30, space: 10, tmp: '' } }, visibilityLevels: [1240, 1024, 778, 480], gridwidth: 1240, gridheight: 762, lazyType: "none", shadow: 0, spinner: "spinner0", stopLoop: "off", stopAfterLoops: -1, stopAtSlide: -1, shuffle: "off", autoHeight: "off", disableProgressBar: "on", hideThumbsOnMobile: "off", hideSliderAtLimit: 0, hideCaptionAtLimit: 0, hideAllCaptionAtLilmit: 0, debugMode: false, fallbacks: { simplifyAll: "off", nextSlideOnWindowFocus: "off", disableFocusListener: false, } }); } }); /*ready*/ var htmlDivCss = unescape(".custom.tp-bullets%20%7B%0A%7D%0A.custom.tp-bullets%3Abefore%20%7B%0A%09content%3A%22%20%22%3B%0A%09position%3Aabsolute%3B%0A%09width%3A100%25%3B%0A%09height%3A100%25%3B%0A%09background%3Atransparent%3B%0A%09padding%3A10px%3B%0A%09margin-left%3A-10px%3Bmargin-top%3A-10px%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.custom%20.tp-bullet%20%7B%0A%09width%3A12px%3B%0A%09height%3A12px%3B%0A%09position%3Aabsolute%3B%0A%09background%3A%23aaa%3B%0A%20%20%20%20background%3Argba%28125%2C125%2C125%2C0.5%29%3B%0A%09cursor%3A%20pointer%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.custom%20.tp-bullet%3Ahover%2C%0A.custom%20.tp-bullet.selected%20%7B%0A%09background%3Argb%28125%2C125%2C125%29%3B%0A%7D%0A.custom%20.tp-bullet-image%20%7B%0A%7D%0A.custom%20.tp-bullet-title%20%7B%0A%7D%0A%0A"); var htmlDiv = document.getElementById('rs-plugin-settings-inline-css'); if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement('div'); htmlDiv.innerHTML = ''; document.getElementsByTagName('head')[0].appendChild(htmlDiv.childNodes[0]); } var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss = ""; if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = ""; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss = ".tp-caption.BigWhiteText,.BigWhiteText{color:rgba(255,255,255,1.00);font-size:108px;line-height:150px;font-weight:700;font-style:normal;font-family:Libre Baskerville;padding:0px 0px 0px 0px;text-decoration:none;text-align:left;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0px 0px 0px 0px}.tp-caption.SmallWhiteText,.SmallWhiteText{color:rgba(255,255,255,1.00);font-size:40px;line-height:50px;font-weight:400;font-style:normal;font-family:Oswald;padding:0px 0px 0px 0px;text-decoration:none;text-align:left;background-color:transparent;border-color:transparent;border-style:none;border-width:0px;border-radius:0px 0px 0px 0px}.tp-caption.ButtonText,.ButtonText{color:rgba(35,31,32,1.00);font-size:15px;line-height:23px;font-weight:400;font-style:normal;font-family:Oswald;padding:12px 35px 12px 35px;text-decoration:none;text-align:left;background-color:rgba(254,195,33,1.00);border-color:rgba(254,195,33,1.00);border-style:solid;border-width:2px;border-radius:0px 0px 0px 0px}.tp-caption.ButtonText:hover,.ButtonText:hover{color:rgba(255,255,255,1.00);text-decoration:none;background-color:rgba(255,255,255,0);border-color:rgba(255,255,255,1.00);border-style:solid;border-width:2px;border-radius:0px 0px 0px 0px;cursor:pointer}"; if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement("div"); htmlDiv.innerHTML = ""; document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]); } var setREVStartSize = function() { try { var e = new Object, i = jQuery(window).width(), t = 9999, r = 0, n = 0, l = 0, f = 0, s = 0, h = 0; e.c = jQuery('#rev_slider_1_1'); e.gridwidth = [1240]; e.gridheight = [762]; e.sliderLayout = "auto"; if (e.responsiveLevels && (jQuery.each(e.responsiveLevels, function(e, f) { f > i && (t = r = f, l = e), i > f && f > r && (r = f, n = e) }), t > r && (l = n)), f = e.gridheight[l] || e.gridheight[0] || e.gridheight, s = e.gridwidth[l] || e.gridwidth[0] || e.gridwidth, h = i / s, h = h > 1 ? 1 : h, f = Math.round(h * f), "fullscreen" == e.sliderLayout) { var u = (e.c.width(), jQuery(window).height()); if (void 0 != e.fullScreenOffsetContainer) { var c = e.fullScreenOffsetContainer.split(","); if (c) jQuery.each(c, function(e, i) { u = jQuery(i).length > 0 ? u - jQuery(i).outerHeight(!0) : u }), e.fullScreenOffset.split("%").length > 1 && void 0 != e.fullScreenOffset && e.fullScreenOffset.length > 0 ? u -= jQuery(window).height() * parseInt(e.fullScreenOffset, 0) / 100 : void 0 != e.fullScreenOffset && e.fullScreenOffset.length > 0 && (u -= parseInt(e.fullScreenOffset, 0)) } f = u } else void 0 != e.minHeight && f < e.minHeight && (f = e.minHeight); e.c.closest(".rev_slider_wrapper").css({ height: f }) } catch (d) { console.log("Failure at Presize of Slider:" + d) } }; setREVStartSize(); var tpj = jQuery; var revapi1; tpj(document).ready(function() { if (tpj("#rev_slider_1_1").revolution == undefined) { revslider_showDoubleJqueryError("#rev_slider_1_1"); } else { revapi1 = tpj("#rev_slider_1_1").show().revolution({ sliderType: "standard", jsFileLocation: "//dairy-farm.ancorathemes.com/wp-content/plugins/revslider/public/assets/js/", sliderLayout: "auto", dottedOverlay: "none", delay: 9000, navigation: { keyboardNavigation: "off", keyboard_direction: "horizontal", mouseScrollNavigation: "off", mouseScrollReverse: "default", onHoverStop: "off", touch: { touchenabled: "on", swipe_threshold: 75, swipe_min_touches: 1, swipe_direction: "horizontal", drag_block_vertical: false }, bullets: { enable: true, hide_onmobile: false, style: "custom", hide_onleave: false, direction: "horizontal", h_align: "center", v_align: "bottom", h_offset: 0, v_offset: 30, space: 10, tmp: '' } }, visibilityLevels: [1240, 1024, 778, 480], gridwidth: 1240, gridheight: 762, lazyType: "none", shadow: 0, spinner: "spinner0", stopLoop: "off", stopAfterLoops: -1, stopAtSlide: -1, shuffle: "off", autoHeight: "off", disableProgressBar: "on", hideThumbsOnMobile: "off", hideSliderAtLimit: 0, hideCaptionAtLimit: 0, hideAllCaptionAtLilmit: 0, debugMode: false, fallbacks: { simplifyAll: "off", nextSlideOnWindowFocus: "off", disableFocusListener: false, } }); } }); /*ready*/ var htmlDivCss = unescape(".custom.tp-bullets%20%7B%0A%7D%0A.custom.tp-bullets%3Abefore%20%7B%0A%09content%3A%22%20%22%3B%0A%09position%3Aabsolute%3B%0A%09width%3A100%25%3B%0A%09height%3A100%25%3B%0A%09background%3Atransparent%3B%0A%09padding%3A10px%3B%0A%09margin-left%3A-10px%3Bmargin-top%3A-10px%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.custom%20.tp-bullet%20%7B%0A%09width%3A12px%3B%0A%09height%3A12px%3B%0A%09position%3Aabsolute%3B%0A%09background%3A%23aaa%3B%0A%20%20%20%20background%3Argba%28125%2C125%2C125%2C0.5%29%3B%0A%09cursor%3A%20pointer%3B%0A%09box-sizing%3Acontent-box%3B%0A%7D%0A.custom%20.tp-bullet%3Ahover%2C%0A.custom%20.tp-bullet.selected%20%7B%0A%09background%3Argb%28125%2C125%2C125%29%3B%0A%7D%0A.custom%20.tp-bullet-image%20%7B%0A%7D%0A.custom%20.tp-bullet-title%20%7B%0A%7D%0A%0A"); var htmlDiv = document.getElementById('rs-plugin-settings-inline-css'); if (htmlDiv) { htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss; } else { var htmlDiv = document.createElement('div'); htmlDiv.innerHTML = ''; document.getElementsByTagName('head')[0].appendChild(htmlDiv.childNodes[0]); } }