update control selector
This commit is contained in:
parent
9d148d2529
commit
7b00c02a06
@ -13,14 +13,13 @@ define(
|
|||||||
|
|
||||||
if ( shared.feature['query-selector-all'] )
|
if ( shared.feature['query-selector-all'] )
|
||||||
{
|
{
|
||||||
controls = document.querySelectorAll( '.control-input' );
|
controls = document.querySelectorAll( '.control-slider' );
|
||||||
constraints = getConstraints( controls );
|
constraints = getConstraints( controls );
|
||||||
random_button = document.getElementById( 'random-button' );
|
random_button = document.getElementById( 'random-button' );
|
||||||
|
|
||||||
random_button.addEventListener( 'click', buttonClicked, false );
|
random_button.addEventListener( 'click', buttonClicked, false );
|
||||||
random_button.classList.remove( 'is-hidden' );
|
random_button.classList.remove( 'is-hidden' );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function buttonClicked( event )
|
function buttonClicked( event )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user