• WE CAN'T PREDICT THE FUTURE

                                 

    Today is the start of a new year, and a new month, some may say"Happy New Year" whilst others may say "Happy Hangover Day" I myself can say I'm  not the biggest fan of New year and in my older age I would prefer to start the New Year feeling as fresh as a daisy on a summers day. 

    However, one thing I do like about the New year is the fact that it's just that "NEW" a New beginning, a NEW start, and maybe the start of a NEW outlook. I'm sure we all like to make New years resolutions in the hope that this year we will keep them. But the fact of the matter is within the first two weeks we've most likely forgotten and we're slowly on the decline back into our old ways slowly losing that Newness we were so excited about at the start of the year.

    That's why this year I've decided to take on a different outlook in the hope I can keep the excitement of the New throughout the entire year, I mean who know's what will happen we can't predict the future but what we can do is set goals,and plans of things we want to achieve both personally and professionally.

    For me House of 925 is NEW and I mean brand New, this is totally New to me and something I’m very excited about but also slightly nervous about. But if we never followed are dreams we’d never achieve the things that we set out to achieve and as they say this is the start of 365 days of opportunities so why not choose to slay. 

    Over the next 30 days I’m going to set myself a challenge of breaking a habit in 30 days, once I’ve completed the 30 days, I’ll set myself a new challenge for the following month. You can choose anything you want to break maybe it's smoking, or maybe it spending more time in the day for yourself whatever you choose let us know tweeting us @house_of_925 and #30daychallenge925 

    Don’t loose that Newness feeling!

    Happy New Year from the House of 925 Team xoxo

    Posted by Kate Frances
const selectVariantByClickingImage = { // Create variant images from productJson object _createVariantImage: function (product) { const variantImageObject = {}; product.variants.forEach((variant) => { if ( typeof variant.featured_image !== 'undefined' && variant.featured_image !== null ) { const variantImage = variant.featured_image.src .split('?')[0] .replace(/http(s)?:/, ''); variantImageObject[variantImage] = variantImageObject[variantImage] || {}; product.options.forEach((option, index) => { const optionValue = variant.options[index]; const optionKey = `option-${index}`; if ( typeof variantImageObject[variantImage][optionKey] === 'undefined' ) { variantImageObject[variantImage][optionKey] = optionValue; } else { const oldValue = variantImageObject[variantImage][optionKey]; if (oldValue !== null && oldValue !== optionValue) { variantImageObject[variantImage][optionKey] = null; } } }); } }); return variantImageObject; }, _updateVariant: function (event, id, product, variantImages) { const arrImage = event.target.src .split('?')[0] .replace(/http(s)?:/, '') .split('.'); const strExtention = arrImage.pop(); const strRemaining = arrImage.pop().replace(/_[a-zA-Z0-9@]+$/, ''); const strNewImage = `${arrImage.join('.')}.${strRemaining}.${strExtention}`; if (typeof variantImages[strNewImage] !== 'undefined') { product.variants.forEach((option, index) => { const optionValue = variantImages[strNewImage][`option-${index}`]; if (optionValue !== null && optionValue !== undefined) { const selects = document.querySelectorAll('#'+ id + ' [class*=single-option-selector]'); const options = selects[index].options; for (let option, n = 0; (option = options[n]); n += 1) { if (option.value === optionValue) { selects[index].selectedIndex = n; selects[index].dispatchEvent(new Event('change')); break; } } } }); } }, _selectVariant: function() { const productJson = document.querySelectorAll('[id^=ProductJson-'); if (productJson.length > 0) { productJson.forEach((product) => { const sectionId = product.id.replace("ProductJson-", "shopify-section-"); const thumbnails = document.querySelectorAll('#'+ sectionId + ' img[src*="/files/"]'); if (thumbnails.length > 1) { const productObject = JSON.parse(product.innerHTML); const variantImages = this._createVariantImage(productObject); // need to check variants > 1 if (productObject.variants.length > 1) { thumbnails.forEach((thumbnail) => { thumbnail.addEventListener('click', (e) => this._updateVariant(e, sectionId, productObject, variantImages), ); }); } } }); } }, }; if (document.readyState !== 'loading') { selectVariantByClickingImage._selectVariant(); } else { document.addEventListener( 'DOMContentLoaded', selectVariantByClickingImage._selectVariant(), ); }