PageSourceSearch

https://www.discover.com/etc.clientlibs/dfs-cards-portfolio/client….ACSHASHb2a62f8e3b8e740a46bcee283487e1f2.js

js discover.com collected 2026-09-24 08:26:19 UTC 7,615 bytes, 16 lines download raw bytes

1var discover_rwd=window.discover_rwd||{},consts={tapEvnt:"click"},getWindowWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},siteObj={card:"Credit Card","Credit Card":"card",bank:"Bank Account","Bank Account":"bank",studentLoans:"Student Loans","Student Loans":"studentLoans",personalLoans:"personalLoans","Personal Loans":"personalLoans","Identity Theft Protection":"Identity Theft Protection"},readCookie=function(b){b+="\x3d";for(var d=document.cookie.split(";"),
2a=0;a<d.length;a++){for(var c=d[a];" "===c.charAt(0);)c=c.substring(1,c.length);if(0===c.indexOf(b))return c.substring(b.length,c.length)}return null},windowScrollFunction=function(){var b=$(window).scrollTop(),d=$(".secondary-nav-bar").offset().top,a=$(".header-wrapper").outerHeight();if(b>d){$(".secondary-nav-bar").addClass("stick-with-header");var c=d;$(".banner").css("margin-bottom","116px")}0<b?$(".secondary-nav-bar").css({top:"0"}):b+a<=c?($(".secondary-nav-bar").removeClass("stick-with-header"),
3$(".banner").css("margin-bottom","0px")):$(".header-wrapper").hasClass("absoluteHeader")||$(".secondary-nav-bar").css({top:a});$(".secondary-nav-bar").hasClass("stick-with-header")&&$(".secondary-nav-tabs").removeClass("active-tab prev-tab")},mouseOverFunction=function(b,d){if("mouseover"==b.type){if(992>getWindowWidth()||$(".secondary-nav-bar").hasClass("stick-with-header"))return!1;d.addClass("active-tab").removeClass("prev-tab")}else $(".secondary-nav-bar").hasClass("stick-with-header")||(b.preventDefault(),
4d.toggleClass("active-tab"),d.hasClass("active-tab")?($(this).attr("aria-expanded","true"),d.siblings().find(".nav-tab-parent").attr("aria-expanded","false"),d.removeClass("prev-tab"),setTimeout(function(){d.find(".tab-list").attr("tabindex","0").focus()},100)):($(this).attr("aria-expanded","false"),$(".tab-list").removeAttr("tabindex")))},scrollFunction=function(){991<getWindowWidth()?windowScrollFunction():($(".secondary-nav-bar").removeClass("stick-with-header"),$(".secondary-nav-tabs").removeClass("prev-tab"))},
5resizeFunction=function(){991<getWindowWidth()||($(".secondary-nav-bar").removeClass("stick-with-header"),$(".secondary-nav-tabs").removeClass("prev-tab"));$(".banner").css("margin-bottom","0px")},mouseLeaveFunction=function(b){if(992>getWindowWidth())return!1;b.removeClass("active-tab prev-tab");b.prev().removeClass("prev-tab")},focusFunction=function(b){992<getWindowWidth()&&(b.prev().removeClass("active-tab").prev().removeClass("prev-tab"),b.removeClass("prev-tab").next().removeClass("active-tab"),
6$(".tab-list").removeAttr("tabindex"))},tapEventFunction=function(b){0==$(b.target).parents(".secondary-nav-list").length&&991<getWindowWidth()&&($(".secondary-nav-tabs").removeClass("active-tab prev-tab"),$(".secondary-nav-tabs .nav-tab-parent").attr("aria-expanded","false"))};
7discover_rwd.homepage=function(){var b=function(){$(window).resize(function(){resizeFunction()});$(".compare-cards, .compare-saving").on("click tap",function(){var a=$(this).next().find("a").attr("href");window.location.href=a});$(document).on("click tap",".cashback-img, .five-percent-img, .debt-img, .score-img, .rustcar-img, .taxi-img, .shoppingcart-img",function(){var a=$(this).parent().find("a").attr("href");window.location.href=a});$(".secondary-nav-tabs .nav-tab-parent").on("click tap mouseover",
8function(a){var c=$(this).parent();mouseOverFunction(a,c);c.siblings().removeClass("active-tab prev-tab");c.prev().addClass("prev-tab")});$(".secondary-nav-tabs").on("mouseleave",function(){mouseLeaveFunction($(this))});$(".nav-tab-parent").on("focus",function(){var a=$(this).parent();focusFunction(a)});$(window).scroll(function(){scrollFunction()});$(document).on(consts.tapEvnt,function(a){tapEventFunction(a)});$(".secondary-nav-tabs a,.tab-list,.tab-list a").on("keydown",function(a){switch(a.keyCode){case 38:case 40:a.preventDefault()}});
9$(".secondary-nav-tabs a").on("keyup",function(a){switch(a.keyCode){case 40:$(this).next().attr("tabindex","0").focus()}});$(".tab-list").on("keyup",function(a){switch(a.keyCode){case 40:$(this).find(".list-item-first a").focus();break;case 38:$(this).parent("li").find(".nav-tab-parent").focus()}});$(".tab-list a").on("keyup",function(a){switch(a.keyCode){case 40:$(this).parent("li").next().find("a").focus();a.stopPropagation();break;case 38:$(this).parent("li").prev().find("a").focus(),0==$(this).parent("li").prev().find("a").length&&
10$(this).closest(".secondary-nav-tabs").find(".nav-tab-parent").focus(),a.stopPropagation()}});$(".secondary-nav-tabs .nav-tab-parent").on("keyup",function(a){switch(a.keyCode){case 37:$(this).closest(".secondary-nav-tabs").prev().find(".nav-tab-parent").focus();a.stopPropagation();break;case 39:$(this).closest(".secondary-nav-tabs").next().find(".nav-tab-parent").focus(),a.stopPropagation()}});$(document).on("focus",".sec-nav-ax",function(){$(".secondary-nav-tabs").removeClass("active-tab").prev().removeClass("prev-tab")})},
11d={launchHomePageLoad:function(a,c,e,f){""===siteSection&&(digitalData.page.pageInfo.pageName="/gateway/"+e,digitalData.page.pageInfo.pagePreferenceAndSort="NewHP:"+f+":"+siteObj[c]+":REMEMBER USERID\x3d"+a)}};return{init:function(){b();$(".secondary-nav-list").before("\x3ca href\x3d'#' class\x3d'custom-focus preventDefaultBehaviour sec-nav-ax'\x3e.\x3c/a\x3e").after("\x3ca href\x3d'#' class\x3d'custom-focus preventDefaultBehaviour sec-nav-ax'\x3e.\x3c/a\x3e");var a=readCookie("LLID");if(a){var c=
12a.indexOf("|");c=a.substring(5,c);a="Yes";$(".content-login.micro-animation .user-id-input").prev("label").css({top:"-6px","font-size":"11px"})}else siteObj[c]="Credit Card",a="No";if(readCookie("dfsedskey")){var e="kwn";var f="Cardmembers"}else e="unk",f="Prospects";d.launchHomePageLoad(a,c,e,f)}}}();
12(function(){discover_rwd.homepage.init()})();
13$(document).ready(function(){function b(){$("\x3cdd class\x3d'bv-cont'\x3eAverage Cardmember Rating\x3c/dd\x3e").insertBefore($(".bv-rating-ratio"));$("dd.bv-rating-ratio-count").attr("style","display:none !important");$("\x3cdiv class\x3d'bv-cont-review'\x3e"+$("span.bv-rating-ratio-count").text().replace(/[()]/g,"")+" Reviews\x3c/dd\x3e").insertAfter($(".bv-stars-container"));$("a.bv-rating.bv-text-link.bv-popup-target.bv-focusable span").on("tap",function(){function a(){if($(".bv-toplevel-actions button").length){if("return false;"==
14$(".bv-toplevel-actions button").attr("onclick"))$(".bv-cleanslate.bv-cv2-cleanslate.bv-absolute-top-container.bv-popup-in .bv-toplevel-actions button").on("click",function(){window.open("/credit-cards/cash-back/it-card.html#all-reviews","_blank")})}else setTimeout(a,250)}a()})}function d(){$(".bv-cont-review").wrapInner('\x3ca href\x3d"/credit-cards/cash-back/it-card.html#all-reviews" target\x3d"_blank"\x3e\x3c/a\x3e')}$(window).on("load",function(){setTimeout(b,1E3);setTimeout(d,1E3);setTimeout(function(){$("dd.bv-rating-ratio \x3e a").hasClass("bv-rating-stars-container bv-focusable")&&
15($("dd.bv-rating-ratio \x3e a").css("text-decoration","none !important"),$("dd.bv-rating-ratio \x3e a").attr("style","text-decoration:none !important"),$("dd.bv-rating-ratio \x3e a").attr({target:"_blank",href:"https://www.discover.com/credit-cards/cash-back/it-card.html#all-reviews"}),$("dd.bv-rating-ratio \x3e a").removeClass("bv-rating-stars-container bv-focusable"))},500);$(".bv-histogram-target").hover(function(){$(".bv-toplevel-actions button").attr("onclick","return true");$(".bv-toplevel-actions button").on("click",
16function(){window.open("https://www.discover.com/credit-cards/cash-back/it-card.html#all-reviews")})})})});

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.