Skip to content

Commit

Permalink
fixed alert & slideshare
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiokim committed Dec 3, 2012
1 parent cf8762c commit 42172c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/haroopress/plugins/alert.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var types = {
success: 'alert-success',
warning: 'alert-block',
important: 'alert-error',
warning: ' ',
error: 'alert-error',
info: 'alert-info',
inverse: 'alert-inverse'
};
Expand Down
5 changes: 3 additions & 2 deletions lib/haroopress/plugins/slideshare.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
var _width = 597;
var _height = 486;

module.exports = function(key, width, height) {
module.exports = function(key, width, height, startSlide) {
width = width || _width;
height = height || _height;
startSlide = startSlide || 1;

return '<iframe src="http://www.slideshare.net/slideshow/embed_code/'+ key +'?startSlide=2" width="'+ width +'" height="'+ height +'" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>';
return '<iframe src="http://www.slideshare.net/slideshow/embed_code/'+ key +'?startSlide='+ startSlide +'" width="'+ width +'" height="'+ height +'" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>';
};

0 comments on commit 42172c9

Please sign in to comment.