mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-13 00:02:53 +02:00
fix: _hyperscript not working
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import _hyperscript from 'hyperscript.org/dist/_hyperscript.min';
|
import 'hyperscript.org';
|
||||||
import './_htmx.js';
|
import './_htmx.js';
|
||||||
import Alpine from "alpinejs";
|
import Alpine from "alpinejs";
|
||||||
import mask from '@alpinejs/mask';
|
import mask from '@alpinejs/mask';
|
||||||
@@ -6,6 +6,7 @@ import collapse from '@alpinejs/collapse'
|
|||||||
import { create, all } from 'mathjs';
|
import { create, all } from 'mathjs';
|
||||||
|
|
||||||
window.Alpine = Alpine;
|
window.Alpine = Alpine;
|
||||||
|
const _hyperscript = window._hyperscript;
|
||||||
window._hyperscript = _hyperscript;
|
window._hyperscript = _hyperscript;
|
||||||
window.math = create(all, {
|
window.math = create(all, {
|
||||||
number: 'BigNumber',
|
number: 'BigNumber',
|
||||||
@@ -15,8 +16,6 @@ Alpine.plugin(mask);
|
|||||||
Alpine.plugin(collapse);
|
Alpine.plugin(collapse);
|
||||||
Alpine.start();
|
Alpine.start();
|
||||||
|
|
||||||
_hyperscript.browserInit();
|
|
||||||
|
|
||||||
const successAudio = new Audio("/static/sounds/success.mp3");
|
const successAudio = new Audio("/static/sounds/success.mp3");
|
||||||
const popAudio = new Audio("/static/sounds/pop.mp3");
|
const popAudio = new Audio("/static/sounds/pop.mp3");
|
||||||
window.paidSound = successAudio;
|
window.paidSound = successAudio;
|
||||||
|
|||||||
Reference in New Issue
Block a user