This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
calcifer/web/semantic/examples/homepage.js

57 lines
1 KiB
JavaScript
Raw Normal View History

2015-03-29 19:33:23 +02:00
$(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);
})
;