asciinema.org/app/views/asciicasts/_player.html.erb

33 lines
930 B
Plaintext
Raw Normal View History

<% if asciicast.private? %>
<% content_for(:head) do %>
<meta name="robots" content="noindex, nofollow">
2015-12-20 15:36:59 +00:00
<meta name="referrer" content="origin">
<% end %>
<% end %>
2015-04-03 16:04:00 +00:00
<div class="player"></div>
2014-06-24 18:34:34 +00:00
2015-05-16 09:46:14 +00:00
<div class="processing-info" style="display: none">
<p>
This recording is being pre-processed at the moment. It will open automatically in a few seconds.
</p>
<p>
Feel free to contact <a href="mailto:support@asciinema.org">support@asciinema.org</a> if it takes longer.
</p>
</div>
2015-04-03 16:04:00 +00:00
<script>
$(function() {
2015-05-16 09:31:03 +00:00
tryCreatePlayer(
$('.player')[0],
<%= asciicast.to_json.gsub('</', '<\/').html_safe %>,
<%= options.as_json.merge(skip_titlebar ? {} : {
title: asciicast.title,
author: asciicast.author_display_name,
authorURL: asciicast.author_url,
authorImgURL: asciicast.author_avatar_url
}).to_json.gsub('</', '<\/').html_safe %>
2015-05-16 09:31:03 +00:00
);
});
2015-04-03 16:04:00 +00:00
</script>