Create or edit an article for ""
How to add a tile: First, click Add Tile, then for the URL, enter the full https:// destination address. Example: https://www.bigoven.com/recipes/grilled%20chicken/best. Choose a caption for that tile, then click on camera to choose a representative photo.
");
});
});
}
function setImgForMic(mId, url) {
var elem = "heroPhotoM-" + mId;
$.post("/utils/setmicrophoto", { "id": mId, "imgUrl": url }, function(data) {
$("#photoOptions").html(" " + data.ResultCount + " results in My Recipes 1 result in My Recipes");
});
}
function playVid(id) {
$('#vidDlg').modal('show');
if (id == 86) {
$("#vimPlay").attr("src", "https://player.vimeo.com/video/77155080?autoplay=1");
} else if (id == 94) {
$("#vimPlay").attr("src", "https://player.vimeo.com/video/78293545?autoplay=1");
}
}
function stopVid() {
$("#vimPlay").attr("src", "https://player.vimeo.com/video/77155080");
$('#vidDlg').modal('hide');
}
function changeTopPick() {
var recipeId = window.prompt("RecipeID of new top pick for :");
if (recipeId != null)
{
$.post("/utils/toppick", { query: "", recipeId }, function () {
window.location = window.location.href+"?db=E1E0K7Q9B2O5";
});
}
}
$(document).ready(function () {
$("#championState").val();
$("#championState").on("change", function () {
var c = $("#championState").val();
if (c == 3) {
if ($("#champBlurbAdmin").html().length<75) {
alert("Top pick blurb is too short.");
$("#championState").val(1);
return;
}
if (confirmIt("This will publish the Top Pick"))
{
var recipeId = -1;
$.post("/utils/publishtoppick", {
recipeId:recipeId, ourTake: $("#champBlurbAdmin").html(), query: ""
}, function () {
window.location = window.location.href + "?db=377694cdca4d";
});
} else
{
$("#championState").val(1);
}
}
});
$.fn.editable.defaults.mode = 'inline';
$(".editable").editable({ rows: 10, placeholder:"What makes this recipe a great place to start? Why do we like this recipe? Flavors, presentation, ease of preparation, season...", inputClass:"blurb-input" });
$('.bxslider')
.bxSlider({
minSlides: 1,
maxSlides: 6,
slideWidth: 245,
slideMargin: 12,
onSliderLoad: function() {
$(".bxslider").css("visibility", "visible");
$("#search-tiles .bx-viewport").css("width", "100.5%");
}
});
if ($(".bxslider>li").length <= 3) {
$(".bx-prev").hide();
$(".bx-next").hide();
}
$(".tagsinput").bxSlider({
minSlides: 1,
maxSlides: 5,
slideWidth: 100,
slideMargin: 5,
default: true,
preventDefaultSwipeX: false,
preventDefaultSwipeY: true,
pager: false,
onSliderLoad: function () {
$(".tagsinput").css("visibility", "visible");
}
});
var winWidth = $(window).width();
if (winWidth >= 768) {
$('#resultContainer').isotope({
itemSelector: '.recipe-tile-full',
layoutMode: 'cellsByRow',
cellsByRow: {
columnWidth: 220,
rowHeight: 340
}
});
} else
{
$(".recipe-tile-full").css("clear", "both").css("margin-left", "0px");
$(".maxInnerContainer").css("margin-left", "-10px");
}
afterTileDisplay();
});
var myRecipesQueried = false;
function searchMyRecipes() {
$("#all-recipes-button").removeClass("btn-primary").addClass("btn-default");
$("#options-button").remove();
if ((boUser.UserID<-1)) {return;}
if ((boUser==null) || (boUser.UserID <= 0))
{
sweetAlert("Hi cook! Please sign in.", "Sign in or join free, and search your recipes!");
return;
}
$("#search-pill").find("li").removeClass("active");
$("#my-recipes-pill").addClass("active");
$(".pagination").remove();
if (!myRecipesQueried)
{
myRecipesQueried = true;
var queryString = window.location.href.replace("/recipes/search", "/search/myrecipes");
queryString = queryString.replace("Poultry - ", "");
$.get(queryString,
function (data) {
try {
$("#resultContainer").html("");
if ($("#resultContainer").data('isotope')) {
$('#resultContainer').isotope('destroy');
$("#resultContainer").html("");
}
} catch (e) {
}
if (data.Data != null) {
$.each(data.Data,
function(index, value) {
var bOnTrySoon = false;
var bOnFavorites = false;
var bShowRemoveButton = false;
var userType = 0;
var html =
buildRecipeCardV2FromCache
(value,
bOnTrySoon,
bOnFavorites,
bShowRemoveButton,
userType);
$("#resultContainer").append(html);
});
$('#resultContainer').isotope({
itemSelector: '.recipe-tile-full',
layoutMode: 'cellsByRow',
cellsByRow: {
columnWidth: 220,
rowHeight: 420
}
});
afterTileDisplay();
$("#searchingMyRecipes").remove();
myRecipesQueried = false;
$("#foundBox").html("