-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (71 loc) · 1.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<div style="font-weight:bold">No Glove No Love</div>
<div>
<span>Business Name</span>
<input id="business" />
</div>
<div>
<span>Address</span>
<input id="address" />
</div>
<div>
<span>City</span>
<input id="city" />
</div>
<div>
<span>State</span>
<input id="state" />
</div>
<div>
<span>Zip</span>
<input id="zip" />
</div>
<div>
<span>Product</span>
<select id="product" disabled="true">
<option value="basic_gloves">Basic Gloves</option>
</select>
</div>
<div>
<span>Quantity</span>
<input id="quantity" />
</div>
<button onclick="submit()">Submit</button>
<!--
<a href="mailto:[email protected]?subject=Oder">Submit</a>
-->
<script type="text/javascript">
var submit = function(){
var crlf = "%0D%0A";
var body =
"Business:" + document.getElementById("business").value + crlf +
"address:" + document.getElementById("address").value + crlf +
"city:" + document.getElementById("city").value + crlf +
"state:" + document.getElementById("state").value + crlf +
"zip:" + document.getElementById("zip").value + crlf +
"product:" + document.getElementById("product").value + crlf +
"quantity:" + document.getElementById("quantity").value;
window.open('mailto:[email protected]?subject=subject&body=' + body, "_blank");
}
/*
document.addEventListener('deviceready', function () {
cordova.plugins.email.isAvailable(
function (isAvailable) {
alert("is email mobile available? " + (isAvailable ? "Yes" : "No"));
if(isAvailable){
window.plugin.email.open({
to: '[email protected]',
subject: 'Greetings',
body: 'This is a test'
}, callback, scope);
}
}
);
}, false);
function callback(){
console.log("callback function");
}
function scope(){
console.log("scope function");
}
*/
</script>