features, bug fixes

This commit is contained in:
jomo
2014-02-03 01:47:49 +01:00
parent 0d06bc19fc
commit 0604bbce63
18 changed files with 156 additions and 71 deletions

View File

@@ -1,24 +1,45 @@
$(function(){
$('.flash').click(function(){
$('.flash').animate({
opacity: 0
}, 'fast', function(){
$(this).animate({
height: 0
}, 'slow', function(){
$(this).hide();
})
});
$('.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);
})
});
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',
theme: {
base: '/base/epiceditor.css',
preview: '/preview/github.css',
editor: '/editor/epic-light.css'
},
button: {
bar: true
},
autogrow: {
minHeight: 500
}
});
try {
editor.load();
} catch (e) {}
});

View File

@@ -11,4 +11,5 @@
// GO AFTER THE REQUIRES BELOW.
//= require jquery
//= require jquery_ujs
//= require epiceditor
//= require app