1var module_159422735692=function(){let the_blog_filter_selector=document.querySelector(".filter_by_subject_selector");the_blog_filter_selector.addEventListener("change",(function(){let topic=the_blog_filter_selector.value;if($(".theLearningCenter__Item").addClass("hideItem"),"allTopics"!=topic)return $(`.theLearningCenter__Item[data-topic*="${topic}"]`).removeClass("hideItem");"allTopics"==topic&&$(".theLearningCenter__Item").removeClass("hideItem")}));function checkTheContentType(type){return"BLOG_POST"===type?"Blog Post":"Podcast"}function checkColor(type){if("BLOG_POST"===type)return"makeLightBlue"}function calculateMonth(month){return 0===month?"January":1===month?"February":2===month?"March":3===month?"April":4===month?"May":5===month?"June":6===month?"July":7===month?"August":8===month?"September":9===month?"October":10===month?"November":11===month?"December":void 0}document.querySelector(".blog_search_form").addEventListener("submit",(function(e){e.preventDefault();let searchQuery=document.querySelector(".blogSearch_In
1put").value;console.log(searchQuery),async function(){let htmlString="",printResults=document.querySelector("#printSearchResults"),url=`https://api.hubapi.com/contentsearch/v2/search?portalId=7674427&groupId=156055654675&groupId=52283544080&limit=100&length=SHORT&term=${searchQuery}`;const response=await fetch(url),data=await response.json();console.log(data);for(let i=0;i<data.results.length-1;i++){let item=data.results[i],convertedDate=Number(item.publishedDate),date=new Date(convertedDate),day=date.getDate(),month=calculateMonth(date.getMonth()),year=date.getFullYear();htmlString+=`\n <div data-topic="${item.type.replace("_"," ")}" class="theLearningCenter__Item ${checkColor(item.type)}">\n \n <div class="theLearningCenter__ItemInner">\n ${type=item.type,"BLOG_POST"==type?'<img class="theFundIcon" src="https://7674427.fs1.hubspotusercontent-na1.net/hubfs/7674427/Icon_Library/Blue%20Gradient%20Icons/SVG/Gradient%20Blue%20Dakota%20Icons_Attachments.svg"> ':'<img class="theFundIcon" src="https://7674427.fs1.hubspotusercontent-na1.net/hubfs/7674427/Icon_Library/Blue%20Gradient%20Icons/SVG/Gradient%20Blue%20Dakota%20Icons_Live.svg"> '}\n <p class="theLearningCenter__ContentType"> ${checkTheContentType(item.type)} </p> \n <h3 class="learning_center__resourceName"> ${item.title} </h3>\n <div class="learningCenter__divider"></div>\n <div class="articleAuthor__Container">\n <p class="learning__center__datePublished"> ${month} ${day}, ${year} </p>\n </div>\n <div class="learningCenter__ButtonContainer">\n <a class="learningCenter__Button" href="${item.url}"> Read More <i class="fas fa-caret-right"></i></a>\n </div>\n </div> \n </div>\n \n\n `}var type;printResults.innerHTML=htmlString}()})),$(document).ready((function(e){$(".searchResources__Form").on("submit",(function(e){e.preventDefault();let searchQuery=$(".searchResources__Input").val(),htmlString="";$.ajax({url:`https://api.hubapi.com/contentsearch/v2/search?portalId=7674427&groupId=29135794036&limit=300&length=SHORT&term=${searchQuery}`,success:function(data){console.log(data);for(let i=0;i<data.results.length-1;i++){let item=data.results[i],convertedDate=Number(item.publishedDate),date=new Date(convertedDate),day=date.getDate(),month=calculateMonth(date.getMonth()),year=date.getFullYear();htmlString+=`\n\n <div class="theLearningCenter__Item">\n <div style="background-image:url('${item.featuredImageUrl}');" class="learningCenter__FeaturedIMG"> </div>\n <div class="theLearningCenter__ItemInner">\n <p class="theLearningCenter__ContentType"> ${item.type.replace("_"," ")} </p> \n <h3 class="learning_center__resourceName"> ${item.title} </h3>\n <div class="learningCenter__divider"></div>\n <div class="articleAuthor__Container">\n <p class="learning__center__name">By: <strong> ${item.authorFullName} </strong></p>\n <p class="learning__center__datePublished"> ${month} ${day}, ${year} </p>\n </div>\n </div>\n <div class="learningCenter__ButtonContainer">\n <a class="learningCenter__Button" href="${item.url} ">Read More <i class="fas fa-caret-right"></i></a>\n </div>\n \n\n <div class="cardBackside">\n <div class="cardBackside_inner">\n <p class="backside__tag">${item.type.replace("_"," ")}</p>\n <h3 class="backsideTitle"> ${item.title} </h3>\n <div class="learningCenter__divider"></div>\n <div class="backsideDescription">\n <p> ${item.description} </p>\n </div>\n <div class="backsideButtonContainer">\n <a class="learningCenter__BacksideButton" href="${item.url}">Read More <i class="fas fa-caret-right"></i></a>\n </div>\n </div>\n </div>\n </div>\n\n `}$("#printSearchResults").html(htmlString)}})}))})),document.querySelector("#contentType").addEventListener("change",(function(e){let selectedItem=e.target.value;document.querySelectorAll(".theLearningCenter__Item").forEach((item=>{item.dataset.type==selectedItem?item.classList.remove("hideItem"):item.classList.add("hideItem")}))}))}();
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.