You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.0 KiB
57 lines
1.0 KiB
$(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);
|
|
|
|
})
|
|
;
|