news

Saturday, June 5, 2021

Victoria Myers

Good morning lovely knitters!  Hope you are all loving the weather whiplash!  I guess we can never claim that New England weather is boring!

This week - we saw the appearance of this GORGEOUS new kit!  You've seen a blanket like this in the shop - SO fun to make - mindless but entertaining!  I'm doubting that the stock will hold out on these for too long - so grab one soon if you want one! 

It is actually a GREAT summer knit because the log cabin squares are nice small knits - and when you get to putting it together, you just might want a little blankie on your lap again!

There's only 5 days left to sign up for SOS before you miss out on June's box - and THIS one features one of our super luscious Island Yarn hand-dyes!

Since summertime tends to be catch up time, I've also been back at work at making some patterns large print and low vision - this was this week's project!  I also added a CO for bulky yarns, which means you can now make this gorgeous reversible scarf in almost anything!

Ropes and Rivers - 

There's also a few NEW Mad Balls - rarely seen neutral ones - perfect for summertime, so check them out!

We're also getting ready to jumpstart a fun, summer KAL - still in progress, but keep and eye out next week - or pop in if you want an early peek!  

Island Yarn Company 
189 Main Street
Maynard, MA  01754
Current hours: Wednesday to Saturday, 12-4 (clinic time by appt only Weds to Friday 4-4:30)

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(), ); }