File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
_includes/components/codepens Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 39
39
40
40
// Regular expression to check for email
41
41
var emailRegex = / ^ [ ^ \s @ ] + @ [ ^ \s @ ] + \. [ ^ \s @ ] + $ / ;
42
- if ( ! emailRegex . test ( name ) ) {
42
+ if ( ! emailRegex . test ( email ) ) {
43
43
const emailError = document . getElementById ( "email-error" ) ;
44
44
emailError . style . display = "block" ;
45
45
const emailField = document . getElementById ( "email" ) ;
108
108
}
109
109
110
110
// If no errors, submit the form
111
- return true ;
112
-
113
111
var output = `{
114
112
"anonymousId": "507f191e810c19729de860ea",
115
113
"channel": "browser",
142
140
"type": "identify",
143
141
"userId": "97980cfea0067",
144
142
"version": "1.1"
145
- }`
146
- output_container . innerHTML = output
147
- Prism . highlightElement ( output_container )
148
- }
143
+ }` ;
144
+
145
+ var output_container = document . getElementById ( "output_container" ) ;
146
+ output_container . innerHTML = output ;
147
+ Prism . highlightElement ( output_container ) ;
148
+ return true ;
149
+ }
149
150
150
151
</ script >
151
152
< script >
Original file line number Diff line number Diff line change 26
26
.sample-form {
27
27
display : grid ;
28
28
grid-template-columns : 50px 1fr ;
29
- grid-gap : 16 px ;
29
+ grid-gap : 6 px ;
30
30
margin-top : 6px ;
31
31
align-items : center ;
32
32
You can’t perform that action at this time.
0 commit comments