瀏覽代碼

Career 5

master
Nikola Ignjatovic 5 年之前
父節點
當前提交
6d9831794c
共有 2 個檔案被更改,包括 8 行新增12 行删除
  1. 4
    12
      scripts/custom.js
  2. 4
    0
      styles/custom.css

+ 4
- 12
scripts/custom.js 查看文件

//ev.preventDefault(); //ev.preventDefault();
$(this).toggleClass('chevron--down chevron--up'); $(this).toggleClass('chevron--down chevron--up');
if(!expand)
{
$(this).closest(".position-cont").find(".collapse").addClass("show");
$(this).closest(".position").css({"background-color": "#993c95", "color": "white"});
}
else
{
$(this).closest(".position-cont").find(".collapse").removeClass("show");
$(this).closest(".position").css({"background-color": "#fff", "color": "#000"});
}
$(this).closest(".position-cont").find(".collapse").toggleClass("show");
$(this).closest(".position").toggleClass("active"); //css({"background-color": "#993c95", "color": "white"});


expand= !expand; expand= !expand;
}); });

+ 4
- 0
styles/custom.css 查看文件

background-color: #993c95!important; background-color: #993c95!important;
color:#fff!important; color:#fff!important;
} }
.position.active{
background-color: #993c95!important;
color:#fff!important;
}
.position-name .position-name
{ {
padding-top: 20px; padding-top: 20px;

Loading…
取消
儲存