促销!

Sphero littleBits o25 DC motor

原价为:¥18.00。当前价格为:¥9.00。

分类:

littleBits o25 DC motor
littleBits o25 DC motor

cross axle

D shaft

The DC (or “direct current”) motor rotates a small cross axle shaft you can attach anything to. It also works with all littleBits accessories that have cross axle openings. Try attaching a wheel ! Use it to spin, turn, twist, and roll.

The DC (or “direct current”) motor rotates a small cross axle shaft you can attach anything to. It also works with all littleBits accessories that have cross axle openings. Try attaching a wheel ! Use it to spin, turn, twist, and roll.

// Shared SKU Map
var skuMap = {
‘650-0142’: {
title: ‘vtitle01’,
subtitle: ‘vsub01’,
description: ‘vdescr01’
},
‘650-0029’: {
title: ‘vtitle02’,
subtitle: ‘vsub02’,
description: ‘vdescr02’
},
// Add more mappings as needed
};

// Update title based on SKU
var skuTitleElement = document.querySelector(‘.product-meta__sku-number’);
var titleElement = document.querySelector(‘.product-meta__title’);

function updateTitleBasedOnSKU(skuMap) {
var skuNumberTitle = skuTitleElement.textContent.trim();

if (skuMap.hasOwnProperty(skuNumberTitle)) {
var divId = skuMap[skuNumberTitle].title;
var divContent = document.getElementById(divId);

if (divContent) {
titleElement.textContent = divContent.textContent.trim();
var inlineStyles = divContent.getAttribute(‘style’);
titleElement.setAttribute(‘style’, inlineStyles);
divContent.style.display = ‘block’;
}
}
}

updateTitleBasedOnSKU(skuMap);

// Update subtitle based on SKU
var skuSubtitleElement = document.querySelector(‘.product-meta__sku-number’);
var skuElement = document.querySelector(‘.product-meta__sku’);

评价

目前还没有评价

成为第一个“Sphero littleBits o25 DC motor” 的评价者

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部