Follow us on all our social media accounts for on-going support, videos and advice
Join our Good Grief community and find others who are bereaved, connect with their stories and know you are not alone in your grief.
(function () { var timer, abortTimer;
timer = setInterval( function() { if ( window.jQuery ) { clearInterval( timer ); afterContentArrived( window.jQuery ); } }, 67);
abortTimer = setTimeout( function () {
if ( !window.jQuery ) { clearInterval( timer ); console.log('FLOW-FLOW DEBUG MESSAGE: No jQuery on page, please make sure it\'s loaded as jQuery is plugin requirement') } }, 20000)
function afterContentArrived ( $ ) {
"use strict";
var hash = '';
var opts = window.FlowFlowOpts || {"streams":{},"open_in_new":"yep","filter_all":"All","filter_search":"Search","expand_text":"Expand","collapse_text":"Collapse","posted_on":"Posted on","followers":"Followers","following":"Following","posts":"Posts","show_more":"Show more","date_style":"agoStyleDate","dates":{"Yesterday":"Yesterday","s":"s","m":"m","h":"h","ago":"ago","months":["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"]},"lightbox_navigate":"Navigate with arrow keys","view_on":"View on","view_on_site":"View on site","view_all":"View all","comments":"comments","scroll":"Scroll for more","no_comments":"No comments yet.","be_first":"Be the first!","loading":"Loading","server_time":1730868397,"forceHTTPS":"nope","isAdmin":false,"ajaxurl":"https:\/\/www.thegoodgrieftrust.org\/wp-admin\/admin-ajax.php","isLog":false,"plugin_base":"https:\/\/www.thegoodgrieftrust.org\/wp-content\/plugins\/flow-flow","plugin_ver":"4.6.4","domain":"www.thegoodgrieftrust.org","token":""};
var isLS = isLocalStorageNameSupported();
var FF_resource = window.FF_resource || { scriptDeferred: $.Deferred(), styleDeferred: $.Deferred(), scriptLoading: false, styleLoading: false };
if ( !window.FF_resource ) window.FF_resource = FF_resource; if ( !window.FlowFlowOpts ) window.FlowFlowOpts = opts;
var data = { 'shop': 'www.thegoodgrieftrust.org', 'action': 'fetch_posts', 'stream-id': '1', 'disable-cache': '', 'hash': hash, 'page': '0', 'preview': '0', 'token': '' };
console.log( data )
var isMobile = /android|blackBerry|iphone|ipad|ipod|opera mini|iemobile/i.test( navigator.userAgent );
var streamOpts = {"name":"TGGT","cloud":"nope","mod":"nope","order":"smartCompare","posts":"30","page-posts":"15","cache":"yep","cache_lifetime":"10","gallery":"yep","gallery-type":"classic","private":"nope","hide-on-desktop":"nope","hide-on-mobile":"nope","max-res":"nope","show-only-media-posts":"nope","titles":"nope","hidemeta":"nope","hidetext":"nope","headingcolor":"rgb(59, 61, 64)","subheadingcolor":"rgb(114, 112, 114)","hhalign":"center","bgcolor":"rgb(240, 240, 240)","filter":"yep","filtercolor":"rgb(205, 205, 205)","mobileslider":"nope","viewportin":"yep","width":"260","margin":"20","layout":"masonry","theme":"classic","gc-style":"style-1","upic-pos":"timestamp","upic-style":"round","bradius":"15","icon-style":"label1","cardcolor":"rgb(255, 255, 255)","namecolor":"rgb(59, 61, 64)","textcolor":"rgb(131, 141, 143)","linkscolor":"rgb(94, 159, 202)","restcolor":"rgb(131, 141, 143)","shadow":"rgba(0, 0, 0, 0.05)","bcolor":"rgba(240, 237, 231, 0.4)","talign":"left","icons-style":"outline","cards-num":"3","scrolltop":"yep","c-desktop":"5","c-laptop":"4","c-tablet-l":"3","c-tablet-p":"2","c-smart-l":"2","c-smart-p":"1","s-desktop":"15","s-laptop":"15","s-tablet-l":"10","s-tablet-p":"10","s-smart-l":"15","s-smart-p":"15","m-c-desktop":"5","m-c-laptop":"4","m-c-tablet-l":"3","m-c-tablet-p":"2","m-c-smart-l":"2","m-c-smart-p":"1","m-s-desktop":"15","m-s-laptop":"15","m-s-tablet-l":"10","m-s-tablet-p":"10","m-s-smart-l":"15","m-s-smart-p":"15","j-h-desktop":"260","j-h-laptop":"240","j-h-tablet-l":"220","j-h-tablet-p":"200","j-h-smart-l":"180","j-h-smart-p":"160","j-s-desktop":"0","j-s-laptop":"0","j-s-tablet-l":"0","j-s-tablet-p":"0","j-s-smart-l":"0","j-s-smart-p":"0","c-r-desktop":"2","c-r-laptop":"2","c-r-tablet-l":"2","c-r-tablet-p":"2","c-r-smart-l":"1","c-r-smart-p":"1","c-c-desktop":"5","c-c-laptop":"4","c-c-tablet-l":"3","c-c-tablet-p":"3","c-c-smart-l":"3","c-c-smart-p":"3","c-s-desktop":"0","c-s-laptop":"0","c-s-tablet-l":"0","c-s-tablet-p":"0","c-s-smart-l":"0","c-s-smart-p":"0","c-arrows-always":"yep","c-arrows-mob":"nope","c-dots":"yep","c-dots-mob":"nope","wallvm":"20","wallhm":"0","wallcomments":"yep","g-ratio-w":"1","g-ratio-h":"2","g-ratio-img":"1\/2","g-overlay":"nope","m-overlay":"nope","template":["image","header","text","meta"],"tv":"nope","tv-int":"5","big":"nope","id":"1","status":"1","last_changes":1692214945,"feeds":[],"preview":false}; streamOpts.plugin = 'flow_flow'; streamOpts.trueLayout = streamOpts.layout;
/*we will modify 'grid' layout to get 'carousel' layout*/ if ( streamOpts.layout == 'carousel' ) { streamOpts['layout'] = 'grid'; streamOpts['g-ratio-h'] = "1"; streamOpts['g-ratio-img'] = "1/2"; streamOpts['g-ratio-w'] = "1"; streamOpts['g-overlay'] = "yep"; streamOpts['c-overlay'] = "yep"; streamOpts['s-desktop'] = "0"; streamOpts['s-laptop'] = "0"; streamOpts['s-smart-l'] = "0"; streamOpts['s-smart-p'] = "0"; streamOpts['s-tablet-l'] = "0"; streamOpts['s-tablet-p'] = "0"; } else if ( streamOpts.layout == 'list' ) { /*the same with list, we only need news feed style*/ streamOpts['layout'] = 'masonry'; }
opts.streams['stream' + streamOpts.id] = streamOpts; var $cont = $("[data-plugin='flow_flow']#ff-stream-"+data['stream-id']); var ajaxDeferred; var script, style; var layout_pre = streamOpts.layout.charAt(0); var isOverlay = layout_pre === 'j' || streamOpts[layout_pre + '-overlay'] === 'yep' && streamOpts.trueLayout !== 'list'; var imgIndex; if (isOverlay) { if (streamOpts.template[0] !== 'image') { for (var i = 0, len = streamOpts.template.length; i < len; i++) { if (streamOpts.template[i] === 'image') imgIndex = i; } streamOpts.template.splice(0, 0, streamOpts.template.splice(imgIndex, 1)[0]); } streamOpts.isOverlay = true; }; if (FF_resource.scriptDeferred.state() === 'pending' && !FF_resource.scriptLoading) { script = document.createElement('script'); script.src = "https://www.thegoodgrieftrust.org/wp-content/plugins/flow-flow/js/public.js?ver=4.6.4"; script.onload = function( script, textStatus ) { FF_resource.scriptDeferred.resolve(); }; document.body.appendChild(script); FF_resource.scriptLoading = true; }; if (FF_resource.styleDeferred.state() === 'pending' && !FF_resource.styleLoading) { style = document.createElement('link'); style.type = "text/css"; style.id = "ff_style"; style.rel = "stylesheet"; style.href = "https://www.thegoodgrieftrust.org/wp-content/plugins/flow-flow/css/public.css?ver=4.6.4"; style.media = "screen"; style.onload = function( script, textStatus ) { FF_resource.styleDeferred.resolve(); }; document.getElementsByTagName("head")[0].appendChild(style); FF_resource.styleLoading = true; } $cont.addClass('ff-layout-' + streamOpts.trueLayout); if (!isMobile && streamOpts.trueLayout !== 'carousel') $cont.css('minHeight', '500px'); ajaxDeferred = isLS && sessionStorage.getItem(hash) ? {} : $.get(opts.ajaxurl, data) ; $.when( ajaxDeferred, FF_resource.scriptDeferred, FF_resource.styleDeferred ).done(function ( data ) { var response, $errCont, err; var moderation = 0; var original = (isLS && sessionStorage.getItem(hash)) ? JSON.parse( sessionStorage.getItem(hash) ) : data[0]; try { /* response = JSON.parse(original); */ response = original; /* since 4.1 */ } catch (e) { window.console && window.console.log('Flow-Flow gets invalid data from server'); if (opts.isAdmin || opts.isLog) { $errCont = $('
if ( ! response ) { console.log( 'FLOW-FLOW: null response from server' ); return; } opts.streams['stream' + streamOpts.id]['items'] = response; if (!FlowFlowOpts.dependencies) FlowFlowOpts.dependencies = {};
FlowFlow.extensionResourcesRequests = FlowFlow.extensionResourcesRequests || []; var request, extension, style;
for ( extension in FlowFlowOpts.dependencies ) { if ( FlowFlowOpts.dependencies[extension] && FlowFlowOpts.dependencies[extension] !== 'loaded') { request = $.getScript( opts.plugin_base + '-' + extension + '/js/ff_' + extension + '_public.js?ver=4.6.4'); FlowFlow.extensionResourcesRequests.push(request);
style = document.createElement('link'); style.type = "text/css"; style.rel = "stylesheet"; style.id = "ff_ad_style"; style.href = opts.plugin_base + '-' + extension + '/css/ff_' + extension + '_public.css?ver=4.6.4'; style.media = "screen"; document.getElementsByTagName("head")[0].appendChild(style);
FlowFlowOpts.dependencies[extension] = 'loaded'; } }
var resourcesLoaded = $.when.apply($, FlowFlow.extensionResourcesRequests);
resourcesLoaded.done(function(){ var $stream, width; console.log(response);
$stream = FlowFlow.buildStreamWith(response, streamOpts, moderation, FlowFlowOpts.dependencies);
if (isLS && response.items.length > 0 && response.hash.length > 0) sessionStorage.setItem( JSON.stringify( response.hash ), original);
var num = streamOpts.layout === 'compact' || (streamOpts.mobileslider === 'yep' && isMobile)? (streamOpts.mobileslider === 'yep' ? 3 : streamOpts['cards-num']) : false;
$cont.append( $stream );
if ( typeof $stream !== 'string' ) { FlowFlow.setupGrid($cont.find('.ff-stream-wrapper'), num, streamOpts.scrolltop === 'yep', streamOpts.gallery === 'yep', streamOpts, $cont); }
setTimeout(function(){ $cont.find('.ff-header').removeClass('ff-loading').end().find('.ff-loader').addClass('ff-squeezed').delay(300).hide(); }, 0);
}).fail(function(){ console.log('Flow-Flow: resource loading failed'); });
var isErr = response.status === "errors"; if ((opts.isAdmin || opts.isLog) && isErr) { $errCont = $('
if (opts.isAdmin && response.status === 'building') { window.console && window.console.log(response); $cont.prepend($('
function isLocalStorageNameSupported() { var testKey = 'test', storage = window.sessionStorage; try { storage.setItem(testKey, '1'); storage.removeItem(testKey); return true; } catch (error) { return false; } };
return false; } })()
Thank you for visiting our site.
Please support our work with a donation to help those grieving across the UK.
Donate now