2

I'm trying to install Quojs, a gestures library but I got the following error :

TypeError: $$(...).tap is not a function

Any idea what I should do to get it work ?

<!DOCTYPE html>
<html>
<head>
    <title>The Touc Project</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
    <h1>TOUC !</h1>
    <!-- js -->
    <script type="text/javascript" src="bower_components/quojs/quo.js"></script>
    <script type="text/javascript">
    $$('h1').tap(function(e){
        console.log('tap');
    });
    </script>
</body>
</html>
J'hack le lezard
  • 413
  • 7
  • 23

1 Answers1

0

Check the source url of Quojs and try this instead

$$('h1').tap(function(){
    console.log('tap');
});