var ccb_site_url = 'https://creditcardbroker.com/'; var ccb_site_url_u = 'https://creditcardbroker.com/'; var ccb_safe_site = location.hostname.match(/creditcardbroker/) != null; var viwprt = document.querySelector("meta[name=viewport]"); if (!viwprt) { var metaTag=document.createElement('meta'); metaTag.name = "viewport" metaTag.content = "width=device-width, initial-scale=1.0" document.getElementsByTagName('head')[0].appendChild(metaTag); } // Include JS/CSS file if desired function loadjscssfile(filename, filetype){ var fileref; if (filetype === "js"){ //if filename is an external JavaScript file fileref=document.createElement('script'); fileref.type = "application/javascript"; fileref.src = filename; } else if (filetype === "css"){ //if filename is an external CSS file var fileref=document.createElement("link"); fileref.rel = "stylesheet"; fileref.type = "text/css"; fileref.href = filename; } if (typeof fileref !== 'undefined') { document.getElementsByTagName("head")[0].appendChild(fileref); } } if(typeof $addjquery !== 'undefined' && $addjquery != 'no') { loadjscssfile(ccb_site_url_u+"includes/jquery/custom-blue2/js/jquery-1.7.2.min.js", "js"); loadjscssfile(ccb_site_url_u+"includes/jquery/custom-blue2/js/jquery-ui-1.8.21.custom.min.js", "js"); loadjscssfile(ccb_site_url_u+"includes/jquery/custom-blue2/css/custom-theme/jquery-ui-1.8.21.custom.css", "css"); } var viewportmeta = document.querySelector('meta[name="viewport"]'); if (viewportmeta) { viewportmeta.setAttribute("content", 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0'); } else { var myvpmeta = document.createElement('meta'); myvpmeta.name = 'viewport'; myvpmeta.content = 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0'; document.getElementsByTagName('head')[0].appendChild(myvpmeta); } function jqueryLoaded() { //do stuff if($show_dropdowns === "yes") { jQuery(document).ready(function(){ showdropdownoffers(); } ); } var creditratingsteps = new Array(); var therealvalue = new Array(); var i; for (i=0; i<=10; i=i+.5) { creditratingsteps[i]= "All Credit"; therealvalue[i] = "all"; } for (i=10; i<=20; i=i+.5) { creditratingsteps[i]= "Bad Credit"; therealvalue[i] = 6; } for (i=20; i<=30; i=i+.5) { creditratingsteps[i]= "Fair Credit"; therealvalue[i] = 3; } for (i=30; i<=40; i=i+.5) { creditratingsteps[i]= "Good Credit"; therealvalue[i] = 4; } for (i=40; i<=50; i=i+.5) { creditratingsteps[i]= "Excellent Credit"; therealvalue[i] = 5; } } // End of do stuff function checkJquery() { if (window.jQuery && jQuery.ui) { jqueryLoaded(); } else { window.setTimeout(checkJquery, 100); } } checkJquery(); if(!$count) { var $count = 0; } var $DisplayCardOfferDetails = new Array(); var $feed_html = ''; var $category_dropdown_options = new Array(); var $bank_dropdown_options = new Array(); var $credit_ratings_dropdown_options = new Array(); var $category_dropdown_html = ""; var $bank_dropdown_html = ""; var $credit_rating_dropdown_html = ""; $count = $count + 1; $feed_html += '
'; $feed_html += ''; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $count = $count + 1; $feed_html += ' '; $feed_html += ''; $category_dropdown_html += ''; $bank_dropdown_html += ''; $credit_rating_dropdown_html += ''; var $product_image_numeric_width = 225; var $product_image_width = '32%';//$product_image_numeric_width+'px'; var $product_image_column_width_num = 210; var $product_image_column_width = $product_image_column_width_num+'px'; var $product_heading_width; var $product_table_padding; var $most_popular_image_width; var $transparent_background_is_true = (typeof $transparent_background !== 'undefined' && $transparent_background === 'yes'); $product_heading_width = '100%'; $most_popular_image_width = $product_heading_width; $product_description_width = '65%'; $product_description_min_width = '50%'; $product_description_mobile_width = 'auto!important'; $product_heading_mobile_width = '100%!important'; $product_mobile_width = '100%!important'; var $product_box_background_color = "#FFFFFF"; var $boxbgcolor; if(typeof $boxbgcolor !== 'undefined') { $product_box_background_color = $boxbgcolor; } var $product_heading_background_color; var $hbgcolor; var $product_heading_background_color = "#FFFFFF"; if(typeof $hbgcolor !== 'undefined') { $product_heading_background_color = $hbgcolor; } var $product_heading_text_color = "#000000"; var $htextcolor; if(typeof $htextcolor !== 'undefined') { $product_heading_text_color = $htextcolor; } var $product_heading_font_size = "16px"; var $hfontsize; if(typeof $hfontsize !== 'undefined') { $product_heading_font_size = $hfontsize+"px"; } var $product_description_bg_color = "transparent"; var $pdbgcolor; if(typeof $pdbgcolor !== 'undefined') { $product_description_bg_color = $pdbgcolor; } if ($transparent_background_is_true) { $product_description_bg_color = 'transparent'; } var $product_description_text_color = "#000000"; var $pdtextcolor; if($pdtextcolor != undefined) { $product_description_text_color = $pdtextcolor; } var $product_description_font_size = "13px";//"1.333em"; var $pdfontsize; if(typeof $pdfontsize !== 'undefined') { $product_description_font_size = $pdfontsize+"px"; } var $product_description_border_left = "#FFFFFF"; var $pdborderleft; if(typeof $pdborderleft !== 'undefined') { $product_description_border_left = $pdborderleft; } var $product_description_border_right = "#FFFFFF"; var $pdborderright; if($pdborderright != undefined) { $product_description_border_right = $pdborderright; } var $footer_bg_color; var $fbgcolor; var $footer_bg_color = "#FFFFFF"; if(typeof $fbgcolor !== 'undefined') { $footer_bg_color = $fbgcolor; } var $footer_text_color = "#000000"; var $ftextcolor; if($ftextcolor != undefined) { $footer_text_color = $ftextcolor; } var $footer_font_size = "11px"; var $ffontsize; if(typeof $ffontsize !== 'undefined') { $footer_font_size = $ffontsize+"px"; } var $bulletstyle; var $additional_css; if(typeof $bulletstyle !== 'undefined') { $additional_css = '.productcontainer ul { list-style-type: ' + $bulletstyle + '; }'; } else { $additional_css = ''; } var $ccbheader_bg_color; var $ccbheaderbgcolor; var $ccbheader_bg_color = "#FFFFFF"; // dark blue original $ccbheader_bg_color = $product_heading_background_color; // Matches the product heading bg if(typeof $ccbheaderbgcolor != 'undefined') { $ccbheader_bg_color = $ccbheaderbgcolor; } var $ccbbutton_bg_color = '#153E7E'; $product_table_bgcolor = $transparent_background_is_true ? 'transparent' : 'white'; $product_table_border_color = '#F3F3F3'; // $transparent_background_is_true ? 'transparent' : $product_table_dropshadow = '#EEEEEE'; $feed_html += ''; // $feed_html += ""; function showdropdownoffers (item) { var $category_to_show = "."; var $bank_to_show = "."; var $credit_rating_to_show = "."; jQuery('div.productcontainer').css('display','block'); if($show_category_dropdowns === "yes" && item && item.id === 'getcategoryoffers') { var $a = document.getElementById('getcategoryoffers').selectedIndex; var $selected_category = document.getElementById("getcategoryoffers").options[$a].value; jQuery('#getbankoffers').val('all'); jQuery('#getcreditratingoffers').val('all'); if($selected_category != "all") { $category_to_show += 'CategoryID-' + $selected_category; jQuery('div.productcontainer').not($category_to_show).css('display','none'); } else { jQuery('div.productcontainer').css('display','block'); } } if($show_bank_dropdowns === "yes" && item && item.id === 'getbankoffers') { var $b = document.getElementById('getbankoffers').selectedIndex; var $selected_bank = document.getElementById("getbankoffers").options[$b].value; jQuery('#getcategoryoffers').val('all'); jQuery('#getcreditratingoffers').val('all'); if($selected_bank != "all") { $bank_to_show += 'BankID-' + $selected_bank; jQuery('div.productcontainer').not($bank_to_show).css('display','none'); } else { jQuery('div.productcontainer').css('display','block'); } } if($show_credit_rating_dropdowns === "yes" && item && item.id === 'getcreditratingoffers') { var $c = document.getElementById('getcreditratingoffers').selectedIndex; var $selected_creditrating = document.getElementById("getcreditratingoffers").options[$c].value; jQuery('#getcategoryoffers').val('all'); jQuery('#getbankoffers').val('all'); if($selected_creditrating != "all") { $credit_rating_to_show += "CreditRatingID-" + $selected_creditrating; jQuery('div.productcontainer').not($credit_rating_to_show).css('display','none'); } else { jQuery('div.productcontainer').css('display','block'); } } checkNumCCBResults(); } // end of function var $error_html; function checkNumCCBResults() { var hiddenEls = jQuery('.productcontainer:hidden'); var visibleEls = jQuery('.productcontainer:visible'); var NumHiddenEls = hiddenEls.length; var NumVisibleEls = visibleEls.length; if(NumVisibleEls < 1) { $error_html = 'The combinations of Category, Bank, and Credit Rating that you chose do not have results.