소스 검색

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

SVI 2 년 전
부모
커밋
0c38011136
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 0 0
      web/static/js/_hyperscript.min.js
  2. 5 0
      web/tmpl/header.tmpl.html

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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}}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.