mozilla

Compare Revisions

Template:LiveSampleURL

Change Revisions

Revision 343665:

Revision 343665 by trevorh on

Revision 359247:

Revision 359247 by lmorchard on

Title:
Template:LiveSampleURL
Template:LiveSampleURL
Slug:
Template:LiveSampleURL
Template:LiveSampleURL
Content:

Revision 343665
Revision 359247
t1<%= env.url.replace('developer.mozilla.org', 'mdn.mozillademos.ort1<%
>g') + '$samples/' + $0 + '?revision=' + env.revision_id %> 
2var base = env.url;
3base = base.replace('developer.mozilla.org', 'mdn.mozillademos.or
 >g');
4// HACK: This may be the result of server misconfiguration. 
5base = base.replace('http://', 'https://'); 
6%><%= base + '$samples/' + $0 + '?revision=' + env.revision_id %>

Back to History