Parcourir la source

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

SVI il y a 2 ans
Parent
commit
0c38011136
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 0 0
      web/static/js/_hyperscript.min.js
  2. 5 0
      web/tmpl/header.tmpl.html

Fichier diff supprimé car celui-ci est trop grand
+ 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}}

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff