// <![CDATA[
/* Override the updatePreview method inside the color picker to update all of our custom elements */
Refresh.Web.ColorPicker.prototype.updatePreview = function() {
try {
// update the preview color box as usual
this._preview.style.backgroundColor = ‘#’ + this._cvp.color.hex;
// Also update our preview display
$(’embed-header’).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-meta’).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-tracks-header’).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-tracks’).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-track-1′).style.backgroundColor = ‘#’ + this._cvp.color.hex;
try { // may have smaller number of tracks
$(’embed-track-2′).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-track-3′).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-track-4′).style.backgroundColor = ‘#’ + this._cvp.color.hex;
$(’embed-track-5′).style.backgroundColor = ‘#’ + this._cvp.color.hex;
} catch(e) {}
$(’embed-read-review’).style.backgroundColor = ‘#’ + this._cvp.color.hex;
// height of embed = (header = 257px) + (29px * number of tracks) + (footer = 66px)
embed_height = 257 + (29 * 2) + 66;
// and update our HTML snippet
$(’embed-code’).value = ‘
Read full review of C U 1 (UST Mix) – CUB on Boomkat.com ©‘;
} catch (e) { alert(e); }
};
var cp1 = null;
var modal = null;
document.observe(‘dom:loaded’,function(){
modal = new Control.Modal($(‘modal’),{
overlayOpacity: 0.75,
className: ‘modal’,
fade: true
});
modal.observe(‘afterOpen’, function(){
if( !cp1 ) {
cp1 = new Refresh.Web.ColorPicker(‘cp1’, {startHex: ‘DD6C94′, startMode:’s’});
} else {
// when opening for the 2nd+ time, ensure we re-show the pointers
$(‘rangearrows-img’).show();
$(‘mappoint-img’).show();
}
});
modal.observe(‘afterClose’, function(){
// after close, remove the js-inserted images as well
$(‘rangearrows-img’).hide();
$(‘mappoint-img’).hide();
});
});
// ]]>
Anonymous black label warehouse aces from the Cub label. We can’t divulge the identities of these operators for fear of some darkside repercussions, but if we were to spill the beans, a lot of techno heads would be getting moist right now. The A-side ‘CU1’ seems to have taken the current dubstep/Funky mantra of “reduce the tempo and up the groove” to heart, creating a snaky slow 118bpm techno rhythm that slithers along like it’s caught in a strong headwind. The drag effect is accentuated by a grumbling Belgian bassline reminding of Peter van Hoesen’s ‘Trusted EP’ and dread reverb treatments making for an addictively strong cut. On the flip we get the UST remix, rubbing out the kinks and rolling with a fuller 4/4 pattern. This is a must have 12″ for any fans of the Horizontal Ground or Sandwell District labels. Highly Recommended!!!
// <![CDATA[
// horizontal slider control
var slider2 = new Control.Slider(‘same-genre-products-slider-track-handle’, ‘same-genre-products-slider-track’, {
onSlide: function(v) { scrollHorizontal(v, $(‘same-genre-products’), slider2); },
onChange: function(v) { scrollHorizontal(v, $(‘same-genre-products’), slider2); }
});
// scroll the element horizontally based on its width and the slider maximum value
function scrollHorizontal(value, element, slider) {
element.scrollLeft = Math.round(value/slider.maximum*(element.scrollWidth-element.offsetWidth));
}
// disable horizontal scrolling if text doesn’t overflow the div
if ($(‘same-genre-products’).scrollWidth