TLCMediaDesign wrote: Is this HTML5? I had a script somewhere that did this, I'll try to find it. We ended up not using it for some reason. |
Gee ThanksI hope you find it so I can see if it helps.
I found the script. There is a caveat that the failure shape or caption cannot have a transition (no fade in or fade out. The script checks to see if you are on a DD slide and checks if you are using shapes or captions for the failure. Set the Feedback to display for 100 seconds or so, the longer the safer.
The script assume you have a Submit and a Reset button on the slide and also puts a hand cursor on each. The feedback is hidden when the Reset button is clicked
Put this script in the head of the HTML page just under the first <script> tag:
var interfaceObj, eventEmitterObj;
window.addEventListener( 'moduleReadyEvent', function ( e )
{
interfaceObj = e.Data;
eventEmitterObj = interfaceObj.getEventEmitter();
initializeEventListeners();
});
function initializeEventListeners()
{
if ( interfaceObj )
{
if ( eventEmitterObj )
{
eventEmitterObj.addEventListener( 'CPAPI_SLIDEENTER', function ( e )
{
var thisElem;
for ( var key in cp.model.data )
{
if ( cp.model.data.hasOwnProperty( key ) )
{
if ( key.indexOf( 'Interaction_' ) != - 1 )
{
for ( var i = 0; i < e.Data.si.length; i++ )
{
cp.model.data[ e.Data.si[ i ].n ]
if ( cp.model.data[ e.Data.si[ i ].n + 'c' ].accstr.indexOf( 'Submit' ) != -1 )
{
document.getElementById( e.Data.si[ i ].n ).style.cursor = 'pointer';
}
if ( cp.model.data[ e.Data.si[ i ].n + "c" ].accstr.indexOf( 'Reset' ) != -1 )
{
ddReset = document.getElementById( e.Data.si[ i ].n )
ddReset.style.cursor = 'pointer';
ddReset.addEventListener( 'click', function()
{
for ( var i = 0; i < e.Data.si.length; i++ )
{
if ( e.Data.si[ i ].n.indexOf( 'Failure_Caption' ) != -1 )
{
thisElem = e.Data.si[ i ].n;
cp.hide( thisElem );
break;
}
if ( e.Data.si[ i ].n.indexOf( 'Failure_Shape' ) != -1 )
{
thisElem = e.Data.si[ i ].n;
cp.hide( thisElem );
break;
}
}
});
}
}
break;
}
}
}
});
}
}
}