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.
59 lines
1.1 KiB
59 lines
1.1 KiB
semantic.home = {};
|
|
|
|
// ready event
|
|
semantic.home.ready = function() {
|
|
|
|
var
|
|
$themeDropdown = $('.theme.dropdown'),
|
|
$header = $('.masthead'),
|
|
$ui = $header.find('h1 b'),
|
|
$phrase = $header.find('h1 span'),
|
|
$download = $header.find('.download')
|
|
;
|
|
|
|
$themeDropdown
|
|
.dropdown('setting', 'action', 'activate')
|
|
;
|
|
|
|
// zoom out
|
|
$header
|
|
.removeClass('zoomed')
|
|
;
|
|
|
|
window.Transifex.live.onTranslatePage(function(name){
|
|
name = $('.language.dropdown .item[data-value=' + name + ']').text();
|
|
$('.language.dropdown > .text').html(name);
|
|
});
|
|
|
|
$ui.typed({
|
|
replaceBaseText : true,
|
|
strings : [
|
|
$ui.data('text')
|
|
],
|
|
showCursor : false,
|
|
typeSpeed : 120,
|
|
backSpeed : 120,
|
|
backDelay : 2000
|
|
});
|
|
|
|
$('.demo .ui.accordion')
|
|
.accordion()
|
|
;
|
|
|
|
$('.demo .ui.dropdown')
|
|
.dropdown()
|
|
;
|
|
$('.demo .ui.checkbox')
|
|
.checkbox()
|
|
;
|
|
$('.ui.sidebar')
|
|
.sidebar('setting', 'transition', 'scale down')
|
|
;
|
|
|
|
};
|
|
|
|
|
|
// attach ready event
|
|
$(document)
|
|
.ready(semantic.home.ready)
|
|
;
|