Commit 3dd5f55a authored by alex's avatar alex
Browse files

Modif Raffinerie

parent 1d14f8bf
......@@ -2,6 +2,7 @@
$bgColor1 = "#01809b";
$bgColorHover1 = "#01607b";
$projectColorDefault = "rgba(239,42,0, 1)";
$projectColor = [
'rgba(39,42,220, 1)',
'rgba(139,142,220, 1)',
......@@ -287,7 +288,7 @@ $projectColor = [
.projectChildren a span:hover{
color: transparent;
background-color: rgba(0,0,0,0);
border-color: rgba(239,42,0, 1)
border-color: rgba(239,42,0, 1);
}
.projectChildren h3{
margin-bottom: 45px;
......@@ -435,6 +436,7 @@ $projectList = [];
data-countmembers='".getCountMembers($elt)."'
data-countevents='".getCountEvents($elt)."'
data-countprojects='".getCountProjects($elt)."'
data-color='".$projectColorDefault."';
>".$elt["name"]."</a>
</li>";
......@@ -600,7 +602,7 @@ $projectList = [];
$description .= '</span>';
?>
<div class="projectDescription customBlock">
<div class="projectDescription customBlock projectColorBorder">
<h3>Présentation</h3>
<!-- <img src="<?php echo Yii::app()->getModule("co2")->assetsUrl ?>/images/logos/base-siren-logo.png';?>" alt="">
<img src="<?php echo $this->module->assetsUrl ?>/images/logos/base-siren-logo.png';?>" alt=""> -->
......@@ -719,12 +721,15 @@ function selectProject(){
$(".projectNav").on('click','.linkMenu',function(){
var key = $(this).data("key");
var col = $(this).data("col");
var color = $(this).data("color");
var countMembers = $(this).data('countmembers');
var countEvents = $(this).data('countevents');
var countProjects = $(this).data('countprojects');
$(".linkMenu").removeClass('active');
$(this).addClass('active');
$('.projectColorBorder, .projectColorBorderHover').css('border-color', color + ' !important');
$.ajax({
type: "POST",
......@@ -803,7 +808,7 @@ function feedProject(el, countMembers, countEvents, countProjects){
var projectCollection = $link.attr('data-col');
var projectImage = $link.attr('data-img');
$("<div class='col col-xs-12 col-md-3'><a href='javascript:;' class='linkMenu' data-col='" + projectCollection + "' data-key='" + key + "' style='background-image: url(" + projectImage + ");'><span>" + projectName+ "</span></a></div>").appendTo('.projectChildren .row');
$("<div class='col col-xs-12 col-md-3'><a href='javascript:;' class='linkMenu' data-col='" + projectCollection + "' data-key='" + key + "' style='background-image: url(" + projectImage + ");'><span class='projectColorBorderHover'>" + projectName+ "</span></a></div>").appendTo('.projectChildren .row');
}
});
......
Supports Markdown
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