function flipCover (css, options) { var options = options || {}; if (typeof css === "object") { options = css; } else { options.css = css; } var css = options.css; var url = options.url; var text = options.text || css; var width = options.width; var height = options.height; var $section = $(".flip-cover-" + css).addClass(css + "-section"); var $button = $("
").addClass(css + "-button"); var $cover = $("
").addClass(css + "-cover"); var $outer = $("
").addClass(css + "-outer"); var $inner = $("
").addClass(css + "-inner"); if (width) { $section.css("width", width); } if (height) { $section.css("height", height); var lineHeight = ':after{ line-height: ' + height + ';}'; var $outerStyle = $('