<commit_before>{% from "includes/common_macros.html" import optimizely_script with context %}

<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}" class="redesign no-js" {{ get_webfont_attributes(request) }} >
<head prefix="og: http://ogp.me/ns#">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <script>(function(d) { d.className = d.className.replace(/\bno-js/, ''); })(document.documentElement);</script>
  {% if not is_sphinx %}
    {{ optimizely_script() }}
  {% endif %}
  <title>{% block title %}{{ _('Mozilla Developer Network') }}{% endblock %}</title>

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="robots" content="{% block robots_value%}index, follow{% endblock %}">
  <link rel="home" href="{{ url('home') }}">
  <link rel="copyright" href="#copyright">

  {% block site_css %}
    {{ css('mdn', 'all') }}

    {% for style in styles %}
      {{ css(style) }}
    {% endfor %}
  {% endblock %}

  <!-- common social tags -->
  {% set social_logo = request.build_absolute_uri('/media/img/opengraph-logo.png') %}
  <meta property="og:type" content="website">
  <meta property="og:image" content="{{ social_logo }}">
  <meta property="og:site_name" content="{{ _('Mozilla Developer Network') }}">
  <meta name="twitter:card" content="summary">
  <meta name="twitter:image" content="{{ social_logo }}">
  <meta name="twitter:site" content="@MozDevNet">
  <meta name="twitter:creator" content="@MozDevNet">

  <link rel="search" type="application/opensearchdescription+xml" href="{{ settings.SITE_URL }}/{{ request.locale }}/search/xml" title="{{ _('Mozilla Developer Network') }}">

  <!-- third-generation iPad with high-resolution Retina display: -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ MEDIA_URL }}img/favicon144.png">
  <!-- iPhone with high-resolution Retina display: -->
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ MEDIA_URL }}img/favicon114.png">
  <!-- first- and second-generation iPad: -->
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ MEDIA_URL }}img/favicon72.png">
  <!-- non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
  <link rel="apple-touch-icon-precomposed" href="{{ MEDIA_URL }}img/favicon57.png">
  <!-- basic favicon -->
  {% if request.META.SERVER_NAME in settings.PRODUCTION_URL %}
    {% set favicon_suffix = '' %}
  {% elif request.META.SERVER_NAME in settings.STAGING_URL %}
    {% set favicon_suffix = '-staging' %}
  {% else %}
    {% set favicon_suffix = '-local' %}
  {% endif %}
  <link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon32{{ favicon_suffix }}.png">
  <!--[if IE]>
  <meta http-equiv="imagetoolbar" content="no">
  <script src="{{ MEDIA_URL }}js/libs/html5.js"></script>
  <![endif]-->

  {% block extrahead %}{% endblock %}

  {% if not is_sphinx %}
    {% include "includes/google_analytics.html" %}
  {% endif %}
</head>
<body {% block body_attributes %}{% endblock %} class="{% block bodyclass %}{% endblock %}"{% if request.user and request.user.is_authenticated() %} data-login-service="{{ request.session.sociallogin_provider }}"{% endif %}>

  {% include "includes/config.html" %}

  {{ soapbox_messages(get_soapbox_messages(request.path)) }}

  <ul id="nav-access">
    <li><a href="#{% block main_content_id %}content{% endblock %}" id="skip-main">{{ _('Skip to main content') }}</a></li>
    <li><a id="skip-language" href="#language">{{ _('Select language') }}</a></li>
    {% if not is_sphinx %}
      <li><a href="#q" id="skip-search">{{ _('Skip to search') }}</a></li>
    {% endif %}
  </ul>

  <!-- Header -->
  <header id="main-header"><div class="center">

    <a href="//www.mozilla.org/" id="tabzilla" class="no-track" data-infobar="update">mozilla</a>

    <div class="clear header-clear"></div>

    <a href="{{ url('home') }}" class="logo">{{ _('Mozilla Developer Network') }}</a>

    <div class="header-login">
        {% if not is_sphinx %}
            {% include "includes/login.html" %}
        {% endif %}
    </div>

    <nav id="main-nav" role="navigation"><ul><li><a href="{{ wiki_url('Zones') }}">{{ _('Zones') }}<i aria-hidden="true" class="icon-caret-down"></i></a>

        <div class="submenu js-submenu submenu-single" id="nav-zones-submenu">
          <div class="submenu-column">
            <ul>
              <li><a href="{{ wiki_url('Mozilla/Add-ons') }}">{{ _('Add-ons') }}</a></li>
              <li><a href="{{ wiki_url('Apps') }}">{{ _('App Center') }}</a></li>
              <li><a href="{{ wiki_url('Firefox') }}">{{ _('Firefox') }}</a></li>
              <li><a href="{{ wiki_url('Mozilla/Marketplace') }}">{{ _('Firefox Marketplace') }}</a></li>
              <li><a href="{{ wiki_url('Firefox_OS') }}">{{ _('Firefox OS') }}</a></li>
              <li><a href="{{ wiki_url('Persona') }}">{{ _('Persona') }}</a></li>
            </ul>
          </div>
        </div>
      </li><li><a href="{{ wiki_url('Web') }}">{{ _('Web Platform') }}<i aria-hidden="true" class="icon-caret-down"></i></a>

        <div class="submenu js-submenu" id="nav-platform-submenu">
          <div class="submenu-column">
            <div class="title">{{ _('Technologies') }}</div>
            <ul>
              <li><a href="{{ wiki_url('Web/HTML') }}">{{ _('HTML') }}</a></li>
              <li><a href="{{ wiki_url('Web/CSS') }}">{{ _('CSS') }}</a></li>
              <li><a href="{{ wiki_url('Web/JavaScript') }}">{{ _('JavaScript') }}</a></li>
              <li><a href="{{ wiki_url('Web/Guide/Graphics') }}">{{ _('Graphics') }}</a></li>
              <li><a href="{{ wiki_url('Web/API') }}">{{ _('APIs / DOM') }}</a></li>
              <li><a href="{{ wiki_url('Web/Apps') }}">{{ _('Apps') }}</a></li>
              <li><a href="{{ wiki_url('Web/MathML') }}">{{ _('MathML') }}</a></li>
            </ul>
          </div><div class="submenu-column last">
            <div class="title">{{ _('References & Guides') }}</div>
            <ul>
              <li><a href="{{ wiki_url('Learn') }}">{{ _('Learn the Web') }}</a></li>
              <li><a href="{{ wiki_url('Web/Tutorials') }}">{{ _('Tutorials') }}</a></li>
              <li><a href="{{ wiki_url('Web/Reference') }}">{{ _('References') }}</a></li>
              <li><a href="{{ wiki_url('Web/Guide') }}">{{ _('Developer Guides') }}</a></li>
              <li><a href="{{ wiki_url('Web/Accessibility') }}">{{ _('Accessibility') }}</a></li>
              <li><a href="{{ url('demos') }}">{{ _('Demos') }}</a></li>
              <li><a href="{{ wiki_url('Web') }}">{{ _('...more docs') }}</a></li>
            </ul>
          </div>
        </div>
      </li><li><a href="{{ wiki_url('Tools') }}">{{ _('Tools') }}</a></li><li><a href="{{ url('demos') }}">{{ _('Demos') }}</a></li><li><a href="{{ wiki_url('Mozilla/Connect') }}">{{ _('Connect') }}</a></li><li class="nav-search-link"><a href="{{ url('search') }}" title="Search"><i aria-hidden="true" class="icon-search"></i></a></li>{% if not is_sphinx %}<li class="main-nav-search"><form action="{{ url('search') }}" method="get" role="search">
        <div class="search-wrap">
          <label for="main-q" class="offscreen">{{ _('Search') }}</label>
          <input type="search" id="main-q" name="q" placeholder="{{ _('Search') }}" data-value="{{ query }}" value="" />
          <span class="search-trigger"><i aria-hidden="true" class="icon-search"></i></span>&nbsp;
          <button type="submit" class="offscreen">{{ _('Search') }}</button>
        </div>
      </form></li>{% endif %}</ul></nav>
  </div></header>

  <!-- Content will go here -->
  <main id="content"><div class="center clear">
  {% block content %}{% endblock %}
  </div></main>

  <!-- Footer -->
  <footer><div class="center">
    <div class="column-container">
      <div class="column-main">
        {% block footer_copyright_redesign %}
        <p>
          {% trans copyright_url=wiki_url('MDN/About#Copyrights_and_licenses'), about_url='/docs/MDN/About', thisyear=thisyear() %}
          <bdi>&copy; 2005-{{ thisyear }} Mozilla Developer Network and individual contributors<br />
          Content is available under <a href="{{ copyright_url }}">these licenses</a> &middot; <a href="{{ about_url }}">About MDN</a> &middot; <a href="//www.mozilla.org/about/legal/terms/mozilla">Terms</a> &middot; <a href="//www.mozilla.org/privacy/websites/">Privacy</a> &middot; <a href="//www.mozilla.org/privacy/websites/#cookies">Cookies</a> &middot; <a href="//github.com/mozilla/kuma">Contribute to the code</a></bdi>
          {% endtrans %}
        </p>
        {% endblock %}
      </div>
      <div class="column-strip">
        {% if not is_sphinx %}
          {% block lang_switcher %}
              {% include "includes/lang_switcher.html" %}
          {% endblock %}
        {% endif %}
      </div>
    </div>
  </div></footer>

  <!-- site js -->
  {% if not waffle.flag('static-i18njs') %}
  <script src="{{ url('jsi18n') }}build:{{ BUILD_ID_JS }}"></script>
  {% endif %}

  {% block site_js %}
    <!--[if lte IE 8]><script src="/media/js/libs/selectivizr-1.0.2/selectivizr-build.js"></script><![endif]-->

    {{ providers_media_js() }}
    {{ js('main') }}

      <script><commit_msg>bug 1173122 - en-US license link for better ux<commit_after>{% from "includes/common_macros.html" import optimizely_script with context %}

