diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb
index 41fdfc64..6e239e5d 100644
--- a/app/views/layouts/_logined_header.html.erb
+++ b/app/views/layouts/_logined_header.html.erb
@@ -5,7 +5,7 @@
"><%= link_to "实训课程", subjects_path %>
"><%= link_to "翻转课堂", courses_path %>
- "><%= link_to "开发社区", shixuns_path %>
+ "><%= link_to "开发社区", shixuns_path %>
<% careers = Career.published.order("created_at asc") %>
<% if careers.present? %>
diff --git a/app/views/layouts/_unlogin_header.html.erb b/app/views/layouts/_unlogin_header.html.erb
index fb1e901e..d970fffc 100644
--- a/app/views/layouts/_unlogin_header.html.erb
+++ b/app/views/layouts/_unlogin_header.html.erb
@@ -3,16 +3,14 @@
@@ -89,21 +87,5 @@
window.onscroll=function(){
var sl=-Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
document.getElementById('nHeader').style.left=sl+'px';
- }
- $(function () {
- var $header = $("#header-nav").children("li");
- <% if params[:controller] == "welcome" %>
- $("#header-nav").children("li").eq(0).addClass("active");
- <% elsif subjects_controller.include?(params[:controller]) %>
- $("#header-nav").children("li").eq(1).addClass("active");
- <% elsif course_controller.include?(params[:controller]) %>
- $("#header-nav").children("li").eq(2).addClass("active");
- <% elsif shixuns_controller.include?(params[:controller]) %>
- $header.length == 7 ? $header.eq(2).addClass("active") : $header.eq(3).addClass("active");
- <% elsif params[:controller] == "competitions" %>
- $header.length == 7 ? $header.eq(5).addClass("active") : $header.eq(4).addClass("active");
- <% elsif params[:controller] == "forums" %>
- $header.length == 7 ? $header.eq(6).addClass("active") : $header.eq(5).addClass("active");
- <% end %>
- })
+ };
\ No newline at end of file