Flickr

There are no notes for this item.

<div class="ContentBlock FlickrSlideshow Page10">
    <script>
        missouristate.addLoadEvent(function() {
            function getHeight(elem) {
                return Math.round(elem.clientWidth * 9 / 16);
            }
            var elems = document.getElementsByClassName('Page10');
            for (var i = 0; i < elems.length; i++) {
                var iframes = elems[i].getElementsByTagName('iframe');
                if (iframes.length > 0) {
                    continue;
                }
                var iframe = document.createElement('iframe');
                iframe.width = '100%';
                iframe.height = getHeight(elems[i]);
                missouristate.addEvent(window, 'resize', (function(iframe) {
                    return function() {
                        iframe.height = getHeight(iframe);
                    };
                })(iframe));
                if (!document.addEventListener) {
                    iframe.setAttribute('frameborder', 'no');
                }
                if (document.attachEvent) {
                    iframe.setAttribute('scrolling', 'no');
                }
                var setid = '72157622921956864';
                if (setid) {
                    var src = 'https://www.flickr.com/photos/missouristate/sets/72157622921956864/player';
                } else {
                    var src = 'https://www.flickr.com/photos/missouristate/player';
                }
                iframe.title = 'Flickr Slideshow';
                iframe.src = src;
                elems[i].appendChild(iframe);
            }
        });
    </script>
</div>
<div class="ContentBlock FlickrSlideshow Page{{pageId}}">
    <script>
        missouristate.addLoadEvent(function () {
            function getHeight(elem) {
                return Math.round(elem.clientWidth * 9 / 16);
            }
            var elems = document.getElementsByClassName('Page{{pageId}}');
            for (var i = 0; i < elems.length; i++) {
                var iframes = elems[i].getElementsByTagName('iframe');
                if (iframes.length > 0) { continue; }
                var iframe = document.createElement('iframe');
                iframe.width = '100%';
                iframe.height = getHeight(elems[i]);
                missouristate.addEvent(window, 'resize', (function (iframe) {
                    return function () { iframe.height = getHeight(iframe); };
                })(iframe));
                if (!document.addEventListener) { iframe.setAttribute('frameborder', 'no'); }
                if (document.attachEvent) { iframe.setAttribute('scrolling', 'no'); }
                var setid = '{{photosetId}}';
                if (setid) {
                    var src = 'https://www.flickr.com/photos/{{userId}}/sets/{{photosetId}}/player';
                }
                else {
                    var src = 'https://www.flickr.com/photos/{{userId}}/player';
                }
                iframe.title = 'Flickr Slideshow';
                iframe.src = src;
                elems[i].appendChild(iframe);
            }
        });
    </script>
</div>
{
  "pageId": 10,
  "headline": "Lorem ipsum",
  "userId": "missouristate",
  "photosetId": "72157622921956864"
}