Commit 13b7f2a1 authored by Romain Loth's avatar Romain Loth

rename leftcolumn => sidecolumn + remove its custom css from...

rename leftcolumn => sidecolumn + remove its custom css from templates/graphExplorer/explorer.html to just set the width setting via settings_explorer sidecolumnSize param
parent f767707c
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</div> </div>
<!-- Sidebar --> <!-- Sidebar -->
<div id="leftcolumn"> <div id="sidecolumn">
<div style="text-align: center;"> <div style="text-align: center;">
<a href="http://www.cnrs.fr" target="_blank"><img width="40%" src="https://www.ipmc.cnrs.fr/~duprat/comm/images/logo_cnrs_transparent.gif"></a> <a href="http://www.cnrs.fr" target="_blank"><img width="40%" src="https://www.ipmc.cnrs.fr/~duprat/comm/images/logo_cnrs_transparent.gif"></a>
</div> </div>
......
...@@ -21,7 +21,7 @@ box-shadow: 0px 0px 3px 0px #888888; ...@@ -21,7 +21,7 @@ box-shadow: 0px 0px 3px 0px #888888;
}*/ }*/
#leftcolumn { #sidecolumn {
overflow-y: scroll; overflow-y: scroll;
padding-bottom: 10px; padding-bottom: 10px;
padding-left: 5px; padding-left: 5px;
......
...@@ -32,8 +32,8 @@ var mainfile = ["db.json"]; ...@@ -32,8 +32,8 @@ var mainfile = ["db.json"];
var tagcloud_limit = 50; var tagcloud_limit = 50;
// for the css of leftcolumn and canvasLimits size // for the css of sidecolumn and canvasLimits size
var sidecolumnSize = "24em" var sidecolumnSize = "20%"
var current_url = window.location.origin+window.location.pathname+window.location.search var current_url = window.location.origin+window.location.pathname+window.location.search
getUrlParam.file = current_url.replace(/projects/g, "api/projects") getUrlParam.file = current_url.replace(/projects/g, "api/projects")
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
function sigmaLimits( canvasdiv ) { function sigmaLimits( canvasdiv ) {
console.log('FUN t.TinawebJS:sigmaLimits') ; console.log('FUN t.TinawebJS:sigmaLimits') ;
var canvas = document.getElementById(canvasdiv) ; var canvas = document.getElementById(canvasdiv) ;
var sidecolumn = document.getElementById('leftcolumn') ; var sidecolumn = document.getElementById('sidecolumn') ;
var ancho_total = window.innerWidth - sidecolumn.offsetWidth ; var ancho_total = window.innerWidth - sidecolumn.offsetWidth ;
var alto_total = window.innerHeight - sidecolumn.offsetTop ; var alto_total = window.innerHeight - sidecolumn.offsetTop ;
...@@ -549,8 +549,8 @@ TinaWebJS = function ( sigmacanvas ) { ...@@ -549,8 +549,8 @@ TinaWebJS = function ( sigmacanvas ) {
// === un/hide leftpanel === // // === un/hide leftpanel === //
$("#aUnfold").click(function(e) { $("#aUnfold").click(function(e) {
//SHOW leftcolumn //SHOW sidecolumn
sidebar = $("#leftcolumn"); sidebar = $("#sidecolumn");
fullwidth=$('#fixedtop').width(); fullwidth=$('#fixedtop').width();
e.preventDefault(); e.preventDefault();
// $("#wrapper").toggleClass("active"); // $("#wrapper").toggleClass("active");
...@@ -574,7 +574,7 @@ TinaWebJS = function ( sigmacanvas ) { ...@@ -574,7 +574,7 @@ TinaWebJS = function ( sigmacanvas ) {
}, 400); }, 400);
} }
else { else {
//HIDE leftcolumn //HIDE sidecolumn
$("#aUnfold").attr("class","leftarrow"); $("#aUnfold").attr("class","leftarrow");
sidebar.animate({ sidebar.animate({
"right" : "-" + sidebar.width() + "px" "right" : "-" + sidebar.width() + "px"
......
...@@ -358,7 +358,7 @@ function MainFunction( RES ) { ...@@ -358,7 +358,7 @@ function MainFunction( RES ) {
}, fa2seconds*1000); }, fa2seconds*1000);
// apply width from settings on left column // apply width from settings on left column
document.getElementById('leftcolumn').style.width = sidecolumnSize ; document.getElementById('sidecolumn').style.width = sidecolumnSize ;
} }
......
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
<style> <style>
#leftcolumn {
font-size: 10px;
width:20%;
overflow: auto;
}
#ctlzoom { #ctlzoom {
width:7%; width:7%;
} }
...@@ -247,7 +241,7 @@ ...@@ -247,7 +241,7 @@
</div> </div>
<!-- Sidebar --> <!-- Sidebar -->
<div id="leftcolumn"> <div id="sidecolumn">
<div id="tips"></div> <div id="tips"></div>
<div id="names"></div> <div id="names"></div>
<div id="ngrams_actions"></div> <div id="ngrams_actions"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment