@ -77,25 +77,19 @@ define([
} ;
} ;
var infopageTopbar = function ( ) {
var infopageTopbar = function ( ) {
return h ( 'div.cp-topbar' ,
return h ( 'nav.navbar.navbar-toggleable-md' ,
h ( 'div' ,
h ( 'button.navbar-toggler.navbar-toggler-right' , { 'type' : 'button' } , { 'data-toggle' : 'collapse' } , { 'data-target' : '#menuCollapse' } , { 'aria-controls' : 'menuCollapse' } , { 'aria-expanded' : 'false' } , { 'aria-label' : 'Toggle navigation' } ,
h ( 'a.navbar-brand' , { href : 'index.html' } , [
h ( 'img' , { src : '/customize/CryptPad-white-logo.svg' } )
] )
) ,
h ( 'div.navbar.navbar-toggleable-md.navbar-light.navbar-inverse' ,
h ( 'button.navbar-toggler.navbar-toggler-right' , { 'type' : 'button' } , { 'data-toggle' : 'collapse' } , { 'data-target' : '#menuCollapse' } , { 'aria-controls' : 'menuCollapse' } , { 'aria-expanded' : 'false' } , { 'aria-label' : 'Toggle navigation' } ,
[ h ( 'i.fa.fa-bars ' )
[ h ( 'i.fa.fa-bars ' )
] ) ,
] ) ,
h ( 'div.collapse.navbar-collapse.justify-content-end.flex-column#menuCollapse' , [
h ( 'a.navbar-brand' , { href : '/' } ) ,
h ( 'div.collapse.navbar-collapse.justify-content-end#menuCollapse' , [
h ( 'a.nav-item.nav-link' , { href : '/what-is-cryptpad.html' } , Msg . topbar _whatIsCryptpad ) ,
h ( 'a.nav-item.nav-link' , { href : '/what-is-cryptpad.html' } , Msg . topbar _whatIsCryptpad ) ,
h ( 'a.nav-item.nav-link' , { href : 'https://blog.cryptpad.fr/' } , Msg . blog ) ,
h ( 'a.nav-item.nav-link' , { href : 'https://blog.cryptpad.fr/' } , Msg . blog ) ,
h ( 'a.nav-item.nav-link' , { href : '/contact.html' } , Msg . contact ) ,
h ( 'a.nav-item.nav-link' , { href : '/contact.html' } , Msg . contact ) ,
h ( 'a.nav-item.nav-link' , { href : '/about.html' } , Msg . about ) ,
h ( 'a.nav-item.nav-link' , { href : '/about.html' } , Msg . about ) ,
h ( 'a. cp-login-btn', { href : '/login' } , Msg . login _login ) ,
h ( 'a. nav-item.nav-link. cp-login-btn', { href : '/login' } , Msg . login _login ) ,
h ( 'a. cp-register-btn', { href : '/register' } , Msg . login _register )
h ( 'a. nav-item.nav-link. cp-register-btn', { href : '/register' } , Msg . login _register )
] )
] )
)
) ;
) ;
} ;
} ;
@ -138,9 +132,9 @@ define([
setHTML ( h ( 'div#bio' ) , '' )
setHTML ( h ( 'div#bio' ) , '' )
] ) ,
] ) ,
h ( 'div.col-md-4' , [
h ( 'div.col-md-4' , [
h ( 'img.bio-avatar' , { 'src' : '/customize/images/ avatar.pn g'} ) ,
h ( 'img.bio-avatar' , { 'src' : '/customize/images/ ludovic.jp g'} ) ,
h ( 'h3' , "Ludovic Dubost" ) ,
h ( 'h3' , "Ludovic Dubost" ) ,
setHTML ( h ( 'div#bio' ) , ' ')
setHTML ( h ( 'div#bio' ) , ' <p>A graduate of PolyTech (X90) and Telecom School in Paris, Ludovic Dubost started his career as a software architect for Netscape Communications Europe. He then became CTO of NetValue, one of the first French start-ups that went public. He left NetValue after the company was purchased by Nielsen/NetRatings and in 2004 launched XWiki, the next generation wiki.</p><p>Since the very beginning, Ludovic has been immensely helpful to the CryptPad project. He believed in the idea when there was nothing more than the collaborative pad and his help with sales strategy for the project.</p> ')
] )
] )
] ) ,
] ) ,
] ) ,
] ) ,
@ -280,9 +274,11 @@ define([
if ( showingMore ) {
if ( showingMore ) {
$ ( '.cp-more, .cp-callout-more-lessmsg' ) . addClass ( 'cp-hidden' ) ;
$ ( '.cp-more, .cp-callout-more-lessmsg' ) . addClass ( 'cp-hidden' ) ;
$ ( '.cp-callout-more-moremsg' ) . removeClass ( 'cp-hidden' ) ;
$ ( '.cp-callout-more-moremsg' ) . removeClass ( 'cp-hidden' ) ;
if ( $ ( window ) . width ( ) > 991 ) $ ( '.navbar' ) . css ( 'margin-top' , '-1em' ) ;
} else {
} else {
$ ( '.cp-more, .cp-callout-more-lessmsg' ) . removeClass ( 'cp-hidden' ) ;
$ ( '.cp-more, .cp-callout-more-lessmsg' ) . removeClass ( 'cp-hidden' ) ;
$ ( '.cp-callout-more-moremsg' ) . addClass ( 'cp-hidden' ) ;
$ ( '.cp-callout-more-moremsg' ) . addClass ( 'cp-hidden' ) ;
$ ( '.navbar' ) . css ( 'margin-top' , '0' ) ;
}
}
showingMore = ! showingMore ;
showingMore = ! showingMore ;
}
}