mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 21:40:28 -05:00
a045e4f59a
Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Zach Bloomquist <git@chary.us> Co-authored-by: Zach Bloomquist <github@chary.us>
31 lines
677 B
HTML
31 lines
677 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<script type="text/javascript" src="static/jquery.js"></script>
|
|
</head>
|
|
<body>
|
|
<button id="fetch">fetch</button>
|
|
<button id="create">create</button>
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("button#create").click(function(){
|
|
$.ajax({
|
|
method: "POST",
|
|
url: "/users/1",
|
|
data: JSON.stringify({some: "data"})
|
|
})
|
|
})
|
|
|
|
$("button#fetch").click(function(){
|
|
$.getJSON("/users")
|
|
})
|
|
|
|
$("button#pushState").click(function(){
|
|
window.history.pushState({foo: "bar"}, null, "pushState.html")
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |