| 12345678910111213141516171819202122232425 |
- <script>
- (function(w, d){
- var id='embedly-platform', n = 'script';
- if (!d.getElementById(id)){
- w.embedly = w.embedly || function() {(w.embedly.q = w.embedly.q || []).push(arguments);};
- var e = d.createElement(n); e.id = id; e.async=1;
- e.src = ('https:' === document.location.protocol ? 'https' : 'http') + '://cdn.embedly.com/widgets/platform.js';
- var s = d.getElementsByTagName(n)[0];
- s.parentNode.insertBefore(e, s);
- }
- })(window, document);
- <bx_if:key>
- $(document).ready(function () {
- embedly("defaults", {
- cards: {key: '__key__'},
- controls: 0
- });
- embedly('on', 'card.resize', function(iframe){
- var $card = $(iframe);
- var $card_parent = $card.parents('.fr-embedly');
- $card_parent.css('height', $card.height());
- });
- });
- </bx_if:key>
- </script>
|