Revision 359247 of Template:LiveSampleURL

  • Revision slug: Template:LiveSampleURL
  • Revision title: Template:LiveSampleURL
  • Revision id: 359247
  • Created:
  • Creator: lmorchard
  • Is current revision? No
  • Comment

Revision Content

<% var base = env.url; base = base.replace('developer.mozilla.org', 'mdn.mozillademos.org'); // HACK: This may be the result of server misconfiguration. base = base.replace('http://', 'https://'); %> <%= base + '$samples/' + $0 + '?revision=' + env.revision_id %>

Revision Source

<%
var base = env.url;
base = base.replace('developer.mozilla.org', 'mdn.mozillademos.org');
// HACK: This may be the result of server misconfiguration. 
base = base.replace('http://', 'https://'); 
%>
<%= base + '$samples/' + $0 + '?revision=' + env.revision_id %>