This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/assets/javascripts/app.js
2014-04-04 01:08:17 +02:00

46 lines
860 B
JavaScript

$(function(){
$('.flash').click(function(){
$('.flash').animate({
opacity: 0
}, 'fast', function(){
$(this).animate({
height: 0
}, 'slow', function(){
$(this).hide();
})
});
});
setTimeout(function(){
$('.flash').animate({
opacity: 0
}, 3000, function(){
$(this).animate({
height: 0
}, 'slow', function(){
$(this).hide();
})
});
}, 4000);
var editor = new EpicEditor({
container: 'epic',
textarea: 'epic-textarea',
basePath: '/assets',
clientSideStorage: false,
theme: {
base: '/base/epiceditor.css',
preview: '/preview/github.css',
editor: '/editor/epic-light.css'
},
button: {
bar: true
},
autogrow: {
minHeight: 300
}
});
try {
editor.load();
} catch (e) {}
});