1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
function |>METHOD:about<|() {
if (|>CLASS:Element<|.empty('about-content')) {
new |>CLASS:Ajax<|.Updater('about-content', 'rails/info/properties', {
method: 'get',
|>METHOD:onFailure<|: function() {
|>CLASS:Element<|.classNames('about-content').add('failure')
},
|>METHOD:onComplete<|: function() {
new |>CLASS:Effect<|.BlindDown('about-content', {
duration: 0.25
})
}
});
} else {
new |>CLASS:Effect<|[|>CLASS:Element<|.visible('about-content') ?
'BlindUp' : 'BlindDown']('about-content', {
duration: 0.25
});
debugger;
}
}
|