news

Saturday, August 19, 2023

Victoria Myers

Good morning lovely knitters!  It is nice to see a non-stormy day ahead of us!  It might be a perfect day to take a ride and come see some NEW yarn!!  :)

Earlier this week, I dyed up more Doll Face Kraken!  So, if you still have yet to get your paws on it, come in today before this batch is gone!

 

I also rearranged out wall of hand-dye to make space for Kraken and Twisty - you'll want to come in just for a drool, at the very least!

We also got new colors of delicious and delightful Amitola Grande!  

 

There are NEW Grey+ Mad Balls - this is quickly becoming one of my favorite batches- silvery greys with just a POP of colorful yarn here and there.

Aja and I recorded our first podcast yesterday and it will be ready for you on Monday.  It was pretty fun - which is a shock because I'm a little deer-in-the-headlights when a camera is on!  But check it out!  We'll alert you on Instagram and FB when its live!

Also - time is starting to run short on our featured pattern - Ropes and Rivers!  Get this gorgeous and fun pattern free through August when you purchase Kraken or Blackwater.

And don't forget to check your calendar and sign-up for the upcoming classes.  A couple are starting to fill up fast - we have limited space in the shop, so don't wait too long!

I hope to see all of you today!  :)

Island Yarn 
189 Main Street
Maynard, MA  01754
Hours: Wednesday through Saturday, 12 - 5
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(), ); }