Follow

Enabling Postano HUB on RequireJS Websites

Blah Blah

<script class="postano-controls-feed-selector-v2" type="application/json">
</script>
<div class="postanowrapper" data-widget="packery-amd" data-postano-account-id="4357"
data-postano-project-id="44024" data-postano-product-id="6308" data-postano-posts-data-source="v2"
data-postano-width="100%" data-postano-height="100%" data-postano-items-first-page="10"
data-postano-items-per-page="10" data-postano-enable-instascroll="false"
data-postano-autoload-new-posts="true" data-sort="moderated_time" data-postano-skip-jquery="false">
</div>
<script>
require(['//platform.postano.com/embed/widgets/core/scripts/imagesloaded.pkgd.js', '//platform.postano.com/embed/widgets/packery/scripts/packery.pkgd.js', ], function(imagesLoaded, Packery) {
window.imagesLoaded = imagesLoaded;
window.Packery = Packery;
});
var server = "//platform.postano.com/embed";
(function(id) {
if (document.getElementById(id)) return;
var js = document.createElement('script');
js.id = id;
js.src = server + '/scripts/embed.js';
document.body.appendChild(js);
}('postano-embed'));
</script>

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk