/
header.hbs
203 lines (195 loc) · 13 KB
/
header.hbs
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
202
203
<header class="c-header" id="header" data-header>
<div class="c-header__row">
<div class="c-header__container">
<div class="c-header__split">
<div class="c-header__logo-container">
<a href="{{logo.link}}">
<picture class="c-header__logo">
<source srcset="{{logo.srcset}}" media="(min-width: 875px)">
<img src="{{logo.src}}" alt="{{logo.alt}}" height="32">
</picture>
</a>
</div>
<ul class="c-header__menu c-header__menu--global">
<li class="c-header__item c-header__item--padding c-header__item--hide-md-max">
<a class="c-header__link" href="https://www.nature.com/siteindex"><span>View all journals</span></a>
</li>
<li class="c-header__item c-header__item--padding c-header__item--pipe">
<a class="c-header__link" href="#search-menu" data-header-expander><span>Search</span><svg role="img" aria-hidden="true" focusable="false" height="22" width="22" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path d="M16.48 15.455c.283.282.29.749.007 1.032a.738.738 0 01-1.032-.007l-3.045-3.044a7 7 0 111.026-1.026zM8 14A6 6 0 108 2a6 6 0 000 12z"></path>
</svg></a>
</li>
<li class="c-header__item c-header__item--padding">
<a href="/nams/svc/myaccount" id="my-account" class="c-header__link placeholder" style="display: none;">
<span>My Account</span><svg role="img" aria-hidden="true" focusable="false" height="22" width="22" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path d="M10.238 16.905a7.96 7.96 0 003.53-1.48c-.874-2.514-2.065-3.936-3.768-4.319V9.83a3.001 3.001 0 10-2 0v1.277c-1.703.383-2.894 1.805-3.767 4.319A7.96 7.96 0 009 17c.419 0 .832-.032 1.238-.095zm4.342-2.172a8 8 0 10-11.16 0c.757-2.017 1.84-3.608 3.49-4.322a4 4 0 114.182 0c1.649.714 2.731 2.305 3.488 4.322zM9 18A9 9 0 119 0a9 9 0 010 18z" fill="#333" fill-rule="evenodd"></path>
</svg>
</a>
<a href="https://idp.nature.com/authorize/natureuser?client_id=grover&redirect_uri=https%3A%2F%2Fwww.nature.com%2Fnature" id="login-button" style="" class="c-header__link placeholder">
<span>Login</span><svg role="img" aria-hidden="true" focusable="false" height="22" width="22" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path d="M10.238 16.905a7.96 7.96 0 003.53-1.48c-.874-2.514-2.065-3.936-3.768-4.319V9.83a3.001 3.001 0 10-2 0v1.277c-1.703.383-2.894 1.805-3.767 4.319A7.96 7.96 0 009 17c.419 0 .832-.032 1.238-.095zm4.342-2.172a8 8 0 10-11.16 0c.757-2.017 1.84-3.608 3.49-4.322a4 4 0 114.182 0c1.649.714 2.731 2.305 3.488 4.322zM9 18A9 9 0 119 0a9 9 0 010 18z" fill="#333" fill-rule="evenodd"></path>
</svg>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="c-header__row">
<div class="c-header__container">
<div class="c-header__split">
<ul class="c-header__menu c-header__menu--journal">
<li class="c-header__item c-header__item--dropdown-menu">
<a href="#explore" class="c-header__link" data-header-expander>
<span><span class="c-header__show-text">Explore</span> content</span><svg role="img" aria-hidden="true" focusable="false" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="m5.58578644 3-3.29289322-3.29289322c-.39052429-.39052429-.39052429-1.02368927 0-1.41421356s1.02368927-.39052429 1.41421356 0l4 4c.39052429.39052429.39052429 1.02368927 0 1.41421356l-4 4c-.39052429.39052429-1.02368927.39052429-1.41421356 0s-.39052429-1.02368927 0-1.41421356z" transform="matrix(0 1 -1 0 11 3)"></path>
</svg>
</a>
</li>
<li class="c-header__item c-header__item--dropdown-menu">
<a href="#about-the-journal" class="c-header__link" data-header-expander>
<span>About <span class="c-header__show-text">the journal</span></span><svg role="img" aria-hidden="true" focusable="false" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="m5.58578644 3-3.29289322-3.29289322c-.39052429-.39052429-.39052429-1.02368927 0-1.41421356s1.02368927-.39052429 1.41421356 0l4 4c.39052429.39052429.39052429 1.02368927 0 1.41421356l-4 4c-.39052429.39052429-1.02368927.39052429-1.41421356 0s-.39052429-1.02368927 0-1.41421356z" transform="matrix(0 1 -1 0 11 3)"></path>
</svg>
</a>
</li>
<li class="c-header__item c-header__item--dropdown-menu">
<a href="#publish-with-us" class="c-header__link c-header__link--dropdown-menu" data-header-expander>
<span>Publish <span class="c-header__show-text">with us</span></span><svg role="img" aria-hidden="true" focusable="false" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
<path d="m5.58578644 3-3.29289322-3.29289322c-.39052429-.39052429-.39052429-1.02368927 0-1.41421356s1.02368927-.39052429 1.41421356 0l4 4c.39052429.39052429.39052429 1.02368927 0 1.41421356l-4 4c-.39052429.39052429-1.02368927.39052429-1.41421356 0s-.39052429-1.02368927 0-1.41421356z" transform="matrix(0 1 -1 0 11 3)"></path>
</svg>
</a>
</li>
<li class="c-header__item c-header__item--pipe c-header__item--hide-lg-max">
<a class="c-header__link" href="https://www.nature.com/nature/subscribe">
<span>Subscribe</span>
</a>
</li>
</ul>
<ul class="c-header__menu c-header__menu--hide-lg-max">
<li class="c-header__item">
<a class="c-header__link" href="https://www.nature.com/my-account/alerts/subscribe-journal?list-id=1" rel="nofollow">
<span>Sign up for alerts</span><svg role="img" aria-hidden="true" focusable="false" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg">
<path d="m4 10h2.5c.27614237 0 .5.2238576.5.5s-.22385763.5-.5.5h-3.08578644l-1.12132034 1.1213203c-.18753638.1875364-.29289322.4418903-.29289322.7071068v.1715729h14v-.1715729c0-.2652165-.1053568-.5195704-.2928932-.7071068l-1.7071068-1.7071067v-3.4142136c0-2.76142375-2.2385763-5-5-5-2.76142375 0-5 2.23857625-5 5zm3 4c0 1.1045695.8954305 2 2 2s2-.8954305 2-2zm-5 0c-.55228475 0-1-.4477153-1-1v-.1715729c0-.530433.21071368-1.0391408.58578644-1.4142135l1.41421356-1.4142136v-3c0-3.3137085 2.6862915-6 6-6s6 2.6862915 6 6v3l1.4142136 1.4142136c.3750727.3750727.5857864.8837805.5857864 1.4142135v.1715729c0 .5522847-.4477153 1-1 1h-4c0 1.6568542-1.3431458 3-3 3-1.65685425 0-3-1.3431458-3-3z" fill="#222"></path>
</svg>
</a>
</li>
<li class="c-header__item c-header__item--pipe">
<a class="c-header__link" href="http://feeds.nature.com/nature/rss/current">
<span>RSS feed</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</header>
{{! These sections should get added at the end of the body so nav links anchor bottom of the page when no js }}
<div id="search-menu" class="c-header__dropdown c-header__dropdown--full-width">
<div class="c-header__container">
<h2 class="c-header__visually-hidden">Search</h2>
<form class="c-header__search-form" action="/search" method="get" role="search" autocomplete="off">
<label class="c-header__heading" for="keywords">Search articles by subject, keyword or author</label>
<div class="c-header__search-layout c-header__search-layout--max-width">
<div>
<input type="text" required="" class="c-header__input" id="keywords" name="q" value="">
</div>
<div class="c-header__search-layout">
<div>
<label for="results-from" class="c-header__visually-hidden">Show results from</label>
<select id="results-from" name="journal" class="c-header__select">
<option value="" selected="">All journals</option>
<option value="nature">This journal</option>
</select>
</div>
<div>
<button type="submit" class="c-header__search-button">Search</button>
</div>
</div>
</div>
</form>
<div class="c-header__flush">
<a class="c-header__link" href="/search/advanced">Advanced search</a>
</div>
<h3 class="c-header__heading c-header__heading--keyline">Quick links</h3>
<ul class="c-header__list">
<li><a class="c-header__link" href="/subjects">Explore articles by subject</a></li>
<li><a class="c-header__link" href="/naturecareers">Find a job</a></li>
<li><a class="c-header__link" href="/authors/index.html">Guide to authors</a></li>
<li><a class="c-header__link" href="/authors/editorial_policies/">Editorial policies</a></li>
</ul>
</div>
</div>
<nav class="c-header__dropdown" aria-labelledby="Explore-content" id="explore">
<div class="c-header__container">
<h2 id="Explore-content" class="c-header__heading c-header__heading--js-hide">Explore content</h2>
<ul class="c-header__list c-header__list--js-stack">
{{#each exploreContent as |siteNavItem|}}
<li class="c-header__item">
<a class="c-header__link" href="{{siteNavItem.slug}}">{{siteNavItem.text}}</a>
</li>
{{/each}}
</ul>
<ul class="c-header__list c-header__list--js-stack">
{{#if facebookUri}}
<li class="c-header__item">
<a class="c-header__link" href="{{facebookUri}}">Follow us on Facebook</a>
</li>
{{/if}}
{{#if twitterUri}}
<li class="c-header__item">
<a class="c-header__link" href="{{twitterUri}}">Follow us on Twitter</a>
</li>
{{/if}}
{{#if showSubscribeButton}}
<li class="c-header__item c-header__item--hide-lg">
<a class="c-header__link" href="https://www.nature.com/{{pcode}}/subscribe"><span>Subscribe</span></a>
</li>
{{/if}}
{{#if alertsLink}}
<li class="c-header__item c-header__item--hide-lg">
<a class="c-header__link" href="{{alertsLink}}" rel="nofollow">Sign up for alerts<svg role="img" aria-hidden="true" focusable="false" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg">
<path d="m4 10h2.5c.27614237 0 .5.2238576.5.5s-.22385763.5-.5.5h-3.08578644l-1.12132034 1.1213203c-.18753638.1875364-.29289322.4418903-.29289322.7071068v.1715729h14v-.1715729c0-.2652165-.1053568-.5195704-.2928932-.7071068l-1.7071068-1.7071067v-3.4142136c0-2.76142375-2.2385763-5-5-5-2.76142375 0-5 2.23857625-5 5zm3 4c0 1.1045695.8954305 2 2 2s2-.8954305 2-2zm-5 0c-.55228475 0-1-.4477153-1-1v-.1715729c0-.530433.21071368-1.0391408.58578644-1.4142135l1.41421356-1.4142136v-3c0-3.3137085 2.6862915-6 6-6s6 2.6862915 6 6v3l1.4142136 1.4142136c.3750727.3750727.5857864.8837805.5857864 1.4142135v.1715729c0 .5522847-.4477153 1-1 1h-4c0 1.6568542-1.3431458 3-3 3-1.65685425 0-3-1.3431458-3-3z" fill="#fff" />
</svg></a>
</li>
{{/if}}
{{#if rssLink}}
<li class="c-header__item c-header__item--hide-lg">
<a class="c-header__link" href="{{rssLink}}"><span>RSS feed</span></a>
</li>
{{/if}}
</ul>
</div>
</nav>
<nav class="c-header__dropdown" aria-labelledby="About-the-journal" id="about-the-journal">
<div class="c-header__container">
<h2 id="About-the-journal" class="c-header__heading c-header__heading--js-hide">About the journal</h2>
<ul class="c-header__list c-header__list--js-stack">
{{#each aboutJournalContent as |siteNavItem|}}
<li class="c-header__item">
<a class="c-header__link" href="{{siteNavItem.slug}}">{{siteNavItem.text}}</a>
</li>
{{/each}}
</ul>
</div>
</nav>
<nav class="c-header__dropdown" aria-labelledby="Publish-with-us-label" id="publish-with-us">
<div class="c-header__container">
<h2 id="Publish-with-us-label" class="c-header__heading c-header__heading--js-hide">Publish with us</h2>
<ul class="c-header__list c-header__list--js-stack">
{{#each publishWithUsContent as |siteNavItem|}}
<li class="c-header__item">
<a class="c-header__link" href="{{siteNavItem.slug}}">{{siteNavItem.text}}</a>
</li>
{{/each}}
{{#if submissionLink}}
<li class="c-header__item c-header__item--keyline">
<a class="c-header__link" href="{{submissionLink}}">Submit manuscript<svg role="img" aria-hidden="true" focusable="false" height="18" viewBox="0 0 18 18" width="18" xmlns="http://www.w3.org/2000/svg">
<path d="m15 0c1.1045695 0 2 .8954305 2 2v5.5c0 .27614237-.2238576.5-.5.5s-.5-.22385763-.5-.5v-5.5c0-.51283584-.3860402-.93550716-.8833789-.99327227l-.1166211-.00672773h-9v3c0 1.1045695-.8954305 2-2 2h-3v10c0 .5128358.38604019.9355072.88337887.9932723l.11662113.0067277h7.5c.27614237 0 .5.2238576.5.5s-.22385763.5-.5.5h-7.5c-1.1045695 0-2-.8954305-2-2v-10.17157288c0-.53043297.21071368-1.0391408.58578644-1.41421356l3.82842712-3.82842712c.37507276-.37507276.88378059-.58578644 1.41421356-.58578644zm-.5442863 8.18867991 3.3545404 3.35454039c.2508994.2508994.2538696.6596433.0035959.909917-.2429543.2429542-.6561449.2462671-.9065387-.0089489l-2.2609825-2.3045251.0010427 7.2231989c0 .3569916-.2898381.6371378-.6473715.6371378-.3470771 0-.6473715-.2852563-.6473715-.6371378l-.0010428-7.2231995-2.2611222 2.3046654c-.2531661.2580415-.6562868.2592444-.9065605.0089707-.24295423-.2429542-.24865597-.6576651.0036132-.9099343l3.3546673-3.35466731c.2509089-.25090888.6612706-.25227691.9135302-.00001728zm-.9557137-3.18867991c.2761424 0 .5.22385763.5.5s-.2238576.5-.5.5h-6c-.27614237 0-.5-.22385763-.5-.5s.22385763-.5.5-.5zm-8.5-3.587-3.587 3.587h2.587c.55228475 0 1-.44771525 1-1zm8.5 1.587c.2761424 0 .5.22385763.5.5s-.2238576.5-.5.5h-6c-.27614237 0-.5-.22385763-.5-.5s.22385763-.5.5-.5z" fill="#fff" />
</svg>
</a>
</li>
{{/if}}
</ul>
</div>
</nav>