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

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 7
Line 10... Line 10...
10 <meta name="author" content="Wizardry and Steamworks"> 10 <meta name="author" content="Wizardry and Steamworks">
Line 11... Line 11...
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 () { -  
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 }); 14 $(document).ready(function () {
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) {
-   23 $('#texture').attr('src', "data:image/png;base64," + data);
32 $('#texture').attr('src', "data:image/png;base64," + data); 24 setTimeout(requestAvatarPositions, 1000);
33 }); 25 });
-   26 }
34 }, 1000); 27 setTimeout(requestAvatarPositions, 1000);
35 }); 28 });
36 </script> 29 </script>
Line 37... Line 30...
37 </head> 30 </head>