{"version":3,"file":"rrssb.min.js","sources":["scripts/rrssb/js/rrssb.min.js"],"sourcesContent":["/*!\r\n Ridiculously Responsive Social Sharing Buttons\r\n Team: @dbox, @joshuatuscan\r\n Site: http://www.kurtnoble.com/labs/rrssb\r\n Twitter: @therealkni\r\n\r\n ___ ___\r\n /__/| /__/\\ ___\r\n | |:| \\ \\:\\ / /\\\r\n | |:| \\ \\:\\ / /:/\r\n __| |:| _____\\__\\:\\ /__/::\\\r\n /__/\\_|:|____ /__/::::::::\\ \\__\\/\\:\\__\r\n \\ \\:\\/:::::/ \\ \\:\\~~\\~~\\/ \\ \\:\\/\\\r\n \\ \\::/~~~~ \\ \\:\\ ~~~ \\__\\::/\r\n \\ \\:\\ \\ \\:\\ /__/:/\r\n \\ \\:\\ \\ \\:\\ \\__\\/\r\n \\__\\/ \\__\\/\r\n*/\r\n\r\n+(function(window, $, undefined) {\r\n\t'use strict';\r\n\r\n\tvar support = {\r\n\t\tcalc : false\r\n\t};\r\n\r\n\t/*\r\n\t * Public Function\r\n\t */\r\n\r\n\t $.fn.rrssb = function( options ) {\r\n\r\n\t\t// Settings that $.rrssb() will accept.\r\n\t\tvar settings = $.extend({\r\n\t\t\tdescription: undefined,\r\n\t\t\temailAddress: undefined,\r\n\t\t\temailBody: undefined,\r\n\t\t\temailSubject: undefined,\r\n\t\t\timage: undefined,\r\n\t\t\ttitle: undefined,\r\n\t\t\turl: undefined\r\n\t\t}, options );\r\n\r\n\t\t// use some sensible defaults if they didn't specify email settings\r\n\t\tsettings.emailSubject = settings.emailSubject || settings.title;\r\n\t\tsettings.emailBody = settings.emailBody ||\r\n\t\t\t(\r\n\t\t\t\t(settings.description ? settings.description : '') +\r\n\t\t\t\t(settings.url ? '\\n\\n' + settings.url : '')\r\n\t\t\t);\r\n\r\n\t\t// Return the encoded strings if the settings have been changed.\r\n\t\tfor (var key in settings) {\r\n\t\t\tif (settings.hasOwnProperty(key) && settings[key] !== undefined) {\r\n\t\t\t\tsettings[key] = encodeString(settings[key]);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (settings.url !== undefined) {\r\n\t\t\t$(this).find('.rrssb-facebook a').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + settings.url);\r\n\t\t\t$(this).find('.rrssb-tumblr a').attr('href', 'http://tumblr.com/share/link?url=' + settings.url + (settings.title !== undefined ? '&name=' + settings.title : '') + (settings.description !== undefined ? '&description=' + settings.description : ''));\r\n\t\t\t$(this).find('.rrssb-linkedin a').attr('href', 'http://www.linkedin.com/shareArticle?mini=true&url=' + settings.url + (settings.title !== undefined ? '&title=' + settings.title : '') + (settings.description !== undefined ? '&summary=' + settings.description : ''));\r\n\t\t\t$(this).find('.rrssb-twitter a').attr('href', 'https://twitter.com/intent/tweet?text=' + (settings.description !== undefined ? settings.description : '') + '%20' + settings.url);\r\n\t\t\t$(this).find('.rrssb-hackernews a').attr('href', 'https://news.ycombinator.com/submitlink?u=' + settings.url + (settings.title !== undefined ? '&text=' + settings.title : ''));\r\n\t\t\t$(this).find('.rrssb-reddit a').attr('href', 'http://www.reddit.com/submit?url=' + settings.url + (settings.description !== undefined ? '&text=' + settings.description : '') + (settings.title !== undefined ? '&title=' + settings.title : ''));\r\n\t\t\t$(this).find('.rrssb-googleplus a').attr('href', 'https://plus.google.com/share?url=' + (settings.description !== undefined ? settings.description : '') + '%20' + settings.url);\r\n\t\t\t$(this).find('.rrssb-pinterest a').attr('href', 'http://pinterest.com/pin/create/button/?url=' + settings.url + ((settings.image !== undefined) ? '&media=' + settings.image : '') + (settings.description !== undefined ? '&description=' + settings.description : ''));\r\n\t\t\t$(this).find('.rrssb-pocket a').attr('href', 'https://getpocket.com/save?url=' + settings.url);\r\n\t\t\t$(this).find('.rrssb-github a').attr('href', settings.url);\r\n\t\t}\r\n\r\n\t\tif (settings.emailAddress !== undefined || settings.emailSubject) {\r\n\t\t\t$(this).find('.rrssb-email a').attr('href', 'mailto:' + (settings.emailAddress ? settings.emailAddress : '') + '?' + (settings.emailSubject !== undefined ? 'subject=' + settings.emailSubject : '') + (settings.emailBody !== undefined ? '&body=' + settings.emailBody : ''));\r\n\t\t}\r\n\r\n\t};\r\n\r\n\t/*\r\n\t * Utility functions\r\n\t */\r\n\tvar detectCalcSupport = function(){\r\n\t\t//detect if calc is natively supported.\r\n\t\tvar el = $('