180180
181181< div class ='page-content '>
182182
183- {% if page.title == 'Mapbox Studio' %}
184- < div class ='fill-cyan dark pad1y pad8x small center hide-mobile ' id ='classic-download '>
185- < div class ='pad0y '>
186- < span class ='icon info quiet '> </ span > Mapbox Studio for desktop is now Mapbox Studio Classic. < a href ='/mapbox-studio-classic '> Looking to upgrade Mapbox Studio Classic?</ a >
187- < a class ='fr ' onclick ="document.getElementById('classic-download').style.display='none'; return false " href =''> < span class ='icon close '> </ span > </ a >
188- </ div >
189- </ div >
190-
191- {% endif %}
192-
193183{% if page.app %}
194184{{content}}
195185{% else %}
186+ < div class ="main-subnav fill-midnight splash pin-top dark clearfix ">
187+ < div class ="prose dark keyline-top pad4y hover-area clearfix ">
188+ < div class ="limiter clearfix ">
189+ < div class ="subnav-products clearfix ">
190+ < div class ="col6 clearfix ">
191+ < h3 > < a href ="/products/ " class ="rcon next "> Our products</ a > </ h3 >
192+ < div class ="col5 ">
193+ < a class ="block pad1y icon map " href ="/maps "> Maps</ a >
194+ < a class ="block pad1y icon studio " href ="/mapbox-studio "> Mapbox Studio</ a >
195+ < a class ="block pad1y icon compass " href ="/directions/ "> Directions</ a >
196+ < a class ="block pad1y icon marker " href ="/geocoding/ "> Geocoding</ a >
197+ </ div >
198+ < div class ="col6 ">
199+ < a class ="block pad1y icon bolt " href ="/analysis/ "> Analysis</ a >
200+ < a class ="block pad1y icon mobile " href ="/mobile/ "> Mobile</ a >
201+ < a class ="block pad1y icon satellite " href ="/satellite/ "> Satellite</ a >
202+ < a class ="block pad1y icon globe " href ="/atlas/ "> Atlas Server</ a >
203+ </ div >
204+ </ div >
205+ < div class ="col5 margin1r ">
206+ < h3 > Our platform</ h3 >
207+
208+ < a class ="block pad1y icon building " href ="/platform/ "> Scalable infrastructure</ a >
209+ < a class ="block pad1y icon lock " href ="/platform/security/ "> Security</ a >
210+ < a class ="block pad1y icon data " href ="/data-platform/ "> Curated Data</ a >
211+
212+ </ div >
213+ </ div >
214+
215+ < div class ="subnav-use-cases clearfix ">
216+ < div class ="col7 clearfix ">
217+ < h3 > < a href ="/industries/ " class ="rcon next "> Industries</ a > </ h3 >
218+ < div class ="col4 ">
219+ < a class ="block pad0y " href ="/industries/social "> Web & Social</ a >
220+ < a class ="block pad0y " href ="/industries/logistics "> Logistics</ a >
221+ < a class ="block pad0y " href ="/industries/outdoors "> Fitness & Outdoors</ a >
222+ < a class ="block pad0y " href ="/industries/naturalresources "> Natural Resources</ a >
223+ < a class ="block pad0y " href ="/industries/agriculture "> Agriculture</ a >
224+ </ div >
225+ < div class ="col4 ">
226+ < a class ="block pad0y " href ="/industries/transportation "> Transportation</ a >
227+ < a class ="block pad0y " href ="/industries/realestate "> Real Estate</ a >
228+ < a class ="block pad0y " href ="/industries/insurance "> Insurance</ a >
229+ < a class ="block pad0y " href ="/industries/security "> Security</ a >
230+ < a class ="block pad0y " href ="/industries/finance "> Finance</ a >
231+ </ div >
232+ < div class ="col4 ">
233+ < a class ="block pad0y " href ="/industries/drones "> Drones</ a >
234+ < a class ="block pad0y " href ="/industries/government "> Government</ a >
235+ < a class ="block pad0y " href ="/industries/health "> Health</ a >
236+ < a class ="block pad0y " href ="/industries/media "> Media</ a >
237+ </ div >
238+ </ div >
239+ < div class ="col4 margin1 ">
240+ < h3 > Examples</ h3 >
241+ < a class ="block pad0y " href ="/gallery/ "> Map Gallery</ a >
242+ < a class ="block pad0y " href ="/showcase/ "> Customer Showcase</ a >
243+ </ div >
244+
245+ </ div >
246+
247+
248+ < div class ="subnav-documentation clearfix ">
249+ < div class ="col8 clearfix subnavcol ">
250+ < h3 > < a href ="/developers/ " class ="rcon next "> Developer tools</ a > </ h3 >
251+ < div class ="col4 ">
252+ < a class ="block pad1y icon gl " href ="/mapbox-gl-js/api/ "> Mapbox GL JS</ a >
253+ < a class ="block pad1y icon apple " href ="/ios-sdk/ "> Mapbox iOS SDK</ a >
254+ < a class ="block pad1y icon android " href ="/android-sdk/ "> Mapbox Android SDK</ a >
255+ < a class ="block pad1y icon globe " href ="/mapbox.js/api/ "> Mapbox.js</ a >
256+ </ div >
257+ < div class ="col4 ">
258+ < a class ="block pad1y icon marker " href ="/developers/api/geocoding/ "> Geocoding API</ a >
259+ < a class ="block pad1y icon paint " href ="/developers/api/styles/ "> Styles API</ a >
260+ < a class ="block pad1y icon up " href ="/developers/api/uploads/ "> Uploads API</ a >
261+ < a class ="block pad1y icon inspect " href ="/developers/api/surface/ "> Surface API</ a >
262+ </ div >
263+ < div class ="col4 ">
264+ < a class ="block pad1y icon compass " href ="/developers/api/directions/ "> Directions API</ a >
265+ < a class ="block pad1y icon point-line " href ="/developers/api/distance/ "> Distance API</ a >
266+ < a class ="block pad1y icon picture " href ="/developers/api/static/ "> Static API</ a >
267+ < a class ="block pad1y icon data " href ="/developers/api/maps/ "> Tiles API</ a >
268+ </ div >
269+ </ div >
270+
271+ < div class ="col3 margin1r subnavcol ">
272+ < h3 > References</ h3 >
273+ < a class ="block pad1y " href ="/tos "> TOS</ a >
274+ < a class ="block pad1y " href ="/privacy/ "> Privacy</ a >
275+ < a class ="block pad1y " href ="/about/open/ "> Open source tools</ a >
276+ < a class ="block pad1y " href ="/telemetry/ "> Telemetry</ a >
277+ </ div >
278+
279+ </ div >
280+
281+ < div class ="subnav-help clearfix ">
282+ < div class ="col3 ">
283+ < h3 > < a href ="/help/ " class ="rcon next "> Help</ a > </ h3 >
284+ < a class ="block pad1y icon search " href ="/help/ "> Search</ a >
285+ < a class ="block pad1y icon mapbox " href ="/help/how-mapbox-works/ "> How Mapbox works</ a >
286+ < a class ="block pad1y icon book " href ="/help/glossary/ "> Glossary</ a >
287+ </ div >
288+
289+ < div class ="col8 margin1 clearfix ">
290+ < h3 > I would like to</ h3 >
291+ < div class ="col6 ">
292+ < a class ="block pad1y icon paint " href ="/help/#design-a-map "> Design a map</ a >
293+ < a class ="block pad1y icon mobile " href ="/help/#build-a-mobile-app "> Build a mobile app</ a >
294+ < a class ="block pad1y icon globe " href ="/help/#build-a-web-app "> Build a web app</ a >
295+ < a class ="block pad1y icon bolt " href ="help/#extend-my-app-with-web-services "> Extend my app with web services</ a >
296+ </ div >
297+ < div class ="col6 ">
298+ < a class ="block pad1y icon satellite " href ="/help/#work-with-data-and-imagery "> Work with data & Imagery</ a >
299+ < a class ="block pad1y icon data " href ="/help/#analyze-data "> Analyze Data</ a >
300+ < a class ="block pad1y icon lock " href ="/help/#learn-about-mapbox-privacy-and-policies "> Learn about privacy and policies</ a >
301+ < a class ="block pad1y icon account " href ="/help/#make-changes-to-my-account "> Make changes to my account</ a >
302+ </ div >
303+ </ div >
304+
305+ </ div >
306+
307+ </ div >
308+ </ div >
309+ </ div >
196310< div class ='masthead col12 clearfix {% unless page.options contains 'bleed ' %}fill-blue{% endunless %} {% unless page.options contains 'light' %}dark{% endunless %} {% if page.title == 'Mapbox ' %}home-nav{% endif %} {% if page.url contains '/gallery' %}gallery-page{% endif %}' data-swiftype-index='false '>
197311 < div class ='limiter clearfix '>
198312 < nav class ='col12 text-right pad2y contain animate clearfix noprint '>
199313 < a class ='fl mb-logo ' href ='/ '> </ a >
200314 < h4 class ='logo-enterpriseaddon pin-topleft text-aqua block-in-enterprise '> Enterprise</ h4 >
201315
202316 <!-- Desktop nav -->
203- < div class ='text-right z10 strong small pad0y primary hide-mobile '>
317+ < div class ='text-right z10 strong small primary hide-mobile '>
204318 < div class ='inline align-top '>
205- < a href ='/products/ ' class ='primary-nav-button fl pad1x pad0y round {% if page.url contains '/products' %}active{% endif %}'> Products</ a >
206- < a href ='/data-platform/ ' class ='primary-nav-button fl pad1x pad0y round {% if page.url contains '/data-platform' %}active{% endif %}'> Data</ a >
207- < a href ='/gallery ' class ='primary-nav-button fl pad1x pad0y round {% if page.url contains '/gallery' %}active{% endif %}'> Gallery</ a >
208- < a href ='/industries ' class ='primary-nav-button fl pad1x pad0y round {% if page.url contains '/industries' %}active{% endif %}'> Industries</ a >
209- < a href ='/plans/ ' class ='primary-nav-button fl pad1x pad0y round {% if page.url contains '/plans' %}active{% endif %}'> Pricing</ a >
210- < a href ='/help/ ' class ='primary-nav-button fl pad1x pad0y round quiet {% if page.url contains '/help' %}active{% endif %}'> Help</ a >
211- < a href ='/developers/ ' class ='primary-nav-button fl pad1x pad0y round quiet {% if page.url contains '/developers' %}active{% endif %}'> Developers</ a >
212- < a href ='/blog/ ' class ='primary-nav-button fl pad1x pad0y round quiet {% if page.url contains '/blog' %}active{% endif %}'> Blog</ a >
319+ < div class ="dropdown inline pad1y fl contain " id ="menu-products "> < a href ='/products/ ' class ='contain primary-nav-button fl pad1x pad0y round '> Products</ a > </ div >
320+ < div class ="dropdown inline pad1y fl contain " id ="menu-use-cases "> < a href ='/industries/ ' class ='contain primary-nav-button fl pad1x pad0y round '> Industries</ a > </ div >
321+ < div class ="dropdown inline pad1y fl contain " id ="menu-documentation "> < a href ='/developers/ ' class ='contain primary-nav-button fl pad1x pad0y round '> Developers</ a > </ div >
322+ < div class ="dropdown inline pad1y fl contain " id ="menu-help "> < a href ='/help/ ' class ='contain primary-nav-button fl pad1x pad0y round {% if page.url contains '/help' %}active{% endif %}'> Help & Guides</ a > </ div >
323+ < div class ="inline pad1y fl "> < a href ='/plans/ ' class ='primary-nav-button fl pad1x pad0y round quiet {% if page.url contains '/plans' %}active{% endif %}'> Pricing</ a > </ div >
324+
325+ < div class ="inline pad1y fl "> < a href ='/blog/ ' class ='primary-nav-button fl pad1x pad0y round quiet {% if page.url contains '/blog' %}active{% endif %}'> Blog</ a > </ div >
213326 </ div >
214327 <!-- Hardcoded width so content doesn't jump -->
215- < div style ='width:130px ' class ='unfloat inline align-top ' id ='nav '>
328+ < div style ='width:130px ' class ='unfloat inline align-top pad1y ' id ='nav '>
216329 </ div >
217330 </ div >
218331
@@ -233,8 +346,8 @@ <h4 class='logo-enterpriseaddon pin-topleft text-aqua block-in-enterprise'>Enter
233346 < a class ="pad1 block strong col6 " href ="/pricing/ "> Pricing</ a >
234347 </ div >
235348 < div id ="mobile-nav " class ="pad2y clearfix mobile-cols ">
236- < a class ="pad1 block strong col6 signin " href ="#signin "> Log in</ a >
237- < a class ="pad1 block strong col6 " href ="/signup/ "> Sign up</ a >
349+ < a class ="pad1 block strong col6 signin " href ="/studio/ "> Log in</ a >
350+ < a class ="pad1 block strong col6 " href ="/studio/ signup/ "> Sign up</ a >
238351 </ div >
239352 </ div >
240353 < div class ='clearfix small '>
@@ -353,7 +466,7 @@ <h3 class='space-bottom1'>Sign up for our newsletter</h3>
353466</ div >
354467{% endunless %}
355468
356- {% if page.url contains '/hello/directions' or page.url contains '/welcome' %}
469+ {% if page.url contains '/hello/directions' %}
357470
358471< div class ='footer-in-docs terms-in-docs col12 center footer-copyright small pad4 noprint fill-light contain ' data-swiftype-index ='false '>
359472 < a href ='{{site.url}}/tos '> Terms</ a > +
@@ -368,5 +481,81 @@ <h3 class='space-bottom1'>Sign up for our newsletter</h3>
368481
369482< div id ='modal-content ' class ='animate modal modal-content '> </ div >
370483</ div >
484+
485+ < script type ="text/javascript ">
486+
487+ $ ( ".dropdown" ) . hover (
488+ function ( ) {
489+ setContent ( $ ( this ) . attr ( "id" ) ) ;
490+ $ ( ".main-subnav" ) . addClass ( "show" ) ;
491+ $ ( $ ( this ) ) . addClass ( "show" ) ;
492+ }
493+ ) ;
494+
495+ $ ( '.hover-area' ) . mouseover (
496+ function ( ) {
497+ $ ( this ) . addClass ( 'hovered' ) ;
498+ return false ;
499+ } )
500+ . mouseout (
501+ function ( ) {
502+ $ ( this ) . removeClass ( 'hovered' ) ;
503+ } ) ;
504+
505+
506+ $ ( ".dropdown" ) . mouseleave ( function ( ) {
507+ window . setTimeout ( function ( ) {
508+ if ( ! $ ( ".hover-area" ) . hasClass ( 'hovered' ) && $ ( ".dropdown:hover" ) . length == 0 ) {
509+ $ ( ".main-subnav" ) . removeClass ( "show" ) ;
510+ $ ( ".dropdown" ) . removeClass ( "show" ) ;
511+ }
512+
513+ } , 300 ) ;
514+
515+ } )
516+
517+ $ ( ".hover-area" ) . mouseleave ( function ( ) {
518+ window . setTimeout ( function ( ) {
519+ if ( $ ( ".dropdown:hover" ) . length == 0 ) {
520+ $ ( ".main-subnav" ) . removeClass ( "show" ) ;
521+ $ ( ".dropdown" ) . removeClass ( "show" ) ;
522+ }
523+ } , 300 ) ;
524+ } ) ;
525+
526+
527+
528+ function setContent ( activeCategory ) {
529+ $ ( ".dropdown" ) . removeClass ( "show" ) ;
530+ switch ( activeCategory ) {
531+ case 'menu-products' :
532+ $ ( ".subnav-products" ) . addClass ( "show" ) ;
533+ $ ( ".subnav-use-cases" ) . removeClass ( "show" ) ;
534+ $ ( ".subnav-documentation" ) . removeClass ( "show" ) ;
535+ $ ( ".subnav-help" ) . removeClass ( "show" ) ;
536+ break ;
537+ case 'menu-use-cases' :
538+ $ ( ".subnav-use-cases" ) . addClass ( "show" ) ;
539+ $ ( ".subnav-products" ) . removeClass ( "show" ) ;
540+ $ ( ".subnav-documentation" ) . removeClass ( "show" ) ;
541+ $ ( ".subnav-help" ) . removeClass ( "show" ) ;
542+ break ;
543+ case 'menu-documentation' :
544+ $ ( ".subnav-documentation" ) . addClass ( "show" ) ;
545+ $ ( ".subnav-products" ) . removeClass ( "show" ) ;
546+ $ ( ".subnav-use-cases" ) . removeClass ( "show" ) ;
547+ $ ( ".subnav-help" ) . removeClass ( "show" ) ;
548+ break ;
549+ case 'menu-help' :
550+ $ ( ".subnav-help" ) . addClass ( "show" ) ;
551+ $ ( ".subnav-products" ) . removeClass ( "show" ) ;
552+ $ ( ".subnav-use-cases" ) . removeClass ( "show" ) ;
553+ $ ( ".subnav-documentation" ) . removeClass ( "show" ) ;
554+ break ;
555+ }
556+ }
557+
558+ </ script >
559+
371560</ body >
372- </ html>
561+ </ html>
0 commit comments