Created
April 24, 2020 16:58
-
-
Save Heavyblade/acdfd7553aa43260d4b73951d432913c to your computer and use it in GitHub Desktop.
cors_text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset='utf-8'> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge'> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Docuware</title> | |
<!-- Bootstrap --> | |
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' integrity='sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u' crossorigin='anonymous'> | |
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'> | |
</head> | |
<style> | |
</style> | |
<body> | |
<div class='container-fluid'> | |
<div class='row'> | |
<ul id="trips"> | |
</ul> | |
</div> | |
</div> | |
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script> | |
<!-- Include all compiled plugins (below), or include individual files as needed --> | |
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js' integrity='sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa' crossorigin='anonymous'></script> | |
<script> | |
$(document).ready(function(){ | |
$.ajax({ | |
type: "GET", | |
url: "http://165.227.158.235:8080/trips?status=active&user_id=1" | |
}).done(function(data) { | |
data.trips.forEach(function(trip){ | |
var html = "<li>" + trip.office + " --- " + trip.date + "</li>" | |
$(html).appendTo($("#trips")) | |
}); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment