Get started with rrssb CDN

MIT licensed

RSSB is a lightweight library for parsing and manipulating RSS and Atom feeds.

Tags:
  • ridiculously
  • RRSSB
  • rrssb
  • responsive
  • sharing
  • social
  • buttons
  • social-buttons
  • social-shares
  • facebook
  • twitter

Stable version

Copied!

How to start using rrssb CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with rrssb CDN - cdnhub.io</title>
    <!-- Add the RRSB CSS -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/rrssb/1.14.0/css/rrssb.min.css" />

    <!-- Add the RRSB JS -->
    <script src="https://cdn.cdnhub.io/rrssb/1.14.0/js/rrssb.min.js" async></script>
</head>
<body>
    <!-- Add the RRSB container -->
    <div class="rrssb">
        <input type="hidden" value="Your-Page-URL" data-url="">
        <input type="hidden" value="Your-Page-Title" data-title="">
        <input type="hidden" value="Your-Page-Description" data-description="">
        <input type="hidden" value="Your-Page-Image" data-image="">
        <ul></ul>
    </div>

    <!-- Add the RRSB initialization script -->
    <script>
        (function() {
            if (document.readyState === 'interactive' || document.readyState === 'complete') {
                new RRSB.ShareThis({
                    showCounts: true,
                    classes: 'rrssb',
                    id: 'rrssb_1'
                });
            } else {
                document.addEventListener('DOMContentLoaded', function() {
                    new RRSB.ShareThis({
                        showCounts: true,
                        classes: 'rrssb',
                        id: 'rrssb_1'
                    });
                });
            }
        })();
    </script>
</body>
</html>
Copied!
Copied!
Copied!

All versions