1var Conclave = (function() { 2 var buArr = [], arlen; 3 return { 4 init: function() { 5 this.addCN(); 6 this.clickReg(); 7 }, 8 addCN: function() { 9 var buarr = ["holder_bu_awayL1", "holder_bu_center", "holder_bu_awayR1"]; 10 for (var i = 1; i <= buarr.length; ++i) { 11 $("#bu" + i).removeClass().addClass(buarr[i - 1] + " holder_bu"); 12 } 13 }, 14 clickReg: function() { 15 $(".holder_bu").each(function() { 16 buArr.push($(this).attr('class')) 17 }); 18 arlen = buArr.length; 19 for (var i = 0; i < arlen; ++i) { 20 buArr[i] = buArr[i].replace(" holder_bu", "") 21 } 22 $(".holder_bu").click(function(buid) { 23 var me = this, id = this.id || buid, joId = $("#" + id), joCN = joId.attr("class").replace(" holder_bu", ""); 24 25 var new_ = $('#fixed-' + $(me).attr('id')); 26 var old_ = $('.fixed-area > div.active'); 27 if (new_.attr('id') != old_.attr('id')) { 28 old_.removeClass('active'); 29 new_.addClass('active'); 30 } 31 var cpos = buArr.indexOf(joCN), mpos = buArr.indexOf("holder_bu_center"); 32 if (cpos != mpos) { 33 tomove = cpos > mpos ? arlen - cpos + mpos : mpos - cpos; 34 while (tomove) { 35 var t = buArr.shift(); 36 buArr.push(t); 37 for (var i = 1; i <= arlen; ++i) { 38 $("#bu" + i).removeClass().addClass(buArr[i - 1] + " holder_bu"); 39 } 40 --tomove; 41 } 42 } 43 }); 44 return false; 45 }, 46 auto: function() { 47 for (i = 1; i <= 1; ++i) { 48 $(".holder_bu").delay(4000).trigger('click', "bu" + i).delay(4000); 49 } 50 } 51 }; 52})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.