Template:DOMLiveSample

  • Revision slug: Template:DOMLiveSample
  • Revision title: Template:DOMLiveSample
  • Revision id: 298258
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

<% /* one parameter: name of sample's file in /samples/domref */ /* get the page language */ var target = "/samples/domref/" + $0; // Localizers: add a case to hear for your language var str = mdn.localString({ "en-US": "View Live Examples", "es": "Ver El Ejemplo Vivo", "de": "Live-Beispiel ansehen", "fr": "Voir l'exemple sur une page", "ja": "実際の表示を確認", "ko": "실제 예제 보기", "pl": "Zobacz przykład", "zh-CN": "查看在线演示", "zh-TW": "查看示例" }); %><%-str%>

Revision Source

<%
/* one parameter: name of sample's file in /samples/domref */
/* get the page language */

var target = "/samples/domref/" + $0;

// Localizers: add a case to hear for your language
var str = mdn.localString({
    "en-US": "View Live Examples",
	"es":    "Ver El Ejemplo Vivo",
	"de":    "Live-Beispiel ansehen",
	"fr":    "Voir l'exemple sur une page",
	"ja":    "実際の表示を確認",
	"ko":    "실제 예제 보기",
	"pl":    "Zobacz przykład",
	"zh-CN": "查看在线演示",
	"zh-TW": "查看示例"
});

%><a class="button liveSample" href="<%=target%>"><%-str%></a>
Revert to this revision