Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed alert & slideshare

  • Loading branch information...
commit 42172c938083cc7eec80689af4be10fcdfb85559 1 parent cf8762c
@rhiokim authored
View
4 lib/haroopress/plugins/alert.js
@@ -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'
};
View
5 lib/haroopress/plugins/slideshare.js
@@ -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>';
};
Please sign in to comment.
Something went wrong with that request. Please try again.