<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=780236292101201&amp;ev=PageView&amp;noscript=1"> '; } list_html += '

'+ this.title+'

'; if(this.category){ list_html += '' + this.category + ''; } }); var unique_categories = []; $.each(categories, function(i, e) { if ($.inArray(e, unique_categories) == -1) unique_categories.push(e); }); $.each(unique_categories, function(){ filter_list += "
  • " + this + "
  • "; }); document.getElementById('resources-container').innerHTML = list_html; document.getElementById('filter').innerHTML = filter_list; var options = { valueNames: [ 'name', 'description' ,'category' ], page: 8, plugins: [ ListPagination({}) ] }; listObj = new List('listId', options); } $(document).ready(function(){ var url = "http://cdn2.hubspot.net/hubfs/595438/Offer_Library_Page_june_18.xlsx"; var oReq; if(window.XMLHttpRequest) oReq = new XMLHttpRequest(); else if(window.ActiveXObject) oReq = new ActiveXObject('MSXML2.XMLHTTP.3.0'); else throw "XHR unavailable for your browser"; oReq.open("GET", url, true); if(typeof Uint8Array !== 'undefined') { oReq.responseType = "arraybuffer"; oReq.onload = function(e) { if(typeof console !== 'undefined') console.log("onload", new Date()); var arraybuffer = oReq.response; var data = new Uint8Array(arraybuffer); var arr = new Array(); for(var i = 0; i != data.length; ++i) arr[i] = String.fromCharCode(data[i]); var wb = XLSX.read(arr.join(""), {type:"binary"}); process_wb(wb); }; } else { oReq.setRequestHeader("Accept-Charset", "x-user-defined"); oReq.onreadystatechange = function() { if(oReq.readyState == 4 && oReq.status == 200) { var ff = convertResponseBodyToText(oReq.responseBody); if(typeof console !== 'undefined') console.log("onload", new Date()); var wb = XLSX.read(ff, {type:"binary"}); process_wb(wb); } }; } oReq.send(); $('#filter').on('click', 'li', (function(){ filter_text = $(this).text(); filter_text = filter_text.replace(/&/g, "&") active = $(this).hasClass('active'); $('#filter li').removeClass('active'); if(!active){ $(this).addClass('active'); } if($(this).hasClass('active')){ listObj.filter(function(item) { if (item.values().category ==filter_text) { return true; } else { return false; } }); }else{ listObj.filter(); } })); }); 精品久久久无码中文字幕,精品不卡高清视频在线观看,亚洲中文字幕久久精品无码