whoami contact_me fix
This commit is contained in:
parent
0fff929c3c
commit
427d15661e
@ -54,8 +54,8 @@ function sendPostRequest() {
|
|||||||
var textFieldData = document.getElementById("textField").value;
|
var textFieldData = document.getElementById("textField").value;
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
var url = "https://blog.ca.sual.in/api/send_message";
|
var url = "https://blog.ca.sual.in/api/message";
|
||||||
<!-- var url = "http://localhost:1313/api/send_message"; -->
|
<!-- var url = "http://localhost:1313/apimessage"; -->
|
||||||
xhr.open("POST", url, true);
|
xhr.open("POST", url, true);
|
||||||
xhr.setRequestHeader("Content-Type", "application/json");
|
xhr.setRequestHeader("Content-Type", "application/json");
|
||||||
xhr.onreadystatechange = function () {
|
xhr.onreadystatechange = function () {
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<h1>My First Heading</h1>
|
|
||||||
<p>My first paragraph.</p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<form method="post" action="https://forms.un-static.com/forms/YOUR_ENDPOINT_REFERENCE">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label for="name" class="col-4 col-form-label">Name</label>
|
|
||||||
<div class="col-8">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-addon">
|
|
||||||
<i class="fa fa-user"></i>
|
|
||||||
</div>
|
|
||||||
<input id="name" name="name" placeholder="Please enter your name" type="text" required="required" class="form-control">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label for="email" class="col-4 col-form-label">E-mail address</label>
|
|
||||||
<div class="col-8">
|
|
||||||
<div class="input-group">
|
|
||||||
<div class="input-group-addon">
|
|
||||||
<i class="fa fa-envelope"></i>
|
|
||||||
</div>
|
|
||||||
<input id="email" name="email" placeholder="Your e-mail address" type="text" required="required" class="form-control">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label for="message" class="col-4 col-form-label">Message</label>
|
|
||||||
<div class="col-8">
|
|
||||||
<textarea id="message" name="message" cols="40" rows="10" required="required" class="form-control"></textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<div class="offset-4 col-8">
|
|
||||||
<button name="submit" type="submit" class="btn btn-primary">Send</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="text-center">
|
|
||||||
<p><small>(Powered by <a rel="nofollow" href="Un-static Forms">Un-static Forms</a>)</small></p>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
Loading…
Reference in New Issue
Block a user