web/res/metadataplayer/test/hook.html
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Fri, 09 Sep 2011 19:58:39 +0200
changeset 272 fe2efe3600ea
parent 133 9578d3ddce17
permissions -rwxr-xr-x
add daemon option

<!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>