|
1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // JavaScript Document
- var inSec1Con = null;
- $(document).ready(function(){
- inSec1Con = $('.inSec1Con');
- resizes();
- var indSec1T = $('.indSec1T');
- //面包屑点击
- $('.crumbs').click(function(){
- if(indSec1T.hasClass('active')){
- indSec1T.removeClass('active');
- }else{
- indSec1T.addClass('active');
- }
- })
-
- })
- $(window).resize(function(){
- resizes();
- })
-
- function resizes() {
- inSec1Con.addClass('inSec1Con1').removeClass('inSec1Con3');
- var obj = null;
- if($(window).width() > 1500){
- obj = inSec1Con.filter(function(index) {
- return index % 4 == 3;
- });
- }else{
- obj = inSec1Con.filter(function(index) {
- return index % 3 == 2;
- });
- }
- obj.addClass('inSec1Con3').removeClass('inSec1Con1')
- }
- //找出宿舍楼号
- function floorName(str,len){
- return str.substr(0,str.length-len);
- }
-
-
-
|