This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
/
base.html
201 lines (184 loc) · 10.1 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!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 name="robots" content="index, follow">
<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">
<link rel="search" type="application/opensearchdescription+xml" href="{{ settings.SITE_URL }}/{{ request.locale }}/search/xml" title="{{ _('Mozilla Developer Network') }}" />
{% 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 %}
{% include "includes/google_analytics.html" %}
</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 %}
<div id="logo"><a href="{{ url('home') }}"><img src="{{ MEDIA_URL }}img/mdn-logo-sm.png" alt="{{ _('Mozilla Developer Network') }}" title="{{ _('Mozilla Developer Network') }}" width="62" height="71"> {{ _('Mozilla Developer Network') }}</a></div>
{% endblock %}
</div>
{% block headernav %}
<nav id="nav">
<ul id="nav-main" role="menubar">
<li id="nav-main-topics" class="menu" role="menuitem"><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>
<li id="nav-sub-apps"><a href="{{ devmo_url('apps') }}">{{ _('Apps') }}</a></li>
<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" role="menuitem">
<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('HTML') }}">{{ _('HTML') }}</a></li>
<li><a href="{{ devmo_url('DOM') }}">{{ _('DOM') }}</a></li>
<li><a href="{{ devmo_url('HTML/Using_HTML5_audio_and_video') }}">{{ _('Video') }}</a></li>
<li><a href="{{ devmo_url('HTML/Using_HTML5_audio_and_video') }}">{{ _('Audio') }}</a></li>
<li><a href="{{ devmo_url('SVG') }}">{{ _('SVG') }}</a></li>
<li><a href="{{ devmo_url('WebGL') }}">{{ _('WebGL') }}</a></li>
</ul>
</li>
<li>
<ul>
<li><a href="{{ devmo_url('HTML/HTML5') }}">{{ _('HTML5') }}</a></li>
<li><a href="{{ devmo_url('WebSockets') }}">{{ _('WebSockets') }}</a></li>
<li><a href="{{ devmo_url('HTML/Using_the_application_cache') }}">{{ _('Offline Cache') }}</a></li>
<li><a href="{{ devmo_url('DOM/Storage') }}">{{ _('Local Storage') }}</a></li>
<li><a href="{{ devmo_url('IndexedDB') }}">{{ _('IndexedDB') }}</a></li>
<li><a href="{{ devmo_url('Using_files_from_web_applications') }}">{{ _('File API') }}</a></li>
</ul>
</li>
<li>
<ul>
<li><a href="{{ devmo_url('CSS') }}">{{ _('CSS') }}</a></li>
<li><a href="{{ devmo_url('CSS/Using_CSS_gradients') }}">{{ _('Gradients') }}</a></li>
<li><a href="{{ devmo_url('CSS/Tutorials/Using_CSS_transforms') }}">{{ _('Transforms') }}</a></li>
<li><a href="{{ devmo_url('CSS/Tutorials/Using_CSS_transitions') }}">{{ _('Transitions') }}</a></li>
<li><a href="{{ devmo_url('CSS/Tutorials/Using_CSS_animations') }}">{{ _('Animations') }}</a></li>
<li><a href="{{ devmo_url('CSS/Media_queries') }}">{{ _('Media Queries') }}</a></li>
</ul>
</li>
<li>
<ul>
<li><a href="{{ devmo_url('JavaScript') }}">{{ _('JavaScript') }}</a></li>
<li><a href="{{ devmo_url('AJAX') }}">{{ _('AJAX') }}</a></li>
<li><a href="{{ devmo_url('HTML/Canvas') }}">{{ _('Canvas') }}</a></li>
<li><a href="{{ devmo_url('Using_geolocation') }}">{{ _('Geolocation') }}</a></li>
<li><a href="{{ devmo_url('DragDrop/Drag_and_Drop') }}">{{ _('Drag & Drop')|safe }}</a></li>
<li><a href="{{ devmo_url('DOM/Using_web_workers') }}">{{ _('Web Workers') }}</a></li>
</ul>
</li>
</ul>
<p><a href="{{ url('docs') }}">{{ ('More docs…')|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('promote') }}">{{ _('Promote') }}</a></li>
<li><a href="{{ devmo_url('Project:How_to_Help') }}">{{ _('Contribute') }}</a></li>
<li><a href="{{ url('apps_newsletter') }}">{{ _('Newsletter') }}</a></li>
</ul>
</li>
</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">
{% if not waffle.flag('elasticsearch') %}
<div id="site-search-gg"></div>
{% endif %}
</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 feedback_url=devmo_url('Project:Feedback') %}
What do you think of the new MDN? Please <a href="{{ feedback_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">© 2005 - {{ thisyear() }} Mozilla Developer Network {{ _('and individual contributors') }}</p>
<p>
{% trans copyright_url=devmo_url('Project:Copyrights') %}
Content is available under <a href="{{ copyright_url }}">these licenses</a>
{% endtrans %}
• <a href="{{ devmo_url('Project:About') }}">{{ _('About MDN') }}</a>
• <a href="http://www.mozilla.org/en-US/privacy">{{ _('Privacy Policy') }}</a>
</div>
{% block lang_switcher %}
{% include "includes/lang_switcher.html" %}
{% endblock %}
</div>
</footer>
<script src="{{ url('jsi18n') }}build:{{ BUILD_ID_JS }}"></script>
{# js #}
{% block site_js %}
<script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js" async></script>
<script src="//www.google.com/jsapi" type="text/javascript"></script>
<script src="https://login.persona.org/include.js" type="text/javascript"></script>
{{ js('mdn') }}
{% for script in scripts %}
{{ js(script) }}
{% endfor %}
{% endblock %}
{% block js %}{% endblock %}
{# end js #}
{% include "includes/webtrends.html" %}
</body>
</html>