diff options
Diffstat (limited to 'public_html/data/js/application.js')
-rw-r--r-- | public_html/data/js/application.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/public_html/data/js/application.js b/public_html/data/js/application.js index 51b2c0c6d..50968fa41 100644 --- a/public_html/data/js/application.js +++ b/public_html/data/js/application.js @@ -12,7 +12,7 @@ define( 'jquery', 'jquery.lazyload', 'bootstrap', - 'jquery.checkboxes' + 'jquery.checkboxes', ], function ( require, @@ -52,6 +52,7 @@ define( this.setupLineWrapToggle(); this.setupLazyLoadingImages(); this.setupTableRangeSelect(); + this.setupAsciinema(); }, setupTableRangeSelect: function () { @@ -101,6 +102,13 @@ define( if ($(ui.lazyLoadingImages).length > 0) { $(ui.lazyLoadingImages).lazyload({treshold: 200}); } + }, + + setupAsciinema: function () { + _.each($('.asciinema_player'), function (item) { + item = $(item); + asciinema.player.js.CreatePlayer(item.attr("id"), item.data("url")); + }); } }; |