|
1 | 1 | <!DOCTYPE HTML> |
2 | 2 | <!-- |
3 | 3 | /* |
4 | | - * JavaScript MD5 Demo 1.0 |
| 4 | + * JavaScript MD5 Demo 1.0.1 |
5 | 5 | * https://github.com/blueimp/JavaScript-MD5 |
6 | 6 | * |
7 | 7 | * Copyright 2011, Sebastian Tschan |
|
13 | 13 | --> |
14 | 14 | <html lang="en"> |
15 | 15 | <head> |
16 | | -<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]--> |
| 16 | +<!--[if IE]> |
| 17 | +<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 18 | +<![endif]--> |
17 | 19 | <meta charset="utf-8"> |
18 | 20 | <title>JavaScript MD5 Demo</title> |
19 | 21 | <meta name="description" content="JavaScript MD5 implementation. Compatible with server-side environments like node.js, module loaders like RequireJS and all web browsers."> |
20 | | -<meta name="viewport" content="width=device-width"> |
21 | | -<link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap.min.css"> |
22 | | -<style>body{padding-top:60px;}</style> |
23 | | -<link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-responsive.min.css"> |
24 | | -<!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-ie6.min.css"><![endif]--> |
25 | | -<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> |
| 22 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 23 | +<link rel="stylesheet" href="css/demo.css"> |
26 | 24 | </head> |
27 | 25 | <body> |
28 | | -<div class="navbar navbar-fixed-top"> |
29 | | - <div class="navbar-inner"> |
30 | | - <div class="container"> |
31 | | - <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> |
32 | | - <span class="icon-bar"></span> |
33 | | - <span class="icon-bar"></span> |
34 | | - <span class="icon-bar"></span> |
35 | | - </a> |
36 | | - <a class="brand" href="https://github.com/blueimp/JavaScript-MD5">JavaScript MD5</a> |
37 | | - <div class="nav-collapse"> |
38 | | - <ul class="nav"> |
39 | | - <li class="active"><a href="#">Demo</a></li> |
40 | | - <li><a href="https://github.com/blueimp/JavaScript-MD5/downloads">Downloads</a></li> |
41 | | - <li><a href="https://github.com/blueimp/JavaScript-MD5">Source Code</a></li> |
42 | | - <li><a href="https://github.com/blueimp/JavaScript-MD5">Documentation</a></li> |
43 | | - <li><a href="https://github.com/blueimp/JavaScript-MD5/issues">Issues</a></li> |
44 | | - <li><a href="test/">Test</a></li> |
45 | | - <li><a href="https://blueimp.net">© Sebastian Tschan</a></li> |
46 | | - </ul> |
47 | | - </div> |
48 | | - </div> |
49 | | - </div> |
50 | | -</div> |
51 | | -<div class="container"> |
52 | | - <div class="page-header"> |
53 | | - <h1>JavaScript MD5 Demo</h1> |
54 | | - </div> |
55 | | - <blockquote> |
56 | | - <p>JavaScript <a href="http://en.wikipedia.org/wiki/MD5">MD5</a> implementation.<br> |
57 | | - Compatible with server-side environments like <a href="http://nodejs.org/">node.js</a>, module loaders like <a href="http://requirejs.org/">RequireJS</a> and all web browsers.</p> |
58 | | - </blockquote> |
| 26 | +<h1>JavaScript MD5 Demo</h1> |
| 27 | +<p>JavaScript <a href="http://en.wikipedia.org/wiki/MD5">MD5</a> implementation.<br> |
| 28 | +Compatible with server-side environments like <a href="http://nodejs.org/">node.js</a>, module loaders like <a href="http://requirejs.org/">RequireJS</a> and all web browsers.</p> |
| 29 | +<ul class="navigation"> |
| 30 | + <li><a href="https://github.com/blueimp/JavaScript-MD5/tags">Download</a></li> |
| 31 | + <li><a href="https://github.com/blueimp/JavaScript-MD5">Source Code</a></li> |
| 32 | + <li><a href="https://github.com/blueimp/JavaScript-MD5/blob/master/README.md">Documentation</a></li> |
| 33 | + <li><a href="test/">Test</a></li> |
| 34 | + <li><a href="https://blueimp.net">© Sebastian Tschan</a></li> |
| 35 | +</ul> |
| 36 | +<form> |
| 37 | + <h2>Input</h2> |
| 38 | + <textarea rows="6" id="input"></textarea> |
59 | 39 | <br> |
60 | | - <div class="row"> |
61 | | - <div class="span7"> |
62 | | - <h2>Input</h2> |
63 | | - <textarea class="span7" rows="6" id="input"></textarea> |
64 | | - </div> |
65 | | - <div class="span5"> |
66 | | - <h2>Result</h2> |
67 | | - <div class="well" id="result"></div> |
68 | | - <p> |
69 | | - <button class="btn btn-primary" id="calculate">Calculate</button> |
70 | | - <button class="btn" type="reset" id="reset">Reset</button> |
71 | | - </p> |
72 | | - </div> |
73 | | - </div> |
74 | | -</div> |
75 | | -<script src="md5.min.js"></script> |
76 | | -<!-- jQuery and Bootstrap JS are not required, but included for the demo --> |
77 | | -<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> |
78 | | -<script src="http://blueimp.github.com/cdn/js/bootstrap.min.js"></script> |
79 | | -<script> |
80 | | -/*global jQuery, window */ |
81 | | -(function ($) { |
82 | | - 'use strict'; |
83 | | - var calculate = function () { |
84 | | - $('#result').html(window.md5($('#input').val())); |
85 | | - }, |
86 | | - init = function () { |
87 | | - $('#input').val('日本'); |
88 | | - $('#result').empty(); |
89 | | - }; |
90 | | - init(); |
91 | | - $('#calculate').on('click', calculate); |
92 | | - $('#reset').on('click', init); |
93 | | -}(jQuery)); |
94 | | -</script> |
| 40 | + <button type="submit" id="calculate">Calculate</button> |
| 41 | + <button type="reset" id="reset">Reset</button> |
| 42 | + <h2>Result</h2> |
| 43 | + <input id="result"> |
| 44 | + <br> |
| 45 | +</form> |
| 46 | +<script src="js/md5.js"></script> |
| 47 | +<!-- jQuery is not required by the Gallery, but included for the demo --> |
| 48 | +<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> |
| 49 | +<script src="js/demo.js"></script> |
95 | 50 | </body> |
96 | 51 | </html> |
0 commit comments