-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (74 loc) · 2.58 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
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
102
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
<title>Craftroom Records</title>
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:300,600,700" rel="stylesheet">
<link rel="stylesheet" href="assets/css/site.css">
</head>
<body>
<div class="header">
<div class="brand">
Craftroom Records
</div>
<div class="contact-button">
<a href="#contact">Contact</a>
</div>
</div>
<div class="artist" style="background-image: url('assets/images/bradley.png')">
<div class="artist-details">
<div class="artist-text">
<div class="artist-name">
Jack Bradley Vaught
</div>
<div class="artist-links">
<ul>
<li><a href="https://open.spotify.com/artist/5wblMUnLVqEef2mIpuiDED">Spotify</a></li>
<li><a href="#">Website</a></li>
</ul>
</div>
</div>
<div class="artist-picture">
<img src="assets/images/jackbradleyvaught.jpeg">
</div>
</div>
</div>
<div class="contact" id="contact">
<div class="container">
<h2>Contact</h2>
<form action="http://craftroomrecords.com/complete/" method="post" id="contactForm">
<div class="contact-group half">
<label>Name</label>
<input type="text" name="name" id="nameField">
</div>
<div class="contact-group half">
<label>Email</label>
<input type="text" name="email">
</div>
<div class="contact-group">
<label>Message</label>
<textarea name="message" rows="8" cols="80"></textarea>
</div>
<button type="submit">Send message</button>
</form>
</div>
</div>
<div class="footer">
Copyright 2016 © Craftroom Records
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
var contactForm = $('#contactForm');
var nameField = $('#nameField');
nameField.on('blur', function () {
if (nameField.val().match(/\d+/g) != null)
contactForm.attr('action', 'http://craftroomrecords.com/');
else
contactForm.attr('action', 'https://getsimpleform.com/messages?form_api_token=36605ca22031a46f805cc4d7e1a306a4');
});
});
</script>
</html>