Commit ac16e5ef authored by PkSM3's avatar PkSM3

body bg OK

parent 6605aefe
...@@ -29,8 +29,8 @@ box-shadow: 0px 0px 3px 0px #888888; ...@@ -29,8 +29,8 @@ box-shadow: 0px 0px 3px 0px #888888;
position: fixed; position: fixed;
height: 100%; height: 100%;
/*border: 1px #888888 solid;*/ /*border: 1px #888888 solid;*/
background: #fff url(../img/bg.jpg) repeat top left; background: #fff url(../img/bg.jpg) repeat top left;
-webkit-border-radius: 0px 11px 11px 0px;-moz-border-radius: 0px 11px 11px 0px;border-radius: 0px 11px 11px 0px;-webkit-box-shadow: #B3B3B3 4px 4px 4px;-moz-box-shadow: #B3B3B3 4px 4px 4px; box-shadow: #B3B3B3 4px 4px 4px; -webkit-border-radius: 0px 11px 11px 0px;-moz-border-radius: 0px 11px 11px 0px;border-radius: 0px 11px 11px 0px;-webkit-box-shadow: #B3B3B3 4px 4px 4px;-moz-box-shadow: #B3B3B3 4px 4px 4px; box-shadow: #B3B3B3 4px 4px 4px;
transition: all 0.4s ease 0s; transition: all 0.4s ease 0s;
} }
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
<link rel="stylesheet" href="bootswatch/css/bootswatch.css"> <link rel="stylesheet" href="bootswatch/css/bootswatch.css">
</head> </head>
<body> <body class="gradient">
<div id="fixedtop" class="navbar navbar-default navbar-fixed-top"> <div id="fixedtop" class="navbar navbar-default navbar-fixed-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
...@@ -145,11 +145,12 @@ ...@@ -145,11 +145,12 @@
<div id="zonecentre"> <div id="zonecentre">
<!-- Page content --> <!-- Page content -->
<div oncontextmenu='return false;' class="gradient" id="sigma-example"></div> <div oncontextmenu='return false;' id="sigma-example"></div>
<ul id="ctlzoom"> <ul id="ctlzoom">
<li> <li>
<div id="unfold"> <div id="unfold">
<a href="#" id="aUnfold" class="rightarrow"></a> <a href="#" id="aUnfold" class="leftarrow"></a>
</div><!--unfold--> </div><!--unfold-->
</li> </li>
...@@ -184,8 +185,6 @@ ...@@ -184,8 +185,6 @@
<!-- Sidebar --> <!-- Sidebar -->
<div id="leftcolumn"> <div id="leftcolumn">
</div> </div>
......
...@@ -59,7 +59,7 @@ function sigmaLimits(){ ...@@ -59,7 +59,7 @@ function sigmaLimits(){
altofixtop=$('#fixedtop').height() altofixtop=$('#fixedtop').height()
altodeftop=$('#defaultop').height() altodeftop=$('#defaultop').height()
$('#sigma-example').width(anchototal-sidebar); $('#sigma-example').width(anchototal-sidebar);
$('#sigma-example').height(altototal-altofixtop-altodeftop-2); $('#sigma-example').height(altototal-altofixtop-altodeftop-4);
pw=$('#sigma-example').width(); pw=$('#sigma-example').width();
ph=$('#sigma-example').height(); ph=$('#sigma-example').height();
...@@ -163,7 +163,6 @@ function bringTheNoise(pathfile,type){ ...@@ -163,7 +163,6 @@ function bringTheNoise(pathfile,type){
} }
} }
function scanDataFolder(){ function scanDataFolder(){
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
...@@ -228,26 +227,45 @@ function theListeners(){ ...@@ -228,26 +227,45 @@ function theListeners(){
saveGEXF(); saveGEXF();
}); });
$("#aUnfold").click(function() { $("#aUnfold").click(function() {
// _cG = $("#leftcolumn");
// if (_cG.offset().left < 0) { _cG = $("#leftcolumn");
// _cG.animate({ anchototal=$('#fixedtop').width();
// "left" : "0px" sidebar=_cG.width();
// }, function() {
// $("#aUnfold").attr("class","leftarrow"); pr("\t===== event for aUnfold =====")
// $("#zonecentre").css({ pr("offset:")
pr(_cG.offset())
pr("width:")
pr(_cG.width())
pr("sigma-example")
pr($("#sigma-example").offset())
pr("-----------------")
if (_cG.offset().left < 0) {
pr("\t\tinside if")
_cG.animate({
"left" : sidebar+"px"
}, function() {
$("#aUnfold").attr("class","leftarrow");
$('#sigma-example').width(anchototal-sidebar);
$("#ctlzoom").css({
left: (sidebar+10)+"px"
});
// $("#sigma-example").css({
// left: _cG.width() + "px" // left: _cG.width() + "px"
// }); // });
// }); });
// } else { } else {
// _cG.animate({ pr("\t\tinside else")
// "left" : "-" + _cG.width() + "px" _cG.animate({
// }, function() { "left" : "-" + _cG.width() + "px"
// $("#aUnfold").attr("class","rightarrow"); }, function() {
// $("#zonecentre").css({ $("#aUnfold").attr("class","rightarrow");
// left: "0" $('#sigma-example').width(anchototal);
// }); $("#ctlzoom").css({
// }); left: "0px"
// } });
});
}
return false; return false;
}); });
......
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