initial commit
This commit is contained in:
commit
9d018e00be
82 files changed
+2407
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<html>
|
||||
<head>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.4.1.min.js"
|
||||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hi</h1>
|
||||
|
||||
<script>
|
||||
function test() {
|
||||
$.post("http://localhost:8000/user/1/toggle-enabled", null, function () {
|
||||
console.log("success", arguments);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<button onclick="test()">Change</button>
|
||||
|
||||
<form action="http://localhost:8000/user/1/toggle-enabled" method="post">
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user