Browse Source

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

SVI 2 years ago
parent
commit
0c38011136
2 changed files with 5 additions and 0 deletions
  1. 0 0
      web/static/js/_hyperscript.min.js
  2. 5 0
      web/tmpl/header.tmpl.html

File diff suppressed because it is too large
+ 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}}

Some files were not shown because too many files changed in this diff