web/res/metadataplayer/test/hook.html
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Thu, 08 Sep 2011 21:24:21 +0200
changeset 271 4e4e2fda4e66
parent 133 9578d3ddce17
permissions -rwxr-xr-x
Added tag V00.79 for changeset 16d678e6a433

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" xml:lang="fr" 
xmlns="http://www.w3.org/1999/xhtml" lang="fr">

<head>

</head>

<body>
<script type="text/javascript" src="hook.js"></script> 
<script  type="text/javascript">	
Hook.register(
  'quit',
  function ( args ) {
    alert( 'Bye!' );
    return true;
  }
);

Hook.register(
  'test',
  function ( args ) {
    alert( 'ici!' );
    return true;
  }
);

Hook.call( 'quit', [ 'All Done' ] );
Hook.call( 'test', [ 'All Done' ] );

</script>


</body>
</html>