Uh oh!
There was an error while loading. Please reload this page.
forked from cloudify-cosmo/getcloudify.org
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactus.html
More file actions
Latest commit
101 lines (99 loc) · 4.36 KB
/
Copy pathcontactus.html
File metadata and controls
101 lines (99 loc) · 4.36 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
layout: bt_contact
title: Contact us
category: Contact us
---
<sectionid="content">
<divclass="map">
<iframesrc="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d25361.13637152391!2d-121.86301583196055!3d37.386472888609966!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808fcbeb12e499e1%3A0xdd89c5ee736545e!2s1798+Technology+Dr+%23238!5e0!3m2!1siw!2s!4v1396331098078" width="600" height="450" frameborder="0" style="border:0"></iframe></div>
<divclass="container">
<divclass="row">
<divclass="span12">
<h4>Get in touch with us by filling <strong>contact form below</strong></h4>
<formid="contactform" action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="post" class="validateform" name="send-contact" onsubmit="return checkform(this);">
<inputtype="hidden" name="oid" value="00D300000000KEt">
<inputtype="hidden" name="retURL" value="http://getcloudify.org/thank_you_contact.html">
<divid="sendmessage">
Your message has been sent. Thank you!
</div>
<inputtype="hidden" name="oid" value="00D300000000KEt">
<divclass="row">
<divclass="span4 field">
<inputtype="text" id="first_name" name="first_name" placeholder="* Enter your full name" data-rule="maxlen:4" data-msg="Please enter at least 4 chars" />
<divclass="validation">
</div>
</div>
<divclass="span4 field">
<inputtype="text" id="email" name="email" placeholder="* Enter your email address" data-rule="email" data-msg="Please enter a valid email" />
<divclass="validation">
</div>
</div>
<divclass="span4 field">
<inputtype="text" name="subject" placeholder="Enter your subject" data-rule="maxlen:4" data-msg="Please enter at least 4 chars" />
<divclass="validation">
</div>
</div>
<divclass="span12 margintop10 field">
<textareaid="00N80000003kH4I" rows="12" name="00N80000003kH4I" class="input-block-level" placeholder="* Your message here..." data-rule="required" data-msg="Please write something"></textarea>
<divclass="validation">
</div>
</div>
<divclass="span4 field">
<!--http://www.tothemoon.com/2013/01/simple-javascript-captcha-you-can-add-to-any-form/-->
<fontcolor="#DD0000">Enter This Code >></font><spanid="txtCaptchaDiv" style="color:#000"></span><!--this is where the script will place the generated code-->
<inputtype="hidden" id="txtCaptcha"/></label><!-- this is where the script will place a copy of the code for validation: this is a hidden field -->
<inputtype="text" name="txtInput" id="txtInput" size="15" placeholder="* Enter the code above "/>
<p>
<buttonclass="btn btn-theme margintop10 pull-left" type="submit">Submit message</button>
</p>
</div>
<spanclass="pull-right margintop20">* Please fill all required form field, thanks!</span>
</div>
{% include leadlanderform.html %}
</form>
<scripttype="text/javascript">
functioncheckform(theform){
varwhy="";
if(theform.txtInput.value==""){
why+="- Security code should not be empty.\n";
}
if(theform.txtInput.value!=""){
if(ValidCaptcha(theform.txtInput.value)==false){
why+="- Security code did not match.\n";
}
}
if(why!=""){
alert(why);
document.getElementById("txtInput").focus();
returnfalse;
}
}
//Generates the captcha function
vara=Math.ceil(Math.random()*9);
varb=Math.ceil(Math.random()*9);
varc=Math.ceil(Math.random()*9);
vard=Math.ceil(Math.random()*9);
vare=Math.ceil(Math.random()*9);
varcode=a+b+c+d+e;
document.getElementById("txtCaptcha").value=code;
document.getElementById("txtCaptchaDiv").innerHTML=code;
// Validate the Entered input aganist the generated security code function
functionValidCaptcha(){
varstr1=removeSpaces(document.getElementById("txtCaptcha").value);
varstr2=removeSpaces(document.getElementById("txtInput").value);
if(str1==str2){
returntrue;
}else{
returnfalse;
}
}
// Remove the spaces from the entered and generated code
functionremoveSpaces(string){
returnstring.split(" ").join("");
}
</script>
</div>
</div>
</div>
</section>
<divclass="clear"></div>