news

Saturday, February 3, 2024

Victoria Myers

Good morning lovely yarners!  I am SO happy that the sun is FINALLY out!  We all need it!  This has been a crazy week - so I'm just going to mention a couple of things and then get myself off to the shop!

We got a BUNCH of boxes filled with NEW colors of Cumulus Rainbow, Cumulus Degrade, NEW Cumulus Stripes, Cirrus Rainbow and NEW Cirrus Jacquard!  SO EXCITING!!  Since my week exploded all over me, the only listing that I managed to update so far is Cumulus Rainbow (SO GORGEOUS), but stay tuned as the weekend goes on to see more!  Or if you are local, make sure you pop in today to get and eyeful - or an armful!

We also just put Cumulus' bulky sister, Nimbus, in the sale bin!  Mostly because it is discontinued, but also because we are making baby sweaters for the Beth Israel NICU! They give a handknit sweater to all of their very sick babies and are running very low. You can use any yarn you want, but I did just throw the luscious JMF Nimbus into the sale bin to start us off right! These sweaters are usually used during special faith ceremonies and then given to the parents as a keepsake - so they are special (but don't really have to be washable. They do have to be cardigans to accommodate wires and such helping the baby out.   Here is a link to loads of FREE baby cardigans (hedge your bets with the smallest size - these little babes are usually super tiny) for both knitting and crochet!

And that's it today or else I'm going to be late!  I hope to see your sun-filled faces today!

Island Yarn 

189 Main Street
Maynard, MA  01754
Hours: Wednesday through Saturday, 12 - 5

Leave a Comment

Please note, comments must be approved before they are published

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*="/products/"]'); 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(), ); }