mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
update web
This commit is contained in:
parent
077d93633b
commit
ec97c0aa28
@ -1,20 +1,34 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>HTMx - Teaching HTML new tricks</title>
|
||||
<style type="text/css">body{margin:40px auto;max-width:740px;line-height:1.6;font-size:18px;color:#444;padding:0 10px;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}h1,h2,h3{line-height:1.2}h1{text-align: center; font-size: 4em}</style>
|
||||
<style type="text/css">body {
|
||||
margin: 40px auto;
|
||||
max-width: 740px;
|
||||
line-height: 1.6;
|
||||
font-size: 18px;
|
||||
color: #444;
|
||||
padding: 0 10px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
|
||||
}
|
||||
h1, h2, h3 {
|
||||
line-height: 1.2
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 4em
|
||||
}</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1></> HTM<sub>x</sub></h1>
|
||||
<section>
|
||||
<p>HTMx is a set of extensions to HTML that allows you to web applications that would normally require javascript
|
||||
with only HTML attributes. It fills a gap in functionality that has been inexplicably left out of
|
||||
standard HTML, and allows you to use the full range of HTTP and HTML expressiveness originally
|
||||
envisioned for the web.</p>
|
||||
<p>HTMx is a set of extensions to HTML that bring many of the useful features of modern web browsers directly
|
||||
into HTML, rather than requiring javascript. It fills gaps in functionality found in
|
||||
standard HTML, dramatically expanding the expressiveness of HTTP and HTML.</p>
|
||||
<p>Here is a simple example of HTMx in action:</p>
|
||||
<pre><button hx-get="/example" hx-target="#myDiv">Click Me</button></pre>
|
||||
<p>This example issues an AJAX request to <code>/example</code> when a user clicks on it, and swaps the response
|
||||
HTML into the element with the id <code>myDiv</code></p>
|
||||
<p>HTMx was inspired by <a href="http://intercoolerjs.org">intercooler.js</a>, and aims to be a minimalist &
|
||||
HTML into the element with the id <code>myDiv</code></p>
|
||||
<p>HTMx is inspired by <a href="http://intercoolerjs.org">intercooler.js</a>, and aims to be a minimalist &
|
||||
dependency free implementation of the same concept.</p>
|
||||
</section>
|
||||
<section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user