corrade-http-templates – Blame information for rev 2

Subversion Repositories:
Rev:
Rev Author Line No. Line
2 eva 1 <!doctype html>
2  
3 <html lang="en">
4 <head>
5 <meta charset="utf-8">
6  
7 <title>Download Texture</title>
8  
9 <meta name="description" content="Retrieving and Displaying an In-World Texture">
10 <meta name="author" content="Wizardry and Steamworks">
11  
12 <link rel="stylesheet" href="css/fonts.css?v=1.0">
13 <link rel="stylesheet" href="css/style.css?v=1.0">
14  
15 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
16 <script type="text/javascript">
17 $(document).ready(function () {
18 $("#download").click(function(e){
19 $("#control").animate({ opacity: 'hide' }, 'slow');
20 $('#texture').attr('src', 'images/loader.gif');
21 $.ajax({
22 type: 'post',
23 url: "downloadTexture.php?t=" + Math.random(),
24 data: {
25 uuid: $("#uuid").val()
26 }
27 }).done(function(data) {
28 $('#texture').attr('src', "data:image/png;base64," + data);
29 $("#control").animate({ opacity: 'show' }, 'slow');
30 });
31 });
32 });
33 </script>
34 </head>
35  
36 <body>
37 <div id="container" align="center">
38 <div id="image">
39 <img src="images/loader-image.png" align="middle" id="texture"><br/>
40 </div>
41 <div id="control">
42 <input type="text" size="32" value="c2e0037f-4059-b80a-4ffd-3ce0aed7ac7e" id="uuid"></input><br/>
43 <button type="button" id="download">Download</button>
44 </div>
45 </div>
46 </body>
47 </html>