{"version":3,"names":["document","addEventListener","titles","links","querySelectorAll","forEach","link","link_title","getAttribute","setAttribute","e","preventDefault","stopImmediatePropagation","window","open"],"sources":["theme-25-inline-common-head_tag-2.js"],"sourcesContent":["\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n    const titles = {\n        \"Student Loans\": \"https://www.ascentfunding.com/college-loans/options/?utm_source=partner&utm_medium=college-confidential&referral_code=FF-CC\",\n        \"Financial Aid \": \"https://www.ascentfunding.com/blog/types-of-financial-aid/?utm_source=partner&utm_medium=college-confidential-financial-aid-drop-down\",\n        \"No Essay Scholarships\": \"https://www.ascentfunding.com/scholarships/?utm_source=partner&utm_medium=college-confidential-no-essay-scholarships-drop-down\",\n    };\n\n    const links = document.querySelectorAll(\".custom-header-dropdown-link\");\n    links.forEach(link => {\n        const link_title = link.getAttribute(\"title\");\n\n        if (link_title in titles) {\n            link.setAttribute(\"href\", titles[link_title]);\n            link.setAttribute(\"target\", \"_blank\");\n\n            link.addEventListener(\"click\", function(e) {\n                e.preventDefault();\n                e.stopImmediatePropagation();\n                window.open(titles[link_title], '_blank');\n            }, true);\n        }\n        // else {\n        //     link.addEventListener(\"click\", function(e) {\n        //         e.preventDefault();\n        //         e.stopImmediatePropagation();\n        //         console.log('Link action blocked for title:', link_title);\n        //         return false;\n        //     }, true);\n        // }\n    });\n\n\n\n        // hide ads placeholder\n        // setTimeout(() => {\n        //     const CC_T_D_1 = document.getElementById('CC_T_D_1');\n        //\n        //     if (CC_T_D_1) {\n        //         if (document.querySelector('.lngtd-top-leaderboard iframe')) {\n        //             console.log('iframe');\n        //         } else {\n        //             console.log('no iframe');\n        //             const lngtd_TD = document.querySelector('.lngtd-top-container');\n        //             const lngtd_TD_top_leaderboard = document.querySelector('.lngtd-top-leaderboard');\n        //             lngtd_TD.style.height = '0px';\n        //             lngtd_TD.style.marginTop = '0px';\n        //             lngtd_TD_top_leaderboard.style.height = '0px';\n        //         }\n        //     }\n// }, 5000);\n    });\n    "],"mappings":"AAEAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAE,YAAW;EACrD,MAAMC,MAAM,GAAG;IACX,eAAe,EAAE,6HAA6H;IAC9I,gBAAgB,EAAE,uIAAuI;IACzJ,uBAAuB,EAAE;EAC7B,CAAC;EAED,MAAMC,KAAK,GAAGH,QAAQ,CAACI,gBAAgB,CAAC,8BAA8B,CAAC;EACvED,KAAK,CAACE,OAAO,CAACC,IAAI,IAAI;IAClB,MAAMC,UAAU,GAAGD,IAAI,CAACE,YAAY,CAAC,OAAO,CAAC;IAE7C,IAAID,UAAU,IAAIL,MAAM,EAAE;MACtBI,IAAI,CAACG,YAAY,CAAC,MAAM,EAAEP,MAAM,CAACK,UAAU,CAAC,CAAC;MAC7CD,IAAI,CAACG,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC;MAErCH,IAAI,CAACL,gBAAgB,CAAC,OAAO,EAAE,UAASS,CAAC,EAAE;QACvCA,CAAC,CAACC,cAAc,CAAC,CAAC;QAClBD,CAAC,CAACE,wBAAwB,CAAC,CAAC;QAC5BC,MAAM,CAACC,IAAI,CAACZ,MAAM,CAACK,UAAU,CAAC,EAAE,QAAQ,CAAC;MAC7C,CAAC,EAAE,IAAI,CAAC;IACZ;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EACJ,CAAC,CAAC;;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACR;AACI,CAAC,CAAC","ignoreList":[]}