-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomepage.js
57 lines (51 loc) · 1 KB
/
homepage.js
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
$(document)
.ready(function() {
var
changeSides = function() {
$('.ui.shape')
.eq(0)
.shape('flip over')
.end()
.eq(1)
.shape('flip over')
.end()
.eq(2)
.shape('flip back')
.end()
.eq(3)
.shape('flip back')
.end()
;
},
validationRules = {
firstName: {
identifier : 'email',
rules: [
{
type : 'empty',
prompt : 'Please enter an e-mail'
},
{
type : 'email',
prompt : 'Please enter a valid e-mail'
}
]
}
}
;
$('.ui.dropdown')
.dropdown({
on: 'hover'
})
;
$('.ui.form')
.form(validationRules, {
on: 'blur'
})
;
$('.masthead .information')
.transition('scale in', 1000)
;
setInterval(changeSides, 3000);
})
;