Академический Документы
Профессиональный Документы
Культура Документы
DOCTYPE HTML>
<html>
<!-@author Ben Poole, http://benpoole.com
Example HTML5 code for playing with the local WebKit (Opera too?
) SQL database.
@see http://benpoole.com/weblog/201106222227
-->
<head>
<meta charset="UTF-8" />
<title>Winkles Of The World Unite!</title>
<style type="text/css">
body {font-family: Helvetica, sans-serif; font-size: 100%; lineheight: 1.4em}
input, button {width: 25em; font-size: 100%; padding: .25em}
</style>
</head>
<body>
<h1>Winkles Of The World Unite</h1>
<p>This wee bit of example code accompanies the blog post, <cite><a href
="http://benpoole.com/weblog/201106222227">Off-line web apps: local Web SQL &
; Javascript</a></cite> over at <a href="http://benpoole.com">benpoole.com</a>.<
/p>
<form>
<h2>Winkle name & location:</h2>
<p><input type="text" id="winklename" name="winklename" class="n
ame" placeholder="Winkle name here" /></p>
<p><input type="text" id="location" name="location" class="locat
ion" placeholder="Winkle location here" /></p>
<p><input type="submit" value="Save this winkle" /></p>
</form>
<p>Type in a location below & then click the button to see what we&#
8217;ve got:</p>
<p><input id="where" name="where" placeholder="Location to check for win
kles" /></p>
<p><input type="button" id="show-me" value="Show me the winkles!" /></p>
<h2>Winkle list</h2>
<ul id="winkle-list"><!-- set by updatePage() --></ul>
</body>
</html>