Prepare for https

openid
Marcin Kulik 11 years ago
parent d97ff14c58
commit 2962fb8c5f

@ -43,6 +43,6 @@
params += '&speed=' + speed; params += '&speed=' + speed;
} }
container.innerHTML = '<iframe src="http://<%= request.host_with_port %>/a/<%= @asciicast.id %>/raw' + params + '" name="asciicast-iframe-<%= @asciicast.id %>" id="asciicast-iframe-<%= @asciicast.id %>" width="300" height="300" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="display: block; float: none; visibility: hidden;" onload="this.style.visibility=\'visible\';"></iframe>'; container.innerHTML = '<iframe src="<%= request.protocol %><%= request.host_with_port %>/a/<%= @asciicast.id %>/raw' + params + '" name="asciicast-iframe-<%= @asciicast.id %>" id="asciicast-iframe-<%= @asciicast.id %>" width="300" height="300" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="display: block; float: none; visibility: hidden;" onload="this.style.visibility=\'visible\';"></iframe>';
} }
})(); })();

@ -11,13 +11,13 @@ markdown:
You can find the embed script on the asciicast's page. It looks like this: You can find the embed script on the asciicast's page. It looks like this:
<script type="text/javascript" src="http://asciinema.org/a/14.js" id="asciicast-14" async></script> <script type="text/javascript" src="https://asciinema.org/a/14.js" id="asciicast-14" async></script>
The player shows up right at the place where the script is pasted. Let's look The player shows up right at the place where the script is pasted. Let's look
at the following markup: at the following markup:
<p>This is some text.</p> <p>This is some text.</p>
<script type="text/javascript" src="http://asciinema.org/a/14.js" id="asciicast-14" async></script> <script type="text/javascript" src="https://asciinema.org/a/14.js" id="asciicast-14" async></script>
<p>This is some other text.</p> <p>This is some other text.</p>
The player will show up as a `div` element with a class "asciicast" between The player will show up as a `div` element with a class "asciicast" between
@ -38,7 +38,7 @@ markdown:
For example, to make the playback 2 times faster than original recording the For example, to make the playback 2 times faster than original recording the
script should look like this: script should look like this:
<script type="text/javascript" src="http://asciinema.org/a/14.js" id="asciicast-14" async data-speed="2"></script> <script type="text/javascript" src="https://asciinema.org/a/14.js" id="asciicast-14" async data-speed="2"></script>
### size ### size
@ -51,4 +51,4 @@ markdown:
For example, to make the font big the script should look like this: For example, to make the font big the script should look like this:
<script type="text/javascript" src="http://asciinema.org/a/14.js" id="asciicast-14" async data-size="big"></script> <script type="text/javascript" src="https://asciinema.org/a/14.js" id="asciicast-14" async data-size="big"></script>

@ -7,7 +7,7 @@
' Every Asciinema user gets a profile page at ' Every Asciinema user gets a profile page at
br br
a href="#" a href="#"
| http://asciinema.org/~ | #{root_url}~
strong username strong username
' . Pick a desired username below. ' . Pick a desired username below.

Loading…
Cancel
Save