embed_embedly_integration.html 686 B

1234567891011121314151617181920212223
  1. <script>
  2. (function(w, d){
  3. var id='embedly-platform', n = 'script';
  4. if (!d.getElementById(id)){
  5. w.embedly = w.embedly || function() {(w.embedly.q = w.embedly.q || []).push(arguments);};
  6. var e = d.createElement(n); e.id = id; e.async=1;
  7. e.src = ('https:' === document.location.protocol ? 'https' : 'http') + '://cdn.embedly.com/widgets/platform.js';
  8. var s = d.getElementsByTagName(n)[0];
  9. s.parentNode.insertBefore(e, s);
  10. }
  11. })(window, document);
  12. <bx_if:key>
  13. $(document).ready(function () {
  14. embedly("defaults", {
  15. cards: {key: '__key__'}
  16. });
  17. });
  18. </bx_if:key>
  19. function bx_embed_link(e)
  20. {
  21. embedly('card', e);
  22. }
  23. </script>