news

Saturday, May 28, 2022

Victoria Myers

Good morning lovely knitters!  Happy Memorial Day weekend!  I know loads of you are away, but if you're not, we're open from 12 to 5 today with lots of fun stuff!!

We have another AMAZING Oven Mitt pattern!  The Star Baker mitts!  I love the Great British Bake-off - it is my go to soothing thing to watch (though it does always make me want to head to the kitchen and make naughty, delicious things)!  So, Star Baker Oven Mitts just seemed like the next right oven mitt!! 

Make them for yourself or for the star baker in your family!  You can find kits here!

We also had some yummy, new, blue Mad Balls in this week!  Summer is the perfect time to have a Mad Ball project - engaging, fun, easy and just one ball to tote around on your travels!

And since May is almost done, there is just a few more days to get the What Did I Come in Here For Shawl kit!  It is made with gorgeous Louisa Harding Pittura and super cute Teenie Weenie Wools!  Grab this one before it is gone!

As with all of our featured monthly patterns, you'll get a bonus 25% off any pattern code in addition to the free code for What Did I Come In Here For when you get the kit here.
If you want to score this pattern alone for 25% off, you can use code MAYPOM and get it here.
Have a beautiful LONG weekend, everyone!
Island Yarn 
189 Main Street
Maynard, MA  01754
Hours: Wednesday 12 - 5, Thursday 12 - 8, Friday and 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(), ); }