Shopify.quickshopOptionsMap4215990976566 = {};
Shopify.quickshopUpdateOptionsInSelector4215990976566 = function(selectorIndex) {
switch (selectorIndex) {
case 0:
var key = 'root';
var selector = jQuery('#product-form-quick-4215990976566 .single-option-selector:eq(0)');
break;
case 1:
var key = jQuery('#product-form-quick-4215990976566 .single-option-selector:eq(0)').val();
var selector = jQuery('#product-form-quick-4215990976566 .single-option-selector:eq(1)');
break;
case 2:
var key = jQuery('#product-form-quick-4215990976566 .single-option-selector:eq(0)').val();
key += ' / ' + jQuery('#product-form-quick-4215990976566 .single-option-selector:eq(1)').val();
var selector = jQuery('#product-form-quick-4215990976566 .single-option-selector:eq(2)');
}
var initialValue = selector.val();
selector.empty();
var availableOptions = Shopify.quickshopOptionsMap4215990976566[key];
if (availableOptions && availableOptions.length) {
for (var i = 0; i < availableOptions.length; i++) {
var option = availableOptions[i];
var newOption = jQuery('').val(option).html(option);
selector.append(newOption);
}
jQuery('#product-form-quick-4215990976566 .swatch[data-option-index="' + selectorIndex + '"] .swatch-element').each(function() {
if (jQuery.inArray(jQuery(this).attr('data-value'), availableOptions) !== -1) {
jQuery(this).removeClass('soldout').show().find(':radio').removeAttr('disabled', 'disabled').removeAttr('checked');
} else {
jQuery(this).addClass('soldout').hide().find(':radio').removeAttr('checked').attr('disabled', 'disabled');
}
});
if (jQuery.inArray(initialValue, availableOptions) !== -1) {
selector.val(initialValue);
}
selector.trigger('change');
}
};
Shopify.quickshopLinkOptionSelectors4215990976566 = function(product) {
// Building our mapping object.
for (var i = 0; i < product.variants.length; i++) {
var variant = product.variants[i];
//if (variant.available) {
// Gathering values for the 1st drop-down.
Shopify.quickshopOptionsMap4215990976566['root'] = Shopify.quickshopOptionsMap4215990976566['root'] || [];
Shopify.quickshopOptionsMap4215990976566['root'].push(variant.option1);
Shopify.quickshopOptionsMap4215990976566['root'] = Shopify.uniq(Shopify.quickshopOptionsMap4215990976566['root']);
// Gathering values for the 2nd drop-down.
if (product.options.length > 1) {
var key = variant.option1;
Shopify.quickshopOptionsMap4215990976566[key] = Shopify.quickshopOptionsMap4215990976566[key] || [];
Shopify.quickshopOptionsMap4215990976566[key].push(variant.option2);
Shopify.quickshopOptionsMap4215990976566[key] = Shopify.uniq(Shopify.quickshopOptionsMap4215990976566[key]);
}
// Gathering values for the 3rd drop-down.
if (product.options.length === 3) {
var key = variant.option1 + ' / ' + variant.option2;
Shopify.quickshopOptionsMap4215990976566[key] = Shopify.quickshopOptionsMap4215990976566[key] || [];
Shopify.quickshopOptionsMap4215990976566[key].push(variant.option3);
Shopify.quickshopOptionsMap4215990976566[key] = Shopify.uniq(Shopify.quickshopOptionsMap4215990976566[key]);
}
//}
}
// Update options right away.
Shopify.quickshopUpdateOptionsInSelector4215990976566(0);
if (product.options.length > 1) Shopify.quickshopUpdateOptionsInSelector4215990976566(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4215990976566(2);
// When there is an update in the first dropdown.
jQuery("#product-form-quick-4215990976566 .single-option-selector:eq(0)").change(function() {
Shopify.quickshopUpdateOptionsInSelector4215990976566(1);
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4215990976566(2);
return true;
});
// When there is an update in the second dropdown.
jQuery("#product-form-quick-4215990976566 .single-option-selector:eq(1)").change(function() {
if (product.options.length === 3) Shopify.quickshopUpdateOptionsInSelector4215990976566(2);
return true;
});
};
productsObj.id4215990976566 = {"id":4215990976566,"title":"DISCOVER DEVICE® Wireless Tattoo Power Supply 1200mAh Thunder","handle":"thunder-tattoo-power-bank-6-11v","description":"\u003cstrong\u003eProduct Spec.\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eDevice housing: CNC aluminum\u003c\/li\u003e\n\u003cli\u003eOutput voltage: 6,7,8,9,11V\u003c\/li\u003e\n\u003cli\u003eInput: DC5V,1A\u003c\/li\u003e\n\u003cli\u003eCharge mode:type-C quick charge\u003c\/li\u003e\n\u003cli\u003eConnection:RCA\u003c\/li\u003e\n\u003cli\u003eCapacity:1200mAh\u003c\/li\u003e\n\u003cli\u003eDimension: 27.5X62.8m\u003c\/li\u003e\n\u003cli\u003eN.W: 57g\u003c\/li\u003e\n\u003cli\u003eG.W:122g\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/banner2_3c8cc608-cf84-4d5d-9eb9-6782f7f4e11a.jpg?v=1662365192\"\u003e\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eProtective Mechanism\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e1.\u003cstrong\u003eoutput short circuit protection.\u003c\/strong\u003e\u003cbr\u003e2.dual input charging protection(batteries and the control panel both equipped with shutdown,overshoot and over discharge protection).\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e\u003cstrong\u003eProduct Manual\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e1.Press and hold the power button 2 seconds to turn it on\/off.\u003cbr\u003e2.Click the power button to adjust the voltage 6,7,8,9,11V for option.\u003cbr\u003e3.Default booting at 10V start up for 0.2S,and then load to the last memory working voltage.\u003cbr\u003e4.It will shift to display the capacity of battery without working over 2S, and the indicator light is on the breathing state,the five indicators represent for 20%~100% of the power capacity.Click the button to return to voltage display.\u003cbr\u003e5.The indicator light is blinking during charging and stop blinking with the overshoot protection working after full charged.\u003cbr\u003e6.the power bank capacity 1200mAh.3.5 hours to be full charged by over 1A charger.About 8 hours working at 8V.\u003cbr\u003e7.This power bank is only for rotary or coil machines with RCA connections.\u003cbr\u003e8.Don't use this device while on charging.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eProblem Solution\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWhen the device short out - Just reconnect with the charger to activate.\u003c\/strong\u003e\u003c\/p\u003e","published_at":"2019-10-10T20:49:42+08:00","created_at":"2019-10-10T21:00:03+08:00","vendor":"Discover Device","type":"Tattoo Battery","tags":[],"price":5390,"price_min":5390,"price_max":5390,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":30695057784886,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"1169-BK","requires_shipping":true,"taxable":false,"featured_image":{"id":31065595773101,"product_id":4215990976566,"position":1,"created_at":"2021-11-29T17:27:03+08:00","updated_at":"2021-11-29T17:30:58+08:00","alt":null,"width":1500,"height":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a0b8993a-6551-4b2d-8e89-fe274e719b21.jpg?v=1638178258","variant_ids":[30695057784886]},"available":true,"name":"DISCOVER DEVICE® Wireless Tattoo Power Supply 1200mAh Thunder - Black","public_title":"Black","options":["Black"],"price":5390,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":23354528202925,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a0b8993a-6551-4b2d-8e89-fe274e719b21.jpg?v=1638178258"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":30695057817654,"title":"Red","option1":"Red","option2":null,"option3":null,"sku":"1169-RD","requires_shipping":true,"taxable":false,"featured_image":{"id":31065595740333,"product_id":4215990976566,"position":6,"created_at":"2021-11-29T17:27:04+08:00","updated_at":"2021-11-29T17:29:02+08:00","alt":null,"width":1500,"height":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-1.jpg?v=1638178142","variant_ids":[30695057817654]},"available":true,"name":"DISCOVER DEVICE® Wireless Tattoo Power Supply 1200mAh Thunder - Red","public_title":"Red","options":["Red"],"price":5390,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":23354528366765,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-1.jpg?v=1638178142"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":31623184318566,"title":"Gun-Grey","option1":"Gun-Grey","option2":null,"option3":null,"sku":"1169-GM","requires_shipping":true,"taxable":false,"featured_image":{"id":31065595576493,"product_id":4215990976566,"position":5,"created_at":"2021-11-29T17:27:03+08:00","updated_at":"2021-11-29T17:29:09+08:00","alt":null,"width":1500,"height":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-1.jpg?v=1638178149","variant_ids":[31623184318566]},"available":true,"name":"DISCOVER DEVICE® Wireless Tattoo Power Supply 1200mAh Thunder - Gun-Grey","public_title":"Gun-Grey","options":["Gun-Grey"],"price":5390,"weight":500,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":23354528268461,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-1.jpg?v=1638178149"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/discoverdevice.com\/cdn\/shop\/products\/1_a0b8993a-6551-4b2d-8e89-fe274e719b21.jpg?v=1638178258","\/\/discoverdevice.com\/cdn\/shop\/products\/2-6.jpg?v=1638178252","\/\/discoverdevice.com\/cdn\/shop\/products\/2_76a5524b-c7b4-4411-8f88-fbccad83e4dd.jpg?v=1638178245","\/\/discoverdevice.com\/cdn\/shop\/products\/2-3.jpg?v=1638178154","\/\/discoverdevice.com\/cdn\/shop\/products\/2-1.jpg?v=1638178149","\/\/discoverdevice.com\/cdn\/shop\/products\/3-1.jpg?v=1638178142","\/\/discoverdevice.com\/cdn\/shop\/products\/3-3.jpg?v=1638178139","\/\/discoverdevice.com\/cdn\/shop\/products\/3-6.jpg?v=1638178131","\/\/discoverdevice.com\/cdn\/shop\/products\/5_a556164e-da98-4172-94d4-376860810fc7.jpg?v=1638178124"],"featured_image":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a0b8993a-6551-4b2d-8e89-fe274e719b21.jpg?v=1638178258","options":["Item Color"],"media":[{"alt":null,"id":23354528202925,"position":1,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a0b8993a-6551-4b2d-8e89-fe274e719b21.jpg?v=1638178258"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/1_a0b8993a-6551-4b2d-8e89-fe274e719b21.jpg?v=1638178258","width":1500},{"alt":null,"id":23354528333997,"position":2,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-6.jpg?v=1638178252"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-6.jpg?v=1638178252","width":1500},{"alt":null,"id":23354528235693,"position":3,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_76a5524b-c7b4-4411-8f88-fbccad83e4dd.jpg?v=1638178245"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2_76a5524b-c7b4-4411-8f88-fbccad83e4dd.jpg?v=1638178245","width":1500},{"alt":null,"id":23354528301229,"position":4,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-3.jpg?v=1638178154"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-3.jpg?v=1638178154","width":1500},{"alt":null,"id":23354528268461,"position":5,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-1.jpg?v=1638178149"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/2-1.jpg?v=1638178149","width":1500},{"alt":null,"id":23354528366765,"position":6,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-1.jpg?v=1638178142"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-1.jpg?v=1638178142","width":1500},{"alt":null,"id":23354528399533,"position":7,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-3.jpg?v=1638178139"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-3.jpg?v=1638178139","width":1500},{"alt":null,"id":23354528432301,"position":8,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-6.jpg?v=1638178131"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/3-6.jpg?v=1638178131","width":1500},{"alt":null,"id":23354528465069,"position":9,"preview_image":{"aspect_ratio":1.0,"height":1500,"width":1500,"src":"\/\/discoverdevice.com\/cdn\/shop\/products\/5_a556164e-da98-4172-94d4-376860810fc7.jpg?v=1638178124"},"aspect_ratio":1.0,"height":1500,"media_type":"image","src":"\/\/discoverdevice.com\/cdn\/shop\/products\/5_a556164e-da98-4172-94d4-376860810fc7.jpg?v=1638178124","width":1500}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cstrong\u003eProduct Spec.\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003eDevice housing: CNC aluminum\u003c\/li\u003e\n\u003cli\u003eOutput voltage: 6,7,8,9,11V\u003c\/li\u003e\n\u003cli\u003eInput: DC5V,1A\u003c\/li\u003e\n\u003cli\u003eCharge mode:type-C quick charge\u003c\/li\u003e\n\u003cli\u003eConnection:RCA\u003c\/li\u003e\n\u003cli\u003eCapacity:1200mAh\u003c\/li\u003e\n\u003cli\u003eDimension: 27.5X62.8m\u003c\/li\u003e\n\u003cli\u003eN.W: 57g\u003c\/li\u003e\n\u003cli\u003eG.W:122g\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cdiv style=\"text-align: left;\"\u003e\u003cimg style=\"float: none;\" alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0148\/5556\/9462\/files\/banner2_3c8cc608-cf84-4d5d-9eb9-6782f7f4e11a.jpg?v=1662365192\"\u003e\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eProtective Mechanism\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e1.\u003cstrong\u003eoutput short circuit protection.\u003c\/strong\u003e\u003cbr\u003e2.dual input charging protection(batteries and the control panel both equipped with shutdown,overshoot and over discharge protection).\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e\u003cstrong\u003eProduct Manual\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e1.Press and hold the power button 2 seconds to turn it on\/off.\u003cbr\u003e2.Click the power button to adjust the voltage 6,7,8,9,11V for option.\u003cbr\u003e3.Default booting at 10V start up for 0.2S,and then load to the last memory working voltage.\u003cbr\u003e4.It will shift to display the capacity of battery without working over 2S, and the indicator light is on the breathing state,the five indicators represent for 20%~100% of the power capacity.Click the button to return to voltage display.\u003cbr\u003e5.The indicator light is blinking during charging and stop blinking with the overshoot protection working after full charged.\u003cbr\u003e6.the power bank capacity 1200mAh.3.5 hours to be full charged by over 1A charger.About 8 hours working at 8V.\u003cbr\u003e7.This power bank is only for rotary or coil machines with RCA connections.\u003cbr\u003e8.Don't use this device while on charging.\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003eProblem Solution\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWhen the device short out - Just reconnect with the charger to activate.\u003c\/strong\u003e\u003c\/p\u003e"};
selectCallback = function(variant, selector) {
if (variant) {
if (variant.available) {
if (variant.compare_at_price > variant.price) {
$(".price-box .price").html('' + Shopify.formatMoney(variant.compare_at_price, money_format) + "" + ' ' + Shopify.formatMoney(variant.price, money_format) + "")
} else {
$(".price-box .price").html('' + Shopify.formatMoney(variant.price, money_format) + "");
}
woodmart_settings.enableCurrency && currenciesCallbackSpecial(".price-box span.money"),$(".single_add_to_cart_button").removeClass("disabled").removeAttr("disabled").html(window.inventory_text.add_to_cart);
}else{
$("#product-form-quick-4215990976566 .single_add_to_cart_button").html(window.inventory_text.sold_out).addClass("disabled").attr("disabled", "disabled");
}
if(swatch_color_type == '1' || swatch_color_type == '2'){
var form = $('#' + selector.domIdPrefix).closest('form');
for (var i=0,length=variant.options.length; i= 1) { //multiple variants
for (var i = 0; i < product.variants.length; i++) {
var variant = product.variants[i];
var option = '';
layout.find('form.product-form > select').append(option);
}
new Shopify.OptionSelectors("product-selectors-4215990976566", {
product: product,
onVariantSelected: selectCallback,
enableHistoryState: true
});
var filePath = asset_url.substring(0, asset_url.lastIndexOf('/'));
var assetUrl = asset_url.substring(0, asset_url.lastIndexOf('/'));
var options = "";
for (var i = 0; i < product.options.length; i++) {
options += '
';
options += '
' + product.options[i] + ':
';
options += '
';
var is_color = false;
var is_circle = 'circle';
if (/Color|Colour/i.test(product.options[i])) {
is_color = true;
}
if (swatch_color_type == '2') {
is_color = false;
is_circle = '';
}
var optionValues = new Array();
for (var j = 0; j < product.variants.length; j++) {
var variant = product.variants[j];
var value = variant.options[i];
if(variant.featured_image && woodmart_settings.product_data.product_swatch_setting == '2'){
var img = variant.featured_image.src.lastIndexOf(".");
var vimg = variant.featured_image.src.slice(0, img) + "_50x50_crop_center" + variant.featured_image.src.slice(img);
}
var valueHandle = convertToSlug(value);
var forText = 'swatch-4215990976566-' + i + '-' + valueHandle;
if (optionValues.indexOf(value) < 0) {
options += '