news

Little Wins on a Friday

Victoria Myers

Good morning lovely knitters!

After doing my morning news check-in and a relatively frustrating day yesterday, I feel like maybe, today, I might just have to focus on little, tiny wins.  So, the bread was super nummy, I saw some awesome WIPS on our "knit night check in" post, Pumpkin decided to NOT have to meow his head off in the middle of the night to wake us up, and I can still head to the shop today to ship orders.  Oh, and asparagus is in season!  Yum!  I hope that doesn't sound lame, but we all gotta cling to the bits of happy, right?  What are your little wins of this week or just day?

If you need your own little win?  Why not join our Finishing Frenzy for this next week?  

Big Zig also made it to Ravelry yesterday.  And there are 3 new colorways of Big Mad Balls!  Since we closed this past weekend for the time being in hopes of keeping all of our knitters safer, we’re going to be existing (hopefully) on pattern sales some online orders for a while. Additionally, because as bad as that seems, there are much bigger problems. So, all the patterns I release during the time that we are closed - 20% of the sales price will go to Doctors without Borders and 20% will go to our Local Food Pantry - Open Table. So, as you can see - your $5 will mean a lot! I’d really appreciate you purchasing it! Thank you!!  

Though Big Zig is meant for Big Mad Balls - if you have a significant stash of coordinating colors, you should fill a laundry basket full of them and get it on the needles!  


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