Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1.  
  2. $(document).ready(function() {
  3.  
  4. $('#loading').html('Loading...');
  5.  
  6. $.ajax({
  7. type: 'GET',
  8. url: 'http://ec2-3-15-201-223.us-east-2.compute.amazonaws.com/final/message.xml',
  9. dataType: 'xml',
  10. success: function(xml) {
  11.  
  12. $('#loading').html('');
  13.  
  14. $(xml).find('dev').each(function() {
  15.  
  16.  
  17. $('#dialog').append(
  18. '<div>' +
  19.  
  20. '<div><b>Message from the developer: </b>' +
  21.  
  22. $(this).find('msg').text() + '</div> ' +
  23.  
  24. '</div>');
  25.  
  26. });
  27. }
  28. });
  29.  
  30.  
  31. $('.img_div').click(function () {
  32.  
  33. $(this).toggleClass('active');
  34.  
  35. });
  36.  
  37. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement