function fcSaveChunkComment(id) { if ($("#fcChunkComment_"+id).val() != "") { $.ajax({ type:"POST", data: { fcExternalAction : "fcSaveChunkComment", fcChunkSelected : id, fcChunkComment : $("#fcChunkComment_"+id).val() }, url:"https://www.feedcowboy.com/fc.input.php", success: function(data) { if (fcGetResponseStatus(data) == 1) { fcNotify(fcGetResponseMessage(data)); fcHideChunkOverlay(id); $(".fcHideAfterSuccess").hide(); } else { fcNotify(fcGetResponseMessage(data)); } } }); } } function fcToggleSM(type) { tileStep = 0; var numOfDeactivated = 0; $(".triggerSome").each(function(index) { if ($(this).hasClass("deactivated")) {numOfDeactivated++;} }); if (numOfDeactivated < 1) { $(".triggerSome").addClass("deactivated"); $(".fcSMSelector_"+type).removeClass("deactivated"); } else { if ($(".fcSMSelector_"+type).hasClass("deactivated")) { $(".fcSMSelector_"+type).removeClass("deactivated"); } else { $(".fcSMSelector_"+type).addClass("deactivated"); } } fcSMedias = ""; $(".triggerSome").each(function(index) { if (!$(this).hasClass("deactivated")) { fcSMedias += $(this).attr("fc_selector")+","; } }); $("#fcTiles").html(""); fcLoadTiles("fcTiles"); } function fcSearchEmbed() { $("#fcTiles").html(""); fcLoadTiles("fcTiles", $("#fcSearchInput").val()); } function fcHashtagEmbed() { $("#fcTiles").html(""); fcLoadTiles("fcTiles", undefined, $("#fcHashtag").val()); } function fcOpenChunk(id, url) { if ((/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window!=window.top) && url != undefined) { window.open(url); } else { $.ajax({ type:"POST", data: { fcExternalAction : "fcGetOverlay", fcOverlayID : "fcChunkView", fcChunkSelected : id }, url:"https://www.feedcowboy.com/fc.output.php", success: function(data) { $("body").css("overflow-y", "hidden"); $("#fcOverlay").html(data).fadeIn(300); } }); } } function fcShowChunkShare(id) { $(".fcChunkOverlay").hide(); $.ajax({ type:"POST", data: { fcExternalAction : "fcGetChunkOverlay", fcChunkSelected : id, fcChunkOverlayID : "fcChunkShare", }, url:"https://www.feedcowboy.com/fc.output.php", success: function(data) { $("#fcChunk_"+id+" .fcChunkOverlay").html(data).fadeIn(300); } }); } function fcShowChunkComment(id) { $(".fcChunkOverlay").hide(); $.ajax({ type:"POST", data: { fcExternalAction : "fcGetChunkOverlay", fcChunkSelected : id, fcChunkOverlayID : "fcChunkComment", }, url:"https://www.feedcowboy.com/fc.output.php", success: function(data) { $("#fcChunk_"+id+" .fcChunkOverlay").html(data).fadeIn(300); } }); } function fcHideChunkOverlay(id) { $("#fcChunk_"+id+" .fcChunkOverlay").fadeOut(300, function() { $("#fcChunk_"+id+" .fcChunkOverlay").html(""); }); }