Add Project Title
This commit is contained in:
@@ -55,6 +55,7 @@ time_zone = Time Zone
|
|||||||
id_project = Project ID
|
id_project = Project ID
|
||||||
project = Project
|
project = Project
|
||||||
projects = Projects
|
projects = Projects
|
||||||
|
hikes = Hikes
|
||||||
mode = Mode
|
mode = Mode
|
||||||
code_name = Code name
|
code_name = Code name
|
||||||
start = Start
|
start = Start
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ time_zone = Fuseau horaire
|
|||||||
id_project = ID projet
|
id_project = ID projet
|
||||||
project = Projet
|
project = Projet
|
||||||
projects = Projets
|
projects = Projets
|
||||||
|
hikes = Randonnées
|
||||||
mode = Mode
|
mode = Mode
|
||||||
code_name = Nom de code
|
code_name = Nom de code
|
||||||
start = Départ
|
start = Départ
|
||||||
|
|||||||
@@ -7,18 +7,18 @@
|
|||||||
<div id="settings">
|
<div id="settings">
|
||||||
<div id="settings-panel">
|
<div id="settings-panel">
|
||||||
<div class="settings-header">
|
<div class="settings-header">
|
||||||
<div class="logo"><img src="images/logo_black.png" /></div>
|
<div class="logo"><img src="images/logo_black.png" /></div>
|
||||||
<div id="last_update"><p><span><img src="images/spot-logo-only.svg" alt="" /></span><abbr></abbr></p></div>
|
<div id="last_update"><p><span><img src="images/spot-logo-only.svg" alt="" /></span><abbr></abbr></p></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-sections">
|
<div class="settings-sections">
|
||||||
<div id="settings-sections-scrollbox">
|
<div id="settings-sections-scrollbox">
|
||||||
<div class="settings-section">
|
<div class="settings-section">
|
||||||
<h1><i class="fa fa-fw push fa-map"></i>[#]lang:maps[#]</h1>
|
<h1><i class="fa fa-fw push fa-project"></i>[#]lang:hikes[#]</h1>
|
||||||
<div id="layers"></div>
|
<div id="settings-projects"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-section">
|
<div class="settings-section">
|
||||||
<h1><i class="fa fa-fw push fa-project"></i>[#]lang:projects[#]</h1>
|
<h1><i class="fa fa-fw push fa-map"></i>[#]lang:maps[#]</h1>
|
||||||
<div id="settings-projects"></div>
|
<div id="layers"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-section newsletter">
|
<div class="settings-section newsletter">
|
||||||
<h1><i class="fa fa-fw push fa-newsletter"></i>[#]lang:newsletter[#]</h1>
|
<h1><i class="fa fa-fw push fa-newsletter"></i>[#]lang:newsletter[#]</h1>
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
<div id="loading"></div>
|
<div id="loading"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="title" class="leaflet-control spot-control"><span id="project_name" class="leaflet-control-attribution"></span></div>
|
||||||
<div id="elems">
|
<div id="elems">
|
||||||
<div id="settings-button" class="spot-control"><i class="fa fa-menu"></i></div>
|
<div id="settings-button" class="spot-control"><i class="fa fa-menu"></i></div>
|
||||||
<div id="post-button" class="spot-control"><i class="fa"></i></div>
|
<div id="post-button" class="spot-control"><i class="fa"></i></div>
|
||||||
@@ -101,8 +102,12 @@ oSpot.onKeydown = function(oEvent) {
|
|||||||
|
|
||||||
function toggleFeedPanel(bShow, sMapAction) {
|
function toggleFeedPanel(bShow, sMapAction) {
|
||||||
self.tmp('$Projects').toggleClass('with-feed', (typeof bShow === 'undefined')?null:bShow);
|
self.tmp('$Projects').toggleClass('with-feed', (typeof bShow === 'undefined')?null:bShow);
|
||||||
|
bShow = isFeedPanelOpen();
|
||||||
oSpot.onResize();
|
oSpot.onResize();
|
||||||
if(isMobile()) $('#settings-button').toggle(!isFeedPanelOpen());
|
if(isMobile()) {
|
||||||
|
$('#settings-button').toggle(!bShow);
|
||||||
|
toggleTitle(!bShow);
|
||||||
|
}
|
||||||
|
|
||||||
sMapAction = sMapAction || 'panTo';
|
sMapAction = sMapAction || 'panTo';
|
||||||
switch(sMapAction) {
|
switch(sMapAction) {
|
||||||
@@ -120,7 +125,9 @@ function isFeedPanelOpen() {
|
|||||||
function toggleSettingsPanel(bShow, sMapAction) {
|
function toggleSettingsPanel(bShow, sMapAction) {
|
||||||
self.tmp('$Projects').toggleClass('with-settings', (typeof bShow === 'undefined')?null:bShow);
|
self.tmp('$Projects').toggleClass('with-settings', (typeof bShow === 'undefined')?null:bShow);
|
||||||
oSpot.onResize();
|
oSpot.onResize();
|
||||||
if(isMobile()) $('#post-button').toggle(!isSettingsPanelOpen());
|
bShow = isSettingsPanelOpen();
|
||||||
|
if(isMobile()) $('#post-button').toggle(!bShow);
|
||||||
|
toggleTitle(!bShow);
|
||||||
|
|
||||||
sMapAction = sMapAction || 'panTo';
|
sMapAction = sMapAction || 'panTo';
|
||||||
switch(sMapAction) {
|
switch(sMapAction) {
|
||||||
@@ -134,6 +141,11 @@ function isSettingsPanelOpen() {
|
|||||||
return self.tmp('$Projects').hasClass('with-settings');
|
return self.tmp('$Projects').hasClass('with-settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleTitle(bShow) {
|
||||||
|
if(bShow) self.tmp('$Title').delay(300).fadeTo(500, 1);
|
||||||
|
else self.tmp('$Title').css('opacity', '0');
|
||||||
|
}
|
||||||
|
|
||||||
function updateSettingsPanel(asLastUpdate) {
|
function updateSettingsPanel(asLastUpdate) {
|
||||||
var $LastUpdate = self.tmp('$Settings').find('#last_update').toggle(self.vars(['project', 'mode']) == self.consts.modes.blog && asLastUpdate.unix_time > 0);
|
var $LastUpdate = self.tmp('$Settings').find('#last_update').toggle(self.vars(['project', 'mode']) == self.consts.modes.blog && asLastUpdate.unix_time > 0);
|
||||||
$LastUpdate.find('abbr')
|
$LastUpdate.find('abbr')
|
||||||
@@ -154,6 +166,7 @@ function initPage(asHash) {
|
|||||||
self.tmp('$PostList', $('#posts_list'));
|
self.tmp('$PostList', $('#posts_list'));
|
||||||
self.tmp('$Feed', $('#feed'));
|
self.tmp('$Feed', $('#feed'));
|
||||||
self.tmp('$Settings', $('#settings'));
|
self.tmp('$Settings', $('#settings'));
|
||||||
|
self.tmp('$Title', $('#title'));
|
||||||
self.tmp('updatable', true);
|
self.tmp('updatable', true);
|
||||||
self.tmp('out-of-data', false);
|
self.tmp('out-of-data', false);
|
||||||
self.tmp('tile_api', getWmtsApiUrl('{id}', '{y}', '{x}', '{z}'));
|
self.tmp('tile_api', getWmtsApiUrl('{id}', '{y}', '{x}', '{z}'));
|
||||||
@@ -215,6 +228,7 @@ function initProject(sProjectCodeName, oFocusPost){
|
|||||||
|
|
||||||
//Page Title
|
//Page Title
|
||||||
self.setPageTitle(oSpot.vars(['project', 'name']));
|
self.setPageTitle(oSpot.vars(['project', 'name']));
|
||||||
|
self.tmp('$Title').find('#project_name').text(oSpot.vars(['project', 'name']));
|
||||||
|
|
||||||
//Load Track & Markers
|
//Load Track & Markers
|
||||||
$.when(
|
$.when(
|
||||||
|
|||||||
@@ -25,4 +25,4 @@
|
|||||||
* Add mail frequency slider
|
* Add mail frequency slider
|
||||||
* Use WMTS servers directly when not using Geo Caching Server
|
* Use WMTS servers directly when not using Geo Caching Server
|
||||||
* Allow HEIF picture format
|
* Allow HEIF picture format
|
||||||
* Vector tiles support (https://www.arcgis.com/home/item.html?id=7dc6cea0b1764a1f9af2e679f642f0f5). Use Mapbox GL JS / Maplibre GL JS?
|
* Vector tiles support (https://www.arcgis.com/home/item.html?id=7dc6cea0b1764a1f9af2e679f642f0f5) + Use of GL library. Use Mapbox GL JS / Maplibre GL JS?
|
||||||
|
|||||||
@@ -62,6 +62,14 @@
|
|||||||
|
|
||||||
/* Common objects */
|
/* Common objects */
|
||||||
|
|
||||||
|
*:focus {
|
||||||
|
outline: 0px none transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea:focus, input:focus {
|
||||||
|
outline: 1px solid #CCC;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -286,6 +286,19 @@ $legend-color: $post-color;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#title {
|
||||||
|
left: calc(44px + 1rem);
|
||||||
|
width: auto;
|
||||||
|
cursor: inherit;
|
||||||
|
|
||||||
|
span#project_name {
|
||||||
|
font-size: 1.5em;
|
||||||
|
line-height: 44px;
|
||||||
|
padding: 0 $block-spacing;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#post-button .fa {
|
#post-button .fa {
|
||||||
@extend .fa-post;
|
@extend .fa-post;
|
||||||
}
|
}
|
||||||
@@ -431,7 +444,7 @@ $legend-color: $post-color;
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.signature {
|
.signature {
|
||||||
margin: 0.5em 0 0 0;
|
margin: $elem-spacing 0 0 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
|
||||||
@@ -442,8 +455,9 @@ $legend-color: $post-color;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
padding: 0.5em 1em;
|
padding: 0 $block-spacing;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -452,12 +466,13 @@ $legend-color: $post-color;
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
padding: $elem-spacing 0px;
|
||||||
|
|
||||||
&.index {
|
&.index {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
|
|
||||||
.link, .link:visited, .link_copied {
|
.link, .link:visited, .link_copied {
|
||||||
margin-left: 0.5em;
|
margin-left: $elem-spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -470,7 +485,7 @@ $legend-color: $post-color;
|
|||||||
}
|
}
|
||||||
.body {
|
.body {
|
||||||
clear: both;
|
clear: both;
|
||||||
padding: 0em 1em 1em;
|
padding: 0em $block-spacing $block-spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.headerless {
|
&.headerless {
|
||||||
@@ -478,7 +493,7 @@ $legend-color: $post-color;
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.body {
|
.body {
|
||||||
padding-top: 0.5em;
|
padding-top: $elem-spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -488,7 +503,7 @@ $legend-color: $post-color;
|
|||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
margin: 0 0 .5em 0;
|
margin: 0 0 $elem-spacing 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,10 @@
|
|||||||
right: calc((#{$panel-width}) * -1);
|
right: calc((#{$panel-width}) * -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#title {
|
||||||
|
width: calc(#{$panel-width} - 44px - 2 * #{$block-spacing});
|
||||||
|
}
|
||||||
|
|
||||||
#settings {
|
#settings {
|
||||||
left: calc((#{$panel-width}) * -1);
|
left: calc((#{$panel-width}) * -1);
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user