-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (76 loc) · 1.99 KB
/
index.html
File metadata and controls
85 lines (76 loc) · 1.99 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
---
layout: application
title: Products and Services
---
{% if site.data.products.size > 0 %}
<section class="entry-wrapper">
<h3 id="products" class="entry-title">Products</h3>
<div class="entry-content">
<ul class="post-list">
{% for product in site.data.products %}
<li>
<article>
<h4>
<a href="{{ product.url }}">{{ product.title }}</a>
</h4>
<p>
{{ product.description }}
</p>
</article>
</li>
{% endfor %}
</ul>
</div>
</section>
{% endif %}
<!-- <section class="entry-wrapper">
<h3 id="services" class="entry-title">Services</h3>
</section> -->
<section class="entry-wrapper">
<h3 id="contact" class="entry-title">Contact</h3>
<form id="contact_form" method="POST">
<p>
<label>
Your Name
<input type="text" name="name" />
</label>
</p>
<p>
<label>
Email <small>*</small>
<input type="email" name="_replyto" required="true" />
</label>
</p>
<p>
<label>
Phone Number
<input type="text" name="phone" />
</label>
</p>
<p>
<label>
Message <small>*</small>
<textarea name="message" rows="5" required="true"></textarea>
</label>
</p>
<p>
<input type="submit" />
</p>
<input type="hidden" name="shop" />
<input type="hidden" name="_format" value="plain" />
<input type="hidden" name="_subject" value="ScreenStaring Contact Form" />
<input type="hidden" name="_next" value="{{ site.url }}/thanks" />
</form>
<script>
var f = document.getElementById('contact_form'), suffix = '' + '@s' + 'creenstaring.c' + '' + 'om';
f.action = 'https://formspree.io/';
var match = window.location.search.match(/\bshop=([^&]+)\b/);
if(match) {
f.shop.value = match[1];
f.action += 'help' + suffix;
}
else {
f.action += 'hi' + suffix;
}
</script>
</section>