项目、竞赛、课程首页的微信部分样式修改并添加js跟随滚动处理

course_group
linhk 11 years ago
parent 08d59b9820
commit 879e93beb9

@ -22,7 +22,6 @@ class EnabledModule < ActiveRecord::Base
validates_uniqueness_of :name, :scope => :project_id
after_create :module_enabled
private
# after_create callback used to do things when a module is enabled
@ -35,4 +34,6 @@ class EnabledModule < ActiveRecord::Base
end
end
end
end

@ -111,6 +111,11 @@
fixedBar('backTopBtn' , {autoHidden: true, top : 186});
fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true});
//修改微信扫码样式布局后添加微信扫码跟随滚动处理
$(window).scroll(function(){
var vtop=$(document).scrollTop();
$("#identifier-pannel").css('top',vtop+"px");
})
}
})();
</script>

@ -29,7 +29,8 @@
</script>
<div class='top_bar'>
<div id="identifier-pannel" style="display:none">
<div id="identifier-pannel" style="display:none;">
<%= link_to image_tag('/images/qrweixin.jpg', size: '150x150', alt: 'trustie', class: "weixin" ), home_path %>
<div class="weixin-content">微信扫码</div>
</div>

@ -60,5 +60,10 @@
fixedBar('backTopBtn' , {autoHidden: true, top : 186});
fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true});
//修改微信扫码样式布局后添加微信扫码跟随滚动处理
$(window).scroll(function(){
var vtop=$(document).scrollTop();
$("#identifier-pannel").css('top',vtop+"px");
})
}
})();

@ -340,7 +340,7 @@ a.attachments_list_color {
}
#identifier-pannel{
position:fixed;
position:absolute;
left: 50%;
bottom:0;
z-index:9999;

Loading…
Cancel
Save