Created
February 26, 2015 16:01
-
-
Save jpetto/77bf1da8b24ddc9e859b to your computer and use it in GitHub Desktop.
ASWM SP 2015: Week 5 - Simple API demo
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>API Demo</title> | |
<style type="text/css"> | |
.error { | |
color: #f00; | |
} | |
</style> | |
</head> | |
<body> | |
<main role="main"> | |
<form action="api.php" method="get" id="the-form"> | |
<label for="name">Name</label> | |
<input type="text" id="name"> | |
<br> | |
<button type="submit" id="the-button">Make an API call!</button> | |
</form> | |
</main> | |
<h2>Response:</h2> | |
<div id="response"></div> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment