Revision 264789 of Template:B2GOnlyHeader

  • Revision slug: Template:B2GOnlyHeader
  • Revision title: Template:B2GOnlyHeader
  • Revision id: 264789
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment
Tags: 

Revision Content

<% /* one parameter: Gecko version as of which should only be used in B2G (optional) */ /* get the page language */ var lang = env.locale; var str = ""; var title = ""; switch(lang) { default:   if ($0) {    str = "Firefox OS only in Gecko " + $0;       title = "Available only on Firefox OS as of Gecko " + $0 + " " + template("geckoRelease", [$0]);    } else {      str = "Only available on Firefox OS";      title = "This is a Firefox OS (Boot to Gecko) specific API.";    } break; } %>

<%-str%>

<%=title%>

Revision Source

<%

/* one parameter: Gecko version as of which should only be used in B2G (optional) */
/* get the page language */

var lang = env.locale;

var str = "";
var title = "";

switch(lang) {
  default:
    if ($0) {
      str = "Firefox OS only in Gecko " + $0;
      title = "Available only on Firefox OS as of Gecko " + $0 + " " + template("geckoRelease", [$0]);
    } else {
      str = "Only available on Firefox OS";
      title = "This is a Firefox OS (Boot to Gecko) specific API.";
    }
    break;
}
%>
<div class="projectSpecific"><p style="margin: 4px 0px;"><%-str%></p> <p style="margin: 4px 0px;"><%=title%></p></div>