corrade-http-templates – Diff between revs 2 and 7

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 2 Rev 7
1 <!doctype html> 1 <!doctype html>
2   2  
3 <html lang="en"> 3 <html lang="en">
4 <head> 4 <head>
5 <meta charset="utf-8"> 5 <meta charset="utf-8">
6   6  
7 <title>Display Avatars moving in Real-Time on the Map</title> 7 <title>Display Avatars moving in Real-Time on the Map</title>
8 8
9 <meta name="description" content="Display Avatars moving in Real-Time on the Map"> 9 <meta name="description" content="Display Avatars moving in Real-Time on the Map">
10 <meta name="author" content="Wizardry and Steamworks"> 10 <meta name="author" content="Wizardry and Steamworks">
11 11
12 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> 12 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
13 <script type="text/javascript"> 13 <script type="text/javascript">
14 $(document).ready(function () { 14 $(document).ready(function () {
15 $.ajax({ -  
16 type: 'post', -  
17 url: "plotMapAvatars.php?t=" + Math.random(), -  
18 data: { -  
19 uuid: $("#uuid").val() -  
20 } -  
21 }).done(function(data) { -  
22 $('#texture').attr('src', "data:image/png;base64," + data); -  
23 }); -  
24 setInterval(function () { 15 function requestAvatarPositions() {
25 $.ajax({ 16 $.ajax({
26 type: 'post', 17 type: 'post',
27 url: "plotMapAvatars.php?t=" + Math.random(), 18 url: "plotMapAvatars.php?t=" + Math.random(),
28 data: { 19 data: {
29 uuid: $("#uuid").val() 20 uuid: $("#uuid").val()
30 } 21 }
31 }).done(function(data) { 22 }).done(function(data) {
32 $('#texture').attr('src', "data:image/png;base64," + data); 23 $('#texture').attr('src', "data:image/png;base64," + data);
-   24 setTimeout(requestAvatarPositions, 1000);
33 }); 25 });
34 }, 1000); 26 }
-   27 setTimeout(requestAvatarPositions, 1000);
35 }); 28 });
36 </script> 29 </script>
37 </head> 30 </head>
38   31  
39 <body> 32 <body>
40 <div id="container" align="center"> 33 <div id="container" align="center">
41 <img src="" align="middle" id="texture"> 34 <img src="" align="middle" id="texture">
42 </div> 35 </div>
43 </body> 36 </body>
44 </html> 37 </html>
45   38  
46
Generated by GNU Enscript 1.6.5.90.
39
Generated by GNU Enscript 1.6.5.90.
47   40  
48   41  
49   42