Explorar el Código

d06 Добавление _hyperscript(РАБОТАЕТ!!!)

SVI hace 2 años
padre
commit
0c38011136
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
  1. 0 0
      web/static/js/_hyperscript.min.js
  2. 5 0
      web/tmpl/header.tmpl.html

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
web/static/js/_hyperscript.min.js


+ 5 - 0
web/tmpl/header.tmpl.html

@@ -11,6 +11,7 @@
         <link href="/static/css/bootstrap.min.css" rel="stylesheet">
         <!-- htmx -->
         <script src="/static/js/htmx.min.js"></script>
+        <script src="/static/js/_hyperscript.min.js"></script>
     </head>
 
     <body hx-boost="true">
@@ -26,4 +27,8 @@
                     </div>
                 </div>
             </div>
+            <div class="counter">
+                <output>0</output>
+                <button _="on click increment the textContent of the previous <output/>">Increment</button> (1)
+            </div>
             {{end}}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio