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
9
LICENSE
Normal file
9
LICENSE
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
8
README.md
Normal file
8
README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# is-critter
|
||||
|
||||
- https://htmx.org/docs/#installing
|
||||
- https://github.com/TA3/web-user-behaviour
|
||||
- https://www.merriam-webster.com/dictionary/critter
|
||||
|
||||
|| y/n | time to decide | indecision ||
|
||||
| | |
|
3
backend/go.mod
Normal file
3
backend/go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module git.batts.cloud/vbatts/critter/backend
|
||||
|
||||
go 1.20
|
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…
Reference in a new issue