<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}" class="redesign no-js" {{ get_webfont_attributes(request) }} >
<head prefix="og: http://ogp.me/ns#">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <script>(function(d) { d.className = d.className.replace(/\bno-js/, ''); })(document.documentElement);</script>
  {% if not is_sphinx %}
    {{ optimizely_script() }}
  {% endif %}
  <title>{% block title %}{{ _('Mozilla Developer Network') }}{% endblock %}</title>

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="robots" content="{% block robots_value%}index, follow{% endblock %}">
  <link rel="home" href="{{ url('home') }}">
  <link rel="copyright" href="#copyright">

  {% block site_css %}
    {{ css('mdn', 'all') }}

    {% for style in styles %}
      {{ css(style) }}
    {% endfor %}
  {% endblock %}

  <!-- common social tags -->
  {% set social_logo = request.build_absolute_uri('/media/img/opengraph-logo.png') %}
  <meta property="og:type" content="website">
  <meta property="og:image" content="{{ social_logo }}">
  <meta property="og:site_name" content="{{ _('Mozilla Developer Network') }}">
  <meta name="twitter:card" content="summary">
  <meta name="twitter:image" content="{{ social_logo }}">
  <meta name="twitter:site" content="@MozDevNet">
  <meta name="twitter:creator" content="@MozDevNet">

  <link rel="search" type="application/opensearchdescription+xml" href="{{ settings.SITE_URL }}/{{ request.locale }}/search/xml" title="{{ _('Mozilla Developer Network') }}">

  <!-- third-generation iPad with high-resolution Retina display: -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ MEDIA_URL }}img/favicon144.png">
  <!-- iPhone with high-resolution Retina display: -->
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ MEDIA_URL }}img/favicon114.png">
  <!-- first- and second-generation iPad: -->
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ MEDIA_URL }}img/favicon72.png">
  <!-- non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
  <link rel="apple-touch-icon-precomposed" href="{{ MEDIA_URL }}img/favicon57.png">
  <!-- basic favicon -->
  {% if request.META.SERVER_NAME in settings.PRODUCTION_URL %}
    {% set favicon_suffix = '' %}
  {% elif request.META.SERVER_NAME in settings.STAGING_URL %}
    {% set favicon_suffix = '-staging' %}
  {% else %}
    {% set favicon_suffix = '-local' %}
  {% endif %}
  <link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon32{{ favicon_suffix }}.png">
  <!--[if IE]>
  <meta http-equiv="imagetoolbar" content="no">
  <script src="{{ MEDIA_URL }}js/libs/html5.js"></script>
  <![endif]-->

  {% block extrahead %}{% endblock %}

  {% if not is_sphinx %}
    {% include "includes/google_analytics.html" %}
  {% endif %}
</head>
<body {% block body_attributes %}{% endblock %} class="{% block bodyclass %}{% endblock %}"{% if request.user and request.user.is_authenticated() %} data-login-service="{{ request.session.sociallogin_provider }}"{% endif %}>

  {% include "includes/config.html" %}

  {{ soapbox_messages(get_soapbox_messages(request.path)) }}

  <ul id="nav-access">
    <li><a href="#{% block main_content_id %}content{% endblock %}" id="skip-main">{{ _('Skip to main content') }}</a></li>
    <li><a id="skip-language" href="#language">{{ _('Select language') }}</a></li>
    {% if not is_sphinx %}
      <li><a href="#q" id="skip-search">{{ _('Skip to search') }}</a></li>
    {% endif %}
  </ul>

  <!-- Header -->
  <header id="main-header"><div class="center">

    <a href="//www.mozilla.org/" id="tabzilla" class="no-track" data-infobar="update">mozilla</a>

    <div class="clear header-clear"></div>

    <a href="{{ url('home') }}" class="logo">{{ _('Mozilla Developer Network') }}</a>

    <div class="header-login">
        {% if not is_sphinx %}
            {% include "includes/login.html" %}
        {% endif %}
    </div>

    <nav id="main-nav" role="navigation"><ul><li><a href="{{ wiki_url('Zones') }}">{{ _('Zones') }}<i aria-hidden="true" class="icon-caret-down"></i></a>

        <div class="submenu js-submenu submenu-single" id="nav-zones-submenu">
          <div class="submenu-column">
            <ul>
              <li><a href="{{ wiki_url('Mozilla/Add-ons') }}">{{ _('Add-ons') }}</a></li>
              <li><a href="{{ wiki_url('Apps') }}">{{ _('App Center') }}</a></li>
              <li><a href="{{ wiki_url('Firefox') }}">{{ _('Firefox') }}</a></li>
              <li><a href="{{ wiki_url('Mozilla/Marketplace') }}">{{ _('Firefox Marketplace') }}</a></li>
              <li><a href="{{ wiki_url('Firefox_OS') }}">{{ _('Firefox OS') }}</a></li>
              <li><a href="{{ wiki_url('Persona') }}">{{ _('Persona') }}</a></li>
            </ul>
          </div>
        </div>
      </li><li><a href="{{ wiki_url('Web') }}">{{ _('Web Platform') }}<i aria-hidden="true" class="icon-caret-down"></i></a>

        <div class="submenu js-submenu" id="nav-platform-submenu">
          <div class="submenu-column">
            <div class="title">{{ _('Technologies') }}</div>
            <ul>
              <li><a href="{{ wiki_url('Web/HTML') }}">{{ _('HTML') }}</a></li>
              <li><a href="{{ wiki_url('Web/CSS') }}">{{ _('CSS') }}</a></li>
              <li><a href="{{ wiki_url('Web/JavaScript') }}">{{ _('JavaScript') }}</a></li>
              <li><a href="{{ wiki_url('Web/Guide/Graphics') }}">{{ _('Graphics') }}</a></li>
              <li><a href="{{ wiki_url('Web/API') }}">{{ _('APIs / DOM') }}</a></li>
              <li><a href="{{ wiki_url('Web/Apps') }}">{{ _('Apps') }}</a></li>
              <li><a href="{{ wiki_url('Web/MathML') }}">{{ _('MathML') }}</a></li>
            </ul>
          </div><div class="submenu-column last">
            <div class="title">{{ _('References & Guides') }}</div>
            <ul>
              <li><a href="{{ wiki_url('Learn') }}">{{ _('Learn the Web') }}</a></li>
              <li><a href="{{ wiki_url('Web/Tutorials') }}">{{ _('Tutorials') }}</a></li>
              <li><a href="{{ wiki_url('Web/Reference') }}">{{ _('References') }}</a></li>
              <li><a href="{{ wiki_url('Web/Guide') }}">{{ _('Developer Guides') }}</a></li>
              <li><a href="{{ wiki_url('Web/Accessibility') }}">{{ _('Accessibility') }}</a></li>
              <li><a href="{{ url('demos') }}">{{ _('Demos') }}</a></li>
              <li><a href="{{ wiki_url('Web') }}">{{ _('...more docs') }}</a></li>
            </ul>
          </div>
        </div>
      </li><li><a href="{{ wiki_url('Tools') }}">{{ _('Tools') }}</a></li><li><a href="{{ url('demos') }}">{{ _('Demos') }}</a></li><li><a href="{{ wiki_url('Mozilla/Connect') }}">{{ _('Connect') }}</a></li><li class="nav-search-link"><a href="{{ url('search') }}" title="Search"><i aria-hidden="true" class="icon-search"></i></a></li>{% if not is_sphinx %}<li class="main-nav-search"><form action="{{ url('search') }}" method="get" role="search">
        <div class="search-wrap">
          <label for="main-q" class="offscreen">{{ _('Search') }}</label>
          <input type="search" id="main-q" name="q" placeholder="{{ _('Search') }}" data-value="{{ query }}" value="" />
          <span class="search-trigger"><i aria-hidden="true" class="icon-search"></i></span>&nbsp;
          <button type="submit" class="offscreen">{{ _('Search') }}</button>
        </div>
      </form></li>{% endif %}</ul></nav>
  </div></header>

  <!-- Content will go here -->
  <main id="content"><div class="center clear">
  {% block content %}{% endblock %}
  </div></main>

  <!-- Footer -->
  <footer><div class="center">
    <div class="column-container">
      <div class="column-main">
        {% block footer_copyright_redesign %}
        <p>
          {% trans copyright_url='/en-US/docs/MDN/About#Copyrights_and_licenses', about_url='/docs/MDN/About', thisyear=thisyear() %}
          <bdi>&copy; 2005-{{ thisyear }} Mozilla Developer Network and individual contributors<br />
          Content is available under <a href="{{ copyright_url }}">these licenses</a> &middot; <a href="{{ about_url }}">About MDN</a> &middot; <a href="//www.mozilla.org/about/legal/terms/mozilla">Terms</a> &middot; <a href="//www.mozilla.org/privacy/websites/">Privacy</a> &middot; <a href="//www.mozilla.org/privacy/websites/#cookies">Cookies</a> &middot; <a href="//github.com/mozilla/kuma">Contribute to the code</a></bdi>
          {% endtrans %}
        </p>
        {% endblock %}
      </div>
      <div class="column-strip">
        {% if not is_sphinx %}
          {% block lang_switcher %}
              {% include "includes/lang_switcher.html" %}
          {% endblock %}
        {% endif %}
      </div>
    </div>
  </div></footer>

  <!-- site js -->
  {% if not waffle.flag('static-i18njs') %}
  <script src="{{ url('jsi18n') }}build:{{ BUILD_ID_JS }}"></script>
  {% endif %}

  {% block site_js %}
    <!--[if lte IE 8]><script src="/media/js/libs/selectivizr-1.0.2/selectivizr-build.js"></script><![endif]-->

    {{ providers_media_js() }}
    {{ js('main') }}

      <script>
{'fraction_non_alphanumeric': 0.2505805476049036, 'fraction_numerical': 0.0052384295512232, 'mean_word_length': 3.3726092089728454, 'pattern_counts': {'":': 0, '<': 515, '<?xml version=': 0, '>': 515, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2315633', 'n_tokens_mistral': 6665, 'n_tokens_neox': 6175, 'n_words': 1226}