mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Add a new mobile layout - Color Code
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10488 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
99d1d71ef3
commit
12d4e13480
70 changed files with 613 additions and 0 deletions
26
m.layouts/colorCode/js/layout.js
Normal file
26
m.layouts/colorCode/js/layout.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
jQuery(function($){
|
||||
var lang = $('.link .lang');
|
||||
var lang_lst = $('.lang .lang_lst')
|
||||
lang.click(function(){
|
||||
if(lang.hasClass('on')){
|
||||
lang.removeClass('on').addClass('off');
|
||||
lang_lst.hide();
|
||||
}else if(lang.hasClass('off')){
|
||||
lang.removeClass('off').addClass('on');
|
||||
lang_lst.show();
|
||||
}
|
||||
})
|
||||
var lo_foot = $('.lo_foot');
|
||||
var lo_head = $('.lo_head');
|
||||
var ct = $('.ct');
|
||||
function footPosition(){
|
||||
if((lo_head.outerHeight() + ct.outerHeight() + 71) > $(window).height()){
|
||||
lo_foot.removeClass('fixed').addClass('static');
|
||||
}else if((lo_head.outerHeight() + ct.outerHeight() + 71) < $(window).height()){
|
||||
lo_foot.removeClass('static').addClass('fixed');
|
||||
}
|
||||
}
|
||||
footPosition();
|
||||
ct.resize(footPosition);
|
||||
|
||||
}); // end of ready
|
||||
Loading…
Add table
Add a link
Reference in a new issue