York Chocolate Festival took over St Sampson’s Square and Parliament Street for five days.
Visitors were treated to chocolate-themed events, workshops and family activities – all laid on by the team behind York Food Festival.
Recommended reading:
Stalls showcasing delicious chocolate-inspired desserts and treats from across the world lined the centre, and the event included opportunities for tastings, a Chocolate Taste Trail and free events for kids.
Brownies and Blondies were one of the stall holders (Image: Newsquest)
But it wasn’t all smooth sailing.
As the dreaded Storm Dave neared, stall organisers said they feared that their marquees, set up overnight, would be damaged by strong winds.
Thankfully this was not the case, said Casa Mia representative.
Butterflies Chocolates from Pocklington (Image: Newsquest)
Stall representative for Butterflies Chocolates – a chocolatier in Pocklington added: “The winds moved our stall and displaced some of our benches.
“Thankfully, we had prepared and were able to ensure we could set up again the next day.”
Confectionary from across the world was served (Image: Newsquest)
Speaking ahead of the festival, Sophie Jewett of York Cocoa Works said the company was looking forward to sharing their chocolate-making process – celebrating the industry the city was once famous for.
She added: “It’s wonderful to welcome so many enthusiastic chocolate learners who are excited and passionate to discover more about how chocolate is made.”
window._sp_ = {
config: {
baseEndpoint: 'https://a02342.yorkpress.co.uk',
accountId: 52,
targetingParams:{
subscribed: false,
privacy: false
},
gdpr: { },
events: {
onMessageReady: function (message_type) {
trackSPEvents('event76');
},
onMessageChoiceSelect: function (message_type, choice_id, choice_type_id) {
console.log('message_type: ', message_type);
console.log('choice_id: ', choice_id);
console.log('choice_type_id: ', choice_type_id);
if ('yes' === 'yes') {
if (choice_type_id === 12) {
trackSPEvents('event83'); //Consent Banner Reject All
trackSPEvents('event82'); //Journalism Message Shown
}
if (choice_type_id === 11) {
trackSPEvents('event78');
}
if (choice_type_id === 9) {
trackSPEvents('event77');
}
} else {
// these are the second argument in non-gate
if (choice_type_id === 12) {
trackSPEvents('event77');
}
if (choice_type_id === 11) {
trackSPEvents('event78');
}
if (choice_type_id === 13) {
trackSPEvents('event83');
}
}
},
onPrivacyManagerActionStatus: function(message_type, status, actionType) {
console.log('message_type: ' + message_type);
console.log('status: ' + status);
console.log('actionType: ' + actionType);
if ('yes' === 'yes') {
if (actionType === 11) {
trackSPEvents('event79'); //Privacy Manager Accept
}
if (actionType === 9) {
trackSPEvents('event68'); //Privacy Manager Redirect
}
if (actionType === 1) {
trackSPEvents('event75'); //Forced tcf String Change
}
} else {
// these are the second argument in non-gate
if (actionType === 13) {
trackSPEvents('event81'); //Privacy Manager Reject
}
if (actionType === 11) {
trackSPEvents('event79'); //Privacy Manager Accept
}
if (actionType === 1) {
trackSPEvents('event80'); //Privacy Manager Save & Exit
}
}
},
onPMCancel: function (message_type) {
console.log('onPMCancel', message_type);
trackSPEvents('event84'); //Privacy Manager Back
},
}
}
}
__tcfapi('addEventListener', 2, function (tcData, success) {
console.log('SP: Event Listen:', tcData, success);
if (success && tcData.eventStatus === 'useractioncomplete') {
setTcfCookie(tcData.purpose.consents, tcData.purpose.legitimateInterests);
var csnt="none";
if ($.cookie('_sp_enable_dfp_personalized_ads') === 'true') {
csnt="yes";
} else if ($.cookie('_sp_enable_dfp_personalized_ads') === 'false') {
csnt="no";
}
googletag.cmd.push(function() {
// console.log('DFP: Cookie check - setting dfpcsnt to ', csnt);
googletag.pubads().setTargeting('dfpcsnt', csnt);
});
// ready to start DFP
// console.log('PIANO: setting unrestricted via useractioncomplete');
// runPiano('unrestricted');
startAdvertising(tcData.listenerId);
var e = new Event('launch:cmp:choice-made');
window.dispatchEvent(e);
} else if (success && tcData.eventStatus === 'tcloaded') {
// tcloaded means a valid TCF v2.0 string is available
// console.log('PIANO: setting unrestricted via tcloaded');
// runPiano('unrestricted');
if (tcData.gdprApplies === false) {
$.cookie('_sp_enable_dfp_personalized_ads', 'true', {domain: '.yorkpress.co.uk', path: "https://www.yorkpress.co.uk/", expires: 100});
}
startAdvertising(tcData.listenerId);
} else if (success && tcData.eventStatus === 'useractionnotcomplete') {
// do nothing - this means the user has not made a choice yet
} else if (success && tcData.eventStatus === 'cmpuishown') {
// do nothing - this means the CMP UI has been shown
} else if (!success) {
// $.cookie('_sp_enable_dfp_personalized_ads', 'true', {domain: '.yorkpress.co.uk', path: "https://www.yorkpress.co.uk/", expires: 100});
// startAdvertising();
} else {
// console.log('PIANO: setting restricted');
// runPiano('restricted');
}
});
$(document).on('click', '.gdpr-option-v2', function (e) {
e.preventDefault();
sendEvent76 = false;
var id = $(this).data('v2-id');
if ($(this).data('is-gate') === 'yes') {
trackSPEvents('event87');
_sp_.gdpr.loadPrivacyManagerModal(id);
} else {
trackSPEvents('event77');
_sp_.gdpr.loadPrivacyManagerModal(id);
}
});
function getTcfData() {
__tcfapi('addEventListener', 2, function(data, success) {
if (!data.purpose || !data.purpose.consents || !data.purpose.legitimateInterests) {
// console.log('DFP: No TCF data found, not setting cookies');
return;
}
setTcfCookie(data.purpose.consents, data.purpose.legitimateInterests);
}, [755]);
}
getTcfData();
function setTcfCookie(data, legitimateInterests) {
var consents = [];
$.each(data, function(id, consent) {
var c = (consent === true) ? 'yes' : 'no';
consents.push(c)
});
// console.log('DFP: consents length: ', consents.length);
if (consents.length !== 10) {
// consents = consents.fill('no', consents.length, 10);
for (var i = consents.length; i < 10; i++) {
consents[i] = 'no';
}
}
// console.log('DFP: Found consents to store in cookie:', consents);
$.cookie('prev-tcf-v2', consents.join(','), {domain: '.yorkpress.co.uk', path: "https://www.yorkpress.co.uk/", expires: 100});
var consentEvent4 = 'none';
if (typeof data[4] !== 'undefined') {
consentEvent4 = data[4] ? 'true' : 'false';
}
$.cookie('_sp_enable_dfp_personalized_ads', consentEvent4, {domain: '.yorkpress.co.uk', path: "https://www.yorkpress.co.uk/", expires: 100});
var legitInterest="none";
if (legitimateInterests && typeof legitimateInterests[2] !== 'undefined') {
legitInterest = legitimateInterests[2] ? 'true' : 'false';
}
$.cookie('_sp_legitimate_interests', legitInterest , {domain: '.yorkpress.co.uk', path: "https://www.yorkpress.co.uk/", expires: 100});
}
var sendEvent76 = true;
function trackSPEvents(events) {
if (events === 'event76' && !sendEvent76) {
return;
} else if (events === 'event76') {
sendEvent76 = false;
}
if (typeof window.s !== 'object') {
// console.log('DFP: No window.s object found, trying again in 1 second');
window.setTimeout(function () { trackSPEvents(events)} , 1000);
return;
}
// console.log("ADB: Tracking %s", events);
// Re-create the Omniture object so the data can be tracked.
var s = window.s;
if (events.indexOf('event70') !== -1) {
// console.log('DFP: Events passed, added evars');
s.eVar35 = 'enabled';
s.prop35 = 'enabled';
}
s.events = events;
s.linkTrackEvents = events;
s.linkTrackVars = "eVar2,eVar3,eVar4,eVar5,eVar6,evar7,evar8,evar9,eVar16,eVar19,eVar26,eVar35,eVar43,eVar67,prop35";
s.suppressPageView = true;
s.tl(true,'o','Ad Block');
}
function startAdvertising(id)
{
if (typeof window.doNotAdvertise !== 'undefined' && window.doNotAdvertise === true) {
return;
}
// console.log("DFP: Is the page fully loaded?", window.googleReady);
if (window.googleReady !== true) {
window.setTimeout(function () {
// console.log('DFP: Google not fully loaded yet, pausing quarter of a second before trying again');
startAdvertising(id);
}, 250);
return;
}
// Ensure that we never run this code twice
if (window.advertisingStart === true) {
return;
}
// console.log('DFP: Running advertisement');
window.advertisingStart = true;
var googletag = window.googletag;
// init google objects and array
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type="text/javascript";
gads.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
// launch the exco slideshow player
launchExcoSlideshow();
// load facebook etc
loadSocials();
// Checking our decision to use headerbidding (shorterned as prebid) is correct
// via system logic, and that we have the simplified consent to do so
if (usePrebid && $.cookie('_sp_enable_dfp_personalized_ads') === 'true') {
var e = new Event('launch:sourcepoint:consentaccepted');
window.dispatchEvent(e);
// AP code initialisation
// the script is loaded via launch, once we have detected a consent signal via the datalayer.
fetchAp();
var site="desktop";
var _site="desktop";
// load IAS scripts and set up vars
(function() {
var ias = document.createElement('script');
ias.async = true;
ias.type="text/javascript";
ias.src="https://cdn.adsafeprotected.com/iasPET.1.js";
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(ias, node);
})();
// load the prebid script
(function() {
var pbs = document.createElement('script');
pbs.async = true;
pbs.type="text/javascript";
pbs.src="https://micro.rubiconproject.com/prebid/dynamic/11022.js?group=newsquest";
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(pbs, node);
})();
// tell google to actually get the bids from all relevant vendors when loaded
googletag.cmd.push(function () {
fetchHeaderBids();
});
}
// Outbrain
if (
(window.data_layer.user.advertising_experience === 'Ad-Free' || window.data_layer.config.disable_outbrain === 'yes') ||
(window.data_layer.user.advertising_experience === 'Ad-Light' && window.data_layer.config.disable_outbrain_with_ad_light === 'yes')
) {
// console.log("No Outbrain script loading due to page settings");
} else {
// console.log("Loading Outbrain");
var ob = document.createElement('script');
ob.async = true;
ob.type="text/javascript";
ob.src="https://widgets.outbrain.com/outbrain.js";
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(ob, node);
}
// remove the listener
if (id !== null) {
window.__tcfapi('removeEventListener', 2, function (success) { }, id);
}
}
/**
* Wait until we have advertising consent to show this advertising
* based replacement for the single image on our article pages
* This logic is based on excoSlidshowPlayerID that only appears on the page
* if a user is NOT a subscriber (including privacy plus) and the page has the
* correct information to show it (doesn't have a video, not in sport etc)
*/
function launchExcoSlideshow() {
const slideShowPlayerId = window.excoSlideshowPlayerId;
// if we do not have a player id, we do not need to do anything
if (!slideShowPlayerId) {
return;
}
// this is exco's supplied code, modified for our use
(function (d, s, n) {
fjs = d.getElementsByTagName(s)[0];
js = d.createElement(s);
js.className = n;
js.src="//player.ex.co/player/" + slideShowPlayerId;
js.setAttribute('programmatic', 'true');
js.onload = function () {
const playerApi = ExCoPlayer.connect(slideShowPlayerId);
playerApi.init({});
playerApi.on('player-load', function(data) {
$('.mar-article-image').remove();
if (window.screen.width > 800) {
$('.article-hero').attr('style', 'order: 1');
}
window.hide_overlay_for_exco = true;
});
};
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'exco-player'));
}
function loadSocials()
{
const socials = [
'https://platform.twitter.com/widgets.js',
'https://connect.facebook.net/en_US/all.js#xfbml=1',
'https://www.tiktok.com/embed.js',
];
socials.forEach((social) => {
var script = document.createElement('script');
script.src = social;
script.async = true;
document.getElementsByTagName('head')[0].appendChild(script);
});
}
})();
Source link
You must be logged in to post a comment Login