forked from philipbeel/Contactable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
name.html
executable file
·72 lines (66 loc) · 2.46 KB
/
name.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB" xml:lang="en-GB">
<title>Contactable 1.5| jQuery Contact Plugin</title>
<link rel="stylesheet" href="http://plugins.theodin.co.uk/jquery/contactable.1.5/contactable.css" type="text/css" />
<link rel="stylesheet" href="demo.css" type="text/css" />
<style>
/*label { display: inline-block; width: 150px; }*/
.dropdown, .fillin { margin-left: 100px; }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://plugins.theodin.co.uk/jquery/contactable.1.5/jquery.contactable.js"></script>
</head>
<body>
<!--start contactable -->
<div id="contactable"><!-- contactable html placeholder --></div>
<script>
jQuery(function(){
jQuery('#contactable').contactable(
{
subject: 'feedback URL:'+location.href,
url: 'mail.php',
name: 'Name',
email: 'Email',
dropdownTitle: 'Issue',
dropdownOptions: ['General', 'Website bug', 'Feature request'],
message : 'Message',
submit : 'SEND',
recievedMsg : 'Thank you for your message',
notRecievedMsg : 'Sorry but your message could not be sent, try again later',
disclaimer: 'Please feel free to get in touch, we value your feedback',
hideOnSubmit: true
});
});
$(function(){
$('#display').click(function() {
alert("Custom Flavor is: "+ $('#name').val());
});
});
</script>
<!--end contactable -->
<div id="page">
<h2> « Click the contact link on the left</h2>
<hr style="clear: both">
<h1>A Demonstation of Contactable Name-space Problems</h1>
<hr style="clear: both">
<p>
Note how Contactable's popup menu is incorrectly positioned, because this page
has conflicting CSS for the generic class-name 'dropdown'.
<p>
<label>Favorite Flavor:</label><select class="dropdown">
<option>Vanilla</option>
<option>Chocolate</option>
<option>Coffee</option>
</select>
<hr style="clear: both">
<p>
The display button should show the custom name in an alert, but it doesn't
because this page uses a conflicting HTML ID for the generic id 'name'.
<p>
<label>Custom Flavor Name:</label>
<input id="name" type="text" class="fillin" />
<button id="display">Display Flavor Name</button>
<p>
</div>
</body>
</html>