Last active
July 29, 2020 04:53
-
-
Save vasinl124/b0267e296a36926a3bf370eb523c9857 to your computer and use it in GitHub Desktop.
Embed multiple BuildBubbles players on the same page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="root">Loading...</div> | |
<script> | |
(function (w, d, s, o, f, js, fjs) { | |
w['BuildBubbles-Audio-Player'] = o; w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) }; | |
js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; | |
js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs); | |
}(window, document, 'script', 'w1', 'https://vasinl124.github.io/buildbubbles-audio-player-widget/build/widget.js')); | |
w1('init', { targetElementId: 'root' }); | |
w1('episodeid', { id: '<episodeId1>', center: true }); | |
</script> | |
<div id="root2">Loading...</div> | |
<script> | |
(function (w, d, s, o, f, js, fjs) { | |
w['BuildBubbles-Audio-Player1'] = o; w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) }; | |
js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; | |
js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs); | |
}(window, document, 'script', 'w2', 'https://vasinl124.github.io/buildbubbles-audio-player-widget/build/widget.js')); | |
w2('init', { targetElementId: 'root2' }); | |
w2('episodeid', { id: '<episodeId2>', center: true }); | |
</script> | |
<div id="root3">Loading...</div> | |
<script> | |
(function (w, d, s, o, f, js, fjs) { | |
w['BuildBubbles-Audio-Player2'] = o; w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) }; | |
js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; | |
js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs); | |
}(window, document, 'script', 'w3', 'https://vasinl124.github.io/buildbubbles-audio-player-widget/build/widget.js')); | |
w3('init', { targetElementId: 'root3' }); | |
w3('episodeid', { id: '<episodeId3>', center: true }); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment