fix footer menu, fix #4
This commit is contained in:
@@ -332,20 +332,6 @@
|
||||
this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
|
||||
break;
|
||||
}
|
||||
// if(
|
||||
// (this.x < this.wall_limits.left && this.p.velocity.x < 0)
|
||||
// || (this.x > this.wall_limits.right && this.p.velocity.x > 0)
|
||||
// ){
|
||||
// // console.log("bounce x");
|
||||
// this.p.velocity.multiplyScalarXY(-1, 1).multiplyScalar(0.75);
|
||||
// }
|
||||
// if(
|
||||
// (this.y < this.wall_limits.top && this.p.velocity.y < 0)
|
||||
// || (this.y > this.wall_limits.bottom && this.p.velocity.y > 0)
|
||||
// ){
|
||||
// // console.log("bounce y");
|
||||
// this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
|
||||
// }
|
||||
};
|
||||
|
||||
Node.prototype.updatePos = function(){
|
||||
@@ -673,10 +659,13 @@
|
||||
_$entrees_block_termlinks.parents('li').removeClass('opened');
|
||||
$li.addClass('opened');
|
||||
filterEntree(tid);
|
||||
_$body.trigger({'type':'open_entree', 'tid':tid});
|
||||
}else{
|
||||
$li.removeClass('opened');
|
||||
scrambleCollection();
|
||||
_$body.trigger({'type':'close_entree', 'tid':tid});
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@@ -332,20 +332,6 @@
|
||||
this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
|
||||
break;
|
||||
}
|
||||
// if(
|
||||
// (this.x < this.wall_limits.left && this.p.velocity.x < 0)
|
||||
// || (this.x > this.wall_limits.right && this.p.velocity.x > 0)
|
||||
// ){
|
||||
// // console.log("bounce x");
|
||||
// this.p.velocity.multiplyScalarXY(-1, 1).multiplyScalar(0.75);
|
||||
// }
|
||||
// if(
|
||||
// (this.y < this.wall_limits.top && this.p.velocity.y < 0)
|
||||
// || (this.y > this.wall_limits.bottom && this.p.velocity.y > 0)
|
||||
// ){
|
||||
// // console.log("bounce y");
|
||||
// this.p.velocity.multiplyScalarXY(1,-1).multiplyScalar(0.75);
|
||||
// }
|
||||
};
|
||||
|
||||
Node.prototype.updatePos = function(){
|
||||
@@ -673,10 +659,13 @@
|
||||
_$entrees_block_termlinks.parents('li').removeClass('opened');
|
||||
$li.addClass('opened');
|
||||
filterEntree(tid);
|
||||
_$body.trigger({'type':'open_entree', 'tid':tid});
|
||||
}else{
|
||||
$li.removeClass('opened');
|
||||
scrambleCollection();
|
||||
_$body.trigger({'type':'close_entree', 'tid':tid});
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@@ -52,9 +52,18 @@ edlp_vars = {
|
||||
|
||||
|
||||
function initEvents(){
|
||||
$('body').on('on-studio-chutier-updated', function(e){
|
||||
initAjaxLinks();
|
||||
});
|
||||
$('body')
|
||||
.on('on-studio-chutier-updated', function(e){
|
||||
initAjaxLinks();
|
||||
})
|
||||
.on('open_entree', function(e){
|
||||
// e.tid available
|
||||
closeAllModals();
|
||||
})
|
||||
.on('close_entree', function(e){
|
||||
// e.tid available
|
||||
closeAllModals();
|
||||
});
|
||||
}
|
||||
|
||||
// _ _ _
|
||||
|
||||
@@ -1771,6 +1771,26 @@ footer {
|
||||
white-space: nowrap; }
|
||||
footer nav.block-menu ul li:first-of-type {
|
||||
margin-left: 1em; }
|
||||
footer nav.block-menu ul li a:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border: 1px solid black;
|
||||
margin-right: 0.5em; }
|
||||
footer nav.block-menu ul li a:hover:before, footer nav.block-menu ul li a.is-active:before {
|
||||
background-color: black; }
|
||||
footer nav.block-menu ul li a.ajax-loading:before {
|
||||
-webkit-animation: rotation 2s infinite linear;
|
||||
animation: rotation 2s infinite linear; }
|
||||
|
||||
@keyframes rotation {
|
||||
from {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg); }
|
||||
to {
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg); } }
|
||||
footer .block-language {
|
||||
display: inline-block;
|
||||
position: relative; }
|
||||
|
||||
@@ -29,9 +29,18 @@
|
||||
|
||||
|
||||
function initEvents(){
|
||||
$('body').on('on-studio-chutier-updated', function(e){
|
||||
initAjaxLinks();
|
||||
});
|
||||
$('body')
|
||||
.on('on-studio-chutier-updated', function(e){
|
||||
initAjaxLinks();
|
||||
})
|
||||
.on('open_entree', function(e){
|
||||
// e.tid available
|
||||
closeAllModals();
|
||||
})
|
||||
.on('close_entree', function(e){
|
||||
// e.tid available
|
||||
closeAllModals();
|
||||
});
|
||||
}
|
||||
|
||||
// _ _ _
|
||||
|
||||
@@ -754,6 +754,23 @@ footer{
|
||||
&:first-of-type{
|
||||
margin-left: 1em;
|
||||
}
|
||||
a{
|
||||
&:before{
|
||||
content: "";
|
||||
display:inline-block;
|
||||
$sq:7px;
|
||||
width: $sq; height:$sq;
|
||||
border: 1px solid black;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
&:hover:before,
|
||||
&.is-active:before{
|
||||
background-color: black;
|
||||
}
|
||||
&.ajax-loading:before{
|
||||
@include spining-loader-square;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user