'].join('');
}
function handleError(){
$('#gui-modal-product-inventory-location-wrapper').show();
$('#gui-modal-product-inventory-location-content').html('');
}
// Get product inventory location information
function inventoryOnClick() {
$.getJSON('https://www.spokesmancycles.com/product-inventory/?id=87753856', function (response) {
if(!response || !response.productInventory || (response.productInventory.locations && !response.productInventory.locations.length)){
handleError();
return;
}
var locations = response.productInventory.locations || [];
var rows = locations.map(function(item, index) {
return createLocationRow(item, index === 0)
});
$('#gui-modal-product-inventory-location-content').html(rows);
var dateObj = new Date();
var hours = dateObj.getHours() ',
'', 'Last updated:', ' ',
'Today at ', hours, ':', minutes,
'
',
'
Online and in-store prices may differ
'].join('');
$('#gui-modal-product-inventory-location-footer').html(footerContent);
$('#gui-modal-product-inventory-location-wrapper').show();
}).fail(handleError);
}
$('#productLocationInventory').click(inventoryOnClick);
// When the user clicks on 'Close' in the modal, close it
$('#gui-modal-product-inventory-location-close').click(function(){
$('#gui-modal-product-inventory-location-wrapper').hide();
});
// When the user clicks anywhere outside of the modal, close it
$('.gui-modal-product-inventory-location-background').click(function(){
$('#gui-modal-product-inventory-location-wrapper').hide();
});
})();
Light set with powerful headlight and feature packed rear light with brake light functionality
Headlight:
Double lens technology provides high quality precise light distribution
Digital display shows the remaining battery run time in real time; Battery symbol in the display starts flashing when battery capacity is
Auto function mode adjusts the light to the ambient brightness for the perfect setting based on time of day or conditions
Mode memory returns to last used mode after being turned off and back on
LED strip indicates the current light mode
Side visibility for increased visibility and safety
60 lux maximum output
Tail light:
Light guide built into the lens helps direct and shape the beam for optimum safety and performance
Accelerometer detects braking and increases brightness in two available modes
Mode memory returns to last used mode and the light has been turned off