Initial commit
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
commit
3eb17c1935
4 changed files with 51 additions and 0 deletions
31
index.html
Normal file
31
index.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="https://cdn.jsdelivr.net/gh/TA3/web-user-behaviour/userBehaviour.min.js"></script>
|
||||
<script src="https://unpkg.com/htmx.org@1.9.5" integrity="sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
userBehaviour.config( {
|
||||
userInfo: true,
|
||||
clicks: true,
|
||||
mouseMovement: true,
|
||||
mouseMovementInterval: 1,
|
||||
mouseScroll: true,
|
||||
timeCount: true,
|
||||
clearAfterProcess: true,
|
||||
processTime: 15,
|
||||
processData: function(results){
|
||||
console.log(results);
|
||||
},
|
||||
});
|
||||
userBehaviour.start();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
booger snatch
|
||||
|
||||
<button hx-post="/clicked" hx-trigger="click" hx-target="#parent-div" hx-swap="outerHTML" >is critter</button>
|
||||
<button hx-post="/clicked" hx-trigger="click" hx-target="#parent-div" hx-swap="outerHTML" >is not critter</button>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue