<!DOCTYPE html>
<html lang="{{ LANG }}" dir="{{ DIR }}" id="developer-mozilla-org" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#">
<head>
  <title>{% block title %}{{ _('Mozilla Developer Network') }}{% endblock %}</title>

	<meta charset="utf-8">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="MSSmartTagsPreventParsing" content="true">
  <meta name="ROBOTS" content="ALL">
  <meta name="Copyright" content="Copyright (c) 2005-{{ thisyear() }} Mozilla.">
  <meta name="Rating" content="General">

  <link rel="home" href="{{ url('home') }}">
  <link rel="copyright" href="#copyright">
  <link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.ico">

  {% block site_css %}
  <!--[if !IE 6]><!-->
  {{ css('mdn') }}
  {% for style in styles %}
    {{ css(style) }}
  {% endfor %}
  <!--<![endif]-->
  <!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/mdn-ie.css"><![endif]-->
  <!--[if lte IE 7]><link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/mdn-ie7.css"><![endif]-->
  <!--[if lte IE 6]><link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/mdn-ie6.css"><![endif]-->
  <link rel="stylesheet" type="text/css" media="print" href="{{ MEDIA_URL }}css/mdn-print.css">
  <link rel="stylesheet" href="//www.mozilla.org/tabzilla/media/css/tabzilla.css">
  {% endblock %}

  <!--[if IE]>
  <meta http-equiv="imagetoolbar" content="no">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <script src="{{ MEDIA_URL }}js/html5.js"></script>
  <![endif]-->

  {% block extrahead %}{% endblock %}
</head>

<body id="{% block pageid %}{% endblock %}" class="html-{{ DIR }} {% block bodyclass %}{% endblock %}" role="document">
<!--[if lte IE 8]>
<noscript><div class="global-notice">
<p><strong>Warning:</strong> The Mozilla Developer Network website employs emerging web standards that may not be fully supported in some versions of MicroSoft Internet Explorer. You can improve your experience of this website by enabling JavaScript.</p>
</div></noscript>
<![endif]-->
  <header id="masthead" class="{% block headerclass %}minor{% endblock %}">
    <div class="wrap">
      <ul id="nav-access">
        <li><a href="#language">{{ _('Select language') }}</a></li>
        <li><a href="#q">{{ _('Skip to search') }}</a></li>
        <li><a href="#content">{{ _('Skip to main content') }}</a></li>
      </ul>
    
      <div id="branding">
        {% block headerlogo %}
        <h1 id="logo"><a href="{{ url('home') }}"><img src="{{ MEDIA_URL }}img/mdn-logo-sm.png" alt="" title="" width="62" height="71"> {{ _('Mozilla Developer Network') }}</a></h1>
        {% endblock %}
      </div>
      
      {% block headernav %}

      <nav id="nav" role="menubar">
        <ul id="nav-main">
          <li id="nav-main-topics" class="menu"><a href="#nav-sub-topics" class="toggle" aria-haspopup="true" aria-labelledby="nav-main-topics" title="{{ _('Explore other parts of MDN') }}">{{ _('Topics') }}</a>
            <ul id="nav-sub-topics" class="sub-menu" aria-hidden="true">
              <li id="nav-sub-web"><a href="{{ url('web') }}">{{ _('Web') }}</a></li>
    {% if waffle.switch('apps_landing') %}
              <li id="nav-sub-apps"><a href="{{ url('apps') }}">{{ _('Apps') }}</a></li>
    {% endif %}
              <li id="nav-sub-mobile"><a href="{{ url('mobile') }}">{{ _('Mobile') }}</a></li>
              <li id="nav-sub-addons"><a href="{{ url('addons') }}">{{ _('Add-ons') }}</a></li>
              <li id="nav-sub-mozilla"><a href="{{ url('mozilla') }}">{{ _('Mozilla') }}</a></li>
            </ul>
          </li>
          <li id="nav-main-docs" class="menu">
            <a href="{{ url('docs') }}" class="docs toggle" aria-haspopup="true" aria-labelledby="nav-main-docs">{{ _('Docs') }}</a>
            <div id="nav-sub-docs" class="sub-menu" aria-hidden="true">
              <ul>
                <li>
                  <ul>
                    <li><a href="{{ devmo_url(_('/en/HTML')) }}">{{ _('HTML') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/DOM')) }}">{{ _('DOM') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Using_audio_and_video_in_Firefox')) }}">{{ _('Video') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Using_audio_and_video_in_Firefox')) }}">{{ _('Audio') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/SVG')) }}">{{ _('SVG') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/WebGL')) }}">{{ _('WebGL') }}</a></li>
                  </ul>
                </li>
                <li>
                  <ul>
                    <li><a href="{{ devmo_url(_('/en/HTML/HTML5')) }}">{{ _('HTML5') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/WebSockets')) }}">{{ _('WebSockets') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Offline_resources_in_Firefox')) }}">{{ _('Offline Cache') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/DOM/Storage')) }}">{{ _('Local Storage') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/IndexedDB')) }}">{{ _('IndexedDB') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Using_files_from_web_applications')) }}">{{ _('File API') }}</a></li>
                  </ul>
                </li>
                <li>
                  <ul>
                    <li><a href="{{ devmo_url(_('/en/CSS')) }}">{{ _('CSS') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Using_gradients')) }}">{{ _('Gradients') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/CSS/Using_CSS_transforms')) }}">{{ _('Transforms') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/CSS/CSS_transitions')) }}">{{ _('Transitions') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/CSS/CSS_animations')) }}">{{ _('Animations') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/CSS/Media_queries')) }}">{{ _('Media Queries') }}</a></li>
                  </ul>
                </li>
                <li>
                  <ul>
                    <li><a href="{{ devmo_url(_('/en/JavaScript')) }}">{{ _('JavaScript') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/AJAX')) }}">{{ _('AJAX') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/HTML/Canvas')) }}">{{ _('Canvas') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Using_geolocation')) }}">{{ _('Geolocation') }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/DragDrop/Drag_and_Drop')) }}">{{ _('Drag &amp; Drop')|safe }}</a></li>
                    <li><a href="{{ devmo_url(_('/en/Using_web_workers')) }}">{{ _('Web Workers') }}</a></li>
                  </ul>
                </li>
              </ul>
              <p><a href="{{ url('docs') }}">{{ ('More docs&hellip;')|safe }}</a></p>
            </div>
          </li>
          <li id="nav-main-demos" role="menuitem"><a href="{{ url('demos') }}" class="demos">{{ _('Demos') }}</a></li>
          <li id="nav-main-learning" role="menuitem"><a href="{{ url('learn') }}" class="learning">{{ _('Learning') }}</a></li>
          <li id="nav-main-community" class="menu" role="menuitem"><a href="#nav-sub-community" class="community toggle" aria-haspopup="true" aria-labelledby="nav-main-community">{{ _('Community') }}</a>
            <ul id="nav-sub-community" class="sub-menu">
              <li><a href="{{ url('events') }}">{{ _('Events') }}</a></li>
              <li><a href="{{ url('discussion') }}">{{ _('Discussions') }}</a></li>
              <li><a href="{{ url('promote') }}">{{ _('Promote') }}</a></li>
            </ul>
        </ul>
      </nav>
      {% endblock %}
    
      {% include "includes/login.html" %}
      
      <form id="site-search" method="get" action="http://www.google.com/search"
              data-url="{{ url('search') }}">
        <p>
          <input type="text" role="search" placeholder="{{ _('Search MDN') }}" id="q" name="q" value="{{ query }}">
          <noscript><button type="submit">{{ _('Search') }}</button></noscript>
        </p>
        <input type="hidden" name="sitesearch" value="developer.mozilla.org">
        <div id="site-search-gg"></div>
      </form>

      <a href="http://www.mozilla.org/" id="tabzilla">mozilla</a>
    </div>
  </header>
{# end head #}

    {{ soapbox_messages(get_soapbox_messages(request.path)) }}
{% block content %}{% endblock %}

{# footer #}
<section id="footbar">
<div class="wrap">
  <p>
  {% trans uservoice_url='http://mdn.uservoice.com/forums/51389-mdn-website-feedback-http-developer-mozilla-org' %}
  What do you think of the new MDN? Please <a href="{{ uservoice_url }}">share
  your feedback</a> with us. <a id="dev-mdc-link" href="https://lists.mozilla.org/listinfo/dev-mdc">Join our mailing list</a> to discuss ways to help create great documentation.
  {% endtrans %}
  </p>
</div>
</section>
<footer id="site-info" class="footer" role="contentinfo">
<div class="wrap">
    <div id="legal">
      <img src="{{ MEDIA_URL }}img/mdn-logo-tiny.png" alt="" width="42" height="48">
      <p id="copyright">&copy; {{ thisyear() }} Mozilla Developer Network</p>
      <p>
      {% trans copyright_url=devmo_url(_('/Project:Copyrights')) %}
      Content is available under <a href="{{ copyright_url }}">these licenses</a>
      {% endtrans %}
      &bull; <a href="{{ devmo_url(_('/Project:en/About')) }}">{{ _('About MDN') }}</a> &bull;
      <a href="http://www.mozilla.org/en-US/privacy">{{ _('Privacy Policy') }}</a> &bull;
      <a href="/forums/viewtopic.php?f=3&amp;t=5">{{ _('Help') }}</a></p>
    </div>
    {% include "includes/login.html" %}
    {% include "includes/lang_switcher.html" %}
</div>
</footer>

<script src="{{ url('jsi18n') }}build:{{ BUILD_ID_JS }}"></script>
{# js #}
{% block site_js %}
  <script src="//www.google.com/jsapi" type="text/javascript"></script>
  <script src="https://browserid.org/include.js" type="text/javascript"></script>
  <script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js"></script>
  {{ js('mdn') }}
  {% for script in scripts %}
    {{ js(script) }}
  {% endfor %}
{% endblock %}
{% block js %}{% endblock %}
{# end js #}

{% include "includes/webtrends.html" %}
</body>
</html>
