Changing to sqlite and resetting,

This commit is contained in:
calcu1on
2025-08-29 22:07:59 -04:00
parent 2309e31256
commit 63bbb46715
16 changed files with 1617 additions and 1118 deletions

View File

@@ -1,7 +1,7 @@
((Drupal) => {
Drupal.behaviors.button = {
attach(context) {
console.log("hello");
// console.log("hello");
},
};
})(Drupal);

View File

@@ -24,9 +24,9 @@ predict_event:
js/predictEvent.js: { attributes: { await: true }}
brainjs:
version: 2.0.0
version: 24
js:
https://unpkg.com/brain.js@2.0.0-beta.23/dist/browser.js: { type: external, attributes: { async: true }}
https://unpkg.com/brain.js@2.0.0-beta.24/dist/browser.js: { type: external, attributes: { async: true }}
articles:
js:

View File

@@ -1,6 +1,5 @@
document.addEventListener('readystatechange', event => {
// When HTML/DOM elements are ready:
if (event.target.readyState === "interactive") { //does same as: ..addEventListener("DOMContentLoaded"..
if (event.target.readyState === "interactive") {
highlightFightHistory();
let train = false;
if (train) {
@@ -32,7 +31,7 @@ function highlightFightHistory() {
function trainTheBrain() {
const config = {
iterations: 5000,
iterations: 500,
log: true,
logPeriod: 100,
binaryThresh: 0.5,