(function () { var pageType = $(document).find('[data-page-type]').attr('data-page-type'); var targetName = $(document).find('[data-target-name]').attr('data-target-name'); var isoformsName = $(document).find('[data-isoforms-name]').attr('data-isoforms-name') || ''; var categoryaAlias = $(document).find('[data-category-alias]').attr('data-category-alias') || ''; var targetAntibodyPage = Number(1); var getCurrentDate = function getCurrentDate() { var date = new Date(), year = date.getFullYear(), month = date.getMonth() + 1, strDate = date.getDate(); if (month >= 1 && month <= 9) month = '0' + month; if (strDate >= 0 && strDate <= 9) strDate = '0' + strDate; var currentDate = "".concat(year).concat(month).concat(strDate); return currentDate + ''; }; var date = getCurrentDate(); var prevPage2 = function prevPage2(obj) { var type = $(obj).parent().parent().parent().hasClass('pageTop') ? 0 : 1; if ($(obj).parent().parent().attr("data-page-type") === 'target-antibodies') { targetAntibodyPage -= 1; getTargetAntibodyProducts(type); } }; var nextPage2 = function nextPage2(obj) { var type = $(obj).parent().parent().parent().hasClass('pageTop') ? 0 : 1; if ($(obj).parent().parent().attr("data-page-type") === 'target-antibodies') { targetAntibodyPage += 1; getTargetAntibodyProducts(type); } }; var goPage2 = function goPage2(obj, pageNum) { var type = $(obj).parent().parent().parent().hasClass('pageTop') ? 0 : 1; if ($(obj).parent().parent().attr("data-page-type") === 'target-antibodies') { targetAntibodyPage = pageNum; getTargetAntibodyProducts(type); } }; window.prevPage2 = prevPage2; window.nextPage2 = nextPage2; window.goPage2 = goPage2; var getAntibodyProductsHtml = function getAntibodyProductsHtml(products) { var listHtml = ''; $.each(products, function (i, item) { var description = typeof item.chineseDescription !== 'undefined' && item.chineseDescription !== '' ? item.chineseDescription : typeof item.description !== 'undefined' && item.description !== '' ? item.description : ""; listHtml += '
' + '' + item.name + '' + (typeof item.synonyms !== 'undefined' && item.synonyms !== '' || typeof item.chineseName !== 'undefined' && item.chineseName !== '' ? (typeof item.chineseName !== 'undefined' && item.chineseName !== '' ? '' : '') + ' ' + (typeof item.synonyms !== 'undefined' && item.synonyms !== '' ? categoryaAlias !== '' ? item.synonyms.replace(categoryaAlias, '' + categoryaAlias + '') : item.synonyms : '') + ' ' : '') + ' | ' + '' + (typeof item.application !== 'undefined' ? item.application : '') + ' | ' + '' + (typeof item.reactivity !== 'undefined' ? item.reactivity : '') + ' | ' + '
---|---|---|
' + description + ' | ' + '