Highlight table

Developer
Size
90,049 Kb
Views
18,216

How do I make an highlight table?

What is a highlight table? How do you make a highlight table? This script and codes were developed by Kevin on 29 October 2022, Saturday.

Highlight table Previews

Highlight table - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>highlight table</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/import?v=64EZnqTJiV3beq1QbD0B6cxZX2yu_Bj9aSY-fiYWc541'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa/com/css/enrollment2016?v=AtmHqlpsjhlWWLXdCfD5XTQBosfSSGnx7AwcE72iD5g1'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/askemma?v=pAB90qpn0OYnLkz_tv5e-YCDMTuihP9_OBwIKRwYOqk1'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/enrollment?v=r1V0OFIHnHgLCUbh4NAictjULJ7z1IwkBSUPyWtd8NI1'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/templates?v=-4yaFaKSt7QtTevOpQ7c-uLnA3mvtuuEx673gNE9WPU1'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/common-forms?v=Y6-6aC5WdZDMwHysn6ujiMEIcPjEcKGapVtV3G1fpeU1'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/common-plugins?v=XnEbuE3fRGyyBD38by35fDdyucUbNRL4qsRd6KXVonE1'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/responsive.css'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/functional.css'>
<link rel='stylesheet prefetch' href='https://secure.bswiftqa.com/css/css0.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body class="enrollment2016">
<div id="" class="plan-selection-setup bg-white p-jumbo"> <div class="row-two"> <h2 class="fc-slate"><span class="setup-number">1</span>First, choose who will be covered.</h2> <p>Select each individual you would like to cover with a medical plan. Be aware that your premiums will rise with every additional dependent you add for coverage.</p> <div class="row checkbox-masked"> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box dependents-check-box-selected"> <input name="" type="checkbox" id="" disabled="disabled" membertype="employee" checked="checked"> <label for="" class="medium-box"><span class="dependent-name">Ryan Johnson</span><span class="dependent-status fs-smallest">(Employee)</span></label> </div> </div> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box"> <input name="" type="checkbox" id="" membertype=""> <label for="" class="medium-box"><span class="dependent-name">Amy Johnson</span><span class="dependent-status fs-smallest">(Spouse)</span></label> </div> </div> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box"> <input name="" type="checkbox" id="" membertype=""> <label for="" class="medium-box"><span class="dependent-name">Ashley Johnson</span><span class="dependent-status fs-smallest">(Child)</span></label> </div> </div> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box"> <input name="" type="checkbox" id="" membertype=""> <label for="" class="medium-box"><span class="dependent-name">Amy Johnson</span><span class="dependent-status fs-smallest">(Spouse)</span></label> </div> </div> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box"> <input name="" type="checkbox" id="" membertype=""> <label for="" class="medium-box"><span class="dependent-name">Ashley Johnson</span><span class="dependent-status fs-smallest">(Child)</span></label> </div> </div> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box"> <input name="" type="checkbox" id="" membertype=""> <label for="" class="medium-box"><span class="dependent-name">Amy Johnson</span><span class="dependent-status fs-smallest">(Spouse)</span></label> </div> </div> <div class="col three tablet-three mobile-full"> <div class="dependents-check-box"> <input name="" type="checkbox" id="" membertype=""> <label for="" class="medium-box"><span class="dependent-name">Ashley Johnson</span><span class="dependent-status fs-smallest">(Child)</span></label> </div> </div> <div class="col three tablet-three mobile-full dependents-check-add-wrap"> <a id="" href="" class="btn btn-simple btn-icon-plus-circle">Add Dependents</a> </div> </div> </div> <div class="row-two"> <h2 class="fc-slate"><span class="setup-number">2</span>Next, view your prospective plan costs.</h2> <p>Your prospective plan costs are highlighted in the yellow column. Adjust the number of dependents in Step 1 to find the price that is right for you. Be aware that unselected dependents <strong>will not receive medical coverage</strong>.</p> <table> <thead> <tr> <th><span class="sr-only">Plans</span></th> <th>Associate Only</th> <th>Associate + Spouse/Partner</th> <th>Associate + Child(ren)</th> <th>Family</th> </tr> </thead> <tbody> <tr> <td>Bronze (Aetna)</td> <td>$93.26</td> <td>#414.44</td> <td>$323.36</td> <td>$509.28</td> </tr> <tr class="odd"> <td>Bronze (BCBS NC)</td> <td>$93.26</td> <td>#414.44</td> <td>$323.36</td> <td>$509.28</td> </tr> <tr> <td>Silver (Aetna)</td> <td>$161.63</td> <td>#538.71</td> <td>$418.08</td> <td>$654.64</td> </tr> <tr class="odd"> <td>Silver (BCBS NC)</td> <td>$161.63</td> <td>#538.71</td> <td>$418.08</td> <td>$654.64</td> </tr> <tr> <td>Gold (Aetna)</td> <td>$243.00</td> <td>#598.31</td> <td>$474.02</td> <td>$740.12</td> </tr> <tr class="odd"> <td>Gold (BCBS NC)</td> <td>$243.00</td> <td>#598.31</td> <td>$474.02</td> <td>$740.12</td> </tr> </tbody> </table> </div> <div class="row-two"> <h2 class="fc-slate"><span class="setup-number">3</span>Now you are ready to choose your plan.</h2> <p>Click 'Continue' to see details on the next page for these plans.</p> </div>
</div>
</body> <script src='https://cdn.bswiftqa.com/jsinc/common?v=4pILxO56bLoG7Ak_yXgwk9PMB76gTL8uXmnJIUDO_bI1'></script>
<script src='https://bswiftqa.com/jsinc/enrollment/stepped_enrollment.js'></script>
<script src='https://cdn.bswiftqa.com/jsinc/ee-help?v=wQ5BRZ05j5Grh011l4_KmwAv0MBGp1iWFI8zdeRWDBQ1'></script>
<script src='https://cdn.bswiftqa.com/jsinc/modernizr.custom.js?v=inCVuEFe6J4Q07A0AcRsbJic_UE5MwpRMNGcOtk94TE1'></script>
<script src='https://cdn.bswiftqa.com/jsinc/prettyCheckable?v=TCeXbfHIhhZKwcyfzv0qM0rdXwDhEF7LeUojcwCBpZY1'></script>
<script src='https://c.la1-c1cs-dfw.salesforceliveagent.com/content/g/js/36.0/deployment.js'></script>
<script src='https://cdn.bswiftqa.com/jsinc/video?v=igoenoBmiHcfwCRgrk0zsryp7hhxzGgkawLcgC4P1Sw1'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Highlight table - Script Codes CSS Codes

/*====================================*\ $2. GLOBAL LAYOUT
\*====================================*/
*,
*:after,
*:before { box-sizing: border-box;
}
html { background: #f2f2f2; height: 100%;
}
body { height: auto; margin: 0px; overflow: auto; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; text-size-adjust: 100%;
}
body.ee { overflow: scroll;
}
body.impersonation { margin-top: 35px;
}
@media only screen and (max-width: 766px) { header { z-index: 20000; }
}
/*====================================*\ $4. SEMANTIC ELEMENTS (note: base styles set in normalize.css)
\*====================================*/
html { font-size: 87.5%;
}
body { color: #555; font-family: "Roboto", helvetica, arial, sans-serif; font-style: normal; font-weight: 400; line-height: 1.4; -webkit-tap-highlight-color: #4e7991;
}
p,
ul { margin: 0px 0px 14px 0px;
}
ol li { margin-bottom: 10px;
}
h1,
h2,
h3,
h4,
h5,
h6,
.fs-jumbo,
.fs-largest,
.fs-larger,
.fs-large,
.fs-small,
.fs-smaller,
.fs-smallest { font-weight: 400; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in;
}
h1,
.fs-jumbo { font-style: normal; letter-spacing: -0.02em; margin: 0px 0px 8px 0px;
}
@media only screen and (max-width: 766px) { h1, .fs-jumbo { font-size: 24px; line-height: 36px; font-size: 1.7142857142857142rem; line-height: 2.571428571428571rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { h1, .fs-jumbo { font-size: 24.5px; line-height: 36.75px; font-size: 1.75rem; line-height: 2.625rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { h1, .fs-jumbo { font-size: 25px; line-height: 37.5px; font-size: 1.7857142857142858rem; line-height: 2.678571428571429rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { h1, .fs-jumbo { font-size: 25.5px; line-height: 38.25px; font-size: 1.8214285714285714rem; line-height: 2.732142857142857rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
h2,
.fs-largest { margin: 0px 0px 8px 0px;
}
@media only screen and (max-width: 766px) { h2, .fs-largest { font-size: 22px; line-height: 33px; font-size: 1.5714285714285714rem; line-height: 2.357142857142857rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { h2, .fs-largest { font-size: 22.5px; line-height: 33.75px; font-size: 1.6071428571428572rem; line-height: 2.4107142857142856rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { h2, .fs-largest { font-size: 23px; line-height: 34.5px; font-size: 1.6428571428571428rem; line-height: 2.4642857142857144rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { h2, .fs-largest { font-size: 23.5px; line-height: 35.25px; font-size: 1.6785714285714286rem; line-height: 2.517857142857143rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
.tab-panel h2 { color: #aaa; margin: 15px 0px 15px 0px;
}
h3,
.fs-larger { margin: 0px 0px 8px 0px;
}
@media only screen and (max-width: 766px) { h3, .fs-larger { font-size: 20px; line-height: 30px; font-size: 1.4285714285714286rem; line-height: 2.142857142857143rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { h3, .fs-larger { font-size: 20.5px; line-height: 30.75px; font-size: 1.4642857142857142rem; line-height: 2.196428571428571rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { h3, .fs-larger { font-size: 21px; line-height: 31.5px; font-size: 1.5rem; line-height: 2.25rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { h3, .fs-larger { font-size: 21.5px; line-height: 32.25px; font-size: 1.5357142857142858rem; line-height: 2.303571428571429rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
h4,
.fs-large { margin: 0px 0px 8px 0px;
}
@media only screen and (max-width: 766px) { h4, .fs-large { font-size: 18px; line-height: 27px; font-size: 1.2857142857142858rem; line-height: 1.9285714285714288rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { h4, .fs-large { font-size: 18.5px; line-height: 27.75px; font-size: 1.3214285714285714rem; line-height: 1.9821428571428572rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { h4, .fs-large { font-size: 19px; line-height: 28.5px; font-size: 1.3571428571428572rem; line-height: 2.0357142857142856rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { h4, .fs-large { font-size: 19.5px; line-height: 29.25px; font-size: 1.3928571428571428rem; line-height: 2.0892857142857144rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
h5,
.fs-small { margin: 0px 0px 8px 0px;
}
@media only screen and (max-width: 766px) { h5, .fs-small { font-size: 16px; line-height: 24px; font-size: 1.1428571428571428rem; line-height: 1.7142857142857142rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { h5, .fs-small { font-size: 16.5px; line-height: 24.75px; font-size: 1.1785714285714286rem; line-height: 1.7678571428571428rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { h5, .fs-small { font-size: 17px; line-height: 25.5px; font-size: 1.2142857142857142rem; line-height: 1.8214285714285712rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { h5, .fs-small { font-size: 17.5px; line-height: 26.25px; font-size: 1.25rem; line-height: 1.875rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
h6,
.fs-smaller { margin: 0px 0px 8px 0px;
}
@media only screen and (max-width: 766px) { h6, .fs-smaller { font-size: 14px; line-height: 21px; font-size: 1rem; line-height: 1.5rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { h6, .fs-smaller { font-size: 14.5px; line-height: 21.75px; font-size: 1.0357142857142858rem; line-height: 1.5535714285714288rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { h6, .fs-smaller { font-size: 15px; line-height: 22.5px; font-size: 1.0714285714285714rem; line-height: 1.6071428571428572rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { h6, .fs-smaller { font-size: 15.5px; line-height: 23.25px; font-size: 1.1071428571428572rem; line-height: 1.6607142857142858rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (max-width: 766px) { .fs-smallest, .note { font-size: 12px; line-height: 18px; font-size: 0.8571428571428571rem; line-height: 1.2857142857142856rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { .fs-smallest, .note { font-size: 12.5px; line-height: 18.75px; font-size: 0.8928571428571429rem; line-height: 1.3392857142857144rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { .fs-smallest, .note { font-size: 13px; line-height: 19.5px; font-size: 0.9285714285714286rem; line-height: 1.3928571428571428rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { .fs-smallest, .note { font-size: 13.5px; line-height: 20.25px; font-size: 0.9642857142857143rem; line-height: 1.4464285714285714rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (max-width: 766px) { .fs-tiny { font-size: 10px; line-height: 15px; font-size: 0.7142857142857143rem; line-height: 1.0714285714285714rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { .fs-tiny { font-size: 10.5px; line-height: 15.75px; font-size: 0.75rem; line-height: 1.125rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { .fs-tiny { font-size: 11px; line-height: 16.5px; font-size: 0.7857142857142857rem; line-height: 1.1785714285714286rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
@media only screen and (min-width: 1129px) { .fs-tiny { font-size: 11.5px; line-height: 17.25px; font-size: 0.8214285714285714rem; line-height: 1.2321428571428572rem; -webkit-transition: font-size 0.2s ease-in; transition: font-size 0.2s ease-in; -webkit-transition: line-height 0.2s ease-in; transition: line-height 0.2s ease-in; }
}
i,
em { font-family: 'Roboto'; font-style: italic; font-weight: 400;
}
b,
strong { font-family: 'Roboto'; font-weight: 700;
}
/* Links */
a,
a:visited { color: #007fac; cursor: pointer; text-decoration: none;
}
a:active,
a:focus,
a:hover { color: #007fac; text-decoration: underline; -webkit-transition: color 250ms ease; transition: color 250ms ease;
}
a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px;
}
div:focus { outline: none;
}
.f-left { float: left;
}
.f-right { float: right;
}
.invis-elem { display: none;
}
.vis-elem { display: block !important;
}
.text-center { text-align: center;
}
.text-left { text-align: left;
}
.text-right { text-align: right;
}
.fc-white { color: #fff;
}
.fc-lightest { color: #767676;
}
.fc-lighter { color: #737373;
}
.fc-light { color: #717171;
}
.fc-steel { color: #555;
}
.fc-steel-dark { color: #555;
}
.fc-black { color: #000;
}
.fc-slate { color: #4e7991;
}
.fc-blue { color: #007fac;
}
.fc-green { color: #3e7a2d;
}
.fc-orange { color: #cf4a18;
}
.fc-red { color: #d12428;
}
/*------------------------------------*\ $Custom Text Classes
\*------------------------------------*/
a.arrow-link:after { content: "\F001"; display: inline-block; margin-left: 5px; font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: middle;
}
h3.h3-alt-admin { background-color: #eff3f4; background-image: url(/css/images/h3-alt-admin-bg.png); color: #666; line-height: 36px; margin: 0px -15px 10px; padding: 0px 15px;
}
h3.h3-alt-admin.subhead { border-top: 1px solid #eee; text-transform: uppercase;
}
h3.h3-alt { text-transform: uppercase;
}
.blue-rule,
.green-rule,
.purple-rule,
.orange-rule { padding-top: 5px;
}
.green-rule { border-top: 4px solid #6aa570;
}
.blue-rule { border-top: 4px solid #86a3ad;
}
.purple-rule { border-top: 4px solid #8169ad;
}
.orange-rule { border-top: 4px solid #d49d34;
}
h4.h4-alt-admin { border-bottom: 1px solid #eee; border-top: 1px solid #eee; margin: 0px;
}
p.deck { color: #333; font-size: 12px;
}
.lowercase { text-transform: lowercase;
}
.panel ul,
.panel li,
.panel ol { margin: 0px; padding: 0px;
}
ul.primary { margin-left: 3px; padding: 0px 0px 14px 14px;
}
ul.primary li { list-style: disc; padding: 0px 0px 6px 0px;
}
.editLink ul { list-style-type: none; margin: 0; padding: 0;
}
.list-qa { border-bottom: 1px solid #ccc; list-style: none; margin: 0px 0px 12px 0px; padding: 0px 0px 12px 0px; position: relative;
}
.list-qa li { margin-left: 20px;
}
.list-qa li:before { font-weight: 700; left: 0px; position: absolute;
}
.list-qa li.list-question,
.list-qa li.list-answer { display: block; min-height: 19px;
}
.list-qa li.list-question:before { content: "Q";
}
.list-qa li.list-answer:before { content: "A";
}
span.nowrap { white-space: nowrap;
}
span.caveat { color: #d12428; font-style: italic;
}
span.warning { color: #d12428;
}
span.note a { line-height: 1.4em;
}
td span.note a { margin-left: 8px;
}
span.note img { margin-top: 5px; vertical-align: top;
}
span#startDateLabel,
span#endDateLabel,
span#saveEndDateLabel { margin-left: 15px;
}
/*------------------------------------*\ EMPLOYEE NAME(ADMIN/EE) Jan 2015 release, updated to a control for easier update Reusing code to do similar update for client name at a later time Developer: Phil C./Kevin M. Added 11/10/14 jd
\*------------------------------------*/
#admin-info { font-size: 18px; line-height: 1.4; margin-bottom: 15px; overflow: hidden;
}
#admin-info.admin-ee-info:before { font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\F01D"; display: inline-block; font-size: 18px; left: 0px; line-height: 1; position: relative; width: 18px;
}
body.benefit-enroll_all_elections #admin-info.admin-ee-info { margin-bottom: 30px;
}
#admin-info.admin-client-info:before { font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\F00D"; display: inline-block; font-size: 18px; left: 4px; line-height: 1; position: relative; width: 32px;
}
#admin-info span { font-size: 13px;
}
.bg-white { background-color: #fff;
}
.bg-steel { background-color: #555;
}
.bg-steel-dark { background-color: #333;
}
.bg-black { background-color: #000;
}
.bg-gray-lightest { background-color: #fafafa;
}
.bg-gray-lighter { background-color: #f7f7f7;
}
.bg-gray-light { background-color: #f2f2f2;
}
.bg-gray { background-color: #eee;
}
.bg-gray-dark { background-color: #ccc;
}
.bg-gray-darker { background-color: #999;
}
.bg-gray-darkest { background-color: #767676;
}
.bc-gray-light { border-color: #e8e8e8;
}
.bc-gray-dark { border-color: #ccc;
}
.rounded-none { border-radius: 0px; background-clip: padding-box;
}
.rounded-all { border-radius: 3px; background-clip: padding-box;
}
.p-none { padding: 0px;
}
.p-smallest { padding: 2px;
}
.p-smaller { padding: 4px;
}
.p-small { padding: 6px;
}
.p-default { padding: 8px;
}
.p-large { padding: 12px;
}
.p-larger { padding: 16px;
}
.p-largest { padding: 20px;
}
.p-jumbo { padding: 24px;
}
[class*="card-"] { background: #fff; padding: 4px;
}
.card-border-light { border: 1px solid #e8e8e8;
}
.card-border { border: 1px solid #ccc;
}
.card-radius-all { border-radius: 3px;
}
.card-pad-8 { padding: 8px;
}
.card-pad-16 { padding: 16px;
}
.card-pad-24 { padding: 24px;
}
/*====================================*\ $13. IE9 STYLE TWEAKS
\*====================================*/
html.lt-ie10 video { width: 100%;
}
/*====================================*\ STYLESHEET: enrollment2016.less
\*====================================*/
body.enrollment2016 { margin-bottom: 20px;
}
body.enrollment2016.enroll #column-2 div.column-2-panel { background-color: transparent; padding: 0px !important;
}
@media only screen and (max-width: 766px) { body.enrollment2016 body.ee.enroll div#container div#wrapper div#content { background-color: transparent; }
}
body.enrollment2016 .form-wrapper { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; background-clip: padding-box; padding: 20px;
}
body.enrollment2016 .save-div { border-top: 1px solid #ccc;
}
body.enrollment2016 .save-div a { font-size: 16px;
}
body.enrollment2016 .save-div .primary-action { text-align: right;
}
body.enrollment2016 #enrollment-intro { margin-top: 30px;
}
body.enrollment2016 .flex-container { display: -ms-flexbox; display: -webkit-box; display: flex;
}
body.enrollment2016 .enrollment-right-col { border-left: 1px solid #ddd; padding-left: 2%;
}
body.er body.enrollment2016 .enrollment-right-col { height: 100%;
}
/*====================================*\ $ENROLLMENT HEADER TABS - STEPTRACKER
\*====================================*/
/*updated - 072415 jd*/
body.enrollment2016 .topNav_selection_tab a { color: #fff; cursor: pointer; border: 1px solid #4e7991; background: -webkit-linear-gradient(right, #6396b0 50%, #689eb9 50%); background: linear-gradient(to left, #6396b0 50%, #689eb9 50%); background-position: right bottom; background-size: 200% 100%; -webkit-transition: all .2s ease; transition: all .2s ease;
}
body.enrollment2016 .topNav_selection_tab a:hover { background-color: #689eb9; background-position: left bottom;
}
body.enrollment2016 .topNav_selection_tab a:hover:before { border-left-color: #689eb9; -webkit-transition-delay: .2s; /* Safari */ transition-delay: .2s;
}
body.enrollment2016 .topNav_selection_tab span { border: 1px solid #4e7991; cursor: default;
}
body.enrollment2016 .topNav_selection_tab span:hover { background-color: #6396b0;
}
body.enrollment2016 .topNav_selection_tab span:hover:before { border-left-color: #6396b0;
}
.enrollment2016 .your-information-nav_ { display: none;
}
.enrollment2016 .save-div { border-top: 1px solid #ccc; /*.member-enroll_member_edit&, .member-enroll_family_search&, .member-enroll_family_edit&, .benefit-enroll_eligibility_questions&{display:none!important;}*/
}
.enrollment2016 .save-div a { font-size: 16px;
}
.enrollment2016 .save-div .primary-action { text-align: right;
}
@media only screen and (max-width: 766px) { .enrollment2016 .save-div .primary-action input { width: 100%; margin: 5px 0; }
}
.enrollment2016.ee.one-col #column-2 .column-2-panel { padding: 0px;
}
.member-enroll_member_edit.enrollment2016 .topNav_selection_tab,
.member-enroll_family_search.enrollment2016 .topNav_selection_tab,
.member-enroll_family_edit.enrollment2016 .topNav_selection_tab,
.benefit-enroll_eligibility_questions.enrollment2016 .topNav_selection_tab { display: none;
}
/*------------------------------------ $Benefits Landing Page
------------------------------------*/
body.enrollment2016 #benefits-landing-container .container { overflow: hidden; position: relative;
}
body.enrollment2016 #benefits-landing-container .client-text-container { padding-bottom: 10px;
}
body.enrollment2016 #benefits-landing-container #benefitSelection-container > .client-text-container,
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; background-clip: padding-box; margin-bottom: 24px; padding: 16px;
}
body.enrollment2016 #benefits-landing-container .effective-date-container span.effective-date { font-weight: bold;
}
body.enrollment2016 #benefits-landing-container .effective-date-container a { text-decoration: underline;
}
body.enrollment2016 #benefits-landing-container .effective-date-container a:after { content: ' >';
}
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .medicare-subsidy-banner-header { border-bottom: solid 1px #ddd; margin-bottom: 10px;
}
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .household-col,
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .income-col { text-align: center;
}
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .household-col label,
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .income-col label { text-align: center; display: block; font-weight: 500;
}
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .household-col input,
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .income-col input { width: 80%; margin-left: auto; margin-right: auto; margin-top: 10px;
}
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy .household-col { border-right: solid 1px #ddd; padding-right: 2%;
}
body.enrollment2016 #benefits-landing-container .benefit-landing-floating-box.subsidy input.check-eligibility { display: block; margin-top: 5px; margin-right: auto; margin-left: auto;
}
body.enrollment2016 #benefits-landing-container #cob-container .benefit-panel { margin: 0 0 0 20px; padding-top: 15px; padding-bottom: 15px;
}
body.enrollment2016 #benefits-landing-container #cob-container .benefit-panel h2 { font-size: 14px; color: #555;
}
body.enrollment2016 #benefits-landing-container #cob-container .benefit-panel span.name { font-size: 18px; color: #4e7991;
}
body.enrollment2016 #benefits-landing-container #cob-container .benefit-panel div.content { margin-left: 15px;
}
/* benefit status mixin */
.benefit-status .benefit-status { color: #9ea5a6; display: inline-block; font-size: 13px; padding-top: 5px; font-weight: 500;
}
.benefit-status .benefit-status.to-do { color: #c83e0a;
}
.benefit-status .benefit-status.to-do:before { content: '*'; display: inline-block; margin-right: 2px; vertical-align: middle;
}
.benefit-status .benefit-status.completed { color: #3e7a2d;
}
.benefit-status .benefit-status.completed:before { background: transparent url(../css/images/sprite-alert-icons.png) 0px -1200px no-repeat; border-radius: 50%; content: ''; display: inline-block; height: 15px; margin-right: 5px; margin-top: -2px; vertical-align: middle; width: 15px;
}
/* Benefits langing panel - also used on confirm page */
body.enroll div.benefit-panel { margin-bottom: 20px;
}
body.enroll div.benefit-panel .plan-type-icon { background: #666; box-sizing: border-box; height: 60px; padding: 11px; position: absolute; width: 60px;
}
body.enroll div.benefit-panel .plan-type-icon .plan-icon { height: 40px; width: 40px;
}
body.enroll div.benefit-panel.benefit-ok { background-color: transparent!important;
}
body.enroll div.benefit-panel.benefit-ok .plan-type-icon { background-color: #3e7a2d; /*&:before{ background: #3e7a2d; border: 1px solid #fff; border-radius: 50%; color: #fff; content: '\F008'; font-size: 12px; height: 20px; left: -10px; line-height: 22px; position: absolute; text-align: center; .tool-font(); top: -10px; width: 20px; }*/
}
body.enroll div.benefit-panel .benefit-panel-content { background: #fff; border: 1px solid #dddddd; margin-left: 60px; padding: 10px 15px; position: relative;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-plan-content > div[class*="row"] > .col.one { width: 11%;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-plan-content > div[class*="row"] > .col.five { width: 39%;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-plan-content > div[class*="row"] > .col.eleven { width: 87%;
}
body.enroll div.benefit-panel .benefit-panel-content .header { border-bottom: 1px solid #dddddd; margin-top: 0px; overflow: visible; padding-bottom: 10px;
}
body.enroll div.benefit-panel .benefit-panel-content .header h3 { font-size: 24px; margin: 0px;
}
body.enroll div.benefit-panel .benefit-panel-content .header + .benefit-panel-footer { border-top: none; padding-top: 0px;
}
body.enroll div.benefit-panel .benefit-panel-content .header .plan-cost-status { color: #767676; display: block; line-height: 28px; text-align: right; text-transform: uppercase;
}
body.enroll div.benefit-panel .benefit-panel-content .row-label { display: block; font-size: 12px; padding-top: 6px; text-align: right; text-transform: uppercase;
}
body.enroll div.benefit-panel .benefit-panel-content .plan-name,
body.enroll div.benefit-panel .benefit-panel-content .plan-coverage { font-size: 18px;
}
body.enroll div.benefit-panel .benefit-panel-content .plan-name + .dependent-coverage-status,
body.enroll div.benefit-panel .benefit-panel-content .plan-coverage + .dependent-coverage-status,
body.enroll div.benefit-panel .benefit-panel-content .plan-name + .custom-contribution-table,
body.enroll div.benefit-panel .benefit-panel-content .plan-coverage + .custom-contribution-table { margin-top: 10px;
}
body.enroll div.benefit-panel .benefit-panel-content .plan-detail-item { display: inline-block; padding: 0px 10px;
}
body.enroll div.benefit-panel .benefit-panel-content .plan-detail-item:first-child { padding-left: 0px;
}
body.enroll div.benefit-panel .benefit-panel-content .tooltip-link.info { display: inline-block;
}
body.enroll div.benefit-panel .benefit-panel-content .dependent-coverage-status .row { background: #f2f2f2; margin-bottom: 1px; padding: 2px 5px;
}
body.enroll div.benefit-panel .benefit-panel-content .dependent-coverage-status span.label { margin-top: 2px;
}
body.enroll div.benefit-panel .benefit-panel-content .custom-contribution-table { font-size: 14px;
}
body.enroll div.benefit-panel .benefit-panel-content .custom-contribution-table + div { margin-top: 10px;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-footer { border-top: 1px solid #dddddd; margin-top: 10px; padding-top: 10px;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-footer .col { min-height: 1px;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-footer .buttons { text-align: right;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-footer .buttons [class*="btn-"] { margin-right: 0px; margin-left: 10px;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-footer .buttons [class*="btn-"].btn-icon-pencil { background-position: 0px -594px; padding-right: 0px; padding: 5px 0px 5px 0px;
}
body.enroll div.benefit-panel .benefit-panel-content .benefit-panel-view-questions { margin-top: 10px;
}
body.enroll div.benefit-panel .benefit-status { color: #9ea5a6; display: inline-block; font-size: 13px; padding-top: 5px; font-weight: 500;
}
body.enroll div.benefit-panel .benefit-status.to-do { color: #c83e0a;
}
body.enroll div.benefit-panel .benefit-status.to-do:before { content: '*'; display: inline-block; margin-right: 2px; vertical-align: middle;
}
body.enroll div.benefit-panel .benefit-status.completed { color: #3e7a2d;
}
body.enroll div.benefit-panel .benefit-status.completed:before { background: transparent url(../css/images/sprite-alert-icons.png) 0px -1200px no-repeat; border-radius: 50%; content: ''; display: inline-block; height: 15px; margin-right: 5px; margin-top: -2px; vertical-align: middle; width: 15px;
}
body.benefit-enroll_user_effective_date .shopping-date-field-row td { padding-top: 10px;
}
/* Benefits landing panel - Medicare*/
body.enroll div.benefit-panel .benefit-panel .benefit-panel-content { border: 1px solid #D4D3D3; border-left: 6px solid #d4d3d3; padding: 10px 14px; margin: 10px 0px 5px 0px;
}
body.enroll div.benefit-panel .benefit-panel .benefit-panel-content .header { border-bottom: none;
}
body.enroll div.benefit-panel .benefit-panel .benefit-panel-content .header h3 { font-size: 20px;
}
body.enroll div.benefit-panel .benefit-panel.benefit-ok .benefit-panel-content { border-left: 6px solid #4DAB6E;
}
/* Confirmation Page - benefit panel */
body.enroll .confirm-container div.benefit-panel .benefit-panel-content { margin-left: 0px; padding: 0px;
}
body.enroll .confirm-container div.benefit-panel .benefit-panel-content .header { background: #999; border-bottom: none; padding: 10px 15px;
}
body.enroll .confirm-container div.benefit-panel .benefit-panel-content .header h3 { color: #fff; font-size: 18px; padding-left: 40px; padding-top: 3px;
}
body.enroll .confirm-container div.benefit-panel .benefit-panel-content .header [class*="btn"] { margin-right: 0px; text-transform: uppercase;
}
body.enroll .confirm-container div.benefit-panel .benefit-panel-content .benefit-panel-plan-content { padding: 15px;
}
body.enroll .confirm-container div.benefit-panel table.plan-selection-cost-summary { border: none; border-bottom: 1px solid #cecece; border-radius: 0px; display: block; float: none!important; margin-bottom: 10px; padding-bottom: 5px; position: relative!important; top: 0px; width: 100%!important;
}
body.enroll .confirm-container div.benefit-panel table.plan-selection-cost-summary th,
body.enroll .confirm-container div.benefit-panel table.plan-selection-cost-summary td { background: transparent; padding: 5px 0px !important;
}
body.enroll .confirm-container div.benefit-panel table.plan-selection-cost-summary tr:first-child { display: none;
}
body.enroll .confirm-container div.benefit-panel .benefit-status { display: none;
}
body.enroll .confirm-container div.benefit-panel .plan-type-icon { background: transparent; display: inline-block; height: 30px; padding: 0; width: 30px;
}
body.enroll .confirm-container div.benefit-panel .plan-type-icon .plan-icon { height: auto; width: auto;
}
body.enroll .confirm-container div.benefit-panel .plan-type-icon .plan-icon:before { font-size: 24px; height: auto; line-height: 30px; width: auto;
}
body.enroll .confirm-container div.benefit-panel .plan-selection-subheader-plancost-toggle { cursor: text;
}
body.enroll .confirm-container div.benefit-panel .plan-selection-subheader-plancost-toggle .plan-selection-ee-cost { background: none; padding: 0px;
}
body.enroll .confirm-container div.benefit-panel .benefit-panel-footer { border-top: none; padding: 0px 15px 10px 15px;
}
body.enroll .confirm-container div.benefit-panel .benefit-panel-footer .col { min-height: 1px;
}
body.enroll .confirm-container div.benefit-panel.benefit-waived .header { background: #fff;
}
body.enroll .confirm-container div.benefit-panel.benefit-waived .header h3 { color: inherit;
}
body.enroll .confirm-container div.benefit-panel.benefit-waived .plan-type-icon .plan-icon:before { color: #666;
}
body.enrollment2016 .enrollment-right-col .your-cost { background: #f6fdf4; border: 1px solid #e8e8e8; margin-bottom: 12px; padding: 8px;
}
body.enrollment2016 .enrollment-right-col .your-cost .your-cost-text { display: block; font-size: 18px; line-height: 1;
}
body.enrollment2016 .enrollment-right-col .your-cost .cost-amount { display: block; font-size: 24px; text-align: right;
}
body.enrollment2016 .enrollment-right-col .your-cost .cost-amount:before { content: "$"; display: inline-block;
}
#confirm-selections { background: #f2fbff; border: 1px solid #d6e7ef; padding: 20px;
}
/* Confirmation Page - Medicare*/
body.ee.enroll-confirm.enrollment2016.medicare .benefit-confirmation-panel .plan-content,
body.benefit-enrollment .benefit-confirmation-panel .plan-content,
body.benefit-previous_elections .benefit-confirmation-panel .plan-content { border-bottom: none;
}
body.ee.enroll-confirm.enrollment2016.medicare .benefit-confirmation-panel .plan-content:last-child,
body.benefit-enrollment .benefit-confirmation-panel .plan-content:last-child,
body.benefit-previous_elections .benefit-confirmation-panel .plan-content:last-child { border-bottom: 1px solid #d9e2e6;
}
body.ee.enroll-confirm.enrollment2016.medicare .benefit-confirmation-panel .plan-content .benefit-panel-plan-cost-total,
body.benefit-enrollment .benefit-confirmation-panel .plan-content .benefit-panel-plan-cost-total,
body.benefit-previous_elections .benefit-confirmation-panel .plan-content .benefit-panel-plan-cost-total { list-style: none; text-align: right; margin-bottom: 10px;
}
body.ee.enroll-confirm.enrollment2016.medicare .benefit-confirmation-panel .plan-content .benefit-panel-plan-cost-total .your-cost-pre-tax,
body.benefit-enrollment .benefit-confirmation-panel .plan-content .benefit-panel-plan-cost-total .your-cost-pre-tax,
body.benefit-previous_elections .benefit-confirmation-panel .plan-content .benefit-panel-plan-cost-total .your-cost-pre-tax { color: #666; font-size: 20px; font-weight: 500; padding-left: 5px;
}
body.ee.enroll-confirm.enrollment2016.medicare .benefit-confirmation-panel .plan-content hr,
body.benefit-enrollment .benefit-confirmation-panel .plan-content hr,
body.benefit-previous_elections .benefit-confirmation-panel .plan-content hr { box-sizing: content-box; color: #ddd; margin: 0px 20px; height: 0; border: none; border-bottom: 1px solid #ddd;
}
/* Confirmation Statement Medicare */
body.ee.benefit-enrollment.medicare .benefit-confirmation-panel { margin-left: 0px;
}
body.ee.benefit-enrollment.medicare .benefit-confirmation-panel .header.masthead { padding-left: 90px;
}
body.ee.benefit-enrollment.medicare .benefit-confirmation-panel .header.masthead .plan-type-icon { border-top-left-radius: 4px; border-bottom-left-radius: 0px; left: 0px;
}
body.ee.benefit-enrollment.medicare .benefit-confirmation-panel .header.masthead:not(.expanded) { border-top-right-radius: 4px; border-bottom-right-radius: 4px;
}
body.ee.benefit-enrollment.medicare .benefit-confirmation-panel .header.masthead:not(.expanded) .plan-type-icon { border-top-left-radius: 4px; border-bottom-left-radius: 4px;
}
/* Defined Contribution / Credits */
body.enrollment2016 .credits-panel { margin-bottom: 20px;
}
body.enrollment2016 .dc-funds-panel { border: 1px solid #ddd; margin-bottom: 15px; margin-top: 3px; padding: 10px;
}
body.enrollment2016 .dc-funds-panel h3 { border-bottom: 1px solid #e6e6e6; color: #555; font-size: 18px; padding-bottom: 5px; text-transform: none;
}
body.enrollment2016 .dc-funds-panel .dc-funds { margin-bottom: 10px;
}
body.enrollment2016 .dc-funds-panel .dc-funds-label { font-size: 14px; font-weight: normal;
}
body.enrollment2016 .dc-funds-panel .dc-funds-amount { color: #58a83a;
}
body.enrollment2016 .dc-funds-panel .dc-funds-progress { bottom: 0px; height: auto; top: 0px;
}
body.enrollment2016 .dc-funds-panel .dc-funds-progress .progress { background: #58a83a;
}
body.enrollment2016 .dc-funds-panel .dc-funds-progress-wrapper { padding-left: 50px; position: relative;
}
body.enrollment2016 .dc-funds-panel .tooltip-link { display: inline-block; margin-top: 10px;
}
body.enrollment2016 .credits-link { padding: 0px 10px 10px 0px;
}
body.enrollment2016 .credits-link a { color: #00688d;
}
body.enrollment2016 .credits-link a:hover { color: #005979;
}
body.enrollment2016 .plan-selection-dc-eligibility { border: 1px solid #b9e9cc; border-radius: 4px; padding: 5px 15px 10px; margin: 15px 0 0 0;
}
body.enrollment2016 .plan-selection-dc-cost { color: #2da15c; font-size: 18px; font-weight: bold;
}
body.enrollment2016 .dc-eligibility-icon { color: #2da15c; display: inline-block; font-size: 21px; font-weight: bold; height: 35px; line-height: 35px; margin: -5px -3px -5px -15px; text-align: center; vertical-align: top; width: 50px;
}
/*------------------------------------------- $Plan Type Icons - Benefits Landing Page
-------------------------------------------*/
.benefit-panel .plan-type-icon .plan-icon { display: block;
}
.benefit-panel .plan-type-icon .plan-icon:before { color: #fff; display: inline-block; height: 40px; font-size: 30px; line-height: 40px; text-align: center; font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 40px;
}
/*------------------------------------ $Plan Selection
------------------------------------*/
.enrollment2016 { /* Dependents */ /* plan selection toolbar */ /* Plan Filters Modal */ /* Plan Header */ /* Current Plan */ /* Selected Plan */ /*.plan-selection-selected-plan { color: #3e7a2d; display: block; font-weight: 500; margin-bottom:15px; &:before { color: #3e7a2d; content: '\F05A'; display: inline-block; font-size: 22px; height: 20px; line-height: 1px; margin-right: 5px; position: relative; text-align: center; top: 2px; .tool-font(); width: 20px; } }*/ /*new cleaned up style */ /* Waived Plan pod */ /* Questions */ /* Ask Emma Chart */ /* DC in plan pods */
}
.enrollment2016 .plan-selection-container .container { padding: 0px; position: relative;
}
.enrollment2016 .benefittype-header { background: #fff; margin-bottom: 20px;
}
.enrollment2016 .benefittype-header .container[id^="benefittypeInfo-"] p:empty { display: none;
}
.enrollment2016 .benefittype-header .container[id^="benefittypeInfo-"] .client-text-container:not(:empty) { padding: 10px 5px;
}
@media only screen and (max-width: 766px) { .enrollment2016 .benefittype-header .container { padding: 0px; }
}
.enrollment2016 .plan-info { margin-top: 0px; padding-left: 5px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"] div.dependents { border-bottom: none; margin: 5px 0 0 0; overflow: hidden; padding: 20px 0px 15px 0px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"] .dependents-check h4 { display: none;
}
.enrollment2016.enroll div[id^="dependentsContainer-"] .dependents-check .dependents-check-add-wrap { padding-top: 5px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"] .dependents-check .dependents-check-box { min-width: none;
}
.enrollment2016.enroll div[id^="dependentsContainer-"].pre-selection { border-top: 0px; margin-bottom: 20px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"].pre-selection > .container { padding: 0px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"].pre-selection h3 { color: #4e7991; font-size: 24px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"].pre-selection div.dependents { padding: 20px;
}
.enrollment2016.enroll div[id^="dependentsContainer-"].pre-selection .dependents-check .dependents-check-right { max-width: none;
}
.enrollment2016.enroll div[id^="dependentsContainer-"].pre-selection .dependents-check-wrap { margin-top: 30px;
}
.enrollment2016 .plan-selection-toolbar { padding-top: 20px; padding-bottom: 10px;
}
.enrollment2016 .plan-selection-toolbar #plan-filter-result-count a.btn { margin-left: 10px;
}
@media only screen and (max-width: 766px) { .enrollment2016 .plan-selection-toolbar { padding-left: 20px; }
}
.enrollment2016 .plan-selection-toolbar .plan-selection-coverage-tier { text-align: right;
}
.enrollment2016 .plan-selection-toolbar .col { min-height: 1px;
}
.enrollment2016 [id^=filters-modal-] input[id^=submit-filters-],
.enrollment2016 [id^=filters_modal_] input[id^=submit-filters-],
.enrollment2016 [id^=filters-modal-] input[id^=mcx-submit-filters],
.enrollment2016 [id^=filters_modal_] input[id^=mcx-submit-filters] { margin-left: 15px;
}
.enrollment2016 [id^=filters-modal-] .col,
.enrollment2016 [id^=filters_modal_] .col { min-height: 1px;
}
.enrollment2016 .plan-header { background: #4e7991;
}
.enrollment2016 .plan-header a.enrollmentBack { border-left: 1px solid #7697a9; color: #fff; padding-bottom: 13px; padding-top: 14px; vertical-align: top;
}
.enrollment2016 .plan-header a.enrollmentBack:hover { background: #2c6483;
}
.enrollment2016 .plan-header a.enrollmentBack .fi-left-circle { top: .1rem;
}
@media only screen and (max-width: 766px) { .enrollment2016 .plan-header a.enrollmentBack { border-left: 0px; width: auto; }
}
.enrollment2016 .plan-header h1 { border-left: 1px solid #7697a9; color: #fff; display: inline-block; margin: 0; padding: 10px 18px;
}
.enrollment2016 .plan-header h1 .client-text-container { padding-bottom: 0px !important;
}
@media only screen and (max-width: 766px) { .enrollment2016 .plan-header h1 { border-left: 0px; padding-left: 12px; padding-right: 12px; }
}
.enroll.plansearch.enrollment2016 .plan-header { padding-bottom: 0px; padding-top: 0px;
}
.enroll.plansearch.enrollment2016 .plan-header h1 { display: inline-block;
}
.enrollment2016 .plan-header-wrapper.pos-fixed { position: fixed!important; top: 0; width: 100%; z-index: 10000;
}
.enrollment2016 .plan-selection-plan-portlet { margin: 15px 0 15px 0;
}
.enrollment2016 .plan-selection-plan-portlet.current-plan { margin-top: 30px;
}
.enrollment2016.enroll div.benefit-panel.current-plan .benefit-panel-plan-content { margin-top: 30px; padding: 5px 10px;
}
.enrollment2016.enroll div.benefit-panel.current-plan .plan-status { background-color: #44a168; border: 1px solid #44a168; color: #fff;
}
.enrollment2016 .plan-selection-selected-plan { font-weight: bold; position: relative; background: #3e7a2d; color: white; display: table; left: -23px; padding: 0px 17px 4px 10px; font-size: 12px;
}
.enrollment2016 .plan-selection-selected-plan span { font-size: 15px; font-weight: normal; top: 1px; position: relative;
}
.enrollment2016 .plan-selection-selected-plan:before { content: ""; width: 0; height: 0; border-top: 7px solid #305f24; border-left: 8px solid transparent; position: absolute; top: 24px; left: 0;
}
.enrollment2016 .plan-selection-selected-plan:after { content: ""; width: 0; height: 0; border-top: 12px solid transparent; border-right: 5px solid #fff; border-bottom: 12px solid transparent; position: absolute; right: 0; top: 0;
}
.enrollment2016 .plan-selection-selected-plan-alt { color: #3e7a2d; display: block; font-weight: 500; margin-bottom: 15px; float: none; background: transparent; font-size: 14px;
}
.enrollment2016 .plan-selection-selected-plan-alt:before { border: none;
}
.enrollment2016 .plan-selection-selected-plan-alt:after { display: none;
}
.enrollment2016 .compare-table .plan-selection-selected-plan { color: #3e7a2d; display: block; font-weight: 500; margin-bottom: 15px; float: none; background: transparent; font-size: 14px; display: inline-block;
}
.enrollment2016 .compare-table .plan-selection-selected-plan:before { border: none;
}
.enrollment2016 .compare-table .plan-selection-selected-plan:after { display: none;
}
.enrollment2016 .compare-table .plan-selection-selected-plan:before { color: #3e7a2d; content: '\F05A'; display: inline-block; font-size: 22px; height: 20px; line-height: 1px; margin-right: 5px; position: relative; text-align: center; top: 2px; font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 20px; border: none;
}
@media only screen and (max-width: 766px) { .enrollment2016 .plan-selection-selected-plan { display: inline-block; color: #3e7a2d; display: block; font-weight: 500; margin-bottom: 15px; float: none; background: transparent; font-size: 14px; width: 100%; } .enrollment2016 .plan-selection-selected-plan:before { border: none; } .enrollment2016 .plan-selection-selected-plan:after { display: none; }
}
.enrollment2016 #benefit-compare-container .plan-selection-selected-plan { display: inline-block; margin-top: 25px;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .plan-selection-plan-container h3,
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .plan-selection-plan-container h3 { background: url(images/icon-waive-plan.png) 0px 0px no-repeat; line-height: 29px; margin-bottom: 0px; padding-left: 40px;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .plan-rules,
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .plan-rules { background: #f2fbff; padding: 10px;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .SaveDiv,
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .SaveDiv { border-top: 1px solid #d7d6d6; zoom: 1; margin: 20px 0px 10px 0px; padding-top: 20px;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .SaveDiv:before,
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .SaveDiv:before { content: ''; display: block;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .SaveDiv:after,
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .SaveDiv:after { content: ''; display: table; clear: both;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .SaveDiv [class*="btn-"],
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .SaveDiv [class*="btn-"] { float: right; margin-right: 0px;
}
.enrollment2016.enroll .plan-selection-plan-portlet.waive .plan-selection-selected-plan,
.enrollment2016.plansearch .plan-selection-plan-portlet.waive .plan-selection-selected-plan { margin-top: 10px;
}
.enrollment2016 .plan-questions-dialog .ui-dialog-titlebar,
.enrollment2016 .plan-attestation-dialog .ui-dialog-titlebar { display: none;
}
.enrollment2016 .plan-questions-dialog .ui-dialog-buttonset button,
.enrollment2016 .plan-attestation-dialog .ui-dialog-buttonset button { float: right;
}
.enrollment2016 .plan-questions-dialog .ui-dialog-buttonset button.ui-state-hover,
.enrollment2016 .plan-attestation-dialog .ui-dialog-buttonset button.ui-state-hover,
.enrollment2016 .plan-questions-dialog .ui-dialog-buttonset button .ui-widget-content,
.enrollment2016 .plan-attestation-dialog .ui-dialog-buttonset button .ui-widget-content,
.enrollment2016 .plan-questions-dialog .ui-dialog-buttonset button .ui-state-hover,
.enrollment2016 .plan-attestation-dialog .ui-dialog-buttonset button .ui-state-hover { color: #fff;
}
@media only screen and (max-width: 766px) { .enrollment2016 .plan-questions-dialog select, .enrollment2016 .plan-attestation-dialog select { width: 100%; }
}
.enrollment2016 .plan-questions,
.enrollment2016 .plan-attestation { border-top: 1px solid #d2d2d2; padding: 15px; text-align: left;
}
.enrollment2016 .plan-questions .benefit-panel,
.enrollment2016 .plan-attestation .benefit-panel { background: #f2fbff !important; margin-top: 15px!important; padding: 15px;
}
.enrollment2016 .plan-selection-chart { border-top: 1px solid #d2d2d2; padding: 15px 15px 0px 15px;
}
.enrollment2016 .dc-cost-details-breakout { border-bottom: 1px solid #555; border-radius: 0px; color: inherit; margin-bottom: 10px; padding: 0px;
}
.enrollment2016 .dc-cost-details-breakout ul li { list-style: none;
}
.enrollment2016 .dc-cost-details-breakout .cost-details-label,
.enrollment2016 .dc-cost-details-breakout .cost-details-cost { display: block; margin-bottom: 8px; width: auto;
}
.enrollment2016 .dc-cost-details-breakout .cost-details-label { text-align: left;
}
.enrollment2016 .plan-selection-user-text p:empty { display: none;
}
.enrollment2016 .plan-selection-plan-right .dc-cost-details-breakout .cost-details-label,
.enrollment2016 .plan-selection-plan-right .dc-cost-details-breakout .cost-details-cost { display: inline-block; margin-bottom: 8px; width: 50%;
}
.enrollment2016 .plan-filter-result-count { display: inline-block; padding-right: 30px;
}
.enrollment2016.enroll .deps-container-wrapper { width: 100%; position: relative; background: #f2f2f2; border-top: 1px solid #555; margin-top: 30px; margin-bottom: -30px;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] { padding-top: 0px;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check-header { position: absolute; top: -27px;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check-header h3 { display: inline; padding: 2px 14px; color: #fff; border-radius: 3px 3px 0 0; background-color: #555; font-size: 13px;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .col.two,
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .col.three,
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .col.ten { display: inline; width: auto; min-width: 0; float: none;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-ckeckbox { margin-right: 30px;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check { padding: 5px 0 0 0;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check .dependent-name { display: inline;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check .dependents-check-box { display: inline; float: none;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check .dependent-status { line-height: 20px; padding-left: 10px;
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check .dependent-status:before { content: "(";
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] .dependents-check .dependent-status:after { content: ")";
}
.enrollment2016.enroll .deps-container-wrapper [id^="dependentsContainer-"] div.dependents { background: transparent;
}
.enrollment2016.enroll .deps-container-wrapper .dependents-check-add-wrap { float: none;
}
/*------------------------------------ $Plan Search
------------------------------------*/
body.enrollment2016.plansearch .plan-selection-plan-portlet { margin: 0 0 20px 0;
}
body.enrollment2016.plansearch .plan-selection-plan-portlet.current-plan { margin-top: 0px;
}
body.enrollment2016.plansearch .plan-selection-toolbar { margin-bottom: 10px;
}
body.enrollment2016.plansearch .search-accordion-content ul { list-style-type: none; padding: 0; margin: 0;
}
/*------------------------------------ $Plan Compare
------------------------------------*/
body.ee.enroll.one-col.enrollment2016 #plan-compare { width: 100%;
}
/*------------------------------------ $Pretax- post tax question
------------------------------------*/
body.enrollment2016 [id^="allRules-"] .pre-post-tax-selection { background: #fff; border: 1px solid #d2d2d2; border-radius: 4px; min-height: 49px; overflow: visible; position: relative; padding: 0px 10px;
}
/*------------------------------------ $Post-Shop
------------------------------------*/
body.enrollment2016 .post-shop-content { background: #fff; margin-top: 35px; padding: 20px;
}
body.enrollment2016 div[id*="beneficiariesSelection-"] h2.expandSecondary { margin: 0 -20px; padding: 15px 20px 0px 20px;
}
body.enrollment2016 div[id*="beneficiariesSelection-"] h2 { margin-top: 0px;
}
body.enrollment2016 .beneficiaries-selection { margin-top: -10px;
}
/*------------------------------------ $Best Fit
------------------------------------*/
body.enrollment2016 #best-fit-dental { background: #fff; border: 1px solid #d2d2d2; border-radius: 4px; padding: 20px;
}
body.enrollment2016 #best-fit-dental .options { border-top: 1px solid #cdcdcd; margin-top: 30px; padding-top: 30px; text-align: center;
}
body.enrollment2016 #best-fit-dental .return-to-plans { margin-top: 30px; text-align: center;
}
body.enrollment2016 #best-fit-dental .return-to-plans a { display: block; font-size: 15px; text-decoration: none;
}
/*------------------------------------ $Responsive
------------------------------------*/
/* Tablets Only */
/* Tablets and Phones */
@media only screen and (max-width: 1199px) { body.enroll.enrollment2016 div.benefit-panel .benefit-panel-content .benefit-panel-plan-content > div[class*="row"] > .col.eleven { width: 100%; } body.enroll.enrollment2016 div.benefit-panel .benefit-panel-content .row-label { text-align: left; } body.enroll.enrollment2016 div.benefit-panel .benefit-panel-content .plan-detail-item { padding: 0px; } body.enroll.enrollment2016 .your-cost .cost-amount { text-align: left; }
}
/* Phones Only */
@media only screen and (max-width: 766px) { body.enrollment2016.enroll.ee #wrapper { padding: 0px; } body.enrollment2016 .flex-container { display: block; } body.enrollment2016 .enrollment-right-col { border-left: none; padding-left: 0px; padding-top: 20px; } body.enrollment2016 .benefit-panel .plan-type-icon { display: none; } body.enrollment2016 .benefit-panel .benefit-panel-content { margin-left: 0px; } body.enrollment2016 .benefit-panel .benefit-panel-content .benefit-panel-footer { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; } body.enrollment2016 .benefit-panel .benefit-panel-content .benefit-panel-footer .buttons { -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; text-align: left; } body.enrollment2016 .benefit-panel .benefit-panel-content .benefit-panel-footer .buttons [class*="btn-"] { margin-left: 0px !important; } body.enrollment2016.enroll .benefit-panel .benefit-panel-content { margin-left: 0px; } body.enrollment2016.enroll .plan-status { border-radius: 4px 4px 0px 0px; left: 0px; margin-left: 0px; padding: 5px 12px; top: 0px; } body.enrollment2016 .plan-selection-subheader-plancost-toggle { text-align: right; } body.enrollment2016 .plan-selection-plan-portlet.row { padding-bottom: 0px!important; } body.enrollment2016 .plan-selection-plan-portlet.row .plan-selection-plan-container .plan-selection-plan-right.col { padding: 15px 15px 15px 15px; } .responsiveTable th, .responsiveTable tr.header { display: none; } .plan-selection-container div.SaveDiv { padding: 20px; }
}
.enrollment2016 { /* overrides from enrollment.css - need to organize */
}
.enrollment2016 .plan-selection-subheader-plancost-toggle .plan-selection-ee-cost { background-position: right 0px; line-height: 24px;
}
.enrollment2016.ee.enroll #content { margin-bottom: 20px;
}
.enrollment2016.ee.enroll #content + .plan-selection-plan-portlet { border-top: 1px solid #d2d2d2; margin-bottom: 20px; padding-top: 20px;
}
.enrollment2016.enroll .plan-rules .contribution-amount { border-top: 0px;
}
.enrollment2016 .plan-selection-toolbar-links ul li { margin: 0px;
}
.enrollment2016 #wrapper { padding-top: 20px;
}
.enrollment2016 #wrapper.container { padding: 20px 0 0 0;
}
.enrollment2016 .plan-selection-coverage-tier { text-align: right; margin-right: 0px;
}
.enrollment2016 .plan-selection-plan-portlet li { list-style-type: disc;
}
.enrollment2016 .plan-details-tier-cost-col-wrapper li { list-style: none;
}
.enrollment2016 .plan-selection-choose-button { display: block;
}
.enrollment2016 .your-information-nav { margin-bottom: 0px;
}
.enrollment2016 .plan-selection-toolbar-links { margin-top: 0px;
}
.enrollment2016 .plan-selection-plan-container { border-radius: 4px; margin-left: 0px;
}
.enrollment2016 .plan-selection-plan-container.short-name .plan-header-plan-name { display: inline-block; padding-right: 15px; border-right: 1px solid #ccc; margin-right: 15px;
}
.enrollment2016 .plan-selection-plan-container.short-name .plan-selection-plan-details-1 { display: block;
}
.enrollment2016 .plan-selection-plan-container h3 { margin-bottom: 0px;
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { .enrollment2016 .plan-selection-plan-left.col.ten { width: 80%; /* increase width since there is no margin */ } .enrollment2016 .plan-selection-plan-right.col.two { width: 20%; /* increase width since there is no margin */ }
}
.enrollment2016.enroll .compare-plan-status,
.enrollment2016.enroll .plan-status { background-color: #3e7a2d; margin: 0px; padding: 4px 10px; color: #fff; font-size: 14px; top: -27px; left: 3px;
}
.enrollment2016 .plan-selection-container { margin: 0px;
}
.enrollment2016 .plan-selection-container .costs-wrapper { padding: 0px;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] { border-collapse: separate; border-radius: 0px 0px 4px 4px; font-size: 100%; font-weight: 500; z-index: 1001; width: 100%;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] th { background-color: #fff; border: none; border-bottom: 1px solid #ccc; background-image: none; color: #4e7991; font-weight: 500; line-height: 1em; padding: 10px;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] tr { border-bottom: none;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] tr td { padding: 5px 10px !important; font-size: 13px;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] tr td:last-child { text-align: right; width: 64px;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] tr td div[id^="editable-text"] { display: inline-block;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] tr:last-child { border: 1px solid #b7babd;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] tr:last-child td { border-radius: 0px 0px 4px 4px;
}
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] [id^="eeCostPPPlan_"],
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] [id^="eePreCostPPPlan_"],
.enrollment2016 .plan-selection-container .costs-wrapper table[id^="cost-summary_"] [id^="eePostCostPPPlan_"] { font-weight: bold; font-size: 14px;
}
.enrollment2016 .plan-selection-step-content { padding: 15px 0px 0px 0px;
}
.plan-search.enrollment2016 .plan-selection-step-content { padding-top: 0px;
}
.plan-search-col-medicare { padding-top: 29px;
}
@media only screen and (max-width: 766px) { .plan-selection-sidebar { padding: 0px 20px; }
}
.plan-selection-sidebar .enrollment-icon-container { margin-right: auto; margin-left: auto; height: 45px; z-index: 9; margin-bottom: -23px; position: relative;
}
.plan-selection-sidebar .enrollment-icon-container.single-icon { width: 45px;
}
.plan-selection-sidebar .enrollment-icon-container.double-icon { width: 90px;
}
.plan-selection-sidebar > div.sidebar-content { background: #fff; border: 1px solid #d2d2d2; border-radius: 4px; box-sizing: border-box; position: relative; padding: 10px 20px 15px; margin-bottom: 30px;
}
.plan-selection-sidebar > div.sidebar-content > div.search-accordion-content { border-bottom: 1px solid #d2d2d2; padding-bottom: 10px; margin-bottom: 10px;
}
.plan-selection-sidebar > div.sidebar-content .enrollment-icon { height: 25px; width: 25px; background: #3e7a2d; position: absolute; top: 9px; border-radius: 50%; background-size: 45px;
}
.plan-selection-sidebar > div.sidebar-content .enrollment-icon:before { font-size: 15px; line-height: 27px;
}
.plan-selection-sidebar > div.sidebar-content h3 { border-bottom: 1px solid #d2d2d2; padding-bottom: 7px; font-size: 16px; padding-left: 35px;
}
.plan-selection-sidebar > div.sidebar-content a { min-height: 20px; text-align: center; display: block; margin-top: 15px;
}
.plan-selection-sidebar > div.sidebar-content h4 { font-size: 14px; text-align: center;
}
.plan-selection-sidebar > div.sidebar-content input[type="checkbox"],
.plan-selection-sidebar > div.sidebar-content input[type="checkbox"] + label.checkbox-label { font-size: 12px; color: #555; margin: 0;
}
.plan-selection-sidebar #sideBarFAQ a { text-align: left;
}
.plan-selection-sidebar #sideBarProviderSearch .sidebar-prescription-list { margin-bottom: 20px;
}
.plan-selection-sidebar #sideBarProviderSearch .sidebar-prescription-list div { border-bottom: 1px solid #ccc; padding-right: 20px; font-size: 16px; line-height: 28px;
}
.plan-selection-sidebar #sideBarProviderSearch .sidebar-prescription-list div .remove-item { color: #767676; float: right; margin-right: -20px; margin-top: 6px; cursor: pointer;
}
body.enroll ul.filterlist { padding-bottom: 10px;
}
body.enroll ul.filterlist .search-range { color: #3e7a2d; font-size: 12px; font-weight: bold; padding-bottom: 10px; text-align: center; width: 93%;
}
body.enroll ul.filterlist .ui-slider-horizontal { margin-bottom: 7px; width: 83%; /*Changed from 88% so that left handle isn't cut off*/
}
body.enroll ul.filterlist .ui-slider-horizontal .ui-slider-handle { top: -5px;
}
body.enroll ul.filterlist .ui-slider-horizontal .ui-slider-handle:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px;
}
.mapd-info { background-image: url(/css/images/medicare/prescription-icon.png); background-position: 0px 50%; background-repeat: no-repeat; padding-left: 40px;
}
/* spose enrollment question radio group */
body.benefit-enroll_spouse_medicare_attestation h1.page-title { display: none;
}
.spouse-enrollment-question .radio-group tr,
[id^="userMedicareAttestationSelection-"] .radio-group tr { border-bottom: 0 transparent;
}
/* COE panel title */
body.benefit-enroll_conditions_of_enrollment h1.page-title { display: none;
}
body.enroll.ee .ui-dialog { left: 0; right: 0; top: 0; position: absolute !important;
}
body.enroll.ee .ui-dialog h4 { font-size: 14px; font-weight: 500;
}
body.enroll.ee .ui-dialog .row { margin-bottom: 25px;
}
body.enroll.ee .ui-dialog .row .row { margin-bottom: 0;
}
body.enroll.ee .ui-dialog .row .row .col.tablet-full.mobile-full { margin-top: 0!important;
}
body.enroll.ee .ui-dialog.planSelectionLoaderDialog { position: fixed !important;
}
body.enroll.ee.enrollment2016 .ui-dialog.questions-modal { position: fixed!important; top: 40px!important;
}
.enrollment-icon { height: 45px; width: 45px; background: #3e7a2d; position: absolute; top: -10px; border-radius: 50%; background-size: 45px;
}
.enrollment-icon.prescription-icon:before,
.enrollment-icon.physician-icon:before,
.enrollment-icon.bestfit-icon:before,
.enrollment-icon.filter-icon:before,
.enrollment-icon.faq-icon:before { text-align: center; font-size: 32px; color: #fff; width: 100%; display: block; font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.enrollment-icon.prescription-icon:before { content: "\F046";
}
.enrollment-icon.physician-icon:before { content: "\F075";
}
.enrollment-icon.bestfit-icon:before { content: "\F042";
}
.enrollment-icon.filter-icon:before { content: "\F067";
}
.enrollment-icon.faq-icon:before { content: "?"; font-family: "Roboto", helvetica, arial, sans-serif;
}
.container .enrollment-content-container,
.enrollment-content-container { background: #fff; border: 1px solid #d2d2d2; border-radius: 4px; padding: 20px 30px; margin-bottom: 20px;
}
.container .enrollment-content-container .header.with-icon,
.enrollment-content-container .header.with-icon { padding-left: 60px;
}
.container .enrollment-content-container .header.with-icon .enrollment-icon,
.enrollment-content-container .header.with-icon .enrollment-icon { left: 0;
}
.container .enrollment-content-container .accent-column,
.enrollment-content-container .accent-column { background-color: #f1f8fc; padding: 10px 30px 20px; position: relative;
}
.container .enrollment-content-container .accent-column.with-icon,
.enrollment-content-container .accent-column.with-icon { margin-top: 20px; padding-top: 20px;
}
.container .enrollment-content-container .accent-column h2,
.enrollment-content-container .accent-column h2 { text-align: center;
}
.container .enrollment-content-container .accent-column > .enrollment-icon,
.enrollment-content-container .accent-column > .enrollment-icon { position: absolute; top: -20px; left: 46%;
}
.medicare-bestfit-container .medicare-bestfit-options-col .row .seven { font-size: 18px;
}
.medicare-bestfit-container .medicare-bestfit-options-col .row strong { text-decoration: underline;
}
.medicare-bestfit-container .medicare-bestfit-options-col .row:last-child strong { text-decoration: none;
}
.medicare-bestfit-container .medicare-bestfit-options-col select { width: 100%;
}
.medicare-bestfit-container .medicare-bestfit-prescriptions-col { padding: 30px 30px 20px;
}
.medicare-bestfit-container .medicare-bestfit-prescriptions-col h2 { text-align: center; margin-bottom: 20px;
}
.medicare-bestfit-container .medicare-bestfit-prescriptions-col button { margin: 0px auto; display: block;
}
.prescription-list-info { margin: 20px 0;
}
.prescription-list-info h3 { text-transform: uppercase; color: #666; font-size: 14px;
}
.prescription-list-info > p { padding-right: 20px; position: relative; font-size: 13px;
}
.prescription-list-info .remove-pharmacy-ghe { float: right; cursor: pointer; z-index: 1000; position: absolute; right: 0; top: 0; font-size: 14px;
}
ul.prescription-provider-list { margin: 0 0 20px 0; padding: 0;
}
ul.prescription-provider-list li { list-style: none; margin: 0px; padding: 0px; border-bottom: 1px solid #d2d2d2; width: 100%; padding: 10px 0;
}
ul.prescription-provider-list li:first-child { border-top: 1px solid #d2d2d2;
}
ul.prescription-provider-list li .delete-line,
ul.prescription-provider-list li .remove-drug-ghe { float: right; cursor: pointer;
}
.plan-selection-medicare-estimate { background: #F6FDF4; border-top: 1px solid #d2d2d2; text-align: center; font-size: 14px;
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { .plan-selection-medicare-estimate { display: -webkit-box; display: -ms-flexbox; display: flex; }
}
.plan-selection-medicare-estimate .plan-selection-medicare-annual-label { background: #fff;
}
.plan-selection-medicare-estimate .plan-selection-medicare-annual-label > div { margin-top: 20px;
}
.plan-selection-medicare-estimate .medicare-estimate-label { display: block; font-size: 12px; margin-bottom: 5px; text-transform: uppercase;
}
.plan-selection-medicare-estimate .plan-selection-medicare-estimate-label { display: block; font-size: 12px; text-transform: uppercase; margin-bottom: 20px; min-height: 50px; text-align: center;
}
@media only screen and (max-width: 766px) { .plan-selection-medicare-estimate .plan-selection-medicare-estimate-label { min-height: 0; }
}
@media only screen and (min-width: 767px) and (max-width: 1155px) { .plan-selection-medicare-estimate .plan-selection-medicare-estimate-label { min-height: 80px; }
}
.plan-selection-medicare-estimate .plan-selection-medicare-estimate-cost,
.plan-selection-medicare-estimate .plan-selection-medicare-estimate-link { display: block; text-align: center; font-size: 16px; padding-top: 5px;
}
.plan-selection-medicare-estimate .plan-selection-medicare-estimate-cost.annual,
.plan-selection-medicare-estimate .plan-selection-medicare-estimate-link.annual { color: #000; font-size: 24px; padding-top: 0px;
}
.plan-selection-medicare-estimate .plan-selection-medicare-estimate-link { font-size: 14px; text-transform: uppercase; line-height: 23px;
}
.plan-selection-medicare-estimate .plan-selection-medicare-expense { position: relative;
}
.plan-selection-medicare-estimate .plan-selection-medicare-plus,
.plan-selection-medicare-estimate .plan-selection-medicare-plus-right,
.plan-selection-medicare-estimate .plan-selection-medicare-equals { background: #fff; border-radius: 50%; bottom: 15px; color: #c83e0a; height: 20px; position: absolute; text-align: center; width: 20px;
}
@media only screen and (max-width: 766px) { .plan-selection-medicare-estimate .plan-selection-medicare-plus, .plan-selection-medicare-estimate .plan-selection-medicare-plus-right, .plan-selection-medicare-estimate .plan-selection-medicare-equals { text-align: center; position: relative!important; margin: 20px auto 0; display: block; right: auto!important; left: auto; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { .plan-selection-medicare-estimate .plan-selection-medicare-plus, .plan-selection-medicare-estimate .plan-selection-medicare-plus-right, .plan-selection-medicare-estimate .plan-selection-medicare-equals { text-align: center; position: relative!important; margin: 20px auto 0; display: block; right: auto!important; left: auto; }
}
.plan-selection-medicare-estimate .plan-selection-medicare-plus { left: 0;
}
.plan-selection-medicare-estimate .plan-selection-medicare-plus-right,
.plan-selection-medicare-estimate .plan-selection-medicare-equals { right: -20px;
}
.plan-selection-medicare-estimate .row:first-child > .col { padding: 10px 0px 10px 10px; text-align: left;
}
.plan-selection-medicare-estimate .row:last-child > .col { padding-bottom: 10px;
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { .plan-selection-medicare-estimate .row { display: -webkit-box; display: -ms-flexbox; display: flex; }
}
.plan-selection-medicare-estimate .row .col.max { background: #e4f5e1;
}
.plan-selection-medicare-estimate > .col { padding: 0px;
}
.standalone-provider-search #navLinks ul { color: white; list-style-type: none; text-decoration: none;
}
.standalone-provider-search #navLinks ul li { display: inline; margin-right: 10px; text-transform: uppercase;
}
.standalone-provider-search .result-count,
.standalone-provider-search #showMoreRow td { font-size: 18px; padding: 10px 0px;
}
.standalone-provider-search .search-results-table { table-layout: fixed; width: 100%; position: relative;
}
.standalone-provider-search .search-results-table:not(:first-of-type) #resultsHeaderRow { border-bottom: 1px solid #e8e8e8;
}
.standalone-provider-search .search-results-table:not(:first-of-type) #resultsHeaderRow th { border: 0px!important; padding: 0!important;
}
.standalone-provider-search #resultsHeaderRow { border-bottom: 1px solid #ccc; color: #767676; margin: 0px;
}
.standalone-provider-search #resultsHeaderRow th { font-size: 14px; text-align: left; text-transform: uppercase;
}
.standalone-provider-search .result-count + .search-results-table #tName { padding-left: 100px; width: 30%;
}
.standalone-provider-search #tName { padding-left: 8px; width: 30%;
}
.standalone-provider-search .provider-result-wrapper td { padding: 20px 8px; vertical-align: middle;
}
.standalone-provider-search .network-result .row-two:last-child { margin-bottom: 0px;
}
.standalone-provider-search .network-detail-preferred-provider { display: block;
}
.standalone-provider-search .network-detail-preferred-provider img { display: block;
}
.standalone-provider-search .name-avatar-container { background-position: center; display: inline-block; height: 100%; margin: 0px 20px 0px 20px; min-width: 60px;
}
.standalone-provider-search .name-detail-name { color: #037aa9;
}
.standalone-provider-search .distance-detail::before { background-image: url(../css/images/shop/icon-shop-local-pin.png); background-repeat: no-repeat; background-size: 20px; content: ""; display: inline-block; height: 30px; vertical-align: middle; width: 26px;
}
.standalone-provider-search .accent-column { padding-bottom: 10px; margin-bottom: 20px;
}
.standalone-provider-search #myProvidersContainer { margin-bottom: 20px;
}
.standalone-provider-search #result-count { margin-bottom: 10px;
}
.standalone-provider-search .search-results-table { background-color: #fff;
}
.standalone-provider-search .search-results-table .physicianBwt { background: url(/css/images/shop/icon-search-provider-md.svg) no-repeat 20px 10px; background-size: 30px 30px;
}
.standalone-provider-search .search-results-table .individualproviderBwt { background: url(/css/images/shop/icon-search-provider-other.svg) no-repeat 20px 10px; background-size: 30px 30px;
}
.standalone-provider-search .search-results-table .facilityBwt { background: url(/css/images/shop/icon-search-facility.svg) no-repeat 20px 10px; background-size: 30px 30px;
}
.standalone-provider-search .search-results-table .pharmacyBwt { background: url(/css/images/shop/icon-search-pharmacy.svg) no-repeat 20px 10px; background-size: 30px 30px;
}
.standalone-provider-search .search-results-table .dentistBwt { background: url(/css/images/shop/icon-search-dentist.svg) no-repeat 20px 10px; background-size: 30px 30px;
}
.standalone-provider-search .search-results-table .name-container { padding-left: 70px;
}
.standalone-provider-search .card { background-color: #f4f6f8; border: 1px solid #ccc; min-height: 70px; position: inherit; padding: 10px; margin-bottom: 20px;
}
.standalone-provider-search .card:nth-child(3n+1) { margin-left: 0px;
}
.standalone-provider-search .card .name-detail-name { display: inline-block; float: left; overflow: hidden; padding-right: 10px; text-overflow: ellipsis; width: 180px;
}
.standalone-provider-search .card .tier-status { display: inline-block; float: right; margin: 3px 0px;
}
.standalone-provider-search .card .specialty-result { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.standalone-provider-search a.delete { background: url(images/shop/delete.png) 0px 0px no-repeat; background-size: 10px; display: inline-block; float: right; height: 10px; margin: 3px; margin-left: 10px; width: 10px;
}
.standalone-provider-search .addrPhone { background-color: inherit; border: 1px solid #ccc; display: none; left: 0; padding-bottom: 8px; padding-left: 10px; position: absolute; right: 0; top: 88%; Z-index: 6; border-top: 0px;
}
.standalone-provider-search .standalone-provider-search tr.search-result-row.selected { background-color: #f1f8fc;
}
.standalone-provider-search #provider-detail-heading #provider-name-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
.standalone-provider-search #provider-detail-heading .provider-name { font-size: 24px; font-weight: 400;
}
.standalone-provider-search #provider-detail-heading #provider-detail-heading .name-avatar-container { margin: 5px;
}
.standalone-provider-search #provider-detail-heading .physicianAet { background: url(../css/images/shop/icon-search-provider-md.svg) no-repeat 20px 10px;
}
.standalone-provider-search #provider-detail-heading .individualproviderAet { background: url(../css/images/shop/icon-search-provider-other.svg) no-repeat 20px 10px;
}
.standalone-provider-search #provider-detail-heading .facilityAet { background: url(../css/images/shop/icon-search-facility.svg) no-repeat 20px 10px;
}
.standalone-provider-search #provider-detail-heading .pharmacyAet { background: url(../css/images/shop/icon-search-pharmacy.svg) no-repeat 20px 10px;
}
.standalone-provider-search #provider-detail-heading .dentistAet { background: url(../css/images/shop/icon-search-dentist.svg) no-repeat 20px 10px;
}
.standalone-provider-search #provider-detail-heading .physicianAet,
.standalone-provider-search #provider-detail-heading .individualproviderAet,
.standalone-provider-search #provider-detail-heading .facilityAet,
.standalone-provider-search #provider-detail-heading .pharmacyAet,
.standalone-provider-search #provider-detail-heading .dentistAet { background-size: 60px 60px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; padding-left: 100px; min-height: 75px;
}
.standalone-provider-search .tier-status { margin: 0px 0px 10px;
}
.standalone-provider-search .tier-status.in-network:before,
.standalone-provider-search .tier-status.out-of-network:before,
.standalone-provider-search .tier-status.tier1:before,
.standalone-provider-search .tier-status.tier2:before,
.standalone-provider-search .tier-status.tier3:before { background-color: #3e7a2d; border-radius: 50%; color: #fff; content: ""; display: inline-block; height: 18px; margin-right: 5px; margin-top: -3px; padding-top: 2px; text-align: center; vertical-align: middle; width: 20px;
}
.standalone-provider-search .tier-status.in-network:before { background-image: url(/css/images/shop/aetna-icon-check-white.svg); background-repeat: no-repeat; background-position: 5px 6px; background-size: 50%;
}
.standalone-provider-search .tier-status.out-of-network:before { background-color: #c83e0a; content: "!"; font-weight: bold; line-height: 18px;
}
.standalone-provider-search .tier-status.tier1:before { content: "1";
}
.standalone-provider-search .tier-status.tier2:before { background-color: #cf4a18; content: "2";
}
.standalone-provider-search .tier-status.tier3:before { background-color: #cf4a18; content: "3";
}
.standalone-provider-search .tier-status.out-of-network span { color: #c83e0a;
}
.standalone-provider-search .tier-status.tier2 span { color: #c83e0a;
}
.standalone-provider-search .tier-status span { color: #3e7a2d; font-weight: bold;
}
.standalone-provider-search .tier-status em { font-size: 25px; font-style: normal;
}
.standalone-provider-search .tier-status.in-network:before,
.standalone-provider-search .tier-status.tier1:before { background-color: #4e7d2a;
}
.standalone-provider-search .tier-status.in-network:before { background-image: url(/css/images/shop/aetna-icon-check-white.svg);
}
.standalone-provider-search .tier-status.out-of-network:before,
.standalone-provider-search .tier-status.tier3:before { background-color: #d31e11;
}
.standalone-provider-search .tier-status.out-of-network span,
.standalone-provider-search .tier-status.tier3 span { color: #d31e11;
}
.standalone-provider-search .tier-status span { color: #4e7d2a; font-weight: bold;
}
.provider-search-bar select,
#advanced-search-container select,
.provider-search-bar input[type="text"],
#advanced-search-container input[type="text"] { width: 100%; height: 32px;
}
.provider-search-bar select,
#advanced-search-container select { background-position: top 7px right 6px!important;
}
.provider-search-bar input[type="button"],
#advanced-search-container input[type="button"] { margin-top: 16px;
}
@media (max-width: 959px) { .standalone-provider-search { width: 100%; } .standalone-provider-search .search-results-table .provider-search-bar label, .standalone-provider-search .search-results-table #advanced-search-container label { font-size: 18px; } .standalone-provider-search .search-results-table #provider-search-zip { margin: 10px 0px 0px 0px; } .standalone-provider-search .search-results-table p { font-size: 18px; } .standalone-provider-search .search-results-table .shop-plans.aetna-shop .standalone-provider-search #advanced-search { font-size: 28px; } .standalone-provider-search .search-results-table #resultsHeaderRow { display: none; } .standalone-provider-search .search-results-table .name-container { padding: 0; background: none; } .standalone-provider-search .search-results-table tr.provider-result-wrapper { padding-bottom: 60px; } .standalone-provider-search .search-results-table tr.provider-result-wrapper .tier-status:before { font-size: 14px; } .standalone-provider-search .search-results-table tr.provider-result-wrapper .specialty-result::before { background-color: #F5F5F5; content: "Specialty"; display: block; font-size: 24px; margin-bottom: 25px; width: 100%; } .standalone-provider-search .search-results-table tr.provider-result-wrapper .network-result::before { background-color: #F5F5F5; content: "Network Status"; display: block; font-size: 24px; margin-bottom: 25px; width: 100%; } .standalone-provider-search .search-results-table tr.provider-result-wrapper .distance-detail::before { background-color: #F5F5F5; background-image: none; content: "Distance"; display: block; font-size: 24px; margin-bottom: 25px; width: 100%; } .standalone-provider-search .search-results-table tr.provider-result-wrapper td { display: block; font-size: 16px; padding-bottom: 25px; padding-left: 0px; padding-top: 0px; width: 100%; } .standalone-provider-search .search-results-table tr.provider-result-wrapper td .name-avatar-container { display: none; } .standalone-provider-search .search-results-table tr.provider-result-wrapper td div { width: 100%; } .standalone-provider-search .search-results-table tr.provider-result-wrapper td div .name-detail-name { background-color: #eee; font-size: 35px; margin-bottom: 20px; margin-top: 50px; text-align: center; } .standalone-provider-search .search-results-table tr.provider-result-wrapper td .btn-recommended { margin-bottom: 20px; } .standalone-provider-search .search-results-table tr.provider-result-wrapper .name-container div:first-child { background-color: #F5F5F5; font-size: 24px; font-weight: bold; margin-bottom: 25px; margin-top: 50px; text-align: center; }
}
.search-bar-wrapper { display: -webkit-box; display: -ms-flexbox; display: flex;
}
.search-bar-wrapper > div:first-child { position: relative; width: 100%;
}
.search-bar-wrapper input { margin-right: 0;
}
.search-bar-wrapper #searchProvider { border-bottom-right-radius: 0px; border-top-right-radius: 0px; margin-right: 0; width: 100%;
}
.search-bar-wrapper #searchProvider[aria-haspopup="true"] { border-bottom-left-radius: 0px;
}
.search-bar-wrapper #provider-search-zip { background-image: url(/css/images/shop/icon-shop-local-pin.png); background-position: 10px 7px; background-repeat: no-repeat; background-size: 12px; margin-left: -3px; margin-right: .6em; padding-left: 26px;
}
#advanced-search-container .row-two:last-child { margin-bottom: 0px;
}
.search-bar-results-wrapper { background: #fff; border: 1px solid #ccc; border-top: 0; box-shadow: 0 2px 2px 0px #aaa; padding: 16px; position: absolute; top: 36px; width: 100%; z-index: 1;
}
.search-bar-results-wrapper ul { list-style-type: none; margin: 0px; padding: 0px;
}
.search-bar-results > li:not(:last-child) { border-bottom: 1px solid #e8e8e8; margin-bottom: 8px; padding-bottom: 8px;
}
.search-bar-results .fs-larger { color: #767676;
}
.search-bar-results ul.tips { list-style-type: disc; padding-left: 30px;
}
.search-bar-results strong { color: #333;
}
.search-bar-results .separator { margin: 0px 6px;
}
.search-bar-results .distance-detail:before { background-position: center top 4px; background-size: 12px; padding-right: 0px;
}
ul.results a { color: #555; display: block; padding: 0px 8px;
}
ul.results a:active,
ul.results a:focus,
ul.results a:hover { background: #f1f8fc; text-decoration: none;
}
@media only screen and (max-width: 766px) { .search-bar-wrapper { display: block; } .search-bar-wrapper > div { margin-bottom: 12px; } .search-bar-wrapper label, .search-bar-wrapper input { width: 100%; } .search-bar-wrapper #searchProvider { border-radius: 4px; margin-left: 0px; } .search-bar-wrapper #searchProvider[aria-haspopup="true"] { border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; } .search-bar-wrapper #provider-search-zip { margin: 0px; } .search-bar-wrapper .search-bar-results-wrapper { top: 70px; width: auto; } .search-bar-wrapper .search-bar-results ul a { padding: 4px 8px; } .search-bar-wrapper .search-bar-results ul a > span { display: block; } .search-bar-wrapper .search-bar-results .separator { display: none; }
}
.coe-panel { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; box-sizing: border-box; position: relative; padding: 20px 10px; margin-bottom: 30px;
}
.coe-panel .coe-panel-header { border-bottom: 1px solid #d2d2d2; padding-bottom: 10px; margin-bottom: 20px;
}
.coe-panel .plan-type { background: #f6f6f6; border: 1px solid #d2d2d2; border-radius: 4px; min-height: 60px; margin: 0 0 20px 0; overflow: hidden; padding: 18px 20px 0 20px; position: relative; text-align: left; white-space: normal; width: 100%; box-sizing: border-box;
}
.coe-panel .plan-type .header { padding-left: 40px; min-height: 30px;
}
.coe-panel .plan-type .header:before { content: ""; height: 31px; width: 31px; position: absolute; background-image: url(/css/images/life-event-button.png); background-repeat: no-repeat; left: 10px; top: 14px; -webkit-transform: rotate(90deg); transform: rotate(90deg);
}
.coe-panel .plan-type .header h2 { display: block; background-color: transparent;
}
.coe-panel .plan-type .body { display: none; border-top: 1px solid #d2d2d2; border-bottom: 1px solid #d2d2d2; padding-bottom: 10px;
}
.coe-panel .plan-type .body .plan-name-row { font-size: 12px; margin: 20px 0px;
}
.coe-panel .plan-type .body span.plan-title { font-size: 18px; margin: 0px 20px;
}
.coe-panel .plan-type .body .disclaimer-text { background: #fff; max-height: 500px; border: 1px solid #d2d2d2; overflow: auto; padding: 20px;
}
.coe-panel .plan-type .body .radio-group div { margin: 10px 0px;
}
.coe-panel .plan-type h2 { margin: 0;
}
.coe-panel .plan-type .benefit-status { color: #9ea5a6; display: inline-block; font-size: 13px; padding-top: 5px; font-weight: 500;
}
.coe-panel .plan-type .benefit-status.to-do { color: #c83e0a;
}
.coe-panel .plan-type .benefit-status.to-do:before { content: '*'; display: inline-block; margin-right: 2px; vertical-align: middle;
}
.coe-panel .plan-type .benefit-status.completed { color: #3e7a2d;
}
.coe-panel .plan-type .benefit-status.completed:before { background: transparent url(../css/images/sprite-alert-icons.png) 0px -1200px no-repeat; border-radius: 50%; content: ''; display: inline-block; height: 15px; margin-right: 5px; margin-top: -2px; vertical-align: middle; width: 15px;
}
.coe-panel .footer { display: none; padding: 20px 0px;
}
.expanded.coe-panel .footer { display: block;
}
.coe-panel .expanded .header:before { -webkit-transform: rotate(-90deg); transform: rotate(-90deg);
}
.coe-panel .expanded .body,
.coe-panel .expanded .footer { display: block;
}
.billing-preferences { padding: 20px; background-color: #fff; border: 1px solid #e8e8e8;
}
.billing-preferences .radio-group div { margin: 20px 0px;
}
.starrating-wrapper { white-space: nowrap; margin-left: 10px;
}
.starrating-wrapper .planDetailsLabel { margin-right: 8px;
}
.starrating-wrapper .starRating img { position: relative; top: 3px;
}
.starrating-wrapper .starRating .planDetailsLabel { margin-right: 8px;
}
.starrating-wrapper .starRating + a.starRatingScore { margin-left: 8px;
}
.starrating-wrapper a.starRatingScore { font-weight: bold;
}
.starrating-wrapper [class^="tooltip-target"].info:after,
.starrating-wrapper [class^="tooltip-link"].info:after,
.starrating-wrapper span.info:after,
.starrating-wrapper a.info:after { verical-align: inherit;
}
.snowbird-highlight-row { border-top: 40px solid white!important;
}
.snowbird-highlight { background-color: #F5F9FB; padding: 30px 20px 20px; box-sizing: border-box; position: relative; max-width: 508px;
}
.snowbird-highlight:before { background-image: url(/css/images/home-spin.png); height: 60px; width: 60px; background-repeat: no-repeat; position: absolute; left: 50%; margin-left: -30px; top: -30px; content: " "; background-size: 60px;
}
.snowbird-highlight h4 { text-align: center;
}
.medicare-card { max-width: 500px; border-radius: 6px; padding: 10px;
}
.medicare-card legend { background-image: url(/css/images/medicare-card/medicare-card-logo.png), url(/css/images/medicare-card/medicare-card-bg.png); background-repeat: no-repeat, repeat-x; background-position: center, top left; background-size: 50px 50px, contain; height: 60px; border: none; line-height: 60px; font-size: 18px; text-transform: uppercase; padding: 0px; box-sizing: border-box;
}
.medicare-card legend .left,
.medicare-card legend .right { width: 50%; text-align: center;
}
.medicare-card legend .left { float: left; width: 45%; margin-right: 5%;
}
.medicare-card legend .right { float: right;
}
.medicare-card [disabled] { color: black; border: none; padding: 0;
}
.medicare-card tr,
.medicare-card td { margin: 10px 0px 0px;
}
.medicare-card td { padding: 0; margin: 0;
}
.medicare-card td div { margin-right: auto; margin-left: auto; width: 90%; border: 1px solid #e8e8e8 !important; padding: 15px;
}
.medicare-card label { color: #4e7991; display: block; text-align: left!important; font-size: 13px; text-transform: uppercase;
}
.medicare-card input { margin: 0; width: 100%!important;
}
.medicare-card .medicare-beneficiary-row .f-edit,
.medicare-card .medicare-claim-number-row .f-edit,
.medicare-card .medicare-gender-row .f-edit,
.medicare-card .medicare-beneficiary-row .f-label,
.medicare-card .medicare-claim-number-row .f-label,
.medicare-card .medicare-gender-row .f-label { display: block; float: left; width: 100%; padding: 0!important; margin: 0!important;
}
.medicare-card .medicare-beneficiary-row { width: 100%!important; float: left;
}
.medicare-card .medicare-claim-number-row,
.medicare-card .medicare-gender-row { width: 40%!important; float: left; margin-right: 10%;
}
.medicare-card .medicare-claim-number-row label,
.medicare-card .medicare-gender-row label { margin-bottom: 10px;
}
.medicare-card tr[class*='medicare-part-'] { width: 100%;
}
.medicare-card tr[class*='medicare-part-'] .f-label label { color: #000; text-transform: none;
}
.medicare-card tr[class*='medicare-part-'] td { width: 49%!important;
}
.medicare-card .medicare-part-a-row .f-edit:before,
.medicare-card .medicare-part-a-row .f-label:before { text-align: left; display: block; text-transform: uppercase; color: #4e7991; margin: 10px 0;
}
.medicare-card .medicare-part-a-row .f-label:before { content: "is entitled to";
}
.medicare-card .medicare-part-a-row .f-label label { text-decoration: none; color: #000;
}
.medicare-card .medicare-part-a-row .f-edit { width: 100%;
}
.medicare-card .medicare-part-a-row .f-edit:before { content: "effective date";
}
.your-information .MedicareEligibility td.f-edit.radio-group { width: 100%;
}
/*====================================*\ $BENEFIT CALCULATOR OVERRIDES
\*====================================*/
body.enrollment2016.benefit-calculator #dc-start-panel,
body.enrollment2016.benefit-calculator #benefits-landing-container { margin-top: 24px;
}
body.enrollment2016.benefit-calculator .plan-header { background: #fff; border-bottom: 1px solid #e8e8e8;
}
body.enrollment2016.benefit-calculator .plan-header a.enrollmentBack { border-left-color: #e8e8e8; color: #007fac;
}
body.enrollment2016.benefit-calculator .plan-header a.enrollmentBack:hover { background: #eaeff2; color: #00688d;
}
body.enrollment2016.benefit-calculator .plan-header h1 { border-left-color: #e8e8e8; color: #555;
}
/*====================================*\ $ADMIN SIDE OVERRIDES These are overrides for when Enrollment is viewed through Admin > User Admin > Benefit Coverages
\*====================================*/
body.enrollment2016.enroll.ad #column-2 div.column-2-panel { padding: 30px 30px 30px 5px !important;
}
body.enrollment2016.ad #benefits-landing-container .container { overflow: visible;
}
body.enrollment2016.ad #beneficiaries-container { margin-left: 0px;
}
body.enrollment2016.ad #beneficiaries-container .post-shop-content { margin-top: 0px;
}
#mobile-nav { border: 1px solid #d2d2d2; border-radius: 5px; background-color: #fff; position: relative; margin: 15px;
}
#mobile-nav:after { color: #5a849c; content: "\F003"; font-family: tools; font-smoothing: antialiased; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: absolute; right: 10px; top: 10px;
}
#mobile-nav .mobile-nav-list { margin: 0px; padding: 10px;
}
#mobile-nav .mobile-nav-list li { list-style: none; margin: 0px; padding: 0px 10px;
}
#mobile-nav .mobile-nav-list li:not(.selected) { height: 0px; width: 0; overflow: hidden;
}
#mobile-nav .mobile-nav-list.active li:not(.selected) { height: auto; width: auto;
}
#mobile-nav .mobile-nav-list.active li:before { width: 24px; height: 24px; display: inline-block; border-radius: 50%; border: 1px solid #c6c6c6; background-color: #fff; text-align: center; padding: 1px; margin-left: 0px; margin-right: 20px; box-sizing: border-box;
}
#mobile-nav .mobile-nav-list.active li:last-child { height: 20px; min-height: 0; padding-bottom: 3px;
}
#mobile-nav .mobile-nav-list.active li:first-child:before,
#mobile-nav .mobile-nav-list.active li.selected:before,
#mobile-nav .mobile-nav-list.active li.past:before { background-color: #e9640b; border-color: transparent; color: #fff;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list:not(.active) .secondary-nav { padding-left: 0px;
}
#mobile-nav .mobile-nav-list:not(.active) > li:before { display: none;
}
#mobile-nav .mobile-nav-list #enroll-link:before,
#mobile-nav .mobile-nav-list .first-section:before { content: "1";
}
#mobile-nav .mobile-nav-list #review-link:before,
#mobile-nav .mobile-nav-list .second-section:before,
#mobile-nav .mobile-nav-list #enroll-link.second-section:before { content: "2";
}
#mobile-nav .mobile-nav-list #submit-link:before { content: "3";
}
#mobile-nav .mobile-nav-list .third-section:before { content: "3" !important;
}
#mobile-nav .mobile-nav-list .fourth-section:before { content: "4";
}
#mobile-nav .mobile-nav-list .clickable { cursor: pointer;
}
#mobile-nav .mobile-nav-list .secondary-nav { padding-left: 50px;
}
#mobile-nav .mobile-nav-list .secondary-nav.selected { color: #7b7b7b!important;
}
#mobile-nav .mobile-nav-list .secondary-nav.clickable { color: #1e88bf;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list .secondary-nav { padding-left: 70px;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list [class*="-section"] a { font-weight: bold;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li { cursor: default;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li a { color: #555; cursor: default; text-decoration: none;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li a:hover { text-decoration: none;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.selected { color: #e9640b!important; cursor: default; text-decoration: none!important;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.selected a { color: #e9640b!important; cursor: default; text-decoration: none!important;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.selected a:hover { text-decoration: none; color: #555; cursor: default;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.clickable a,
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.past a { color: #555;
}
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.clickable a:hover,
body:not(.aetna-shop) #mobile-nav .mobile-nav-list li.past a:hover { color: #e9640b; text-decoration: none; cursor: pointer;
}
.previous-year-contribution { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; background-clip: padding-box; margin-bottom: 24px; padding: 10px; text-align: center;
}
.previous-year-contribution span { font-size: 18px; color: #44a96d;
}
#medicareDrugWindow > .remove-item { position: absolute; right: 20px; top: 20px; cursor: pointer!important; z-index: 1000;
}
#medicareDrugWindow > .remove-item:before { font-size: 20px; cursor: pointer;
}
#medicareDrugWindow label { display: block; margin-bottom: 5px;
}
#medicareDrugWindow select,
#medicareDrugWindow input[type="text"] { width: 50%;
}
#medicareDrugList .drug-list-item { margin-bottom: 20px;
}
#medicareDrugList .drug-list-item .remove-drug,
#medicareDrugList .drug-list-item .remove-drug-ghe { display: inline-block; float: right; font-size: 20px; height: 20px; width: 20px; cursor: pointer; margin-top: 10px; z-index: 1000;
}
#medicareDrugList .drug-list-item h2 { text-align: left;
}
#medicareDrugList .drug-list-item .value { margin-right: 30px; font-size: 18px;
}
.pharmacy-search-container .container .enrollment-content-container { background: #fff; border: 1px solid #d2d2d2; border-radius: 4px; padding: 20px 30px 0px; margin-bottom: 20px;
}
.pharmacy-search-container .container .enrollment-content-container .header input[type="text"] { width: 80px; height: 30px; line-height: 20px; font-size: 14px; text-align: center;
}
.pharmacy-search-container .pharmacy-search-results { height: 400px; margin: 0 -30px !important; width: auto; overflow: hidden;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address-col { overflow: auto; height: 400px;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address-col .message-description { margin-left: 2.5%; max-width: 90%; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%);
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address { min-height: 100px; background-image: url(/css/images/shop/icon-shop-local-pin.png); background-repeat: no-repeat; background-position: 0 0; padding-left: 30px; background-size: 20px;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address div { font-size: 12px;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address div.pharm-name { font-size: 14px;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-select { text-align: center; padding-top: 20px;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address-col > .row { padding: 10px; border-bottom: 1px solid #ddd;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address-col > .row.selected { color: #fff; background-color: #2C6E9F;
}
.pharmacy-search-container .pharmacy-search-results .pharmacy-search-address-col > .row:first-child { border-top: 1px solid #ddd;
}
.pharmacy-search-container .pharmacy-search-results #pharmacyMap { width: 68%; margin-left: 0%; height: 400px;
}
@media only screen and (min-width: 767px) and (max-width: 959px) { .pharmacy-search-container .pharmacy-search-results .tablet-six:last-child { width: 51%; margin-left: 0%; }
}
.pharmacy-search-container .pharmacy-search-results #pharmacyAddressList.no-results { padding: 30px; width: 100%; height: auto;
}
.pharmacy-search-container .pharmacy-search-results #pharmacyAddressList.no-results + #pharmacyMap { display: none;
}
.pharmacies-added-list > div { margin-bottom: 20px;
}
@media only screen and (min-width: 960px) and (max-width: 1128px) { .pharmacies-added-list > div:nth-child(4n + 1) { margin-left: 0px; }
}
@media only screen and (min-width: 767px) and (max-width: 959px) { .pharmacies-added-list > div:nth-child(4n + 1) { margin-left: 0px; }
}
.pharmacies-added-list .pharmacy-item { background-color: #F2F2F2; color: #666; border: 1px solid #ddd; padding: 12px; font-size: 12px;
}
.pharmacies-added-list .pharmacy-item .pharm-name { color: #007fac; font-size: 16px;
}
.pharmacies-added-list .pharmacy-item .remove-pharmacy,
.pharmacies-added-list .pharmacy-item .remove-pharmacy-ghe { display: inline-block; float: right; font-size: 17px; height: 17px; width: 17px; cursor: pointer; z-index: 1000;
}
#prescriptionSearchBarContainer label { display: block;
}
#prescriptionSearchBarContainer input { width: 100%; height: 45px; font-size: 18px;
}
.enrollment2016 .ui-autocomplete { padding: 2px 6px;
}
.drx-coverage > div { vertical-align: middle;
}
.drx-coverage > div label { display: inline-block !important; width: 5%!important; margin-bottom: 10px;
}
.drx-coverage > div > div { background-color: #fff; padding: 10px 20px; border: 1px solid #e8e8e8; display: inline-block; width: 85%; box-sizing: border-box; margin: 5px 0;
}
.drx-coverage > div > div .fi-user { height: 35px; width: 35px; display: inline-block; background-color: #007fac; color: #fff; border-radius: 50%; font-size: 25px; position: relative;
}
.drx-coverage > div > div .fi-user:before { position: absolute; top: 5px; text-align: center; font-size: 22px; width: 100%;
}
.drx-coverage > div > div span:not(.fi-user) { display: inline-block;
}
.drx-coverage > div > div span:not(.fi-user) > span { display: block;
}
.drx-coverage > div > div .user-info { font-size: 16px; font-weight: bold; margin-left: 20px;
}
.drx-coverage > div > div .user-info span { font-size: 14px; font-weight: normal;
}
#medicareBestFitContainer .medicare-calculator-col { margin-bottom: 20px;
}
#medicareBestFitContainer .medicare-calculator-label { font-size: 16px; display: inline-block; margin-bottom: 10px;
}
.drxChartContainer { background: #fff; border: 1px solid #d7e4d5; display: -webkit-box; display: -ms-flexbox; display: flex; text-align: center; margin-bottom: 80px!important;
}
.drxChartContainer .fi-times-skinny { float: right; margin: 20px;
}
.drxChartContainer #coverageGapHighChart .highcharts-container { width: 100%!important;
}
a.toggle-drx-cost-chart { text-decoration: underline;
}
.emma-total-cost-breakdown.ui-widget-content { position: relative!important;
}
.ui-widget-content #preEstimateExplainThisModalForMedicare a { color: #007fac; cursor: pointer; text-decoration: none;
}
.ui-widget-content #preEstimateExplainThisModalForMedicare a:hover { text-decoration: underline;
}
#preEstimateExplainThisModalForMedicare a.plan-selection-emma-estimate-cost:empty,
#preEstimateExplainThisModalForMedicare span.plan-selection-emma-estimate-cost:empty { display: none;
}
.plan-selection-setup .checkbox-masked { display: -ms-flexbox; display: -ms-flex; display: -webkit-box; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap;
}
.plan-selection-setup .checkbox-masked .col:not(:last-child) { margin-bottom: 8px;
}
.plan-selection-setup .checkbox-masked .col:nth-child(5n+5) { margin-left: 0;
}
.plan-selection-setup .medium-box .dependent-name { margin-right: .5rem;
}
.plan-selection-setup .setup-number { border-right: 1px solid #ccc; margin-right: 1rem; padding-right: .5rem;
}
.plan-selection-setup .checkbox-masked { display: -ms-flexbox; display: -ms-flex; display: -webkit-box; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap;
}
.plan-selection-setup .checkbox-masked .col:not(:last-child) { margin-bottom: 8px;
}
.plan-selection-setup .checkbox-masked .col:nth-child(5n+5) { margin-left: 0;
}
.plan-selection-setup .medium-box .dependent-name { margin-right: .5rem;
}
.plan-selection-setup .setup-number { border-right: 1px solid #ccc; margin-right: 1rem; padding-right: .5rem;
}
.plan-highlight { background: yellow;
}

Highlight table - Script Codes JS Codes

var showPCP;
var showBeneficiaries;
var showCOB;
var showCOE;
var showBillingPreferences;
var currentUserID;
var bptUsersEligibility = {};
var drxDosagePackages = {};
var medicarePlanSelectedOrWaived = false;
var MedicareExchangePlanInfo = { planInfo: undefined, userHasDrugBenefits: function () { var hasDrugBenefits = false; var currentlySelectedPlanIDs = getEmployeeSelectedPlanIDs(); if (currentlySelectedPlanIDs.length > 0) { $.each(currentlySelectedPlanIDs, function () { var planInfo = MedicareExchangePlanInfo.getPlanInfoForPlan(parseInt(this)); if (planInfo != undefined) { if (planInfo.HasDrugBenefits) { hasDrugBenefits = true; return; } } }); } return hasDrugBenefits; }, userHasMedicalBenefits: function () { var userHasMedicalBenefits = false; var currentlySelectedPlanIDs = getEmployeeSelectedPlanIDs(); if (currentlySelectedPlanIDs.length > 0) { $.each(currentlySelectedPlanIDs, function () { var planInfo = MedicareExchangePlanInfo.getPlanInfoForPlan(parseInt(this)); if (planInfo != undefined) { if (planInfo.HasMedicalBenefits) { userHasMedicalBenefits = true; return; } } }); } return userHasMedicalBenefits; }, userEligibleForMedicalOnlyBenefits: function() { var eligibleForMedicalOnlyBenefitsYN = false; if (this.planInfo != undefined) { eligibleForMedicalOnlyBenefitsYN = $.grep(this.planInfo, function (e) { return e.HasMedicalBenefits && !e.HasDrugBenefits }).length > 0; } return eligibleForMedicalOnlyBenefitsYN; }, userEligibleForDrugOnlyBenefits: function () { var eligibleForDrugOnlyBenefitsYN = false; if (this.planInfo != undefined) { eligibleForDrugOnlyBenefitsYN = $.grep(this.planInfo, function (e) { return e.HasDrugBenefits && !e.HasMedicalBenefits }).length > 0; } return eligibleForDrugOnlyBenefitsYN; }, userCanHaveOtherDrugs: function () { var canHaveOtherDrugs = true; var currentlySelectedPlanIDs = getEmployeeSelectedPlanIDs(); if (currentlySelectedPlanIDs.length > 0) { $.each(currentlySelectedPlanIDs, function () { if (!MedicareExchangePlanInfo.planAllowsOtherDrugCoverage(this)) { canHaveOtherDrugs = false; return; } }); } return canHaveOtherDrugs; }, userSelectedPlanIDsToBeReplacedByNewCoverage: function (planID, benefitPlanTypeID) { var planIDs = []; var currentlySelectedPlanIDs = getEmployeeSelectedPlanIDs(); var userCanHaveOtherDrugs = this.userCanHaveOtherDrugs(); var userHasDrugs = this.userHasDrugBenefits(); var planInfo = this.getPlanInfoForPlan(planID); if (currentlySelectedPlanIDs.length > 0) { $.each(currentlySelectedPlanIDs, function () { if (parseInt(this) > 0) { if (parseInt(this) != parseInt(planID)) { if ((planInfo.HasDrugBenefits && !userCanHaveOtherDrugs) || (userHasDrugs && !planInfo.CanHaveOtherDrugBenefits) || MedicareExchangePlanInfo.getPlanInfoForPlan(this).BenefitPlanTypeID == parseInt(benefitPlanTypeID)) { planIDs.push(parseInt(this)); } } } }); } return planIDs; }, isPlanCombinationValid: function (planID) { var selectedPlanIds = getEmployeeSelectedPlanIDs(); var planInfo = this.getPlanInfoForPlan(planID); if (selectedPlanIds == undefined || selectedPlanIds.length == 0) { return true; } else if (selectedPlanIds.length == 1 && this.getPlanInfoForPlan(selectedPlanIds[0]).BenefitPlanTypeID == planInfo.BenefitPlanTypeID) { return true; } else if ($.inArray(parseInt(planID), selectedPlanIds) > -1) { return true; } else if (this.userHasDrugBenefits() && planInfo.CanHaveOtherDrugBenefits) { return true; } else if (planInfo.HasDrugBenefits && this.userCanHaveOtherDrugs()) { return true; } return false; }, planAllowsOtherDrugCoverage: function (planID) { var planInfo = this.getPlanInfoForPlan(parseInt(planID)); if (planInfo != undefined) { return planInfo.CanHaveOtherDrugBenefits; } return false; }, getPlanInfoForPlan: function (planID) { var planInfo = $.grep(this.planInfo, function (e) { return e.PlanID == parseInt(planID); }); if (planInfo != undefined) { return planInfo[0]; } else { return undefined; } }
}
function getMCXMissingCoverageModal(MCXOptions) { if ((!MCXOptions.HasMedicalBenefits && MCXOptions.UserEligibleForMedicalOnlyBenefits) || (!MCXOptions.HasDrugBenefits && MCXOptions.CanHaveOtherDrugBenefits && MCXOptions.UserEligibleForDrugOnlyBenefits)) { $.ajax({ type: 'GET', url: '/api/Medicare/GetMissingCoverageDialog', data: { hasMedicalCoverage: MCXOptions.HasMedicalBenefits, hasDrugCoverage: MCXOptions.HasDrugBenefits }, dataType: 'html', async: true, success: function (msg) { var dialogButtons = [ { text: $(msg).find('#no-btn').val(), click: function () { $('#MCXMissingCoverageDialog').dialog("close"); if (!MCXOptions.HasDrugBenefits && MCXOptions.CanHaveOtherDrugBenefits) { $('#confirmBenefitType-209').removeClass('hidden'); } } } ]; if (MCXOptions.HasMedicalBenefits) { var yesBtn = { text: $(msg).find('#yes-btn').val(), click: function () { $('#MCXMissingCoverageDialog').dialog("close"); $('.pdp-btn').click(); } }; dialogButtons.push(yesBtn); } else { var maBtn = { text: $(msg).find('#ma-btn').val(), click: function () { $('#MCXMissingCoverageDialog').dialog("close"); $('.ma-btn').first().click(); } }; var msBtn = { text: $(msg).find('#ms-btn').val(), click: function () { $('#MCXMissingCoverageDialog').dialog("close"); $('.med-supp-btn').eq(1).click(); } }; dialogButtons.push(maBtn); dialogButtons.push(msBtn); } $(msg).dialog({ resizable: false, autoOpen: true, modal: true, width: 825, height: 'auto', closeOnEscape: false, appendTo: "#frmMaint", title: $(msg).find('#modal-title').val(), buttons: dialogButtons, create: function (event, ui) { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-default btn-large'); $(this).dialog('widget').find('.ui-dialog-buttonset button').eq(1).addClass("btn-cta"); $(this).dialog('widget').find('.ui-dialog-buttonset button').eq(2).addClass("btn-cta"); $('#MCXMissingCoverageDialog').find('.mcx-modal-texts').remove(); }, close: function () { $(this).dialog("destroy"); } }); } }); }
}
function initializeBPTUsersEligibility() { var bpt; $('input[id^=txtUsersEligiblePlans_]').each(function () { bpt = parseInt(this.id.split('_')[1]); bptUsersEligibility[bpt] = $.parseJSON($(this).val()); bptUsersEligibility[bpt].currentCostUserID = ""; });
}
function initializeMedicareExchangePlanInfo() { if ($('input[id^=txtMedicareExchangePlanInfo_]').length > 0) { if (typeof MedicareExchangePlanInfo.planInfo === "undefined") { MedicareExchangePlanInfo.planInfo = []; } $('input[id^=txtMedicareExchangePlanInfo_]').each(function () { $.each($.parseJSON($(this).val()), function () { MedicareExchangePlanInfo.planInfo.push(this); }); });
}
}
$(document).ready(function () { if (typeof initializeBPTUsersEligibility === "function") { initializeBPTUsersEligibility(); }
});
$(document).ready(function () { if (typeof initializeMedicareExchangePlanInfo === "function") { initializeMedicareExchangePlanInfo(); }
});
function enrollmentButtonSaving(saveButtonEntity) { saveButtonEntity.val(jsDictionary["SAVING"] + ' ...'); saveButtonEntity.attr('disabled', 'disabled');
}
function enrollmentContinueButtonRestore(saveButtonEntity, restoreText) { saveButtonEntity.removeAttr("disabled"); saveButtonEntity.val(restoreText);
}
function scrollPlanHeader() { if ($(".enrollment2016 .plan-header-wrapper:visible").length > 0) { var planHeaderTopPos = $('.plan-header-wrapper:visible').offset().top; var planHeader; $(window).on('scroll ready resize', function () { planHeader = $('.enrollment2016 .plan-header-wrapper:visible'); if ((!isAskEmmaEnabled && !isBestFitEnabled) || ((isAskEmmaEnabled || isBestFitEnabled) && !askEmma.isInterviewOpen && !askEmma.calculatorOpen)) { var planHeaderHeight = planHeader.outerHeight(); if ($(window).width() > 767) { if ($(window).scrollTop() > planHeaderTopPos) { planHeader.addClass("pos-fixed"); planHeader.parent().css({ 'margin-top': planHeaderHeight, 'min-height': '1px' }); } else { planHeader.removeClass("pos-fixed"); planHeader.parent().css({ 'margin-top': '', 'min-height': '' }); } } } else { planHeader.removeClass("pos-fixed"); planHeader.parent().css({ 'margin-top': '', 'min-height': '' }); } }); }
}
function goToLandingPage(planTypeID, animationOff, showConfirmation, questionsModalShowing, MCXOptions) { $(document).ready(function () { //adobe analytics if (typeof analytics !== 'undefined' && typeof _satellite !== 'undefined') { //emma on if ($("#askemma-" + planTypeID).length > 0) { analytics.audio_state = !askEmma.sessionData.global.isMuted ? "Yes" : "No"; } var decisionSupportVersion = ""; if (isAskEmmaEnabledForThisBenefitPlanType(planTypeID)) { decisionSupportVersion = "ASKEMMA"; } else if (isBestFitEnabledForThisBenefitPlanType(planTypeID)) { decisionSupportVersion = "BESTFIT"; } else { decisionSupportVersion = "NONE"; } analytics.feature_present_decision_support = planTypeID + "_" + decisionSupportVersion + "|"; _satellite.track('EnrollmentYourBenefits'); } if ($("#medicareFooterCompliance").length) { $("#medicareFooterCompliance").removeClass("hidden"); $.ajax({ type: 'GET', url: "/api/Medicare/EnrolledOnlyInMedSupp", data: '', dataType: "text", success: function (data) { if (data == '"1"') { $("#compliance-text").hide(); $("#medSupMarketingID").show(); } else { $("#compliance-text").show(); $("#medSupMarketingID").hide(); } } }); } if ($("#medicarePageLastUpdatedContainer").length) { setMedicarePageLastUpdatedText("DATE_LAST_UPDATED_LANDING_PAGE_TEXT"); } }); $(".plan-selection-container").hide(); //uncheck compare plans to make the plan compare drawer go away $('[id^="chkComparePlanID"]').each(function () { if ($(this).is(':checked')) $(this).click() }); if (isBestFitEnabled || isAskEmmaEnabled) { askEmma.gheSuccessfulCallMade = false; if (isAskEmmaEnabledForThisBenefitPlanType(planTypeID) || isBestFitEnabledForThisBenefitPlanType(planTypeID)) { askEmma.closeEmmaFeatures(); } askEmma = AskEmmaFactory.getAskEmma("", "Generic", ""); if (typeof isAskEmmaEnabled !== 'undefined' && isAskEmmaEnabled) { if (!askEmma.sessionData.global.isDataLoaded) { showPlanSelectionLoader(); var request = askEmma.getGlobalSessionDataFromDB(); request.always(function () { hidePlanSelectionLoader(); loadEmmaMuteSetting(); if (!questionsModalShowing) { //for now, put medicare group session test here. may build into existing emma function if (typeof aetnaMedicareEnabledYN !== 'undefined' && aetnaMedicareEnabledYN) { askEmma.PlayMedicareGroupLandingPageAudio(medicarePlanSelectedOrWaived); medicarePlanSelectedOrWaived = false; } else { askEmma.playLandingPageAudio(); } } }); } else { if (!questionsModalShowing) { //for now, put medicare group session test here. may build into existing emma function if (typeof aetnaMedicareEnabledYN !== 'undefined' && aetnaMedicareEnabledYN) { askEmma.PlayMedicareGroupLandingPageAudio(medicarePlanSelectedOrWaived); medicarePlanSelectedOrWaived = false; } else { askEmma.playLandingPageAudio(); } } } setupLandingPageGenericToolbar(); } } if (!questionsModalShowing) { medicarePlanSelectedOrWaived = false; } if ($("#benefits-landing-container").is(":visible")) { animationOff = true; } $("#plan-compare").hide(); $("#benefits-landing-container, #nav-subnavWrapper").show(); if (isDCEnabled()) { setDCProgressBar(); } if ($('[id=confirmBenefitType-209][userid]').length > 0 && !$('[id=confirmBenefitType-209][userid]').hasClass("benefit-ok")) { $('#confirmBenefitType-209').addClass('hidden'); } //animate if (!animationOff) { $("#benefits-container-2016").css('overflow', 'hidden'); $("#benefits-landing-container .container > .row").css('left', '110%'); $("#benefits-landing-container .container > .row").animate({ 'left': 0 }, 400, function () { $("#benefits-container-2016").css('overflow', 'visible'); initMobileNav(); if (typeof MCXOptions !== "undefined" && MCXOptions.OpenMissingCoverageModal) { getMCXMissingCoverageModal(MCXOptions); } }); if ((showConfirmation != false) && planTypeID) { window.scrollTo(0, $("#confirmBenefitType-" + planTypeID).offset().top - 20); setTimeout(function () { $(window).scroll(); }, 800, function () { initMobileNav(); }); } } else { $("#benefits-container-2016").show(); if (typeof MCXOptions !== "undefined" && MCXOptions.OpenMissingCoverageModal) { getMCXMissingCoverageModal(MCXOptions); } } if (typeof Pagination !== "undefined" && $('.plan-pagination-control').length > 0) { if (!isNaN(parseInt(planTypeID))) { Pagination.hidePaginationControls(parseInt(planTypeID)); } } $('#plans-costs-pagination-loader-' + planTypeID).remove(); $(".medicare-tabs-container").hide(); if (typeof bptUsersEligibility != 'undefined' && typeof MedicareExchangePlanInfo != 'undefined' && typeof MedicareExchangePlanInfo.planInfo != 'undefined') { showHideMCXMedicalDrugMessages(); }
}
function isMedicareExchangeMode() { return $('#MedicareExchangeModeYN').val() == "True";
}
//gets the page last updated text for the given BPT
//called from either plan details or plan summary
function setMedicarePageLastUpdatedTextByBPT(bpt, planSummaryYN) { var enumName = ""; if (bpt == "4") { enumName = planSummaryYN ? "DATE_LAST_UPDATED_DENTAL_SUMMARY_TEXT" : "DATE_LAST_UPDATED_DENTAL_DETAILS_TEXT"; } else if (bpt == "5") { enumName = planSummaryYN ? "DATE_LAST_UPDATED_VISION_SUMMARY_TEXT" : "DATE_LAST_UPDATED_VISION_DETAILS_TEXT"; } if (enumName !== "") { setMedicarePageLastUpdatedText(enumName); }
}
//gets the page last updated text for the given plan network type
//called from either plan details or plan summary function setMedicarePageLastUpdatedTextByNetworkType(networkType, planSummaryYN) { var enumName = ""; if (networkType == "18") { enumName = planSummaryYN ? "DATE_LAST_UPDATED_MA_SUMMARY_TEXT" : "DATE_LAST_UPDATED_MA_DETAILS_TEXT"; } else if (networkType == "19") { enumName = planSummaryYN ? "DATE_LAST_UPDATED_MS_SUMMARY_TEXT" : "DATE_LAST_UPDATED_MS_DETAILS_TEXT"; } else if (networkType == "20") { enumName = planSummaryYN ? "DATE_LAST_UPDATED_PDP_SUMMARY_TEXT" : "DATE_LAST_UPDATED_PDP_DETAILS_TEXT" } if (enumName !== "") { setMedicarePageLastUpdatedText(enumName); }
}
function setMedicarePageLastUpdatedText(enumName){ var pageLastUpdatedData = $.grep($.parseJSON($("#txtMedicarePageLastUpdatedData").val()), function (item) { return item.Name == enumName}); if (pageLastUpdatedData.length > 0) { if (pageLastUpdatedData[0].Text === "") { $("#medicarePageLastUpdatedContainer").hide(); } else { $("#medicarePageLastUpdatedContainer").html(pageLastUpdatedData[0].Text); $("#medicarePageLastUpdatedContainer").show(); } }
}
function showHideMCXMedicalDrugMessages() { var userIDs = getIndividualEnrollmentUsers(); if (userIDs.length > 0) { for (var i = 0; i < userIDs.length; i++) { var hasMedicalCoverage = false; var hasRxCoverage = false; var userSessionInfo = getIndividualEnrollmentsByUserID(userIDs[i]); if (typeof userSessionInfo != 'undefined' && userSessionInfo.length > 0) { for (var j = 0; j < userSessionInfo.length; j++) { var planInfo = $.grep(MedicareExchangePlanInfo.planInfo, function (e) { return e.PlanID == userSessionInfo[j].currentlySelectedPlanID; }); if (typeof planInfo != 'undefined' && planInfo.length > 0) { if (planInfo[0].HasMedicalBenefits) { hasMedicalCoverage = true; } if (planInfo[0].HasDrugBenefits) { hasRxCoverage = true; } } } $('[id^=confirmBenefitType-][userID=' + userIDs[i] + ']').each(function () { if (hasMedicalCoverage && hasRxCoverage) { $(this).find('.no-rx-text,.no-medical-text').hide(); } else { $(this).find('.no-rx-text,.no-medical-text').show(); } }); } } }
}
function chooseWaive(button, planID, planTypeID, landingWaiveButton, userID) { if (typeof userID != "undefined") { currentUserID = userID; } enrollmentButtonSaving($(button)); if (landingWaiveButton != undefined) { enrollmentButtonSaving($(landingWaiveButton)); } $("input[name='txtPlanID_" + planTypeID + "'][value^='" + planID + ":']")[0].click(); $('#planSelection-' + planTypeID + ' .plan-selection-plan-portlet:not(.waive) .select_plan').val(jsDictionary['SELECT']); $('#planSelection-' + planTypeID).find('.plan-selection-selected-plan').remove(); $('#planSelection-' + planTypeID + ' .plan-selection-plan-portlet .select_plan').show(); $("[id^=rulesContainer_" + planTypeID + "_]").slideUp("slow"); $('#planSelection-' + planTypeID).find("#details_container_" + -9999).find('.col .eight h3').after('<div class="plan-selection-selected-plan"><span class="fi fi-check-circle fi-before"></span>' + jsDictionary['SELECTED'] + '</div>'); //adobe analytics if (typeof analytics !== 'undefined' && typeof _satellite !== 'undefined') { //emma on if ($("#askemma-" + planTypeID).length > 0) { analytics.audio_state = !askEmma.sessionData.global.isMuted ? "Yes" : "No"; _satellite.track('AskEmmaViewPlansWaive'); } } if ($("#txtAnalyticsEnabled").val() == "Y") { if (landingWaiveButton != undefined) { if (planID == "-9999") { analyticsLogEnrollmentBPTEvent(planTypeID, enumAnalyticsEventID['WAIVE_COVERAGE_LANDING'], null); } else { analyticsLogEnrollmentBPTEvent(planTypeID, enumAnalyticsEventID['WAIVE_PLAN_LANDING'], null); } } else { if (planID == "-9999") { analyticsLogEnrollmentBPTEvent(planTypeID, enumAnalyticsEventID['WAIVE_COVERAGE_BPT'], null); } else { analyticsLogEnrollmentBPTEvent(planTypeID, enumAnalyticsEventID['WAIVE_PLAN_BPT'], null); } } } setTimeout(function () { if (showWaiveQuestionOnly(planTypeID, planID)) { getQuestions(planID, planTypeID, true, $(button), jsDictionary['KEEP_SELECTION']); } else { savePlanSelection(planTypeID, true, null, false, $(button), jsDictionary['KEEP_SELECTION'], $(landingWaiveButton), undefined, undefined, true); } }, 0);
}
function waiveApollo() { var planTypeID = 206; //hard-coded for now if ($("#apolloSplash").attr("showfirsttime") == 'true') { chooseWaive(null, -9999, planTypeID); $("#apolloSplash").attr("showfirsttime", "false"); showNextIntroPanel("apolloSplash"); } else { toggleApolloPanel(); }
}
function toggleApolloPanel() { $("#apolloSplash").toggle(); $("#benefits-container, #benefits-container-2016").toggle();
}
function startEnrollmentIntroVideo() { $(".emma-toolbar").hide(); if ($("#introVideoPlayer").length > 0) { askEmma.playEmmaVideo('introVideoPlayer', $("#txtEnrollmentVideoPath").val(), false, "", $("#txtEnrollmentVideoImage").val()); } else { $("#enrollmentIntroIframePlayer").attr('src', $("#txtEnrollmentVideoPath").val()); } //adobe analytics if (typeof analytics !== 'undefined' && typeof _satellite !== 'undefined') { _satellite.track('EnrollmentIntroVideoPlay'); } $("#introVideoPlayerContinue").click(function () { if ($("#introVideoPlayer").length > 0) { var player = flowplayer($("#introVideoPlayer")); if (player.playing) { player.stop(); } } else { $("#enrollmentIntroIframePlayer").attr('src', ""); } showNextIntroPanel("enrollment-intro"); });
}
function userHasInvalidMCXPlanCombination(planID) { var invalid = false; if ($('[name^=medicareTab]').length > 0) { if (typeof MedicareExchangePlanInfo.planInfo !== "undefined" && !$.isEmptyObject(MedicareExchangePlanInfo.planInfo) && MedicareExchangePlanInfo.planInfo.length > 0) { if (!MedicareExchangePlanInfo.isPlanCombinationValid(planID)) { invalid = true; } } } return invalid;
}
function choosePlan(button, planID, planTypeID, planConfirmedFromDialog) { if ($("#compliance-text").length) { $("#compliance-text").show(); } if ((planConfirmedFromDialog == undefined || !planConfirmedFromDialog) && userHasInvalidMCXPlanCombination(planID)) { $.ajax({ type: 'GET', url: '/api/Medicare/GetInvalidPlanCombinationDialog', data: '', dataType: 'html', async: false, success: function (msg) { $(msg).dialog({ dialogClass: "no-close", resizable: false, autoOpen: true, modal: true, width: 600, height: 'auto', closeOnEscape: false, appendTo: "#frmMaint", title: $(msg).find('#modal-title').val(), buttons: [ { text: $(msg).find('#no-btn').val(), click: function () { $('#MCXInvalidPlanCombinationDialog').dialog("close"); goToLandingPage(planTypeID, false, false, false); } }, { text: $(msg).find('#yes-btn').val(), click: function () { $('#MCXInvalidPlanCombinationDialog').dialog("close"); $.each(MedicareExchangePlanInfo.userSelectedPlanIDsToBeReplacedByNewCoverage(planID, planTypeID), function () { var planInfo = MedicareExchangePlanInfo.getPlanInfoForPlan(parseInt(this)); if (planInfo.BenefitPlanTypeID != parseInt(planTypeID)) { $('#confirmBenefitType-' + planInfo.BenefitPlanTypeID).find('.btn-waive-plan-type').click(); var userPlanEligibility = bptUsersEligibility[planInfo.BenefitPlanTypeID]; if (userPlanEligibility != undefined) { var usersPlanSelection = $.grep(userPlanEligibility, function (e) { return e.userID == e.primaryUserID; }); if (typeof usersPlanSelection != 'undefined' && usersPlanSelection.length > 0) { usersPlanSelection[0].currentlySelectedPlanID = 0; } } } }); choosePlan(button, planID, planTypeID, true); } } ], create: function (event, ui) { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-default btn-large'); //$(this).dialog('widget').find('.ui-dialog-buttonset button').eq(1).addClass("btn-cta"); $('#MCXInvalidPlanCombinationDialog').find('.new-plan').html('<ul><li>' + $('.plan-selection-plan-container[planid="' + planID + '"]').find('.plan-header-plan-name').html() + '</li></ul>'); var currentPlanList = '<ul>'; $.each(MedicareExchangePlanInfo.userSelectedPlanIDsToBeReplacedByNewCoverage(planID, planTypeID), function () { var planname = $('.plan-selection-plan-container[planid="' + parseInt(this) + '"]').find('.plan-header-plan-name').html(); currentPlanList += '<li>' + planname + '</li>'; }); currentPlanList + '</ul>'; $('#MCXInvalidPlanCombinationDialog').find('.current-plans').html(currentPlanList); $('#MCXMissingDrugCoverageDialogMCXInvalidPlanCombinationDialog').find('.mcx-modal-texts').remove(); }, close: function () { $(this).dialog("destroy"); } }); $('.ui-dialog :button').blur(); } }); } else { //adobe analytics if (typeof analytics !== 'undefined' && typeof _satellite !== 'undefined') { var emmaEnabled = isAskEmmaEnabledForThisBenefitPlanType(planTypeID); var bestFitEnabled = isBestFitEnabledForThisBenefitPlanType(planTypeID); if (emmaEnabled || bestFitEnabled) { // Was the selected plan recommended? var bestPlanID = 0; if ($("#planSelection-" + planTypeID + " .emma-recommended-plan .plan-selection-plan-container").length > 0) { bestPlanID = $("#planSelection-" + planTypeID + " .emma-recommended-plan .plan-selection-plan-container").attr("planiD"); } var recommended = "No"; if (askEmma.canSkipToPostEstimate && planID === parseInt(bestPlanID)) { recommended = "Yes"; } else if (askEmma.canSkipToPostEstimate && planID != parseInt(bestPlanID)) { recommended = "No"; } else{ recommended = "N/A"; } if (planTypeID == 1 || planTypeID == 99) { analytics.recommendation_plan_medical = recommended; if (recommended == "Yes") { askEmma.saveGlobalDataValue("TookRecommendedPlanYN", 1); } else if (recommended == "No") { askEmma.saveGlobalDataValue("TookRecommendedPlanYN", 0); } else { askEmma.saveGlobalDataValue("TookRecommendedPlanYN", "NA"); } if (emmaEnabled) { analytics.cost_per_month_medical = $("#eeHeaderCost_" + planID).text().replace(/[^0-9a-zA-Z.]/g, ""); } else { analytics.cost_per_month_medical = $("#eeHeaderCost_" + planID).text().replace(/[^0-9a-zA-Z.]/g, ""); } } if (planTypeID == 4) { analytics.recommendation_plan_dental = recommended; analytics.cost_per_month_dental = $("#eeHeaderCost_" + planID).text().replace(/[^0-9a-zA-Z.]/g, ""); } analytics.benefit_type = planTypeID; _satellite.track('EnrollmentEnroll'); } } choosePlanDisplayOnly(button, planID, planTypeID); if ($("#rules_" + planTypeID + "_" + planID).find(":not([type=hidden])").length == 0) { savePlanSelection(planTypeID, true, null, false, $(button), jsDictionary['KEEP_SELECTION'], undefined, undefined, undefined, planConfirmedFromDialog); } else { initMobileNav(); }
}
}
function ShouldShowUserMedicareAttestation(planID, planTypeID){ var showUserMedicareAttestationYN = false; if(planID == '-9999'){ if (planTypeID == '208' || planTypeID == '209') { showUserMedicareAttestationYN = false; } else{ showUserMedicareAttestationYN = true; } } else{ var showUserMedicareAttestationForPlan = $.grep($.parseJSON($("#txtShowEnrollCompleteDecModal_" + planTypeID).val()), function (item) {return item.planID == planID}); if (showUserMedicareAttestationForPlan.length > 0 && showUserMedicareAttestationForPlan[0].showYN == true) { showUserMedicareAttestationYN = true; } } return showUserMedicareAttestationYN;
}
function ShowUserMedicareAttestation(planID, planTypeID, userID) { if(ShouldShowUserMedicareAttestation(planID, planTypeID)){ var selectedUserID = currentUserID == undefined || currentUserID == null || currentUserID == "" ? userID : currentUserID; if ($("#userMedicareAttestationModal-" + planTypeID + "-" + selectedUserID).hasClass('ui-dialog-content')) { $("#userMedicareAttestationModal-" + planTypeID + "-" + selectedUserID).dialog('destroy'); } if (!$("#userMedicareAttestationModal-" + planTypeID + "-" + selectedUserID).hasClass('ui-dialog-content')) { $("#userMedicareAttestationModal-" + planTypeID + "-" + selectedUserID).dialog({ dialogClass: "plan-attestation-dialog", resizable: true, autoOpen: false, modal: true, width: 1180, height: $(window).outerHeight() - 200, closeOnEscape: false, appendTo: "#frmMaint", buttons: [{ text: jsDictionary["SAVE_ANSWERS"], click: function () { SaveUserRepresentativeAttestation(planTypeID, planID, selectedUserID); } }], create: function (event, ui) { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-cta btn-large'); }, close: function () { if (isAskEmmaEnabled) { if (aetnaMedicareEnabledYN) { if (!askEmma.sessionData.global.isDataLoaded) { showPlanSelectionLoader(); var request = askEmma.getGlobalSessionDataFromDB(); request.always(function () { hidePlanSelectionLoader(); loadEmmaMuteSetting(); //for now, put medicare group session test here. may build into existing emma function askEmma.PlayMedicareGroupLandingPageAudio(medicarePlanSelectedOrWaived); medicarePlanSelectedOrWaived = false; }); } else { askEmma.PlayMedicareGroupLandingPageAudio(medicarePlanSelectedOrWaived); medicarePlanSelectedOrWaived = false; } } } } }); } var isInit = true; var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_medicare_attestation_ajax.aspx', data: "txtPlanType=" + planTypeID + "&isInit=" + isInit + "&txtCurrentUserID=" + selectedUserID + "&txtPlanID=" + planID, dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); var $qsPT = $("#userMedicareAttestationSelection-" + planTypeID + "-" + selectedUserID); if (msg.indexOf("<div") != -1) { //if the message starts with a div tag then we are rendering the questions var $qsPTContent = $qsPT.find("div.plan-attestation-step-content"); $qsPTContent.empty(); $qsPTContent.append(msg.split('~')[0]); } } }); if ($("#userMedicareAttestationSelection-" + planTypeID + "-" + selectedUserID + " div.plan-attestation-step-content").html() != "") { $("#userMedicareAttestationModal-" + planTypeID + "-" + selectedUserID).dialog('open'); } }
}
function SaveUserRepresentativeAttestation(planTypeID,planID, userID) { var selectedUserID = currentUserID == undefined || currentUserID == null || currentUserID == "" ? userID : currentUserID; var $umas = $("#userMedicareAttestationSelection-" + planTypeID + "-" + selectedUserID); var $pasc = $umas.find('div.plan-attestation-step-content'); var requiredInputs = $pasc.find("input[type=radio]:visible"); for (var i = 0; i < requiredInputs.length; i++) { if ($("input[name=" + requiredInputs[i].name + "]:visible:checked").length == 0) { bswiftWarningAlert(jsDictionary["REQUIRED_WARNING"] + "."); return; } } var requiredInputs = $pasc.find("select:visible"); for (var i = 0; i < requiredInputs.length; i++) { if ($("select[name=" + requiredInputs[i].name + "]:visible option:selected").val() == "") { bswiftWarningAlert(jsDictionary["REQUIRED_WARNING"] + "."); return; } } // Check all other controls except Address 2 field requiredInputs = $pasc.find("[id^='txtUserAttestationOtherRep']:visible:not([id^='txtUserAttestationOtherRepAddress2'])"); for (var i = 0; i < requiredInputs.length; i++) { if ($(requiredInputs[i]).val() == "") { bswiftWarningAlert(jsDictionary["REQUIRED_WARNING"] + "."); return; } } var requiredInputs = $pasc.find("input[type=select]:visible"); for (var i = 0; i < requiredInputs.length; i++) { if ($("input[name=" +requiredInputs[i].name + "]:visible option:selected").val() == "") { bswiftWarningAlert(jsDictionary["REQUIRED_WARNING"] + "."); return; } } $("input[name='txtAction']").val("save"); $("input[name='txtPlanType']").val(planTypeID); if ($("input[name^=userAttestationOptions_]:checked:visible").val() == 0) $("input[name='txtUserRepAttestationOwnYN']").val('false'); else $("input[name='txtUserRepAttestationOwnYN']").val('true'); if ($('select[id^="representativeAttestationChoice_"]:visible').val() == "9999_3") $("input[name='txtUserRepAttOptionOtherYN']").val('true'); else { $("input[name='txtUserRepAttUserID']").val(''); $("input[name='txtUserRepAttUserID']").val($('select[id^="representativeAttestationChoice_"]:visible').val()); $("input[name='txtUserRepAttOptionOtherYN']").val('false'); $(".txtUserRepAttOptionOtherYN").val('false'); } $("input[name='txtUserRepAttOtherName']").val($("#txtUserAttestationOtherRepName_" + selectedUserID + "_" + planTypeID + "").val()) $("input[name='txtUserRepAttOtherAddress1']").val($("#txtUserAttestationOtherRepAddress1_" + selectedUserID + "_" + planTypeID + "").val()) $("input[name='txtUserRepAttOtherAddress2']").val($("#txtUserAttestationOtherRepAddress2_" + selectedUserID + "_" + planTypeID + "").val()) $("input[name='txtUserRepAttOtherCity']").val($("#txtUserAttestationOtherRepCity_" + selectedUserID + "_" + planTypeID + "").val()) $("input[name='txtUserRepAttOtherStateLV']").val($('select[id^="representativeAttestationState_"]:visible').val()); $("input[name='txtUserRepAttOtherZip']").val($("#txtUserAttestationOtherRepZip_" + selectedUserID + "_" + planTypeID + "").val()) $("input[name='txtUserRepAttOtherPhone']").val($("#txtUserAttestationOtherRepPhoneNumber_" + selectedUserID + "_" + planTypeID + "").val()) $("input[name='txtUserRepAttOtherRelationshipLV']").val($('select[id^="representativeAttestationRelationship_"]:visible').val()); var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_medicare_attestation_ajax.aspx', data: $("#frmMaint").serialize() + "txtPlanType=" + planTypeID + "&isInit=false &txtCurrentUserID=" + selectedUserID + "&txtPlanID=" + planID, dataType: 'html', async: false, success: function (msg) { $("#userMedicareAttestationModal-" + planTypeID + "-" + selectedUserID).dialog('close'); $("#Questions-"+ planTypeID +"-"+ selectedUserID).show(); }, error: function () { $("#loader").remove(); bswiftWarningAlert("There was a problem communicating with your benefits provider. If the problem persists, please contact an administrator."); } });
}
function choosePlanDisplayOnly(button, planID, planTypeID) { $("input[name='txtPlanID_" + planTypeID + "'][value^='" + planID + ":']")[0].click(); $("#chartcontainer").hide(); //$('#planSelection-' + planTypeID + ' .plan-selection-plan-portlet .plan-selection-selected-plan').remove(); $('#planSelection-' + planTypeID).find('.plan-selection-selected-plan').remove(); $('#planSelection-' + planTypeID + ' .plan-selection-plan-portlet .select_plan').show(); $('#planSelection-' + planTypeID + ' .plan-selection-plan-portlet:not(.waive) .select_plan').val(jsDictionary['SELECT']); $('#planSelection-' + planTypeID + ' .plan-selection-plan-portlet.waive .select_plan').val(jsDictionary['WAIVE']); //$(button).before("<div class=\"plan-selection-selected-plan\">" + jsDictionary['SELECTED'] + "</div>"); $("#details_container_" + planID).find('.col .eight').append('<div class="plan-selection-selected-plan"><span class="fi fi-check-circle fi-before"></span>' + jsDictionary['SELECTED'] + '</div>'); if ($("#rules_" + planTypeID + "_" + planID).find(":not([type=hidden])").length == 0) { $("html,body").removeClass("one-col"); // Update back button to return to Benefits Landing backBtnTxtChange(true, planTypeID); } else { closePlanDetails(planTypeID); $("[id^=rulesContainer_" + planTypeID + "_]").slideUp("slow"); $("#rulesContainer_" + planTypeID + "_" + planID).prepend($("#allRules-" + planTypeID)); $("#allRules-" + planTypeID).show(); $(button).hide(); $(button).val(jsDictionary['KEEP_SELECTION']); $("#rulesContainer_" + planTypeID + "_" + planID).slideDown("slow"); }
}
//if plan selection is true coming from plan selection page, otherwise coming from benefits landing
function showMedicareEducationPage(planTypeID, userID, planSelection) { currentUserID = userID; if ($('.medicare-tabs-container').length > 0) { $('.medicare-tabs-container').removeClass('hidden'); } if (planSelection) { $(".medicare-tabs-container").nextAll().hide(); backBtnTxtChange(true, planTypeID); } else { //need to add the current userid to the tab buttons $('a[name=medicareTab]').each(function () { $(this).attr("userId", userID); }); $("#benefits-landing-container, #nav-subnavWrapper, [id^=benefittype-]").hide(); $(".plan-selection-container").show(); $("#benefittype-" + planTypeID).show(); $("#benefittype-" + planTypeID + " > .container > .row").hide(); $("#benefittypeInfo-" + planTypeID).hide(); $("#benefittype-" + planTypeID + " > .container").prepend($(".medicare-tabs-container")); $(".medicare-tabs-container").show(); } $('.medicare-education-container').removeClass('hidden'); $('.medicare-tabs-container > div.row-three.text-center').hide(); if ($('.plan-pagetext').text().trim() !== '') { $('.plan-pagetext .item').css({ 'padding': '2em', 'background': '#fff' }); } if ($("#medicareFooterCompliance").length) { $("#compliance-text").show(); $("#medSupMarketingID").hide(); } if ($("#medicarePageLastUpdatedContainer").length) { setMedicarePageLastUpdatedText("DATE_LAST_UPDATED_EDUCATION_PAGE_TEXT"); } $('#benefittype-' + planTypeID + ' span.plan-header-member-name').text($('#confirmBenefitType-' + planTypeID + ' .benefit-panel-header-text[userID=' + userID + ']').text()); $(window).scrollTop(0); equalizeDetailRows();
}
function showGroupMedicareEducationPage(planTypeID, userID, planSelection) { currentUserID = userID; var tierCostsAjaxRequestMonitor = new AjaxRequestMonitor(); var isAsynch = true; var emmaMedicalRecommendationReminder = 0; var planChoice = 0; var request = askEmma.getSessionDataFromDB(currentUserID); // Handle emma related features var emmaContentID = Number($("input[name=txtPlanID_" + planTypeID + "]:first").attr("data-emmaContentID")); if (isAskEmmaEnabledForThisBenefitPlanType(planTypeID)) { // Setup ask emma toolbar $(".emma-toolbar").insertAfter("#benefittype-" + planTypeID + " .benefittype-header .plan-header").show(); tierCostsAjaxRequestMonitor.always(function () { launchEmma(emmaContentID, planTypeID, null, function () { if (askEmma.isInterviewOpen) { askEmma.closeInterview(); } if (emmaMedicalRecommendationReminder == 1) { askEmma.launchCalculator(enumEmmaInterviewTriggerLV['REMINDER_WINDOW']); } else if (!askEmma.isValueInGlobalSession("RequireStartAskEmma") && $("#txtRequireStartAskEmma").val() == "1" && isAskEmmaEnabledForThisBenefitPlanType(planTypeID) && askEmma.isEligibleForBestFitRecommendation()) { askEmma.saveGlobalDataValue("RequireStartAskEmma"); askEmma.openInterview(enumEmmaInterviewTriggerLV['AUTO_ENTRY']); } else { if (askEmma.calculatorOpen) { askEmma.closeCalculator(); } $("#planSelection-" + planTypeID).children(".plan-selection-step-content").show(); if (!askEmma.isValueInGlobalSession("EmmaMedicalRecommendationReminder") && askEmma.isEligibleForBestFitRecommendation() && (planTypeID == 1 || planTypeID == 99) && !askEmma.isValueInGlobalSession("MedicalPreEstimateModal")) { hidePlanSelectionLoader(); askEmma.saveGlobalDataValue("MedicalPreEstimateModal"); askEmma.playAudioByPath("/askEmma_audio/v2/health/Emma_MedicalPreEstimateModal"); askEmma.openIntroModal(); } } soundManager.stopAll(); }, isAsynch) }); tierCostsAjaxRequestMonitor.setFinishedAddingRequestsAndCallbacks(); } //may consider changing this to find by ID if ($('.medicare-tabs-container').length > 0) { $('.medicare-tabs-container').removeClass('hidden'); } //hide tabs $('.medicare-tabs-container > div.row-three.text-center').hide(); if (planSelection) { $(".medicare-tabs-container").nextAll().hide(); backBtnTxtChange(true, planTypeID); } else { //need to add the current userid to the tab buttons $('a[name=medicareGroupTab]').each(function () { $(this).attr("userId", userID); }); $("#benefits-landing-container, #nav-subnavWrapper, [id^=benefittype-]").hide(); $(".plan-selection-container").show(); $("#benefittype-" + planTypeID).show(); $("#benefittype-" + planTypeID + " > .container > .row").hide(); $("#benefittypeInfo-" + planTypeID).hide(); $("#benefittype-" + planTypeID + " > .container").prepend($(".medicare-tabs-container")); $(".medicare-tabs-container").show(); } //displays the shop buttons $('.medicare-group-education-content').removeClass('hidden'); //$("#medicare-education-page-container").removeClass('hidden'); // $('.medicare-education-page').removeClass('hidden'); //equalize group education columns $('.group-plan-descs').equalizeCols(); $('.group-plan-options').equalizeCols(); $('.plan-selection-plan-details-1').equalizeCols(); $('.group-education-pagetext').equalizeCols(); if ($('.group-education-pagetext').text().trim() !== '') { $('.group-education-pagetext').css({ 'padding': '2em', 'background': '#fff', 'padding-bottom': '4em', 'text-align':'center'}); } if ($("#medicareFooterCompliance").length) { $("#compliance-text").show(); $("#medSupMarketingID").hide(); } if ($("#medicarePageLastUpdatedContainer").length) { setMedicarePageLastUpdatedText("DATE_LAST_UPDATED_EDUCATION_PAGE_TEXT"); } hideEducationTabs(); $(window).scrollTop(0); //for now, put medicare group session test here. may build into existing emma function if (isAskEmmaEnabled && typeof aetnaMedicareEnabledYN !== 'undefined' && aetnaMedicareEnabledYN) { if (!askEmma.sessionData.global.isDataLoaded) { var request = askEmma.getGlobalSessionDataFromDB(); request.always(function () { askEmma.playMedicareGroupEducationPageAudio(); }); } else { askEmma.playMedicareGroupEducationPageAudio(); } } //alert triggered if the interview has been completed and plan choice has been made if (isAskEmmaEnabled && aetnaMedicareEnabledYN) { if (!askEmma.sessionData.isDataLoaded) { var request = askEmma.getSessionDataFromDB(currentUserID); request.always(function () { askEmma.medicareGroupPlanChoiceHighlight(); }); } else { askEmma.medicareGroupPlanChoiceHighlight(); } }
}
function openMCXFiltersModal(bpt) { $("mcx-filters-modal-" + bpt).dialog
}
//for now, a standalone function, but consider consolidating with isEligibleForMCIXNetworkType function
function isEligibleForNetworkType(userID, benefitPlanType, networkTypeList) { var isEligible = false; var usersEligiblePlans = bptUsersEligibility[benefitPlanType]; if (typeof usersEligiblePlans != "undefined") { var userObjectList = $.grep(usersEligiblePlans, function (e) { return e.userID == userID }); if (userObjectList.length > 0) { var userObject = userObjectList[0] if (typeof userObject.eligiblePlanIDs != "undefined") { $.each(userObject.eligiblePlanIDs, function (i, v) { var radio = $("#txtPlanID_" + benefitPlanType + "_" + v); if (typeof radio !== 'undefined' && $.inArray(radio.attr("networktypelv"), networkTypeList) > -1) { isEligible = true; return false } }); } } } return isEligible;
}
function hideEducationTabs() { //iterate through each education tab to get bptID and networktypelist var networkTypeList; var benefitPlanType; var displayedTabsCount = 0; $('.tabs.medicareGroup').show(); $("a[name='medicareGroupTab']").each(function (index) { networkTypeList = $(this).attr("networktypelvlist").split(","); benefitPlanType = $(this).attr('benefitplantypeid'); //hide education tabs if user is not eligble for any plans within networktypelist if (!isEligibleForNetworkType(currentUserID, benefitPlanType, networkTypeList)) { $(this).closest("li").hide(); if ($('#MedicareGroupTabColumn_' + benefitPlanType + '_' + networkTypeList[0]).length) { $('#MedicareGroupTabColumn_' + benefitPlanType + '_' + networkTypeList[0]).hide(); } } else { $(this).closest("li").show(); displayedTabsCount++; if ($('#MedicareGroupTabColumn_' + benefitPlanType + '_' + networkTypeList[0]).length) { $('#MedicareGroupTabColumn_' + benefitPlanType + '_' + networkTypeList[0]).show(); } } }); if (displayedTabsCount == 1) { //hide tabs if it is the only tab diplayed $('.tabs.medicareGroup').hide(); }
}
function showFamilyModal(planTypeID) { //adobe analytics if (typeof analytics !== 'undefined' && typeof _satellite !== 'undefined') { if (planTypeID == 1 || planTypeID == 99) { //emma on if ($("#askemma-" + planTypeID).length > 0) { analytics.audio_state = !askEmma.sessionData.global.isMuted ? "Yes" : "No"; } analytics.benefit_type = planTypeID; analytics.feature_present_drug_search = $("#drxEnabled").val() == "true" ? "Yes" : "No"; analytics.feature_present_HSA_integration = $("#planSelection-" + planTypeID + " .plan-selection-plan-details-hsa").length > 0 ? "Yes" : "No"; analytics.feature_present_HRA_integration = $("#planSelection-" + planTypeID + " .plan-selection-plan-details-hra").length > 0 ? "Yes" : "No"; analytics.total_number_of_plans_displayed = $("[id^=txtPlanID_" + planTypeID + "_]").length; analytics.feature_present_claims_button = $("#emmaMedicalClaimsContainer").length > 0 ? "Yes" : "No"; analytics.feature_present_provider_search = $("#navHealthPCPSearch-" + planTypeID).length > 0 ? "Yes" : "No"; analytics.current_plan = $('#txtCurrentPlan').val() != undefined ? $.grep($('#txtCurrentPlan').val().split(':'), function (currentPlan) { return currentPlan.split('_')[0] == planTypeID; })[0].split('_')[1] : ''; } } currentUserID = undefined; if ($("#dependentsContainer-" + planTypeID).length > 0) { $("#benefits-landing-container, #nav-subnavWrapper, [id^=benefittype-]").hide(); $(".plan-selection-container").show(); $("#dependentsModal-" + planTypeID).show(); $("#benefittype-" + planTypeID).show(); $("#benefittype-" + planTypeID + " > .container > .row").hide(); $("#benefittypeInfo-" + planTypeID).hide(); //animate $("#benefits-container-2016, .plan-selection-container #benefittype-" + planTypeID + " > .container").css('overflow', 'hidden'); $(".plan-selection-container .container > .row").css('left', '110%'); if ($("#benefittype-" + planTypeID + " .benefittype-header").find('.deps-container-wrapper').length) $("#dependentsModal-" + planTypeID).unwrap(".deps-container-wrapper"); $("#benefittype-" + planTypeID).children(".container").filter(":first").append($("#dependentsModal-" + planTypeID)); $(".plan-selection-container").show(); $("#benefittype-" + planTypeID).show(); $("#dependentsModal-" + planTypeID + " .SaveDiv").show(); $("#dependentsContainer-" + planTypeID).addClass("pre-selection"); $(".plan-selection-container .container > .row").animate({ 'left': 0 }, 400, function () { $("#benefits-container-2016, .plan-selection-container #benefittype-" + planTypeID + " > .container").css('overflow', 'visible'); }); } $(".emma-toolbar").hide(); initMobileNav(); if (typeof soundManager != "undefined") { soundManager.stopAll();
}
}
function setDCPlanTypeBar(creditData, planTypeID, userID) { creditData.UserCreditDCPlanTypeDefinitions.forEach(function (definition) { if (definition.UserID == userID && definition.BenefitPlanTypeID == planTypeID) { updateDCBarAmount(definition.BenefitPlanTypeID, definition.AvailableDefinedContribution, definition.AvailableCredit); } });
}
var animating = false;
function showPlanType(planTypeID, isAsynch, userID, emmaMedicalRecommendationReminder) { dcBarPlanTypeID = planTypeID; var templateID = (planTypeID == '208' || planTypeID == '209') ? 203 : Number($("input[name=txtPlanID_" + planTypeID + "]:first").val().split(':')[1]); var tierCostsAjaxRequestMonitor = new AjaxRequestMonitor(); if ($("#txtAnalyticsEnabled").val() == "Y") { analyticsLogEnrollmentBPTEvent(planTypeID, enumAnalyticsEventID['START_BPT_ENROLLMENT'], null); } var planRadio; var planID; var planCostsUpdatedYN = false; // needed for best fit planTypeIDForChart = planTypeID; $("html,body").removeClass("plansearch"); if ($("#planSearchLeftNav-" + planTypeID).length > 0) { $("html,body").addClass("plansearch"); $("#planSearchLeftNav-" + planTypeID).show(); sortPlans2016Version($("#plansSort" + planTypeID).val(), planTypeID); } else if (($("#benefittype-" + planTypeID + " #sideBarPrescription").length > 0 || $("#benefittype-" + planTypeID + " #sideBarProviderSearch").length > 0) && (planTypeID==1||planTypeID==4||planTypeID==99)) { $("html,body").addClass("plansearch"); } else if ($("[id^=planSearchLeftNav_" + planTypeID + "][mcx-filters]").length > 0) { $("html,body").addClass("plansearch"); } if (userID != undefined && userID > 0) { currentUserID = userID; var usersEligiblePlans = bptUsersEligibility[planTypeID]; var userPlanEligibility; var planSelectionPlanPortlet; var chooseButton; if (typeof usersEligiblePlans != "undefined") { userPlanEligibility = $.grep(usersEligiblePlans, function (e) { return e.userID == userID; })[0]; if (userPlanEligibility != undefined) { var planID; $('#planSelection-' + planTypeID).find('input[id^=txtPlanID_]').each(function () { planID = parseInt($(this).val().split(':')[0]); if ($.inArray(planID, userPlanEligibility.eligiblePlanIDs) >= 0) { planSelectionPlanPortlet = $(this).closest('.plan-selection-plan-portlet').not('.pagination-hidden').removeClass('hidden').removeClass('user-hidden'); if (planID > 0 && planID == userPlanEligibility.currentlyEnrolledPlanID) { if (planSelectionPlanPortlet.find('span.plan-status').length <= 0) { planSelectionPlanPortlet.addClass('current-plan').append('<span class="plan-status">current plan</span>'); } } else { planSelectionPlanPortlet.removeClass('current-plan').find('span.plan-status').remove(); } chooseButton = $('#chooseButton_' + planTypeID + '_' + planID); if (planID == userPlanEligibility.currentlySelectedPlanID) { choosePlanDisplayOnly(chooseButton, planID, planTypeID); $(chooseButton).val(jsDictionary['KEEP_SELECTION']); } else { $('#planSelection-' + planTypeID).find('.plan-selection-selected-plan').remove(); //chooseButton.siblings('.plan-selection-selected-plan').remove(); if (planID > 0) { $(chooseButton).val(jsDictionary['SELECT']); } else { $(chooseButton).val(jsDictionary['WAIVE']); } } } else { $(this).closest('.plan-selection-plan-portlet').addClass('hidden').addClass('user-hidden'); } }); if (bptUsersEligibility[planTypeID].currentCostUserID !== currentUserID) { getTierCostsByPlanType(planTypeID, false, true, tierCostsAjaxRequestMonitor); bptUsersEligibility[planTypeID].currentCostUserID = currentUserID; } HideContingentPlans(currentUserID); planCostsUpdatedYN = true; //copy member name from landing panel header into benefit panel header $('#benefittype-' + planTypeID + ' span.plan-header-member-name').text($('#confirmBenefitType-' + planTypeID + ' .benefit-panel-header-text[userID=' + userID + ']').text()); } } } else { currentUserID = undefined; } if ((templateID == 1 || templateID == 6 || templateID == 8 || templateID == 10) && isDCEnabled() && !planCostsUpdatedYN) { //if DC is enabled and plan costs have not been updated then get the costs getTierCostsByPlanType(planTypeID, false, true, tierCostsAjaxRequestMonitor); } $("#benefittype-" + planTypeID + " > .benefittype-header").append($("#dependentsModal-" + planTypeID)); if (!$('#dependentsModal-' + planTypeID).parent().hasClass('deps-container-wrapper')) { $('.deps-container-wrapper:empty').remove(); $("#dependentsModal-" + planTypeID).wrap('<div class="deps-container-wrapper"/>'); } else $('#dependentsModal-' + planTypeID).parent().show(); $("#dependentsModal-" + planTypeID).show(); $("#dependentsModal-" + planTypeID + " .SaveDiv").hide(); $("#benefittype-" + planTypeID + " > .container > .row:not(.pagination-hidden)").show(); $("#benefittypeInfo-" + planTypeID).show(); $("#dependentsContainer-" + planTypeID).removeClass("pre-selection"); $("#benefits-landing-container, #nav-subnavWrapper, [id^=benefittype-]").hide(); //animate $("#benefits-container-2016, .plan-selection-container #benefittype-" + planTypeID + " > .container").css('overflow', 'hidden'); $("#benefittype-" + planTypeID + " > .container > .row").css('left', '110%'); $(".plan-selection-container").show(); $("#benefittype-" + planTypeID).show(); $("#benefittype-" + planTypeID + " .container > .row:not(.pagination-hidden)").animate({ 'left': 0 }, { duration: 300, complete: function () { $("#benefits-container-2016, .plan-selection-container #benefittype-" + planTypeID + " > .container").css('overflow', 'visible'); } }); animating = true; //scroll back to the top $("html, body").animate({ "scrollTop": "0px" }, { duration: 500, complete: function () { animating = false; if (templateID !== 203 || typeof usersEligiblePlans != "undefined") { handleCostSort(planTypeID); } } }); //hide borders if there's nothing in the right col $("#benefittype-" + planTypeID + " .plan-selection-plan-portlet").each(function () { if ($.trim($(this).find('.plan-selection-plan-right').text()) == "") { $(this).find('.plan-selection-plan-left, .plan-selection-plan-right').addClass('no-border'); } }); //style plan name / vendor name //(if plan name < 50 characters, vendor name goes to same line $("#benefittype-" + planTypeID + " .plan-header-plan-name").each(function () { if ($(this).text().length < 30) { if (($(this).text().length + $(this).next('.plan-header-carrier-name').text().length) < 37) $(this).parents('.plan-selection-plan-container').addClass('short-name'); } }); if ($("input[name=txtPlanID_" + planTypeID + "]").length == 1) { var planID = $("input[name=txtPlanID_" + planTypeID + "]").val().split(':')[0]; $("input[name='txtPlanID_" + planTypeID + "'][value^='" + planID + ":']")[0].click(); } if ($("input[name=txtPlanID_" + planTypeID + "]:checked").length > 0) { var planID = $("input[name=txtPlanID_" + planTypeID + "]:checked").val().split(':')[0]; $("[id^=rules_" + planTypeID + "_]").hide(); if ($("#waiveQuestionAnswer_" + planTypeID + "_" + planID).length == 0) { $("#rules_" + planTypeID + "_" + planID).show(); } if ($("#rules_" + planTypeID + "_" + planID).find(":not([type=hidden])").length == 0 || $("#waiveQuestionAnswer_" + planTypeID + "_" + planID).length > 0) { $("#rulesContainer_" + planTypeID + "_" + planID).hide(); } else { $("#rulesContainer_" + planTypeID + "_" + planID).prepend($("#allRules-" + planTypeID)); $("#allRules-" + planTypeID).show(); $("#rulesContainer_" + planTypeID + "_" + planID).show(); $("#chooseButton_" + planTypeID + "_" + planID).hide(); } } //Remove Providers that are not the current plan type if ($("#txtProviderBenefitPlanTypeID").length > 0 && $("#txtProviderBenefitPlanTypeID").val() != planTypeID) { $('.sidebar-prescription-list').empty(); $("#txtProviderBenefitPlanTypeID").val(planTypeID); ShowProvidersOnPlanPods(false); } if (MyProviders.length == 0 && typeof $.cookie('providerSearchCookie') != "undefined") { if ($.cookie('providerSearchCookie').split("~")[11] != $("#txtPrimaryUserID").val()) //if impersonating, clear the cookie if it does not match the current users { $.cookie('providerSearchCookie', null, { expires: -1, path: '/' }); } else if ($.parseJSON($.cookie('providerSearchCookie').split("~")[10]).length > 0) { MyProviders = $.parseJSON($.cookie('providerSearchCookie').split("~")[10]); ShowProvidersOnPlanPods(true, planTypeID); } } else if ($("#drxEnabled").val() == "true") { $(".sidebar-prescription-list").empty(); addPrescriptionsToSideBar(planTypeID); } // Show tax choice if none of the plans have slide out rules sections if ($("#prePostTaxSelection-" + planTypeID).length > 0) { showTaxSelection(planTypeID); } if (planTypeID == "55") { SetHSAMax(false); } // Handle emma related features var emmaContentID = Number($("input[name=txtPlanID_" + planTypeID + "]:first").attr("data-emmaContentID")); if (isAskEmmaEnabledForThisBenefitPlanType(planTypeID)) { // Setup ask emma toolbar $(".emma-toolbar").insertAfter("#benefittype-" + planTypeID + " .benefittype-header .plan-header").show(); tierCostsAjaxRequestMonitor.always(function () { launchEmma(emmaContentID, planTypeID, null, function () { if (askEmma.isInterviewOpen) { askEmma.closeInterview(); } if (emmaMedicalRecommendationReminder == 1) { askEmma.launchCalculator(enumEmmaInterviewTriggerLV['REMINDER_WINDOW']); } else if (!askEmma.isValueInGlobalSession("RequireStartAskEmma") && $("#txtRequireStartAskEmma").val() == "1" && isAskEmmaEnabledForThisBenefitPlanType(planTypeID) && askEmma.isEligibleForBestFitRecommendation()) { askEmma.saveGlobalDataValue("RequireStartAskEmma"); askEmma.openInterview(enumEmmaInterviewTriggerLV['AUTO_ENTRY']); } else { if (askEmma.calculatorOpen) { askEmma.closeCalculator(); } $("#planSelection-" + planTypeID).children(".plan-selection-step-content").show(); if (!askEmma.isValueInGlobalSession("EmmaMedicalRecommendationReminder") && askEmma.isEligibleForBestFitRecommendation() && (planTypeID == 1 || planTypeID == 99) && !askEmma.isValueInGlobalSession("MedicalPreEstimateModal")) { hidePlanSelectionLoader(); askEmma.saveGlobalDataValue("MedicalPreEstimateModal"); askEmma.playAudioByPath("/askEmma_audio/v2/health/Emma_MedicalPreEstimateModal"); askEmma.openIntroModal(); } } if ($('#medicareGroupTabs').length) { if ($('#medicareGroupTabs').is(':visible')) { if (isAskEmmaEnabled) { if (aetnaMedicareEnabledYN) { showPlanSelectionLoader(); var request = askEmma.getSessionDataFromDB(userID); request.always(function () { askEmma.playMedicareGroupPlanSelectionAudio(askEmma.emmaPlanTypeID, askEmma.currentUserID); hidePlanSelectionLoader(); loadEmmaMuteSetting(); }); } } } } soundManager.stopAll(); }, isAsynch) }); } else if (isBestFitEnabledForThisBenefitPlanType(planTypeID)) { tierCostsAjaxRequestMonitor.always(function () { launchBestFit(emmaContentID, planTypeID, templateID) }); if (askEmma.calculatorOpen) { askEmma.closeCalculator(); } } else { // Emma disabled for plan type. Don't show emma-estimate container $("#planSelection-" + planTypeID + " .pre-emma").hide(); hidePlanSelectionLoader(); } if (askEmma != undefined && askEmma!= null) { if (!askEmma.isValueInGlobalSession("ViewedPlanOptionsHealth") && planTypeID == 1) { askEmma.saveGlobalDataValue("ViewedPlanOptionsHealth", 1); } if (!askEmma.isValueInGlobalSession("ViewedPlanOptionsMedical") && planTypeID == 99) { askEmma.saveGlobalDataValue("ViewedPlanOptionsMedical", 2); } } tierCostsAjaxRequestMonitor.setFinishedAddingRequestsAndCallbacks(); if ($("#planSelection-" + planTypeID).find('.js-getInsured-link').length > 0) { SetUpGetInsuredPreQuoteQuestions(planTypeID); } if ($("#planSelection-" + planTypeID).find('.js-nfp-enabled').length > 0) { SetUpNFPQuestions(planTypeID); } if ($("#planSelection-" + planTypeID + " li.plan-search-plans-link").length > 0) { $("#planSelection-" + planTypeID + " > .plan-selection-step-content input[name=txtPlanID_" + planTypeID + "]:not([value^=-9999],[value$=':1'],:checked)").closest("div.plan-selection-plan-portlet").hide(); } $("#benefittype-" + planTypeID + " div.plan-selection-step-content").show(); if ($("#txtHideContinueButtonPlanTypeExpanded").length > 0) { $("#continue-streamline-panel").hide(); } //IE 8 fix. use JQuery trim instead of trim off text(). if (!$.trim($("#benefittype-" + planTypeID + " div.plan-selection-step-content .contribution-amount-summary").text()).length > 0) { $("#benefittype-" + planTypeID + " div.plan-selection-step-content .contribution-amount-summary").hide(); } //check for contingent GI limits on life plans if (templateID == 6 || templateID == 8 || templateID == 10 || templateID == 177 || templateID == 185 || templateID == 189) { setGIAmounts(planTypeID); } else if (templateID == 42) { getTierCostsByPlanType(planTypeID, false); } if ($("#benefittype-" + planTypeID).find('.unum-link-div').length != 0) { if ($("#benefittype-" + planTypeID).find('.unum-link-div').attr('widgetSetup') != 'true') { var benefit = $("#benefittype-" + planTypeID).find('.unum-link-div').attr('id'); BuildUnumWidget(benefit); } } if (planTypeID == 74) { $(".emma-fsaDep").hide(); } //adobe analytics if (typeof analytics !== 'undefined' && typeof _satellite !== 'undefined') { _satellite.track('EnrollmentPlanSelectionStep'); } initMobileNav(); scrollPlanHeader(); //do pagination if (typeof Pagination !== "undefined" && $('.plan-pagination-control').length > 0) { if (!Pagination.IsInitialized) { Pagination.init(); } if (typeof bptUsersEligibility !== "undefined") { if (!isNaN(parseInt(userID))) { Pagination.showPaginationControls(parseInt(planTypeID), parseInt(userID)); } else { Pagination.showPaginationControls(parseInt(planTypeID)); } } else { Pagination.showPaginationControls(parseInt(planTypeID)); } } if ($("#medicarePageLastUpdatedContainer").length > 0) { if (planTypeID == "4" || planTypeID == "5" ) { setMedicarePageLastUpdatedTextByBPT(planTypeID, true); } }
}
function showPlanNetworkType(planTypeID, planNetworkTypeList, userID) { var isCostNeedTobeUpdate = false; var planNetworkType = planNetworkTypeList[0]; //show esrd message if any tab has been clicked $(".esrd-message").show(); if ($("#medicareFooterCompliance").length) { showHideMedicareComplianceText(planNetworkType); } if ($("#medicarePageLastUpdatedContainer").length) { setMedicarePageLastUpdatedTextByNetworkType(planNetworkType, true); } $('#benefittype-' + planTypeID + ' span.plan-header-member-name').text($('#confirmBenefitType-' + planTypeID + ' .benefit-panel-header-text[userID=' + userID + ']').text()); var func = function () { //clear out filters $("input[name=planNetworkTypeFilter_" + planTypeID + "]").each(function () { $(this).prop("checked", false); }); //check the filter checkbox for the plan network type that the user clicked $.each(planNetworkTypeList, function (i, v) { $('input[name=planNetworkTypeFilter_' + planTypeID + '][value=' + v + ']').prop("checked", true); }); if (parseInt(planTypeID) == 208) { if (parseInt(planNetworkType) == 18) { $('#plansSort' + planTypeID).find('option[value="medicareplantype"],option[value="stars"]').removeClass("hidden"); } else { $('#plansSort' + planTypeID).find('option[value="medicareplantype"],option[value="stars"]').addClass("hidden"); } $('#plansSort' + planTypeID).val($('#plansSort' + planTypeID).find('option').not('.hidden').first().attr("value")); } showHideQuestionPanel(planTypeID, planNetworkType); showHideFilterPanels(planTypeID, planNetworkTypeList); $("#benefittype-" + planTypeID + " > .container").prepend($(".medicare-tabs-container")); $('.medicare-tabs-container').show(); $('.medicare-tabs-container > div.row-three.text-center').show(); $('.medicare-education-container').addClass('hidden'); showPlanType(planTypeID, 'undefined', userID, 0); $("#benefittype-" + planTypeID + " .enrollmentBack").attr("onclick", "javascript:showMedicareEducationPage(" + planTypeID + "," + userID + ", true); return false;"); $("#benefittype-" + planTypeID + " .enrollmentBack").text("Back to Medicare Education").prepend("<span class=\"fi fi-left-circle fi-md fi-before\" aria-hidden=\"true\"></span>"); if (isCostNeedTobeUpdate) { isFilterPlansNeedsToCall = true; getTierCostsByPlanType(planTypeID, false); } else { filterPlans(planTypeID, false, true); } //filterPlans(planTypeID, false, true); } if (planNetworkType == 19 && isEligibleForMCIXNetworkType(userID, planTypeID, planNetworkTypeList)) { //if clicked the med sup questions button if ($(".med-supp-btn").attr("showDRXQuestions") != undefined && $(".med-supp-btn").attr("showDRXQuestions") == "true") { isCostNeedTobeUpdate = true; loadDRXEligibilityQuestionsDialog(func); } //if client option enabled to ask med sup questions, check if theyve already answered else if($("#txtAskMedSupQuestions").val() == "1") { $.ajax({ url: "/api/DRXService/IsAllDRXQuestionsAnswered", async: false, type: "POST", contentType: "application/json;charset=utf-8", dataType: "json", success: function (msg) { var questionsAnswered = false; if (msg) { func(); } else { loadDRXEligibilityQuestionsDialog(func); } } }); } //client option not enabled, else { func(); } } else { func(); }
}
function handleCostSort(planTypeID) { if ($("#plansSort" + planTypeID).val() == "cost" || $("#plansSort" + planTypeID).val() == "medicareplantype") { var costsStatusForPlanType = undefined; if (typeof CostsStatus !== "undefined") { costsStatusForPlanType = CostsStatus.GetCostInfoForPlanType(planTypeID); } if (typeof costsStatusForPlanType !== "undefined" && costsStatusForPlanType.NumberOfCompletedCosts == costsStatusForPlanType.NumberOfCostsToGet) { toggleNoPlansMessage(planTypeID); } else { showCostsLoader(planTypeID); } } else { toggleNoPlansMessage(planTypeID); }
}
var Pagination = { PlansPerPage: 12, //12 is default, IsInitialized: false, BenefitPlanTypes: [], CurrentPaginationPlans: [], CurrentPaginationVisiblePlans: [], init: function () { if (!isNaN($('#PlanPaginationPlansPerPage').val())) { this.PlansPerPage = parseInt($('#PlanPaginationPlansPerPage').val()); } Pagination.BenefitPlanTypes = []; $('#benefits-container-2016').find('[id^="benefittype-"]').each(function () { var benefitPlanTypeID = parseInt($(this).attr('id').split('-')[1]); if (typeof bptUsersEligibility !== "undefined" && !$.isEmptyObject(bptUsersEligibility)) { var userIDs = getIndividualEnrollmentUsers(); $.each(userIDs, function () { var individualUserPlanEligibility = getIndividualUserPlanEligibilityByPlanType(parseInt(this), benefitPlanTypeID); if (typeof individualUserPlanEligibility !== "undefined") { Pagination.initPlanType(benefitPlanTypeID, parseInt(this)); } else { Pagination.initPlanType(benefitPlanTypeID); } }); } else { Pagination.initPlanType(benefitPlanTypeID); } }); this.IsInitialized = true; return this; }, initPlanType: function (benefitPlanTypeID, userID) { var paginationPlanType = this.getBenefitPlanType(benefitPlanTypeID); if (paginationPlanType == undefined) { paginationPlanType = {}; paginationPlanType.BenefitPlanTypeID = benefitPlanTypeID; paginationPlanType.Users = []; this.BenefitPlanTypes.push(paginationPlanType); } var planTypeForUser = this.getUserForBenefitPlanType(benefitPlanTypeID, userID); if (planTypeForUser == undefined) { planTypeForUser = {}; planTypeForUser.VisiblePlanCount = this.PlansPerPage; paginationPlanType.Users.push(planTypeForUser); } planTypeForUser.UserID = userID; return this; }, resetPagination: function (benefitPlanTypeID) { $.each(this.getBenefitPlanType(benefitPlanTypeID).Users, function () { this.VisiblePlanCount = Pagination.PlansPerPage; }); return this; }, setPaginationForView: function (benefitPlanTypeID, userID) { $('#benefittype-' + benefitPlanTypeID).find('.plan-selection-plan-portlet').removeClass('pagination-hidden'); this.bindControls(benefitPlanTypeID, userID); $(this.CurrentPaginationPlans) .each(function (idx, elem) { if (idx >= Pagination.getUserForBenefitPlanType(benefitPlanTypeID, userID).VisiblePlanCount) { $(elem).addClass("pagination-hidden"); } }); this.paginationComplete(benefitPlanTypeID); return this; }, bindControls: function (benefitPlanTypeID, userID) { this.CurrentPaginationPlans = $('#benefittype-' + benefitPlanTypeID).find('.plan-selection-plan-portlet') .filter(function () { return $(this).is(':visible'); }) .not('.waive,.filter-hidden') .filter(function () { return $(this).find('input[name=txtPlanID_' + benefitPlanTypeID + '][value^=-9999],input[name=txtPlanID_' + benefitPlanTypeID + '][value$=":1"]').length == 0; }); return this; }, showPaginationControls: function (benefitPlanTypeID, userID) { this.setPaginationForView(benefitPlanTypeID, userID); if (this.CurrentPaginationPlans.length != this.CurrentPaginationVisiblePlans.length || this.CurrentPaginationVisiblePlans.length > this.PlansPerPage) { if (userID != undefined) { $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').attr("paginationcontroluserID", userID); } $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').removeClass('hidden'); } else { this.hidePaginationControls(benefitPlanTypeID); } return this; }, hidePaginationControls: function (benefitPlanTypeID) { if (benefitPlanTypeID != undefined) { $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').addClass('hidden'); } else { $('.plan-pagination-control').addClass('hidden'); } return this; }, showMore: function (benefitPlanTypeID) { var currentPaginationControl = $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]'); var userID = isNaN(currentPaginationControl.attr('paginationcontroluserid')) ? undefined : parseInt(currentPaginationControl.attr('paginationcontroluserid')); var usersPlans = this.getUserForBenefitPlanType(benefitPlanTypeID, userID); var firstPlanShown; $(this.CurrentPaginationPlans) .filter(function () { return $(this).hasClass('pagination-hidden'); }) .each(function (idx, elem) { if (idx < Pagination.PlansPerPage) { if (idx == 0) { firstPlanShown = elem; } $(elem).removeClass("pagination-hidden"); usersPlans.VisiblePlanCount += 1; } }); this.paginationComplete(benefitPlanTypeID); //scroll to top of first plan shown $('html,body').animate({ scrollTop: $(firstPlanShown).offset().top - 125 }, 'medium'); }, showLess: function (benefitPlanTypeID) { var currentPaginationControl = $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]'); var userID = isNaN(currentPaginationControl.attr('paginationcontroluserid')) ? undefined : parseInt(currentPaginationControl.attr('paginationcontroluserid')); var currentPaginationPlanType = this.getBenefitPlanType(benefitPlanTypeID); var numberOfPlansToHide = this.PlansPerPage; if (this.CurrentPaginationPlans.length == this.CurrentPaginationVisiblePlans.length) { if (this.CurrentPaginationPlans.length % this.PlansPerPage > 0) { numberOfPlansToHide = this.CurrentPaginationPlans.length % this.PlansPerPage; } } var usersPlans = this.getUserForBenefitPlanType(benefitPlanTypeID, userID); $(this.CurrentPaginationPlans) .not('.pagination-hidden').slice(numberOfPlansToHide * -1) .each(function (idx, elem) { $(elem).addClass("pagination-hidden"); usersPlans.VisiblePlanCount -= 1; }); this.paginationComplete(benefitPlanTypeID); if (this.CurrentPaginationVisiblePlans.length == this.PlansPerPage) { //on first page, just scroll to the top of the window $('html,body').animate({ scrollTop: 0 }, 'medium'); } else { //not on first page, scroll to top of previous "page" $('html,body').animate({ scrollTop: $(this.CurrentPaginationPlans).not('.pagination-hidden').slice(this.PlansPerPage * -1).first().offset().top - 125 }, 'medium'); } }, showAll: function (benefitPlanTypeID) { var currentPaginationControl = $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]'); var userID = isNaN(currentPaginationControl.attr('paginationcontroluserid')) ? undefined : parseInt(currentPaginationControl.attr('paginationcontroluserid')); var firstPlanShown; $(this.CurrentPaginationPlans) .filter(function () { return $(this).hasClass('pagination-hidden'); }) .each(function (idx, elem) { if (idx == 0) { firstPlanShown = elem; } $(elem).removeClass("pagination-hidden"); }); var usersPlans = this.getUserForBenefitPlanType(benefitPlanTypeID, userID); usersPlans.VisiblePlanCount = this.CurrentPaginationPlans.length; this.paginationComplete(benefitPlanTypeID); //scroll to top of first plan shown $('html,body').animate({ scrollTop: $(firstPlanShown).offset().top - 125 }, 'medium'); }, paginationComplete: function (benefitPlanTypeID) { this.CurrentPaginationVisiblePlans = $(this.CurrentPaginationPlans).filter(function () { return $(this).is(':visible'); }); if (this.CurrentPaginationVisiblePlans.length == this.CurrentPaginationPlans.length) { //all plans shown $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-all').hide(); $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-more').hide(); if (this.CurrentPaginationVisiblePlans.length <= this.PlansPerPage) { $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-less').hide(); } else { $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-less').show(); } } else if (this.CurrentPaginationVisiblePlans.length == this.PlansPerPage) { //only first page visible $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-all').show(); $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-more').show(); $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-less').hide(); } else { $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-all').show(); $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-more').show(); $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-show-less').show(); } //reset plans count $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-plan-view-count').text(this.CurrentPaginationVisiblePlans.length); $('.plan-pagination-control[paginationcontrolbenefitplantypeid="' + benefitPlanTypeID + '"]').find('.plan-pagination-control-total-plan-count').text(this.CurrentPaginationPlans.length); return this; }, getBenefitPlanType: function (benefitPlanTypeID) { return $.grep(this.BenefitPlanTypes, function (elem) { return elem.BenefitPlanTypeID == benefitPlanTypeID; })[0]; }, getUserForBenefitPlanType: function (benefitPlanTypeID, userID) { var benefitPlanType = this.getBenefitPlanType(benefitPlanTypeID); if (benefitPlanType == undefined) { return undefined; } var usersPlans = $.grep(benefitPlanType.Users, function (elem) { return elem.UserID == userID; })[0]; if (usersPlans == undefined) { usersPlans = $.grep(benefitPlanType.Users, function (elem) { return elem.UserID == undefined; })[0]; } return usersPlans; } //PLEASE LEAVE THIS COMMENTED CODE, ITS USEFUL FOR DEBUGGING //planIDsShownToUserIncorrectly: function (benefitPlanTypeID, userID) { // var individualUserPlanEligibility = getIndividualUserPlanEligibilityByPlanType(userID, benefitPlanTypeID); // if (typeof individualUserPlanEligibility !== "undefined") { // var planIDList = individualUserPlanEligibility.eligiblePlanIDs; // return $('#benefittype-203').find('.plan-selection-plan-portlet') // .not('.waive,.filter-hidden') // .filter(function () { // return $(this).find('input[name=txtPlanID_' + benefitPlanTypeID + '][value^=-9999],input[name=txtPlanID_' + benefitPlanTypeID + '][value$=":1"]').length == 0; // }) // .filter(function () { // return !$.inArray(parseInt($(this).find('.plan-selection-plan-container').attr("planid")), planIDList) > -1; // }) // .find('.plan-selection-plan-container').attr("planid"); // } //}, //isPlanIDIncludedInPagination: function (planID) { // return $(this.CurrentPaginationPlans).filter('.plan-selection-plan-container[planid="' + planID + '"]').length > 0; //}, //visiblePlanIDs: function () { // var arr = []; // $(this.CurrentPaginationVisiblePlans).each(function () { // arr.push(parseInt($(this).find('.plan-selection-plan-container').attr("planid"))); // }); // return arr; //}, //paginationPlanIDs: function () { // var arr = []; // $(this.CurrentPaginationPlans).each(function () { // arr.push(parseInt($(this).find('.plan-selection-plan-container').attr("planid"))); // }); // return arr; //}, //getEligiblePlanComparison: function (userID, userID2, benefitPlanTypeID) { // //gives back all the planIDs that userID is eligible for, but userID2 is not // var user1 = getIndividualUserPlanEligibilityByPlanType(userID, benefitPlanTypeID).eligiblePlanIDs; // var user2 = getIndividualUserPlanEligibilityByPlanType(userID2, benefitPlanTypeID).eligiblePlanIDs; // var tmp = []; // $.each(user1, function () { // if ($.inArray(parseInt(this), user2) == -1) { // tmp.push(parseInt(this)); // } // }); // return tmp; //}
}
$(document).ready(function () { if (typeof Pagination !== "undefined" && $('.plan-pagination-control').length > 0) { if (!Pagination.IsInitialized) { Pagination.init(); } }
});
function showTaxSelection(planTypeID) { var showTaxSelection = true; $("input[name=txtPlanID_" + planTypeID + "]:not([value^=-9999],[value$=':1'])").each(function () { var planID = $(this).val().split(':')[0]; if ($("#rules_" + planTypeID + "_" + planID).find(":not([type=hidden])").length > 0) { showTaxSelection = false;
} }); if (showTaxSelection) { $("#allRules-" + planTypeID).show(); }
}
function showPlanSelectionLoader(callback) { var dialogContainer = $("#planSelectionLoader"); if (!dialogContainer.hasClass("ui-dialog-content")) { // dialog hasn't been initialized yet dialogContainer.dialog({ autoOpen: false, height: 'auto', width: 500, modal: true, minHeight: 0, dialogClass: 'planSelectionLoaderDialog', position: { my: "center", at: "center", of: window }, create: function (event, ui) { var dia = $(this); // Close button not being successfully hidden when not placed in a setTimeout because dialog not initialized yet. setTimeout(function () { dia.dialog('widget').find(".ui-dialog-titlebar").hide(); }, 0); } }); } dialogContainer.dialog("open"); if (typeof callback === "function") { // Putting this in a setTimeout so that Chrome and IE will show the loading icon. This is needed until we eliminate synchronous ajax calls. setTimeout(function () { callback(); }, 0); }
}
function hidePlanSelectionLoader() { if ($("#planSelectionLoader").hasClass("ui-dialog-content")) { $("#planSelectionLoader").dialog("close"); }
}
function savePlanSelection(planTypeID, goToNextStep, audio, animationOff, button, restoreText, landingWaiveButton, saveResponses, userID, skipMCXMissingCoverageModal) { var checkedPlan; if (typeof userID != 'undefined' && userID > 0 && isPlanTypeIndividualEnrollmentType(planTypeID)) { currentUserID = userID; var userEligibility = getIndividualUserPlanEligibilityByPlanType(currentUserID, planTypeID); if (typeof userEligibility != 'undefined') { if (userEligibility.currentlySelectedPlanID > 0) { if ($.inArray(userEligibility.currentlySelectedPlanID, userEligibility.eligiblePlanIDs) >= 0) { checkedPlan = $("input[id=txtPlanID_" + planTypeID + "_" + userEligibility.currentlySelectedPlanID); } } else if (userEligibility.currentlyEnrolledPlanID > 0) { if ($.inArray(userEligibility.currentlyEnrolledPlanID, userEligibility.eligiblePlanIDs) >= 0) { checkedPlan = $("input[id=txtPlanID_" + planTypeID + "_" + userEligibility.currentlyEnrolledPlanID); } } if (typeof checkedPlan != 'undefined' && checkedPlan.length > 0) { checkedPlan.prop('checked', true); } } } else { checkedPlan = $("input[name=txtPlanID_" + planTypeID + "]:checked"); } // Continue if a plan is selected if (typeof checkedPlan != 'undefined' && checkedPlan.length > 0) { //clearBswiftErrorAlert(); var bErrors = false; var currentButton = this; var planRadio = checkedPlan[0]; var parts = planRadio.value.split(':'); var planID = parts[0]; var templateID = parts[1]; var gotoOldUnumLink = false; var queryString = "txtAction=applySelectionOnly"; // Checks if chosen plan is the waive option or a waive plan, which some clients use // Gets the waivedYN field of the benefit plan, in case the client has a waive plan instead of waive option, and checks if the ID is that of the waive option var waivedMedicalYN = checkedPlan.val().split(":")[3] === "1" || checkedPlan.val().split(":")[0] === "-9999"; if (!waivedMedicalYN) { // When "Keep My Selection" (Benefits Landing) is clicked. var keepPlan = false; if (button == undefined) { keepPlan = true; } logPlanSelectionAnalytics(planTypeID, planID, keepPlan); } var saveButton; var saveButtonRestoreText; if (button == undefined) { saveButton = $("#rulesContainer_" + planTypeID + "_" + planID + " .SaveDiv input[type='button']"); saveButtonRestoreText = $(saveButton).val(); } else { saveButton = button; saveButtonRestoreText = restoreText; } enrollmentButtonSaving($(saveButton)); // Validate non-waive plans if (planID != "-9999") { eval("bErrors = !validate" + templateID + "(" + planTypeID + "," + planID + ");"); if (bErrors) { enrollmentContinueButtonRestore($(saveButton), saveButtonRestoreText); } } // Mark plan as "done" if there are no errors if (!bErrors) { // save last row of custom EE contribution if the next button was pressed before pressing the +Add button if (planTypeID == 55 && goToNextStep && $("[name='contributionOption_" + planID + "']:checked").val() == "2") { addContributionRow(planID, true); } //need to reset the pre-election funds and clear out the leftovers because the credit gets stuck in there, credit will be re-evaluated later-- //resetDCPreElectionLeftovers(planTypeID) //saveCredits(planTypeID, false, false, true, planID); //now saving pre-election credits during plan selection //validate any amount changes per life event/ongoing rules, //we dont care if the plan type is done as of now since we want to alert and prevent the save if (!ValidateLifeEventAmounts(true)) { enrollmentContinueButtonRestore($(saveButton), saveButtonRestoreText); if (landingWaiveButton != undefined) { enrollmentContinueButtonRestore($(landingWaiveButton), jsDictionary["DONT_WANT_BENEFIT"]); } return false; } //comment out - do not append loading icon before/after buttons - 072514 jd //$("#planSelection-" + planTypeID + " div.SaveDiv").prepend("<img src=\"/images/progress-anim-icon.gif\" class=\"inline-icon\"/>"); var saveTemp = true; var webServicePlans = $("#txtEmbeddedWSPlanID"); if ((webServicePlans.length > 0) && (IsWebServicePlan(webServicePlans.val(), planID, 0))) { saveTemp = false; // Check for over GI selected // if so, send over to the old Unum V5 link // This is temporary until the XpressLink handles over GI var unumProductIDLV = ""; var planArr = webServicePlans.val().split(","); for (var i = 0; i < planArr.length; i++) { if (planArr[i].split(":")[0] == planID) { unumProductIDLV = planArr[i].split(":")[2]; break; } } queryString += "&txtPlan=" + planID + "&txtPlanType=" + planTypeID + "&unumProductIDLV=" + unumProductIDLV; queryString += "&benefitID=" + $("#benefitID_" + planTypeID).val(); // create querystring to call the ApplySelections web service before redirecting to the UNUM site via V5 switch (unumProductIDLV) { case "21": if ($("#coverageAmountVWBSTD option:selected").attr("gi") == "N") { gotoOldUnumLink = true; var coverageOptionDDL = $("#coverageVWBSTD"); var coverageAmountDDL = $("#coverageAmountVWBSTD"); queryString += "&coverageOptionID=" + $('option:selected', coverageOptionDDL).val() + "&coverageAmoutID=" + $('option:selected', coverageAmountDDL).val() + "&benefitCoverage=" + $('option:selected', coverageAmountDDL).attr("coverage") + "&benefitPremium=" + $('option:selected', coverageAmountDDL).attr("cost") + "&gi=" + $('option:selected', coverageAmountDDL).attr("gi"); if ($("#riderCheckboxSTD:checked").length != 0) { queryString += "&riderPremium=" + $('option:selected', coverageAmountDDL).attr("riderpremium") + "&rideroptionid=" + $('option:selected', coverageAmountDDL).attr("rideroptionid"); } } break; case "24": case "25": var empCoverageAmountCI = $("#empCoverageAmountCI"); var spouseCoverageAmountCI = $("#spouseCoverageAmountCI"); var empRiderCI = $("#empRiderCheckbox"); var spouseRiderCI = $("#spouseRiderCheckbox"); if ($("#empCoverageAmountCI option:selected").attr("gi") == "N") { gotoOldUnumLink = true; } if ($("#spouseCoverageAmountCI option:selected").attr("gi") == "N") { gotoOldUnumLink = true; } if (gotoOldUnumLink) { queryString += "&coverageOptionID1=" + $('option:selected', empCoverageAmountCI).attr("coverageoptionid") + "&benefitCoverage1=" + $('option:selected', empCoverageAmountCI).attr("coverage") + "&benefitPremium1=" + $('option:selected', empCoverageAmountCI).attr("cost") + "&gi1=" + $('option:selected', empCoverageAmountCI).attr("gi"); if (empRiderCI.length > 0) { if ($(empRiderCI).prop("checked")) { queryString += "&riderpremium1=" + $('option:selected', empCoverageAmountCI).attr("riderpremium") + "&rideroptionid1=" + $('option:selected', empCoverageAmountCI).attr("rideroptionid"); } } if (spouseCoverageAmountCI.length > 0) { if ($('option:selected', spouseCoverageAmountCI).val() != "Spouse Opt Out") { queryString += "&coverageOptionID2=" + $('option:selected', spouseCoverageAmountCI).attr("coverageoptionid") + "&benefitCoverage2=" + $('option:selected', spouseCoverageAmountCI).attr("coverage") + "&benefitPremium2=" + $('option:selected', spouseCoverageAmountCI).attr("cost") + "&gi2=" + $('option:selected', spouseCoverageAmountCI).attr("gi") + "&dependentID=" + $('option:selected', spouseCoverageAmountCI).attr("dependentID"); if (spouseRiderCI.length > 0) { if ($(spouseRiderCI).prop("checked")) { queryString += "&riderpremium2=" + $('option:selected', spouseCoverageAmountCI).attr("riderpremium") + "&rideroptionid2=" + $('option:selected', spouseCoverageAmountCI).attr("rideroptionid"); } } } } } break; } } if (gotoOldUnumLink) { var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_questions_via_webservice_ajax.aspx', data: queryString, dataType: 'html', async: true, success: function (msg) { goToUNUM($("#unumProductID_" + planID).val()); }, error: function () { $("#loader").remove(); alert("There was a problem communicating with your benefits provider. If the problem persists, please contact an administrator."); } }); } else { setTimeout(function () { if (saveTemp) { $("#txtDone_" + planTypeID).val("7"); saveTempData(planTypeID, planID, saveResponses); if ($('#dynamicCreditSlider').length) { saveCredits(planTypeID, true); } //Check individual enrollment plan types. We will need to mark the newly-selected plan. var usersEligiblePlans = bptUsersEligibility[planTypeID]; if (typeof usersEligiblePlans != "undefined" && typeof currentUserID != "undefined" && currentUserID > 0) { var userPlanEligibility = $.grep(usersEligiblePlans, function (e) { return e.userID == currentUserID; })[0]; //save if the user is waiving or enrolling in a plan that they are eligible for if (userPlanEligibility != undefined && (planID < 0 || $.inArray(planID, userPlanEligibility.eligiblePlanIDs))) { userPlanEligibility.currentlySelectedPlanID = parseInt(planID); userPlanEligibility.done = "7"; styleMedicareSplitBenefitOK(); } } } if (goToNextStep) { if ($('#dynamicCreditSlider').length > 0) { $('#dynamicCreditSlider').slider('disable'); } UpdateTotalCosts(); setEECosts(); AutoEnrollPlanContingencies(planID, planTypeID, currentUserID); ProcessAutoWaiveRules(planID, planTypeID); if (isPlanTypeIndividualEnrollmentType(planTypeID)) { //need to look at all users because we've redrawn the landing panel //and potentially lost the contingency message for some users var enrolledUsers = getIndividualEnrollmentUsers(); for (var j = 0; j < enrolledUsers.length; j++) { HideContingentPlans(enrolledUsers[j]); } } else { HideContingentPlans(); } ValidatePlanContingencies(planID, true, true, true); DisplayEOIMessage(planID, planTypeID); if (audio != undefined && audio != null && !soundManager.html5.usingFlash && ((isAskEmmaEnabled || isBestFitEnabled) && askEmma !== undefined && askEmma.sessionData !== undefined && !askEmma.sessionData.global.isMuted)) { setTimeout(function () { soundManager.stopAll(); soundManager.getSoundById(askEmma.addAudio(audio).id).play({ onfinish: function () { askEmma.closeEmmaFeatures(); } }); }, 500); } enrollmentContinueButtonRestore($(saveButton), saveButtonRestoreText); if (landingWaiveButton != undefined) { enrollmentContinueButtonRestore($(landingWaiveButton), jsDictionary["DONT_WANT_BENEFIT"]); } // If emma is on and we are going through apollo, we need to skip going to landing // until we have completed the beginning panels. var goToLanding = true; if ($(".askemma").length > 0 && planTypeID == 206) { // "No Thanks" clicked (Apollo Waived) if (button.length == 0 && landingWaiveButton.length == 0) { goToLanding = false; } // "Shop watches" clicked } if (planTypeID == 203 || planTypeID == 204) { medicarePlanSelectedOrWaived = true; } var questionsModalShowing = false; if (!showWaiveQuestionOnly(planTypeID, planID)) { questionsModalShowing = getQuestions(planID, planTypeID, true); } else if ((templateID == "203") && planID == "-9999") { ShowUserMedicareAttestation(planID, planTypeID); } if (goToLanding) { var MCXOptions = undefined; if (typeof bptUsersEligibility !== "undefined" && !$.isEmptyObject(bptUsersEligibility)) { if (typeof MedicareExchangePlanInfo.planInfo !== "undefined" && !$.isEmptyObject(MedicareExchangePlanInfo.planInfo) && MedicareExchangePlanInfo.planInfo.length > 0) { MCXOptions = { OpenMissingCoverageModal: false, HasDrugBenefits: true, CanHaveOtherDrugBenefits: true, HasMedicalBenefits: true, UserEligibleForMedicalOnlyBenefits: true, UserEligibleForDrugOnlyBenefits: true }; if (!MedicareExchangePlanInfo.userHasDrugBenefits()) { MCXOptions.HasDrugBenefits = false; } if (!MedicareExchangePlanInfo.planAllowsOtherDrugCoverage(planID)) { MCXOptions.CanHaveOtherDrugBenefits = false; } if (!MedicareExchangePlanInfo.userHasMedicalBenefits()) { MCXOptions.HasMedicalBenefits = false } if ((skipMCXMissingCoverageModal == undefined || !skipMCXMissingCoverageModal) && (!MCXOptions.HasDrugBenefits || !MCXOptions.HasMedicalBenefits)) { MCXOptions.OpenMissingCoverageModal = true; } if (!MedicareExchangePlanInfo.userEligibleForMedicalOnlyBenefits()) { MCXOptions.UserEligibleForMedicalOnlyBenefits = false; } if (!MedicareExchangePlanInfo.userEligibleForDrugOnlyBenefits()) { MCXOptions.UserEligibleForDrugOnlyBenefits = false; } } } goToLandingPage(planTypeID, animationOff, null, questionsModalShowing, MCXOptions); } } }, 0); } } closeEditCustomClientText(); } else { alert(jsDictionary["SELECT_ONE_PLAN_WARNING"]); } //applyAndSubtractCredits(planTypeID, false, false); initMobileNav();
}
function processSortChange(planTypeID) { if ($("#plansSort" + planTypeID).val() != "cost" && $("#plansSort" + planTypeID).val() != "medicareplantype") { showPlansAfterCostSort2016(planTypeID); } sortPlans2016Version($("#plansSort" + planTypeID).val(), planTypeID);
}
function showWaiveQuestionOnly(planTypeID, planID) { if ($("#waiveQuestionAnswer_" + planTypeID + "_" + planID).length > 0 && ($("#questionsPlansList").val() == undefined || ($("#questionsPlansList").val() != undefined && $.inArray(String(planID), $("#questionsPlansList").val().split(',')) == -1))) { return true; } else { return false; }
}
function getQuestions(planID, planTypeID, showModal, button, restoreText,userID) { var showWaiveQuestion = showWaiveQuestionOnly(planTypeID, planID); var showingQuestions = false; if (showWaiveQuestion) { $("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").html($("#rules_" + planTypeID + "_" + planID)); $("#rules_" + planTypeID + "_" + planID).show(); if ($("#questionsModal-" + planTypeID).hasClass('ui-dialog-content')) { $("#questionsModal-" + planTypeID).dialog('destroy'); } $("#questionsModal-" + planTypeID).dialog({ dialogClass: "plan-questions-dialog", resizable: true, autoOpen: false, modal: true, width: 1180, closeOnEscape: false, appendTo: "#frmMaint", buttons: [{ text: jsDictionary["SAVE_ANSWERS"], click: function () { //var waivePlanRadio = $("input[name=txtPlanID_" + planTypeID + "]").filter("[value^='-9999:'],[value$=':1']"); //if (waivePlanRadio.length > 0) { // $(waivePlanRadio).click(); //} if ($("#waiveQuestionAnswer_" + planTypeID + "_" + planID).val() == "") { bswiftWarningAlert(jsDictionary['WAIVE_QUESTION_WARNING']); SetFocus($("#waiveQuestionAnswer_" + planTypeID + "_" + planID)); return false; } savePlanSelection(planTypeID, true, null, false, $(button), restoreText); } }], create: function (event, ui) { $(this).parent('.ui-dialog').addClass('questions-modal');//.css({ position: "fixed!important", top: "40px!important" }); $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-cta btn-large'); } }); } else if ($("#questionsPlansList").val() != undefined && $("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").html() == "") { if ($.inArray(String(planID), $("#questionsPlansList").val().split(',')) != -1) { $("#allRules-" + planTypeID).append($("#questionsSelection-" + planTypeID + " [id^=rules_" + planTypeID + "_]")); loadQuestions(planTypeID, true, false, true); // Add ACA questions to modal, if other questions exist if ($("#waiveQuestionAnswer_" + planTypeID + "_" + planID).length > 0) { $("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").prepend($("#rules_" + planTypeID + "_" + planID)); } if ($("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").html() != "") { if (!$("#questionsModal-" + planTypeID).hasClass('ui-dialog-content')) { $("#questionsModal-" + planTypeID).dialog({ dialogClass: "plan-questions-dialog", resizable: true, autoOpen: false, modal: true, width: 1180, height: $(window).outerHeight() - 200, closeOnEscape: false, appendTo: "#frmMaint", buttons: [{ text: jsDictionary["SAVE_ANSWERS"], click: function () { if ($("#waiveQuestionAnswer_" + planTypeID + "_" + planID).length > 0) { if ($("#waiveQuestionAnswer_" + planTypeID + "_" + planID).val() == "") { bswiftWarningAlert(jsDictionary['WAIVE_QUESTION_WARNING']); SetFocus($("#waiveQuestionAnswer_" + planTypeID + "_" + planID)); return false; } else if (!validateQuestions(planTypeID)) { return false; } else { savePlanSelection(planTypeID, false, null, true, undefined, undefined, undefined, true); } } else { saveQuestions(planTypeID, false, false, planID); } //This audio will be played whenevere user clicks OK in Smoking modal pop up if (isAskEmmaEnabled) { askEmma.playLandingPageAudio(); } } }], create: function (event, ui) { $(this).parent('.ui-dialog').addClass('questions-modal');//.css({ position: "fixed!important", top: "40px!important" }); $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-cta btn-large'); } }); } } } } if (showModal && $("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").html() != "") { $("#questionsModal-" + planTypeID).dialog('open'); showingQuestions = true; showFollowUpQuestions(); //$("#questionsModal-" + planTypeID).css({position:"fixed!important"},{top:"40px!important"}); } var templateID = Number($("input[name=txtPlanID_" + planTypeID + "]:first").val().split(':')[1]); if (templateID == "203" && ($("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").length == 0 || $("#questionsSelection-" + planTypeID + " div.plan-selection-step-content").html() == "")) ShowUserMedicareAttestation(planID, planTypeID, userID); return showingQuestions;
}
function getAllQuestions() { if ($("#questionsPlansList").val() != undefined) { planRadioList = $("[name^='txtPlanID_']:checked"); for (var i = 0; i < planRadioList.length; i++) { var planTypeID = planRadioList[i].name.substring(10); var planID = planRadioList[i].value.split(':')[0]; if ($("#confirmBenefitType-" + planTypeID).hasClass("benefit-ok") && $.inArray(planID, $("#questionsPlansList").val().split(',')) != -1) { getQuestions(planID, planTypeID, false); } } }
}
function closePlanDetails(planTypeID) { $("html,body").removeClass("one-col"); $("#plan-compare").hide(); $("#benefittype-" + planTypeID + " > .container > .row").show(); // Update back button to return to Benefits Landing backBtnTxtChange(true, planTypeID);
}
function getDeductionFrequency(planID) { var customDeductionFrequencies = JSON.parse($("#txtDeductionFrequencies").val()); var customDeductionFrequency = $.grep(customDeductionFrequencies, function (cdf) { return cdf.PlanID == planID; }).length == 0 ? null : $.grep(customDeductionFrequencies, function (cdf) { return cdf.PlanID == planID; })[0].DeductionFrequency; var deductionFrenquency = customDeductionFrequency == null ? $("#txtEmployeePayPeriodCount").val() : customDeductionFrequency; return deductionFrenquency;
}
function continueToNextStep(step) { switch (step) { case "planSelection": setEnrollmentButtonToSaving(); getAllQuestions(); if (GlobalValidate()) { SetUpNextSteps(); $("#pcp-container").children(":not(#pcp-page-text)").remove(); $("#beneficiaries-container").children(":not(#beneficiaries-page-text)").remove(); $("#cob-container").children(":not(#cob-page-text)").remove(); $("#coe-container").children(":not(#coe-page-text)").remove(); $("#billingPreferences-container").children(":not(#billingPreferences-page-text)").remove(); $(".credits-panel, #offerLink, #continueToNextStepText, #saveAndFinishLaterText, #saveAndFinishLater, #editable-text-356, #editable-text-357").hide(); if (showPCP) { openAllPCP(); } else if (showBeneficiaries) { openAllBeneficiaries(); } else if (showCOB) { openAllOtherCoverages(); } else if (showCOE) { openCOE(); } else if (showBillingPreferences) { openBillingPreferences(); } else { setEnrollmentButtonToSaving(); saveData(); setEnrollmentButtonToContinue(); } //scroll back to the top $("html, body").animate({"scrollTop": "0px"}, 500); } else { setEnrollmentButtonToContinue(); } break; case "pcpSelection": $("#beneficiaries-container").children(":not(#beneficiaries-page-text)").remove(); $("#cob-container").children(":not(#cob-page-text)").remove(); $("#coe-container").children(":not(#coe-page-text)").remove(); $("#billingPreferences-container").children(":not(#billingPreferences-page-text)").remove(); if (showBeneficiaries) { openAllBeneficiaries(); } else if (showCOB) { openAllOtherCoverages(); } else if (showCOE) { openCOE(); } else if (showBillingPreferences) { openBillingPreferences(); } else { setEnrollmentButtonToSaving(); saveData(); setEnrollmentButtonToContinue(); } //scroll back to the top $("html, body").animate({ "scrollTop": "0px" }, 500); break; case "beneficiariesSelection": $("#cob-container").children(":not(#cob-page-text)").remove(); $("#coe-container").children(":not(#coe-page-text)").remove(); $("#billingPreferences-container").children(":not(#billingPreferences-page-text)").remove(); if (showCOB) { openAllOtherCoverages(); } else if (showCOE) { openCOE(); } else if (showBillingPreferences) { openBillingPreferences(); } else { setEnrollmentButtonToSaving(); saveData(); setEnrollmentButtonToContinue(); } //scroll back to the top $("html, body").animate({ "scrollTop": "0px" }, 500); break; case "cobSelection": $("#coe-container").children(":not(#coe-page-text)").remove(); $("#billingPreferences-container").children(":not(#billingPreferences-page-text)").remove(); if (showCOE) { openCOE(); } else if (showBillingPreferences) { openBillingPreferences(); } else { setEnrollmentButtonToSaving(); saveData(); setEnrollmentButtonToContinue(); } //scroll back to the top $("html, body").animate({ "scrollTop": "0px" }, 500); break; case "coeSelection": $("#billingPreferences-container").children(":not(#billingPreferences-page-text)").remove(); if (showBillingPreferences) { openBillingPreferences(); } else { setEnrollmentButtonToSaving(); saveData(); setEnrollmentButtonToContinue(); } //scroll back to the top $("html, body").animate({ "scrollTop": "0px" }, 500); break; case "billingPreferencesSelection": //$("#billingPreferences-container").children(":not(#billingPreferences-page-text)").remove(); //if (showBillingPreferences) { // openBillingPreferences(); //} //else { setEnrollmentButtonToSaving(); saveData(); setEnrollmentButtonToContinue(); //} //scroll back to the top //$("html, body").animate({ "scrollTop": "0px" }, 500); break; default: $("#pcp-container, #pcp-page-text, #beneficiaries-container, #beneficiaries-page-text, #cob-container, #cob-page-text, #coe-container, #coe-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); animateProgressIndicator($("#your-benefits-link")); hideProgressIndicatorElement($('#physician-selection-link, #beneficiaries-link, #cob-link, #coe-link, #billingPreferences-link, #unum-eoi-app-link')); goToLandingPage(); //scroll back to the top $("html, body").animate({ "scrollTop": "0px" }, 500); break; }
}
function SetUpNextSteps() { if ($("#pcpPlansList").length > 0 && includeStep($("input[name^='txtPlanID_']:checked"), $("#pcpPlansList").val())) { showPCP = true; showProgressIndicatorElement($('#physician-selection-link, #review-confirm-link')); } else { showPCP = false; hideProgressIndicatorElement($('#physician-selection-link')); } if ($("#beneficiariesPlansList").length > 0 && includeStep($("input[name^='txtPlanID_']:checked"), $("#beneficiariesPlansList").val())) { showBeneficiaries = true; showProgressIndicatorElement($('#beneficiaries-link, #review-confirm-link')); } else { showBeneficiaries = false; hideProgressIndicatorElement($('#beneficiaries-link')); } if ($("#otherCoveragesPlansList").length > 0 && includeStep($("input[name^='txtPlanID_']:checked"), $("#otherCoveragesPlansList").val())) { showCOB = true; showProgressIndicatorElement($('#cob-link, #review-confirm-link')); } else { showCOB = false; hideProgressIndicatorElement($('#cob-link')); } if ($("#userPlanCOEList").length > 0 && includeCOEStep($("input[name^='txtPlanID_']:checked"), bptUsersEligibility, $("#userPlanCOEList").val())) { showCOE = true; showProgressIndicatorElement($('#coe-link, #review-confirm-link'));
} else { showCOE = false; hideProgressIndicatorElement($('#coe-link')); } if ($("#txtBillingPreferenceEnabledPlans").length > 0 && includeStep($("input[name^='txtPlanID_']:checked"), $("#txtBillingPreferenceEnabledPlans").val())) { showBillingPreferences = !isAllPlanTypesWaived(); showProgressIndicatorElement($('#billingPreferences-link, #review-confirm-link')); } else { showBillingPreferences = false; hideProgressIndicatorElement($('#billingPreferences-link')); } // if ($("showUnumEOI").val() == 'true') { jquery selector not recognizing for some reason if ($(document.getElementById('showUnumEOI')).val() == 'true') { showProgressIndicatorElement($('#unum-eoi-app-link, #review-confirm-link')); } else { hideProgressIndicatorElement($('#unum-eoi-app-link')); }
}
function isAllPlanTypesWaived() { var isAllSelectedPlansAreWaived = true; var userPlanEligibility; var selectedIndPlanRadio; var allPlanradioList = $("input[name^='txtPlanID_']:checked"); if (allPlanradioList != undefined && allPlanradioList.length > 0) { for (var pr = 0; pr < allPlanradioList.length; pr++) { var waivedPlanYN = allPlanradioList[pr].value.split(":")[3] === "1" || allPlanradioList[pr].value.split(":")[0] === "-9999"; if (!waivedPlanYN) { isAllSelectedPlansAreWaived = false; } } } for (var benefitPlanTypeID in bptUsersEligibility) { userPlanEligibility = bptUsersEligibility[benefitPlanTypeID]; if (userPlanEligibility != undefined && userPlanEligibility.length > 0) { for (var j = 0; j < userPlanEligibility.length; j++) { if (userPlanEligibility[j].currentlySelectedPlanID > 0) { selectedIndPlanRadio = $("input[id^=txtPlanID_" + benefitPlanTypeID + "_" + userPlanEligibility[j].currentlySelectedPlanID + "]"); var waivedIndPlanYN = selectedIndPlanRadio[0].value.split(":")[3] === "1" || selectedIndPlanRadio[0].value.split(":")[0] === "-9999"; if (!waivedIndPlanYN) { isAllSelectedPlansAreWaived = false; } } } } } return isAllSelectedPlansAreWaived;
}
function includeCOEStep(planRadioList, selected203TemplatePlanList, eligibleplanList) { var userPlanEligibility; var jsonEligPlanList = jQuery.parseJSON($("#userPlanCOEList").val()); for (var i = 0; i < jsonEligPlanList.length; i++) { //Check for Medicare for (var benefitPlanTypeID in bptUsersEligibility) { userPlanEligibility = bptUsersEligibility[benefitPlanTypeID]; if (userPlanEligibility != undefined && userPlanEligibility.length > 0) { for (var j = 0; j < userPlanEligibility.length; j++) { if ($.inArray(userPlanEligibility[j].currentlySelectedPlanID, jsonEligPlanList[i].PlanIDs) != -1 && userPlanEligibility[j].userID == jsonEligPlanList[i].UserID) { return true; } } } } //Check for Other Plan Types for (var k = 0; k < planRadioList.length; k++) { var planTypeID = planRadioList[k].name.substring(10); var planID = planRadioList[k].value.split(':')[0]; if ($.inArray(parseInt(planID), jsonEligPlanList[i].PlanIDs) != -1 && $("#confirmBenefitType-" + planTypeID).hasClass("benefit-ok")) { return true; } } } return false;
}
function includeStep(planRadioList, planList) { for (var i = 0; i < planRadioList.length; i++) { var planTypeID = planRadioList[i].name.substring(10); var planID = planRadioList[i].value.split(':')[0]; if ($.inArray(String(planID), planList.split(',')) != -1 && $("#confirmBenefitType-" + planTypeID).hasClass("benefit-ok")) { return true; } } var currentlySelectedPlanID; var userID; //check individual enrollment plans for (var planTypeID in bptUsersEligibility) { for (var i = 0; i < bptUsersEligibility[planTypeID].length; i++) { currentlySelectedPlanID = bptUsersEligibility[planTypeID][i].currentlySelectedPlanID; userID = bptUsersEligibility[planTypeID][i].userID; if ($.inArray(String(currentlySelectedPlanID), planList.split(',')) != -1 && $("[id=confirmBenefitType-" + planTypeID + "][userid=" + userID + "]").hasClass("benefit-ok")) { return true; } } } return false;
}
function showStep(step) { switch (step) { case "planSelection": $("#pcp-container, #pcp-page-text, #beneficiaries-container, #beneficiaries-page-text, #cob-container, #cob-page-text, #physician-selection-link, #beneficiaries-link, #cob-link, #coe-container, #coe-link, #billingPreferences-container, #billingPreferences-link, #review-confirm-link, #unum-eoi-app-link").hide(); $("#benefitSelection-container, .credits-panel, #offerLink, #continueToNextStepText, #saveAndFinishLaterText, #saveAndFinishLater, #editable-text-356, #editable-text-357").show(); animateProgressIndicator($("#your-benefits-link")); $("#continueToNextStep").unbind('click').click(function () { continueToNextStep("planSelection"); }); break; case "pcpSelection": if ($("#pcp-container").html() == "") { openAllPCP(); } else { $("#benefitSelection-container, #beneficiaries-container, #beneficiaries-page-text, #cob-container, #cob-page-text, #coe-container, #coe-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); $("#pcp-container, #pcp-page-text").show(); animateProgressIndicator($("#physician-selection-link")); $("#continueToNextStep").unbind('click').click(function () { continueToNextStep("pcpSelection"); }); } break; case "beneficiariesSelection": if ($("#beneficiaries-container").html() == "") { openAllBeneficiaries(); } else { $("#benefitSelection-container, #pcp-container, #pcp-page-text, #cob-container, #cob-page-text, #coe-container, #coe-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); $("#beneficiaries-container, #beneficiaries-page-text").show(); animateProgressIndicator($("#beneficiaries-link")); $("#continueToNextStep").unbind('click').click(function () { continueToNextStep("beneficiariesSelection"); }); } break; case "cobSelection": if ($("#cob-container").html() == "") { openAllOtherCoverages(); } else { $("#benefitSelection-container,#beneficiaries-container, #beneficiaries-page-text, #pcp-container, #pcp-page-text, #coe-container, #coe-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); $("#cob-container, #cob-page-text").show(); animateProgressIndicator($("#cob-link")); $("#continueToNextStep").unbind('click').click(function () { continueToNextStep("cobSelection"); });
} break; case "coeSelection": if ($("#coe-container").html() == "") { openCOE(); } else { $("#benefitSelection-container,#beneficiaries-container, #beneficiaries-page-text, #pcp-container, #pcp-page-text, #cob-container, #cob-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); $("#coe-container, #coe-page-text").show(); animateProgressIndicator($("#coe-link")); $("#continueToNextStep").unbind('click').click(function () { continueToNextStep("coeSelection"); }); } break; case "billingPreferencesSelection": if ($("#billingPreferences-container").html() == "") { openBillingPreferences(); } else { $("#benefitSelection-container,#beneficiaries-container, #beneficiaries-page-text, #pcp-container, #pcp-page-text, #cob-container, #cob-page-text, #coe-container, #coe-page-text").hide(); $("#billingPreferences-container, #billingPreferences-page-text").show(); animateProgressIndicator($("#billingPreferences-link")); $("#continueToNextStep").unbind('click').click(function () { continueToNextStep("billingPreferencesSelection"); }); } break; }
}
function toggleYourInfo() { if ($('#employeeInfo-link').is(':visible')) { hideProgressIndicatorElement($('#employeeInfo-link, #familyInfo-link, #questions-link, #spouseEnrollmentQuestion-link, #usereffectivedate-link')); } else { showProgressIndicatorElement($('#employeeInfo-link, #familyInfo-link, #questions-link, #spouseEnrollmentQuestion-link, #usereffectivedate-link')); }
}
function buildContainer(planTypeID, stepID, label) { return "<div class=\"post-shop-content\" id=\"" + stepID + "-" + planTypeID + "\"><h2>" + label + "</h2></div>";
}
function openAllBeneficiaries(animationOff) { $("#beneficiaries-container, #beneficiaries-page-text").show(); $("#benefitSelection-container, #pcp-container, #pcp-page-text, #cob-container, #cob-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); planRadioList = $("[name^='txtPlanID_']:checked"); for (var i = 0; i < planRadioList.length; i++) { for (var j = 0; j < $("#beneficiariesPlansList").val().split(',').length; j++) { var planTypeID = planRadioList[i].name.substring(10); var planID = planRadioList[i].value.split(':')[0]; if ($("#confirmBenefitType-" + planTypeID).hasClass("benefit-ok")) { if ($("#beneficiariesPlansList").val().split(',')[j] == planID) { var planTypeName = $("#benefittype-" + planTypeID + " .plan-header h1").html(); $("#beneficiaries-container").append(buildContainer(planTypeID, "beneficiariesSelection", ($("#txtMultipleBneneficiaries").val() == "0" ? jsDictionary["ALL_BENEFITS"] : planTypeName))); $("#beneficiariesSelection-" + planTypeID).append("<div id=\"loader\" align=\"center\"><img alt=\"Content loading\" src=\"/images/loading.gif\" class=\"inline-icon\"/></div>"); loadBeneficiaries(planTypeID); if ($("#txtMultipleBneneficiaries").val() == "0") { i = 1000; break; } } } } } $("#continueToNextStep").unbind('click').click(function () { saveBeneficiaries(); }); if (!animationOff) { animateProgressIndicator($("#beneficiaries-link")); } responsiveTable('.responsiveTable');//styles tables setEnrollmentButtonToContinue();
}
function loadBeneficiaries(planTypeID) { var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_beneficiaries_ajax.aspx', data: "txtPlanType=" + planTypeID, dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); $("#beneficiariesSelection-" + planTypeID).append(msg); $("#beneficiariesSelection-" + planTypeID).find("div.client-text-container").hide(); $("#beneficiariesSelection-" + planTypeID + " .tooltip-target").tooltip({ position: "center right", opacity: 1, offset: [0, 15], effect: "fade", relative: true }); allowPrimaryToBeContingent = $("#beneficiariesSelection-" + planTypeID + " #txtAllowPrimaryToBeContingent").val(); disableDefaultAssignments = $("#beneficiariesSelection-" + planTypeID + " #txtDisableDefaultAssignments").val(); var defaultMyEstate = $("#beneficiariesSelection-" + planTypeID + " #txtDefaultMyEstate").val(); $("#beneficiariesSelection-" + planTypeID + " span[id^='PrimaryTotal_']").each(function () { UpdatePrimaryTotal(this.id.substring(13)) }); $("#beneficiariesSelection-" + planTypeID + " span[id^='PrimaryTotal_']").each(function () { if ($(this).attr("total") == "0" && disableDefaultAssignments == "0") { if (defaultMyEstate == "1" || $("#beneficiariesSelection-" + planTypeID + " input[name^='Primary_" + this.id.substring(13) + "'][spouse=1]").val() == undefined) { $("#beneficiariesSelection-" + planTypeID + " input[name^='Primary_" + this.id.substring(13) + "']:first").val("100.00"); } else { $("#beneficiariesSelection-" + planTypeID + " input[name^='Primary_" + this.id.substring(13) + "'][spouse=1]").val("100.00"); } $(this).addClass('hundredPercent').html("100%").attr("total", "100"); } }); $("#beneficiariesSelection-" + planTypeID + " span[id^='ContingentTotal_']").each(function () { UpdateContingentTotal(this.id.substring(16)) }); $("#beneficiariesSelection-" + planTypeID + " input[name^='Primary_']").keyup(function () { UpdatePrimaryTotal(this.name.split('_')[1]) }); $("#beneficiariesSelection-" + planTypeID + " input[name^='Contingent_']").keyup(function () { UpdateContingentTotal(this.name.split('_')[1]) }); } });
}
function saveBeneficiaries() { var planTypeID; var bErrors; setEnrollmentButtonToSaving(); $("div[id^='beneficiariesSelection-']").each(function () { planTypeID = $(this).attr("id").substring(23); // validate beneficiaries bErrors = validateBeneficiaries(planTypeID, true); if (bErrors) { setEnrollmentButtonToContinue(); return false; } }); if (!bErrors) { $("div[id^='beneficiariesSelection-']").each(function () { planTypeID = $(this).attr("id").substring(23); $("input[name='txtAction']").val("save"); $("input[name='txtPlanType']").val(planTypeID); var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_beneficiaries_ajax.aspx', data: $("#frmMaint").serialize(), dataType: 'html', async: false }); }); continueToNextStep("beneficiariesSelection"); }
}
function openAllPCP() { $("#pcp-container, #pcp-page-text").show(); $("#benefitSelection-container, #beneficiaries-container, #beneficiaries-page-text, #cob-container, #cob-page-text, #coe-container, #coe-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); planRadioList = $("[name^='txtPlanID_']:checked"); for (var i = 0; i < planRadioList.length; i++) { for (var j = 0; j < $("#pcpPlansList").val().split(',').length; j++) { var planTypeID = planRadioList[i].name.substring(10); var planID = planRadioList[i].value.split(':')[0]; if ($("#confirmBenefitType-" + planTypeID).hasClass("benefit-ok")) { if ($("#pcpPlansList").val().split(',')[j] == planID) { var planTypeName = $("#benefittype-" + planTypeID + " .plan-header h1").html(); $("#pcp-container").append(buildContainer(planTypeID, "pcpSelection", planTypeName)); $("#pcpSelection-" + planTypeID).append("<div id=\"loader\" align=\"center\"><img alt=\"Content loading\" src=\"/images/loading.gif\" class=\"inline-icon\"/></div>"); loadPCP(planTypeID); } } } } $("#continueToNextStep").unbind('click').click(function () { savePCP(); }); animateProgressIndicator($("#physician-selection-link")); setEnrollmentButtonToContinue();
}
function loadPCP(planTypeID) { var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_pcp_ajax.aspx', data: "txtPlanType=" + planTypeID, dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); $("#pcpSelection-" + planTypeID).append(msg); $("#pcpSelection-" + planTypeID).find("div.client-text-container").hide(); $("#pcpSelection-" + planTypeID + " .tooltip-target").tooltip({ position: "center right", opacity: 1, offset: [0, 15], effect: "fade", relative: true }); responsiveTable("#pcpSelection-" + planTypeID + " div.pcp-table table"); } });
}
function savePCP() { var bErrors = false; setEnrollmentButtonToSaving(); $("div[id^='pcpSelection-']").each(function () { planTypeID = $(this).attr("id").substring(13); var requiredInputs = $("#pcpSelection-" + planTypeID + " input[required]"); for (var i = 0; i < requiredInputs.length; i++) { if ($(requiredInputs[i]).attr("type") == "radio") { if ($("input[name=" + $(requiredInputs[i]).attr("name") + "]:checked").length == 0) { bswiftWarningAlert($(requiredInputs[i]).attr("tag") + " " + GetGlobalDictionaryValue('is required') + "."); requiredInputs[i].focus(); bErrors = true; setEnrollmentButtonToContinue(); return false; } } else if (requiredInputs[i].value == "") { bswiftWarningAlert($(requiredInputs[i]).attr("tag") + " " + GetGlobalDictionaryValue('is required') + "."); requiredInputs[i].focus(); bErrors = true; setEnrollmentButtonToContinue(); return false; } } }); if (!bErrors) { $("div[id^='pcpSelection-']").each(function () { planTypeID = $(this).attr("id").substring(13); $("input[name='txtAction']").val("save"); $("input[name='txtPlanType']").val(planTypeID); var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_pcp_ajax.aspx', data: $("#frmMaint").serialize(), dataType: 'html', async: false }); }); continueToNextStep("pcpSelection"); }
}
function openAllOtherCoverages() { $("#cob-container, #cob-page-text").show(); $("#benefitSelection-container, #beneficiaries-container, #beneficiaries-page-text, #pcp-container, #pcp-page-text, #coe-container, #coe-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); planRadioList = $("[name^='txtPlanID_']"); for (var i = 0; i < planRadioList.length; i++) { var planTypeID = planRadioList[i].name.substring(10); var planID = planRadioList[i].value.split(':')[0]; if ((!isPlanTypeIndividualEnrollmentType(planTypeID) && $(planRadioList[i]).is(":checked")) || (isPlanTypeIndividualEnrollmentType(planTypeID) && getUsersEnrolledInIndividualPlan(planID).length > 0)) { for (var j = 0; j < $("#otherCoveragesPlansList").val().split(',').length; j++) { if ((!isPlanTypeIndividualEnrollmentType(planTypeID) && $("#confirmBenefitType-" + planTypeID).hasClass("benefit-ok")) || (isPlanTypeIndividualEnrollmentType(planTypeID) && $("[id=confirmBenefitType-" + planTypeID + "].benefit-ok").length > 0)) { if ($("#otherCoveragesPlansList").val().split(',')[j] == planID) { var planTypeName; planTypeName = $("#benefittype-" + planTypeID).attr('benefitplantypename'); //need to check if section already exists (can happen if a previous individual enrollment plan created the div for a different user) if ($('#otherCoveragesSelection-' + planTypeID).length == 0) { $("#cob-container").append(buildContainer(planTypeID, "otherCoveragesSelection", planTypeName)); } $("#otherCoveragesSelection-" + planTypeID).append("<div id=\"loader\" align=\"center\"><img alt=\"Content loading\" src=\"/images/loading.gif\" class=\"inline-icon\"/></div>"); loadOtherCoverages(planTypeID, planID); BindEditAjaxArgsCOB(planTypeID); $("#otherCoveragesSelection-" + planTypeID + " input[cancelCoverageItem]").click(); $("#otherCoveragesSelection-" + planTypeID + " input[cancelMedicareItem]").click(); } } } } } $("#continueToNextStep").unbind('click').click(function () { saveOtherCoverages(); }); animateProgressIndicator($("#cob-link")); setEnrollmentButtonToContinue();
}
function loadOtherCoverages(planTypeID, planID) { var ineligibleIDList = ""; if (isPlanTypeIndividualEnrollmentType(planTypeID)) { var enrolledUsers = getUsersEnrolledInIndividualPlan(planID); $("input[id^=coverage_" + planTypeID + "_]").each(function () { if (enrolledUsers.indexOf(parseInt(this.id.split("_")[2])) < 0) { ineligibleIDList += this.id.split("_")[2] + ","; } }); } else { $("div.dependent-ineligible input[id^=coverage_" + planTypeID + "_]").each(function () { ineligibleIDList += this.id.split("_")[2] + ","; }); } var xml_http = $.ajax({ type: 'POST', url: 'enroll_all_other_coverages.aspx', data: "txtPlanType=" + planID + "&txtIneligibleIDList=" + ineligibleIDList, dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); // load Medicare for first plan type only var medicareLoaded = $("[id*=MedicareContent]").length > 0; //remove a potential duplicate form. var ajaxidToSearchFor = $("[id=otherCoveragesSelection-" + planTypeID + "]").find('#COBFields').attr('ajaxid'); if (isSafeObject(ajaxidToSearchFor)) { $("[ajaxid=" + ajaxidToSearchFor + "].cob-fields").each(function () { $(this).remove(); }); } ajaxidToSearchFor = $("[id=otherCoveragesSelection-" + planTypeID + "]").find('#MedicareFields').attr('ajaxid'); if (isSafeObject(ajaxidToSearchFor)) { $("[ajaxid=" + ajaxidToSearchFor + "].cob-fields").each(function () { $(this).remove(); }); } //MedicareFields $("#otherCoveragesSelection-" + planTypeID).append(msg.substring(msg.indexOf("<span id=\"startCOBPanels\">"), msg.indexOf("<span id=\"endCOBPanels\">"))); $("#otherCoveragesSelection-" + planTypeID).find("div.client-text-container").hide(); $("#otherCoveragesSelection-" + planTypeID + " .tooltip-target").tooltip({ position: "center right", opacity: 1, offset: [0, 15], effect: "fade", relative: true }); if (medicareLoaded) { $("#otherCoveragesSelection-" + planTypeID + " [id*=MedicareContent]").remove(); } $("#otherCoveragesSelection-" + planTypeID + " button").remove(); $("div.dependent-ineligible input[id^=coverage_]").each(function () { var userID = this.id.split("_")[2]; }); $('#otherCoveragesSelection-' + planTypeID + ' [ID*=COBcoverageNo]').bind("click", function () { $(this).closest("div.content").find("#COBDD").hide(); $(this).closest("div.content").find("div[id*='COBFields']").hide(); }); $('#otherCoveragesSelection-' + planTypeID + ' [ID*=COBcoverageYes]').bind("click", function () { AjaxCOBOnChangeToYES(planTypeID, $(this), false); $(this).closest("div.content").find("#COBDD").show(); $(this).closest("div.content").find("div[id*='COBFields']").show(); }); $('#otherCoveragesSelection-' + planTypeID + ' [ID*=MedicareCoverageNo]').bind("click", function () { $(this).closest("div.content").find("div[id*='MedicareFields']").hide(); }); $('#otherCoveragesSelection-' + planTypeID + ' [ID*=MedicareCoverageYes]').bind("click", function () { AjaxCOBOnChangeToYES(planTypeID, $(this), true); $(this).closest("div.content").find("div[id*='MedicareFields']").show(); }); $('.cob-coverage-radio-button').on('change', function () { $("input[name='coveragesYESNOChanged']").val(1); }); $('#otherCoveragesSelection-' + planTypeID + ' [ID*=MedicareCoverageNo]').each(function (i, elm) { if ($(elm).attr("checked") == "checked") { $(elm).click(); } }); } });
}
function saveOtherCoverages() { COBContinue(true, true, false, saveOtherCoveragesCallback, null);
}
function saveOtherCoveragesCallback(allValid) { if (allValid) { continueToNextStep("cobSelection"); } else { setEnrollmentButtonToContinue(); }
}
// Conditions of Enrollment Start
function openCOE() { $("#coe-container").append($("#coe-page-text")); $("#coe-container, #coe-page-text").show(); $("#benefitSelection-container, #beneficiaries-container, #beneficiaries-page-text, #pcp-container, #pcp-page-text, #cob-container, #cob-page-text, #billingPreferences-container, #billingPreferences-page-text").hide(); $("#coe-container").append("<div id=\"loader\" align=\"center\"><img alt=\"Content loading\" src=\"/images/loading.gif\" class=\"inline-icon\"/></div>"); loadCOE(); $("#continueToNextStep").unbind('click').click(function () { saveCOE(); }); animateProgressIndicator($("#coe-link")); setEnrollmentButtonToContinue();
}
function loadCOE() { var selectedBPTs = []; $("input[name^='txtPlanID_']:checked").each(function () { selectedBPTs.push(this.name.substring(10)); }); for (var benefitPlanTypeID in bptUsersEligibility) { userPlanEligibility = bptUsersEligibility[benefitPlanTypeID]; if (userPlanEligibility != undefined && userPlanEligibility.length > 0) { for (var j = 0; j < userPlanEligibility.length; j++) { if (userPlanEligibility[j].currentlySelectedPlanID != 0) { selectedBPTs.push(benefitPlanTypeID); } } } } var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_coe_ajax.aspx', data: "txtSelectedBPTs=" + selectedBPTs, dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); $("#coe-container").append(msg); initializeValidation(); checkComplete(); registerCOEClickEvents(); } });
}
function registerCOEClickEvents() { $('[id^="btnPrint"][type="button"]').on('click', function () { var printWindow = window.open('', '', 'height=400,width=800'); var planType = $(this).parents('.plan-type').find($("div[class^='header section row']")).find('h2').html(); var planName = $(this).parents('.plan-type').find($("div[class^='body section row']")).find($("div[class^='col twelve plan-name-row']")).html(); var coeText = $(this).parents('.plan-type').find($("div[class^='body section row']")).find($("div[class^='disclaimer-text']")).html(); var $table = $('<table/>'); $table.append('<tr><td><b>' + planType + ' - ' + planName + '</b></br></br></td></tr>'); $table.append('<tr><td>' + coeText + '</td></tr>'); printWindow.document.write($table.html()); printWindow.document.close(); printWindow.focus(); printWindow.print(); printWindow.close(); }); $('[id^="agree"][type="button"]').on('click', function(){ if ($('#frmMaint').valid()) { var agreeID = $(this).attr('id'); $(this).parents('.plan-type').removeClass('expanded'); $(this).parents('.plan-type').addClass('completed').find('.to-do').removeClass('to-do').addClass('completed').text('Completed'); nextDiv = $(this).parents('.coe-panel').parent().find('.plan-type:not(.completed)').first(); $('html, body').animate({ scrollTop: nextDiv.offset().top }, 500); nextDiv.addClass('expanded'); } }); $('.plan-type:not(expanded) .header').on('click', function(){ $('.plan-type').removeClass('expanded'); $(this).parents('.plan-type').addClass('expanded'); $('html, body').animate({ scrollTop: $(this).parents('.plan-type').offset().top }, 500); checkComplete(); }); $('[id^="agree_"][type="checkbox"]').on('click', function () { if ($(this).is(':checked')) $(this).parents('.plan-type').addClass('completed').find('.to-do').removeClass('to-do').addClass('completed').text('Completed'); else $(this).parents('.plan-type').find('.completed').removeClass('completed').addClass('to-do').text('Selection required'); }); checkComplete();
}
function saveCOE() { if(validateCOE() == true) { continueToNextStep("coeSelection"); }
}
function validateCOE() { var noError = true; $("input[name='txtAction']").val("save"); if ($('#frmMaint').valid()) { $('[id^="agree_"][type="checkbox"]').each(function () { if ($(this).is(':checked')) $(this).parents('.plan-type').addClass('completed').find('.to-do').removeClass('to-do').addClass('completed').text('Completed'); }); var requiredInputs = $('#frmMaint').find("input[type=checkbox][id^='agree_']"); for (var i = 0; i < requiredInputs.length; i++) { if ($("input[name='" + requiredInputs[i].name + "']:checked").length == 0) { noError = false; alert("Please choose 'I Agree' to conditions of enrollment for all the plans"); $('.plan-type').removeClass('expanded'); nextDiv = $("input[name=" + requiredInputs[i].name + "]").parents('.coe-panel').parent().find('.plan-type:not(.completed)').first(); if (nextDiv.length == 0) nextDiv = $(this).parents('.plan-type').removeClass('expanded'); $('html, body').animate({ scrollTop: nextDiv.offset().top }, 500); nextDiv.addClass('expanded'); return noError; } } } else noError = false; return noError;
}
// Conditions of Enrollment End
// Billing Preferences Start
function openBillingPreferences() { $("#billingPreferences-container").append($("#billingPreferences-page-text")); $("#billingPreferences-container, #billingPreferences-page-text").show(); $("#benefitSelection-container, #beneficiaries-container, #beneficiaries-page-text, #pcp-container, #pcp-page-text, #cob-container, #cob-page-text, #coe-container, #coe-page-text").hide(); $("#billingPreferences-container").append("<div id=\"loader\" align=\"center\"><img alt=\"Content loading\" src=\"/images/loading.gif\" class=\"inline-icon\"/></div>"); loadBillingPreferences(); $("#continueToNextStep").unbind('click').click(function () { saveBillingPreferences(); }); animateProgressIndicator($("#billingPreferences-link")); setEnrollmentButtonToContinue(); }
function loadBillingPreferences() { var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_billing_preferences_ajax.aspx', dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); $("#billingPreferences-container").append(msg); } });
}
function saveBillingPreferences() { setEnrollmentButtonToSaving(); var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_billing_preferences_ajax.aspx', data: $("#frmMaint").serialize(), dataType: 'html', async: false }); setEnrollmentButtonToContinue(); saveData();
}
// Billing Preferences End
function setEnrollmentButtonToSaving() { enrollmentButtonSaving($("#continueToNextStep"));
}
function setEnrollmentButtonToContinue() { enrollmentContinueButtonRestore($("#continueToNextStep"), jsDictionary['CONTINUE']);
}
function hidePlansForCostSort2016(planTypeID) { if (!$('#planSelection-' + planTypeID).find('.plan-selection-step-content-no-plans').is(':visible') && !$('#planSelectionLoader').is(':visible')) { $('#benefittype-' + planTypeID).find('.plan-selection-plan-portlet').addClass('hidden'); }
}
function showPlansAfterCostSort2016(planTypeID) { $('#benefittype-' + planTypeID).find('.plan-selection-plan-portlet:not(.user-hidden)').removeClass('hidden');
}
function showCostsLoader(planTypeID) { if (!$('#planSelectionLoader').is(':visible') && $('#planSelection-' + planTypeID).is(':visible') && $('.costs-progress-modal-' + planTypeID).length > 0 && $('#plansSort' + planTypeID).length > 0 && ($('#plansSort' + planTypeID).val() == "cost" || $('#plansSort' + planTypeID).val() == "medicareplantype") && !animating) { $('.costs-progress-modal-' + planTypeID).removeClass("hidden"); if (!$('.costs-progress-modal-' + planTypeID).is(':visible')) { if ($('.costs-progress-modal-' + planTypeID).hasClass('ui-dialog-content')) { $('.costs-progress-modal-' + planTypeID).dialog("open"); } else { $('.costs-progress-modal-' + planTypeID).dialog({ title: $('#costs-loader-title-' + planTypeID).val(), autoOpen: true, resizable: false, modal: true, width: 600, height: 'auto', zIndex: 9999, stack: false, open: function (event, ui) { $(".ui-dialog-titlebar-close", ui.dialog | ui).remove(); $('.costs-progress-modal-' + planTypeID).find('.costs-progress-message-step-1').removeClass('hidden'); $('.costs-progress-modal-' + planTypeID).find('.costs-progress-message-step-2').addClass('hidden'); }, dialogClass: "no-close", close: function () { $(this).dialog("close"); } }); } } }
}
function hideCostsLoader(planTypeID) { if ($('.costs-progress-modal-' + planTypeID).hasClass('ui-dialog-content')) { $('.costs-progress-modal-' + planTypeID).dialog("close"); } resetProgressBar(planTypeID);
}
function progressBar(planTypeID, stepNum, stepMax) { showCostsLoader(planTypeID); var percent = stepNum == 0 ? 0 : stepNum / stepMax * 100; if (percent >= 50) { $('.costs-progress-modal-' + planTypeID).find('.costs-progress-message-step-1').addClass('hidden'); $('.costs-progress-modal-' + planTypeID).find('.costs-progress-message-step-2').removeClass('hidden'); } $('.costs-progress-modal-' + planTypeID).find('.costs-progress-bar').stop().animate({ left: percent + '%' }, { duration: 400, complete: function () { if (stepNum >= stepMax) { setTimeout(function () { costsLoaderProgressBarComplete(planTypeID); }, 400); } } });
}
function costsLoaderProgressBarComplete(planTypeID) { hideCostsLoader(planTypeID); toggleNoPlansMessage(planTypeID);
}
function resetProgressBar(planTypeID) { $('.costs-progress-modal-' + planTypeID).find('.costs-progress-bar').stop().css('left', '0'); return false;
}
function toggleNoPlansMessage(planTypeID) { if ($('#planSelection-' + planTypeID).is(':visible') && $('#planSelection-' + planTypeID).find('.plan-selection-plan-portlet:visible').length == 0 && !$('#contingency_warning_' + planTypeID).is(':visible')) { showNoPlansMessage(planTypeID) } else { hideNoPlansMessage(planTypeID); }
}
function showNoPlansMessage(planTypeID) { $('#planSelection-' + planTypeID).find('.plan-selection-step-content-no-plans').removeClass('hidden'); $('#benefittype-' + planTypeID + ' .container').find('.plan-selection-toolbar').addClass('hidden');
}
function hideNoPlansMessage(planTypeID) { $('#planSelection-' + planTypeID).find('.plan-selection-step-content-no-plans').addClass('hidden'); $('#benefittype-' + planTypeID + ' .container').find('.plan-selection-toolbar').removeClass('hidden');
}
function sortPlans2016Version(sortAttribute, planTypeID) { var plansList; var listItems; if (planTypeID == undefined) { plansList = $("#plan-search div.compare-table"); } else { plansList = $("#planSelection-" + planTypeID + " .plan-selection-step-content"); } listItems = plansList.children(".plan-selection-plan-portlet").not(".waive"); // Don't include waive plan // Also don't include plans that are waive-plan type listItems = jQuery.grep(listItems, function (n, i) { return $(n).find("[id^='txtPlanID']").val().split(":")[3] == 0; }); var compareResult = null; switch (sortAttribute) { case "cost": listItems.sort(function (a, b) { return getCostThenPlanNameComparision(a, b); }) if (_stackedBarElements != null) { renderChart("SortAscendingByTotal"); } break; case "estimatedAnnualCost": listItems.sort(function (a, b) { var compA = $("[id^=emmaPlanEstimateCosts_]", $(a)).html(); var compB = $("[id^=emmaPlanEstimateCosts_]", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compB = Number(compB.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compareResult = (compA < compB) ? -1 : (compA > compB) ? 1 : 0; if (compareResult == 0) { compA = $("[id^=emmaOOPMaxCosts_]", $(a)).html(); compB = $("[id^=emmaOOPMaxCosts_]", $(b)).html(); if (compA != "N/A" && compA != null && compA != undefined && compB != "N/A" && compB != null && compB != undefined) { compareResult = (compA < compB) ? -1 : (compA > compB) ? 1 : 0; if (compareResult == 0) { compA = $("[id^=emmaOOPHighValue_]", $(a)).html(); compB = $("[id^=emmaOOPHighValue_]", $(b)).html(); } else { return compareResult; } } else { compA = $("[id^=emmaOOPHighValue_]", $(a)).html(); compB = $("[id^=emmaOOPHighValue_]", $(b)).html(); compareResult = (compA < compB) ? -1 : (compA > compB) ? 1 : 0; return compareResult; } } else { return compareResult; } } }) break; case "oopCost": listItems.sort(function (a, b) { var compA = $("[id^=emmaPlanEstimateCosts_]", $(a)).html(); var compB = $("[id^=emmaPlanEstimateCosts_]", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compB = Number(compB.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); return (compA < compB) ? -1 : (compA > compB) ? 1 : 0; } }) break; case "premium": case "annualPremium": listItems.sort(function (a, b) { var compA = $("[id^=emmaPlanPremium_]", $(a)).html(); var compB = $("[id^=emmaPlanPremium_]", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compB = Number(compB.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); return (compA < compB) ? -1 : (compA > compB) ? 1 : 0; } }) break; case "deductible": listItems.sort(function (a, b) { var compA = $("span[deductible]:visible", $(a)).attr("deductible"); var compB = $("span[deductible]:visible", $(b)).attr("deductible"); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA); compB = Number(compB); return (compA < compB) ? -1 : (compA > compB) ? 1 : getPlanNameComparision($("div.plan-selection-plan-left h3", $(a)).html(), $("div.plan-selection-plan-left h3", $(b)).html()); } }) if (_stackedBarElements != null) { renderChart("SortAscendingByDeductible"); } break; case "name": listItems.sort(function (a, b) { var compA = $("div.plan-selection-plan-left h3", $(a)).html(); var compB = $("div.plan-selection-plan-left h3", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { return (compA < compB) ? -1 : (compA > compB) ? 1 : 0; } }) if (_stackedBarElements != null) { renderChart("SortAscendingByPname"); } break; case "stars": listItems.sort(function (a, b) { var compA = $(".starRatingScore", $(a)).html(); var compB = $(".starRatingScore", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compB = Number(compB.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); return (compA > compB) ? -1 : (compA < compB) ? 1 : getPlanNameComparision($("div.plan-selection-plan-left h3", $(a)).html(), $("div.plan-selection-plan-left h3", $(b)).html()); } }) //if (_stackedBarElements != null) { // renderChart("SortAscendingByTotal"); //} break; case "carrier": listItems.sort(function (a, b) { var compA = $(".plan-header-carrier-name", $(a)).html(); var compB = $(".plan-header-carrier-name", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { return (compA < compB) ? -1 : (compA > compB) ? 1 : getPlanNameComparision($("div.plan-selection-plan-left h3", $(a)).html(), $("div.plan-selection-plan-left h3", $(b)).html()); } }) //if (_stackedBarElements != null) { // renderChart("SortAscendingByTotal"); //} break; case "medicareplantype": listItems.sort(function (a, b) { var compA = $('[name^="txtPlanID_"]', $(a)).attr("networktypelv"); var compB = $('[name^="txtPlanID_"]', $(b)).attr("networktypelv"); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compB = Number(compB.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); return (compA > compB) ? -1 : (compA < compB) ? 1 : getCostThenPlanNameComparision(a,b); } }) //if (_stackedBarElements != null) { // renderChart("SortAscendingByTotal"); //} break; } plansList.prepend(listItems); showDCBar(planTypeID); if (typeof Pagination !== "undefined" && $('.plan-pagination-control').length > 0) { if (!Pagination.IsInitialized) { Pagination.init(); } if ($('#benefittype-' + planTypeID).is(':visible')) { Pagination.resetPagination(parseInt(planTypeID)); if (!isNaN(parseInt(currentUserID))) { Pagination.showPaginationControls(parseInt(planTypeID), parseInt(currentUserID)); } else { Pagination.showPaginationControls(parseInt(planTypeID)); } } }
}
function getCostThenPlanNameComparision(a, b) { var compA = $("[id^=eeHeaderCost_]", $(a)).html(); var compB = $("[id^=eeHeaderCost_]", $(b)).html(); if (compA == null) { return 1; } else if (compB == null) { return -1; } else { compA = Number(compA.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); compB = Number(compB.replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); return (compA < compB) ? -1 : (compA > compB) ? 1 : getPlanNameComparision($("div.plan-selection-plan-left h3", $(a)).html(), $("div.plan-selection-plan-left h3", $(b)).html()); }
}
function getPlanNameComparision(compA, compB) { if (compA == null) { return 1; } else if (compB == null) { return -1; } else { return (compA < compB) ? -1 : (compA > compB) ? 1 : 0; }
}
function attachDRXAutocomplete() { $(".prescription-autocomplete").autocomplete({ //source: availableTags, minLength: 2, source: function (request, response) { $.ajax({ url: '/api/DRXService/GetDRXAutocomplete', type: 'POST', data: request, dataType: 'json', success: function (drugs) { if (drugs.length > 0) { // call autocomplete callback method with results response($.map(drugs, function (drug, val) { return { drugId: drug.value, value: drug.label } })); } else { alert("Please check the label on your medication bottle or ask your provider for the correct spelling of your prescription."); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); alert(textStatus + "-" + errorThrown); } }); }, change: function (event, ui) { console.log("change"); if (ui.item != null) { updateUIWithDrug(ui.item.value, ui.item.drugId); } }, select: function (event, ui) { if (ui.item != null) { updateUIWithDrug(ui.item.value, ui.item.drugId); } return false; } }); $(document).on('keyup', "#prescription-search-input", function () { $("#prescription-search-input").autocomplete('option', 'change'); $("#prescription-search-input").autocomplete('option', 'autocompletechange'); console.log("####"); });
}
function updatePharmacySearch() { gotoPharmacySearch($(".pharmacy-search-container").attr('planTypeID'), false, $('#zipcode-input').val(), $('#radius-input').val());
}
function gotoPharmacySearch(planTypeID, animationOff, zipcode,radius) { var allData = "&txtStep=pharmacySearch"; allData += "&txtZipcode=" + zipcode + '&txtMiles=' + radius; allData += '&txtPlanTypeID=' + planTypeID; if (currentUserID != undefined) { allData += "&currentUserID=" + currentUserID; } $.ajax({ url: '/benefit/drx/drx_search_ajax.aspx', type: 'POST', data: allData, dataType: 'html', async: false, success: function (msg) { $(".plan-selection-container").hide(); $(".pharmacy-search-container").remove(); $(".plan-selection-container").after(msg); cleanUpPanels(); if (isAskEmmaEnabled) { askEmma.gheSuccessfulCallMade = false; askEmma.closeEmmaFeatures(); $(".emma-toolbar").hide(); } if ($("#benefits-landing-container").is(":visible")) { animationOff = true; } //animate if (!animationOff) { $(".pharmacy-search-container").effect('slide', { direction: 'right', mode: 'show' }, 400); attachDRXPharmacyMap(); if (planTypeID) { $(".pharmacy-search-container").attr('planTypeID', planTypeID); window.scrollTo(0, $("#confirmBenefitType-" + planTypeID).offset().top - 20); setTimeout(function () { $(window).scroll(); }, 800); } } } });
}
function updateUIWithDrug(drugName, drugID) { $('h3[id="drugToAddName"]').text(drugName); $("#drugToAddName").attr('drugid', drugID); var drug = getDrug(drugID); var dosages = $.map(drug.Dosages, function (dosage, val) { return { label: dosage.LabelName, value: dosage.ReferenceNDC } }); $('#metricQuantity').val(""); $('#drugToAddDosages').empty(); $.each(dosages, function (i, dosage) { $('#drugToAddDosages').append($('<option>').text(dosage.label).attr('value', dosage.value)); }); //update generic link text if (drug.GenericDrugName != undefined) { $("#genericDrugLink").closest('p').show(); $("#genericDrugLink").text(drug.GenericDrugName); $("#genericDrugLink").attr('drugid', drug.GenericDrugID); } else { $("#genericDrugLink").closest('p').hide(); } $("#prescription-search-input").val(''); $('.familymemberList').removeAttr('checked'); $("#medicareDrugWindow").show();
}
function loadGeneric() { updateUIWithDrug($("#genericDrugLink").text(), $("#genericDrugLink").attr('drugid'));
}
function getDrug(drugID) { var DRXDrug = {}; DRXDrug['DrugID'] = drugID; var drugToReturn = {}; $.ajax({ url: "/api/DRXService/GetDRXDrug", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(DRXDrug), dataType: "json", success: function (drug) { drugToReturn = drug; } }); return drugToReturn;
}
$(document).on('keypress', '#metricQuantity', function (e) { //if the letter is not digit then display error and don't type anything if (e.which != 8 && e.which != 0 && e.which != 127 && e.which != 46 && (e.which < 48 || e.which > 57)) { //display error message $("#drugQuantityErrmsg").html("Digits or period only").show().fadeOut(1000); return false; }
});
function saveMedication(planTypeID) { var goodToSave = true; var userIDList = ''; var userIDArray = []; if (planTypeID == 203 || planTypeID == 204 || planTypeID == 208 || planTypeID == 209) { userIDList = currentUserID; } else { $('[id^=familymember]:checked', '#drxFamilyMemberInputs[benefitPlanTypeID=' + planTypeID + ']').each(function () { userIDArray.push($(this).attr('userID')); }); var userIDList = userIDArray.join(','); if (userIDList.length <= 0) { goodToSave = false; alert('You must select at least one person.'); } } if (goodToSave && $('#metricQuantity').val() == "") { goodToSave = false; $("#drugQuantityErrmsg").html("Required field.").show().fadeOut(1000); } if (goodToSave && $("input[name^='mail']:checked").length == 0) { goodToSave = false; $("#FillErrmsg").html("Required field.").show().fadeOut(1000); } if (goodToSave) { var DRXSelectedDrug = {}; DRXSelectedDrug['DrugID'] = $("#drugToAddName").attr('drugid'); if (typeof currentUserID != "undefined") { DRXSelectedDrug['UserId'] = currentUserID; } else { if ($('#txtID').length > 0) { DRXSelectedDrug['UserId'] = $('#txtID').value; } else { DRXSelectedDrug['UserId'] = 0; } } // need to be changed to accomodate the medical DRXSelectedDrug['AssignedToUserIds'] = userIDList; DRXSelectedDrug['isMailOrder'] = $('input[name=mail]:checked').val(); DRXSelectedDrug['addedDrugName'] = $('#drugToAddName').text(); DRXSelectedDrug['dosage'] = $("#drugToAddDosages option:selected").text(); DRXSelectedDrug['quantity'] = $('#metricQuantity').val(); DRXSelectedDrug['daysOfSupply'] = $("#drugDaysOfSupply option:selected").val(); DRXSelectedDrug['NDC'] = $("#drugToAddDosages option:selected").val(); DRXSelectedDrug['BenefitPlanTypeId'] = $(".prescription-search-container").attr('planTypeID'); var pharmacies = {}; $.ajax({ url: "/api/DRXService/IsDrugAlreadyExists", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(DRXSelectedDrug), dataType: "json", success: function (msg) { var updateDrug = false; if (msg) { if (confirm("You have already added this drug and dosage. To add the drug anyway, please click OK, to remove this drug and dosage, please click Cancel.")) { updateDrug = true; } else { $("#medicareDrugWindow").hide(); } } else { updateDrug = true; } if (updateDrug) { $.ajax({ url: "/api/DRXService/SaveDrug", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(DRXSelectedDrug), dataType: "json", success: function () { $('#medicareDrugList').append('<div class="row"><div class="col twelve accent-column drug-list-item"> <div class="remove-drug fi fi-times-skinny fi-before"></div><h2>' + $('#drugToAddName').text() + '</h2>' + '<span class="label">Dosage:</span> <span class="value">' + $("#drugToAddDosages option:selected").text() + '</span> ' + '<span class="label">Quantity:</span> <span class="value">' + $('#metricQuantity').val() + '</span> ' + '<span class="label">Supply:</span> <span class="value">' + $("#drugDaysOfSupply option:selected").val() + '</span></div>') }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while saving the Medication. If the problem persists, please contact an administrator."); } }); $("#medicareDrugWindow").hide(); } $('#drugMailOption').show(); }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while saving the Medication. If the problem persists, please contact an administrator."); } }); }
}
function updateMailOrderPreferenceForAllDrugs(isMailOrder, benefitPlanTypeID) { var allData = "benefitPlanTypeID=" + benefitPlanTypeID; allData += "&isMailOrder=" + isMailOrder; if (currentUserID != undefined) { allData += "&currentUserID=" + currentUserID; } $.ajax({ url: '/api/DRXService/UpdateMailOrderPreferenceForAllDrugs', type: 'POST', data: allData, dataType: 'html', async: false });
}
function saveOrRemovePharmacy(btn)
{ var id = $(btn).attr('id') if ($(btn).attr('value') == "SELECT") { var Pharmacy = {}; Pharmacy['PharmacyID'] = id; if (typeof currentUserID != "undefined") { Pharmacy['CurrentUserId'] = currentUserID; } else { if ($('#txtID').length > 0) { Pharmacy['CurrentUserId'] = $('#txtID').value; } else { Pharmacy['CurrentUserId'] = 0; } } Pharmacy['BenefitPlanTypeId'] = $(".pharmacy-search-container").attr('planTypeID'); Pharmacy['Name'] = $('#' + id + '_name').text(); Pharmacy['Address1'] = $('#' + id + '_Address1').text(); Pharmacy['Address2'] = $('#' + id + '_Address2').text(); Pharmacy['City'] = $('#' + id + '_CityStateZip').text(); Pharmacy['PharmacyPhone'] = $('#' + id + '_phone').text(); $.ajax({ url: "/api/DRXService/SavePharmacy", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(Pharmacy), dataType: "json", success: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while saving the pharmacy. If the problem persists, please contact an administrator."); } }); } else { var planTypeID = $(".pharmacy-search-container").attr('planTypeID'); RemovePharmacy(id, planTypeID); }
}
function RemovePharmacy(id, planTypeID) { var Pharmacy = {}; Pharmacy['PharmacyID'] = id; if (typeof currentUserID != "undefined") { Pharmacy['CurrentUserId'] = currentUserID; } else { if ($('#txtID').length > 0) { Pharmacy['CurrentUserId'] = $('#txtID').value; } else { Pharmacy['CurrentUserId'] = 0; } } Pharmacy['BenefitPlanTypeId'] = planTypeID; $.ajax({ url: "/api/DRXService/RemovePharmacy", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(Pharmacy), dataType: "json", success: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while removing the pharmacy. If the problem persists, please contact an administrator."); } });
}
function RemoveDrug(id, planTypeID) { var DRXSelectedDrug = {}; DRXSelectedDrug['DrugID'] = id; if (typeof currentUserID != "undefined") { DRXSelectedDrug['UserId'] = currentUserID; } else { if ($('#txtID').length > 0) { DRXSelectedDrug['UserId'] = $('#txtID').value; } else { DRXSelectedDrug['UserId'] = 0; } } DRXSelectedDrug['BenefitPlanTypeId'] = planTypeID; $.ajax({ url: "/api/DRXService/RemoveDrug", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(DRXSelectedDrug), dataType: "json", success: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while removing the drug. If the problem persists, please contact an administrator."); } });
}
function cleanUpPanels() { $('.enrollment-search-container').hide(); $('.medicare-bestfit-container').hide(); $('.prescription-search-container').hide(); $('.pharmacy-search-container').hide();
}
function finishDRXPrescriptionUpdate(PlanTypeID) { var mailOrderInput = $('.prescription-search-container[plantypeid=' + PlanTypeID + ']').find('input[name=mail]:checked'); if (mailOrderInput.length > 0) { updateMailOrderPreferenceForAllDrugs(mailOrderInput.val(), PlanTypeID); } returnToElectionsAndUpdateCosts(PlanTypeID, false);
}
function returnToElectionsAndUpdateCosts(PlanTypeID, animationOff) { showPlanSelectionLoader(); setTimeout(function () { getTierCostsByPlanType(PlanTypeID, false, true, null); hidePlanSelectionLoader(); cleanUpPanels(); //animate if (!animationOff) { $(".plan-selection-container").effect('slide', { direction: 'left', mode: 'show' }, 400); } else { $(".plan-selection-container").show(); } }, 10); ShowProvidersOnPlanPods(true, PlanTypeID);
}
function returnToPrescriptionSearch(planTypeID, animationOff) { $(".pharmacy-search-container").hide(); goToPrescriptionSearch($(".pharmacy-search-container").attr('planTypeID'), animationOff);
}
$(function () { $(document).on('click', '.remove-pharmacy', function () { RemovePharmacy($(this).closest(".col").attr("id"), $(".prescription-search-container").attr('planTypeID')); $(this).closest(".col").remove(); });
});
$(function () { $(document).on('click', '.remove-drug', function () { RemoveDrug($(this).closest('.row').attr("id"), $(".prescription-search-container").attr('planTypeID')); if ($(this).closest('div[id=medicareDrugList]').children('.row').length == 1) { $(this).closest('.row').siblings('div[id=drugMailOption]').hide(); } $(this).closest('.row').remove(); });
});
$(function () { $(document).on('click', '.remove-pharmacy-ghe', function () { var pharmacyId = $(this).attr("id"); RemovePharmacy(pharmacyId, $(".medicare-bestfit-container").attr('plantypeid')); $("#"+pharmacyId).parent().remove(); if ($('.remove-pharmacy-ghe').length == 0) { $("#pharmacyAddGHE").show(); $("#pharmacyChange").hide(); } else { $("#pharmacyAddGHE").hide(); $("#pharmacyChange").show(); } });
});
//tabs active class switch
$(function () { $(".tabs li").on('click', function () { $(".tabs li").removeClass("active"); $(this).addClass("active"); });
});
$(function () { $(document).on('click', '.remove-drug-ghe', function () { var drugID = $(this).attr("id"); RemoveDrug($(this).attr("id"), $(".medicare-bestfit-container").attr('plantypeid')); $("#" + drugID).parent().remove(); });
});
$(function () { $(document).on('click', '.remove-medicareDrugWindow', function() { $(this).parent().hide(); }); });
$(function () { $(document).on('click', '.select-pharmacy', function () { if ($(this).closest('.row').hasClass('selected')) { $(this).removeClass('pill-recommended').addClass('pill-active').attr('value', 'SELECT'); $(this).closest('.row').removeClass('selected'); } else { $(this).removeClass('pill-active').addClass('pill-recommended').attr('value', 'REMOVE'); $(this).closest('.row').addClass('selected'); $(this).parents('.pharmacy-search-address-col').prepend($(this).closest('.row')); } });
});
function attachDRXPharmacyMap() { var map = new google.maps.Map(document.getElementById('dvMap')); var latlng = []; var infoWindow = new google.maps.InfoWindow(); var zipCode = $('#zipcode-input').val(); var geocoder = new google.maps.Geocoder(); var markerDetail =[]; function setMap(request) { geocoder.geocode({ 'address': zipCode }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { latlng.push(results[0].geometry.location); markerDetail.push(""); } }); } if ($('#txtPharmcyList').length > 0) { var data = $.parseJSON($('#txtPharmcyList').val()); for (var i = 0; i < data.length; i++) { var temp = new google.maps.LatLng(data[i].Latitude, data[i].Longitude); latlng.push(temp); markerDetail.push(data[i].Label); } } else { setMap(zipCode); } map.setCenter(new google.maps.LatLng(0, 0), 0); var infowindow = new google.maps.InfoWindow(); for (var i = 0; i < latlng.length; i++) { var marker = new google.maps.Marker({ position: latlng[i], map: map, title: markerDetail[i] }); } var latlngbounds = new google.maps.LatLngBounds(); for (var i = 0; i < latlng.length; i++) { latlngbounds.extend(latlng[i]); } map.setCenter(latlngbounds.getCenter(), map.fitBounds(latlngbounds)); }
function saveBestFitData(transeferToDrugSearchPage) { var goodToSave = true; var planTypeID = $(".medicare-bestfit-container").attr('plantypeid') if (goodToSave) { var serviceTypeIDs = [5, 27, 6, 21, 7, 8, 28, 20]; StoredValues = []; var dropdowns = []; $.each(serviceTypeIDs, function (i, serviceTypeID) { $.merge(dropdowns, $("select[id^=serviceType_" + serviceTypeID + "]")); }); $.each(dropdowns, function (i, elementToSave) { var storedValue = { }; storedValue.elementType = "select"; storedValue.elementIdentifier = $(elementToSave).attr('id'); storedValue.elementValue = $(elementToSave).val(); StoredValues.push(storedValue); }); var dataToSave = JSON.stringify(StoredValues); var allData = "&currentUserID=" + currentUserID + '&txtPlanTypeID=' + planTypeID + '&dataToSave=' + dataToSave; $.ajax({ url: "/api/DRXService/SaveBestFitData", async: false, type: "POST", data: allData, dataType: "json", success: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while saving the services that you going to opt for. If the problem persists, please contact an administrator."); } }); if (typeof transeferToDrugSearchPage != "undefined" && transeferToDrugSearchPage != undefined && transeferToDrugSearchPage) { goToPrescriptionSearch(planTypeID, false); } else { returnToElectionsAndUpdateCosts(planTypeID, false); } }
} //<!-- New function to go ot meciare bestfit "page" -->
function goToSearchPage(animationOff) { $(".plan-selection-container").hide(); if (isAskEmmaEnabled) { askEmma.gheSuccessfulCallMade = false; askEmma.closeEmmaFeatures(); $(".emma-toolbar").hide(); } cleanUpPanels(); //animate if (!animationOff) { $('.enrollment-search-container').effect('slide', { direction: 'right', mode: 'show'
}, 400); }
}
function GIQuestionChangeEvent()
{ $("#drxQuestion_10 :checkbox").change(function () { if (this.checked && $(this).attr("id").split("_")[1] != 1009) { $("#GI_1009").prop("checked", false); } else if (this.checked) { $("input[id^='GI_']:visible:not(#GI_1009)").each(function () { $(this).prop("checked", false); }); } });
}
function goToDRXQuestionModalForMedicareSupp()
{ $(".med-supp-btn").attr("showDRXQuestions", "true"); $(".med-supp-btn").click();
}
function loadDRXEligibilityQuestionsDialog(callback)
{ var allData = "currentUserID=" + currentUserID; showPlanSelectionLoader(); $.ajax({ url: '/benefit/drx/drx_eligibility_questions_ajax.aspx', type: 'POST', data: allData, dataType: 'html', async: true, success: function (msg) { hidePlanSelectionLoader(); $("#tobaccoDialog").detach(); $(".plan-selection-container").after(msg); GIQuestionChangeEvent(); initializeValidation(); $("#tobaccoDialog").dialog({ //dialogClass: "plan-questions-dialog", resizable: true, autoOpen: false, modal: true, width: 1180, appendTo: '#frmMaint', buttons: [{ text: "Continue", click: function () { $("input[id^='GI_']:visible").each(function () { if (!$(this).hasClass("vcheckBoxList")) { $(this).attr("class", "vcheckBoxList"); } }); if ($("#frmMaint").valid()) { saveDRXQuestions(callback); } } }], create: function (event, ui) { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-cta btn-large'); } }); $('#tobaccoDialog').dialog("open"); $(".med-supp-btn").attr("showDRXQuestions", "false") if ($("#benefits-landing-container").is(":visible")) { animationOff = true; } }, error: function (XMLHttpRequest, textStatus, errorThrown) { hidePlanSelectionLoader(); console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while loading the drx eligibility questions page. If the problem persists, please contact an administrator."); }, close: function (event, ui) { $("#tobaccoDialog").detach(); if (typeof callback === "function") { callback(); } }, complete: function () { hidePlanSelectionLoader(); } });
}
function saveDRXQuestions(callback) { var drxQuestions = []; $("input[id^='drxQuestionsAnswerChoice_']:visible, [name^='drxQuestionsAnswerChoice_']:visible:checked , input[id^='GI_']:visible").each(function () { var DRXQuestion = {}; if ($(this).attr("id") != undefined) { DRXQuestion["QuestionID"] = $(this).attr("id").split("_")[1]; if (Number(DRXQuestion["QuestionID"]) > 1000) { if ($(this).is(':checked')) { DRXQuestion["Value"] = "true"; } else { DRXQuestion["Value"] = "false"; } } else { DRXQuestion["Value"] = $(this).val(); } } else if (($(this).attr("name") != undefined)) { DRXQuestion["QuestionID"] = $(this).attr("name").split("_")[1]; DRXQuestion["Value"] = $(this).val(); } drxQuestions.push(DRXQuestion); }); $.ajax({ url: "/api/DRXService/SaveDRXQuestionsAnswers", async: false, type: "POST", contentType: "application/json;charset=utf-8", data: JSON.stringify(drxQuestions), dataType: "json", success: function () { $('#tobaccoDialog').dialog("close"); $("#tobaccoDialog").detach(); if (typeof callback === "function") { callback(); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while saving the DRX Questions Answer. If the problem persists, please contact an administrator."); } });
}
function goToMedicareBestFit(planTypeID, animationOff) { var coveredMemberIDs = ""; if (typeof currentUserID != "undefined" && currentUserID != undefined) { coveredMemberIDs += currentUserID; } else { $("input[id^='coverageChoice_" + planTypeID + "_']:checked").each(function () { coveredMemberIDs += this.id.replace("coverageChoice_" + planTypeID + "_", "") + ";" }); } var allData = "&txtStep=loadMedicareBestFit"; allData += "&currentUserID=" + currentUserID + '&txtPlanTypeID=' + planTypeID + '&coveredUserids=' + coveredMemberIDs; showPlanSelectionLoader(); $.ajax({ url: '/benefit/drx/ghe_search_ajax.aspx', type: 'POST', data: allData, dataType: 'html', async: true, success: function (msg) { hidePlanSelectionLoader(); $(".plan-selection-container").hide(); $(".medicare-bestfit-container").remove(); $(".plan-selection-container").after(msg); attachAdditionalServiceChange(); cleanUpPanels(); if (isAskEmmaEnabled) { askEmma.gheSuccessfulCallMade = false; askEmma.closeEmmaFeatures(); $(".emma-toolbar").hide(); } if ($("#benefits-landing-container").is(":visible")) { animationOff = true; } cleanUpPanels(); //animate if (!animationOff) { $('.medicare-bestfit-container').effect('slide', { direction: 'right', mode: 'show' }, 400);
if ($('.remove-pharmacy-ghe').length == 0) { $("#pharmacyAddGHE").show(); $("#pharmacyChange").hide(); } else { $("#pharmacyAddGHE").hide(); $("#pharmacyChange").show(); } if (planTypeID) { window.scrollTo(0, $("#confirmBenefitType-" + planTypeID).offset().top - 20); $(".medicare-bestfit-container").attr('planTypeID', planTypeID); setTimeout(function () { $(window).scroll(); }, 800); } } }, error: function (XMLHttpRequest, textStatus, errorThrown) { hidePlanSelectionLoader(); console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while loading the medicare best fit page. If the problem persists, please contact an administrator."); }, complete: function () { hidePlanSelectionLoader(); } }); }
function attachAdditionalServiceChange() {
//add a service $("#decisionSupport-ghe-add-service").on('change', function () { $($(this).val()).insertBefore("#ghe-placeHolder-AddService"); $('#decisionSupport-ghe-add-service option:selected').attr('disabled', 'disabled').hide(); $("#decisionSupport-ghe-add-service").val(""); // initTooltips(modalContext); //if all services have been added, hide ability to add if ($("#decisionSupport-ghe-add-service option[style='display: none;']").length == ($("#decisionSupport-ghe-add-service option").length - 1)) { $(".additionalMedicalService").hide(); } initTooltips();
});
}
function checkComplete() { $('[id^="agree_"][type="checkbox"]').each(function () { if ($(this).is(':checked')) $(this).parents('.plan-type').addClass('completed').find('.to-do').removeClass('to-do').addClass('completed').text('Completed'); });
}
function applyFundsCredits(activePlanTypeID) { }
function setDCProgressBar() { //added timer because height can't be calculated correctly with the DC bar isn't visible if (!$('.dc-funds-progress').is(":visible")) { $('.dc-funds-progress').on('visibility', function () { var $element = $(this); var timer = setInterval(function () { var ranOnce = false; if ($element.is(':visible')) { if (!ranOnce) { ranOnce = true; setProgressBarQueued(); } window.clearInterval(timer); } }, 300); }).trigger('visibility'); } else { setProgressBarQueued(); }
}
function setProgressBarQueued() { //storing the calculated paramters so this function can be potentially //called again using the stored parameters //later call might be needed for display refresh issues with Enrollment 2016 //Starting Values var availableFunds = userCreditDefinitions.TotalAvailableDefinedContribution + userCreditDefinitions.TotalAvailableCredit; var usedFunds = userCreditDefinitions.TotalUsedDefinedContribution + userCreditDefinitions.TotalUsedCredit; //the percentage of funds remaining var remainingFundsPercent = (availableFunds - usedFunds) / availableFunds; //Available/full height of progress bar var progressBarFullHeight = $('.dc-funds-progress').height(); var newProgressBarFullHeight = $('.dc-funds-progress').css("height"); //set height of progress bar equal to percentage of remaining funds var progressRemaining = Math.round(progressBarFullHeight * remainingFundsPercent); $('.dc-funds-progress .progress').height(progressRemaining); $("#dc-hourglass-funds-remaining").html(format_currency2(userCreditDefinitions.TotalAvailableDefinedContribution - userCreditDefinitions.TotalUsedDefinedContribution)); $("#dc-hourglass-credits-remaining").html(format_currency2(userCreditDefinitions.TotalAvailableCredit - userCreditDefinitions.TotalUsedCredit));
}
function setFundsGiven(creditData, onInit) { if (isDCEnabled()) { var yearlyTotalDCFunds = Number(creditData.TotalAvailableDefinedContribution) * 12; $("#dc-break-down-cost-yy").html("<span class=\"small\">" + format_currency2(creditData.TotalAvailableDefinedContributionYearly) + "</span>"); $("#dc-break-down-cost-pp").html("<span class=\"small\">" + format_currency2(creditData.TotalAvailableDefinedContribution) + "</span>"); } if (!onInit) { if ($("#dc-break-down-credit-cost-pp").length > 0) { $("#dc-break-down-credit-cost-pp").html("<span class=\"small\">" + format_currency2(creditData.TotalAvailableCredit) + "</span>"); $("#dc-break-down-credit-cost-pp").next("span.dc-breakdown-cost").html("<span class=\"small\">" + format_currency2(Number(creditData.TotalAvailableCreditYearly)) + "</span>"); } } hideDCBars(); creditData.UserCreditDCPlanTypeDefinitions.forEach(function (definition) { if (isDCEnabled()) { updateDCBarAmount(definition.BenefitPlanTypeID, definition.AvailableDefinedContribution, definition.AvailableCredit); } if (!onInit) { definition.Credits.forEach(function (credit) { if ($("#creditAmount_" + credit.CreditID).length > 0) { $("#creditAmount_" + credit.CreditID).val(credit.CreditAmount) var creditName = $("#creditAmount_" + credit.CreditID).next().html().split(':')[0]; $("#creditAmount_" + credit.CreditID).next().html(creditName + ": " + format_currency2(credit.CreditAmount)); } }); } }); //if ($("#enroll-credit-panel-flyout").length > 0 && ($("#availableCompositePlans").find("table").find("tr").length > 1 || $("#availableTierPlans").find("table").find("tr").length > 1)) { // $("#dcFundsCostBreakout").show(); //} //else { $("#dcFundsCostBreakout").hide(); //}
}
function updateDCBarAmount(planTypeID, availableDCFunds, availableCredit, userID) { if ($("#dcBar-" + planTypeID).length > 0) { $("#dcBar-" + planTypeID).show(); showDCBar(planTypeID); if (availableDCFunds <= 0) { $("#dcBar-" + planTypeID + " span.dcbar-has-money").hide(); $("#dcBar-" + planTypeID + " span.dcbar-no-money-left").show(); } else { $("#dcBar-" + planTypeID + " span.dcbar-has-money").show(); $("#dcBar-" + planTypeID + " span.dcbar-no-money-left").hide(); $("#dcBar-" + planTypeID + " .dcbar-eligible-amount").text(format_currency2(availableDCFunds)); } if (availableCredit == 0) { $("#dcBar-" + planTypeID + " .show-wellness-credits").hide(); } else { $("#dcBar-" + planTypeID + " .show-wellness-credits").show(); $("#dcBar-" + planTypeID + " .dcbar-wellness-credit-amount").text(format_currencyCredits(availableCredit)); } }
}
function showOrHidePlanPodData(planPod, show, compare) { if ($(planPod).length > 0) { if (show && $("#txtDcBarEnabled").val() == "True") { $(planPod).show(); } else { $(planPod).hide(); } } $(".premium-wrapper").find(".dc-cost-details-breakout").each(function () { if (show && $("#txtDcBarEnabled").val() == "True") { $(this).show(); } else { $(this).hide(); } //resize premium cells incase details breakout div shows up on screen after page layout is set. $('.plan-detail-your-premium').equalizeCols(); equalizeDetailRows(); });
}
function updatePlanPodData(definition, planID, compare) { var idPrefix = (compare ? "#planDetailData" : "#planPodData"); var tpPlan = $("#tpPlan_" + planID); var originalCost = $(tpPlan).text(); var originalCostNumber = CurrencyClass.removeFormatting(originalCost); //Hide this section if costs can't be found and exit. if (safeObject(originalCost) && originalCost.length == 0) { showOrHidePlanPodData($(idPrefix + "_" + planID), false); } else { showOrHidePlanPodData($(idPrefix + "_" + planID), true); $(idPrefix + "OC_" + planID + " .cost-details-cost").text($(tpPlan).text()); $(idPrefix + "BB_" + planID + " .cost-details-cost").text(format_currency2(definition.UsedDefinedContribution)); if (definition.Credits.length > 0) { $(idPrefix + "WC_" + planID).show(); $(idPrefix + "WC_" + planID + " .cost-details-cost").text(format_currency2(definition.UsedCredit)); } else { $(idPrefix + "WC_" + planID).hide(); } }
}
function hideAllDCBars() { }
function hideDCBars() { if ($("[id^=dcBar-].plan-selection-dc-eligibility").length) { $("[id^=dcBar-].plan-selection-dc-eligibility").hide(); $("[id^=askemma-]").removeClass("dcBar-on"); }
}
function showDCBar(planTypeID) { var askEmma = $("#askemma-" + planTypeID + ":visible"); if (safeObject(askEmma) && askEmma.length > 0) { //console.trace(); //askEmma.addClass("dcBar-on"); var planpodSection = $(".plan-selection-plan-portlet:visible"); if ($("#emmaSteps-" + planTypeID + ":visible").length > 0) { if (typeof planpodSection != typeof undefined) { if (planpodSection.length > 0) { $("#emmaSteps-" + planTypeID + ":visible").parent().prepend($("#dcBar-" + planTypeID)); //$("#askemma-" + planTypeID).addClass("dcBar-on"); } } } else if ($($("#askemma-" + planTypeID).find(".plan-selection-plan-container:visible")).length > 0) { $($("#benefittype-" + planTypeID).find("div.plan-selection-step-header")[1]).append($("#dcBar-" + planTypeID)); } } else if ($($("#benefittype-" + planTypeID).find(".plan-selection-plan-container:visible")).length > 0) { if ($($("#benefittype-" + planTypeID).find("div.plan-selection-step-header")[1]).length > 0) { $($("#benefittype-" + planTypeID).find("div.plan-selection-step-header")[1]).append($("#dcBar-" + planTypeID)); } else if ($($("#benefittype-" + planTypeID).find("div.plan-selection-step-header")[0]).length > 0) { $($("#benefittype-" + planTypeID).find("div.plan-selection-step-header")[0]).append($("#dcBar-" + planTypeID)); } else if ($("#planSelection-" + planTypeID + " > div.plan-selection-step-content").find("#planTypeInfo-" + planTypeID).length > 0) { $($("#planSelection-" + planTypeID + " > div.plan-selection-step-content").find("#planTypeInfo-" + planTypeID)).after($("#dcBar-" + planTypeID)); } else { $("#planSelection-" + planTypeID + " > div.plan-selection-step-content").prepend($("#dcBar-" + planTypeID)); } }
}
function loadQuestions(planTypeID, hideSaveButton, hideClientText, isInit) { var xml_http = $.ajax({ type: 'POST', url: 'enroll_stepped_questions_ajax.aspx', data: "txtPlanType=" + planTypeID + "&isInit=" + isInit, dataType: 'html', async: false, success: function (msg) { $("#loader").remove(); if (msg != "") { var $qsPT = $("#questionsSelection-" + planTypeID); var $qsPTContent = $qsPT.find("div.plan-selection-step-content"); $qsPTContent.empty(); $qsPTContent.append(msg); $qsPTContent.find("input[id^='answerDate_']").each(function () { $(this).datepicker({ changeMonth: true, changeYear: true, yearRange: "-100:+0" //fix issue of year select menu only showing 10 years before and after current year, TFS Work Item 4679 - 100615 jd }); }); var SSNField = $qsPTContent.find("input[id^='answerSSN_']").bind("blur", function () { var thisElement = $(this); var ssn = reformatSSN(thisElement.val()); thisElement.val(ssn); if (ssn != "" && ssn != thisElement.attr('placeholder') && !SaValSSNFormat(ssn)) { return false; } }); if (hideClientText) { $qsPT.find("div.client-text-container").hide(); } $("[name^='answerChoice_'],[name^='answerRadio_']").change(function () { showFollowUpQuestions(); }); } else { $("#confirmBenefitType-" + planTypeID + " .benefit-panel-view-questions").remove(); } } });
}
function clearCreditChangedFlags() { userCreditDefinitions.UserCreditDCPlanTypeDefinitions.forEach(function (definition) { definition.DCCreditsChanged = false; });
}
function updatePlanPodCosts(planTypeID) { userCreditDefinitions.UserCreditDCPlanTypeDefinitions.forEach(function (definition) { if (definition.BenefitPlanTypeID == planTypeID && definition.DCCreditsChanged) { definition.DCCreditsChanged = false; getTierCostsByPlanType(planTypeID, false, true, null); return; } });
}
function openPreEstimateExplainThisModalForMedicare(planID, planTypeID) { var dialogContainer = $("#preEstimateExplainThisModalForMedicare"); if (!dialogContainer.hasClass("ui-dialog-content")) { // dialog hasn't been initialized yet dialogContainer.dialog({ dialogClass: "emma-total-cost-breakdown", autoOpen: false, height: 'auto', width: 960, modal: true, title: jsDictionary["WHY_TOTAL_COST_AND_EXPENSES_ARE_IMPORTANT"], create: function () { $(this).dialog('widget').find('.saveDiv input[type="button"]').click(function () { dialogContainer.dialog("close"); }); }, open: function () { setTimeout( function () { $('.emma-total-cost-breakdown').position({ my: "center", at: "center", of: window }); }, 1 ); } }); $("#estimateYourOOPCostsBtn").on("click", function () { dialogContainer.dialog("close"); }); } if ($("#bestFitEnterNow_" + planTypeID + "_" + planID).is(":visible")) $("#bestFitEnterNowForMedicare").show(); if ($("#prescriptionEnterNow_" + planTypeID + "_" + planID).is(":visible")) $("#goToPrescriptionSearchForMedicare").show(); // Add available plans to dropdown container var planSelectionDropdown = $("#preEstimatePlanSelectionDropdownForMedicare"); planSelectionDropdown.empty(); // Remove any plans in the dropdown // Add available pharmacies to dropdown container var pharmacySelectionDropdown = $("#pharmacyDropdown"); pharmacySelectionDropdown.empty(); // Remove any ppharmacies in the dropdown var plans = $("#planSelection-" + planTypeID + " .plan-selection-step-content").children(".plan-selection-plan-portlet").not(".waive"); // Don't include the waive option // Also don't include waive-plans plans = jQuery.grep(plans, function (n, i) { return $(n).find("[id^='txtPlanID']").val().split(":")[3] == 0; }); plans.forEach(function (plan, index) { if ($(plan).find(".plan-header-plan-name").is(':visible')) planSelectionDropdown.append("<option value=\"" + $(plan).find(".plan-selection-plan-container").attr("planid") + "_" + planTypeID + "\">" + $(plan).find(".plan-header-plan-name:visible").text() + "</option>"); }); // Select current plan $("#preEstimatePlanSelectionDropdownForMedicare option[value=" + planID + "_" + planTypeID + "]").attr("selected", "selected"); var pharmaciesList = []; var drugList = []; if($("#prescriptionCost_" + planTypeID + "_" +planID).attr("selectedPharmacies") != undefined) pharmaciesList = $.parseJSON($("#prescriptionCost_" + planTypeID + "_" +planID).attr("selectedPharmacies")); if ($("#prescriptionCost_" + planTypeID + "_" + planID).attr("selectedDrugs") != undefined && $("#prescriptionCost_" + planTypeID + "_" + planID).attr("selectedDrugs") != '') { drugList = $.parseJSON($("#prescriptionCost_" + planTypeID + "_" + planID).attr("selectedDrugs")); } if (pharmaciesList == null || pharmaciesList.length == 0) { //Default Retail Order option pharmacySelectionDropdown.append("<option value=\"Retail\" >Default Retail Pharmacy Pricing</option>");
} //Load Pharmacy in the pharmacy drop down if (pharmaciesList != null) { $.each(pharmaciesList, function (index, value) { pharmacySelectionDropdown.append("<option value=\"" + value.PharmacyID + "\">" + value.Name + "</option>"); }); } //Mail Order option pharmacySelectionDropdown.append("<option value=\"Mail\" >Default Mail Order Pricing</option>"); $("#pharmacyDropdown ").val($("#pharmacyDropdown option:first").val()); setPreEstimateExplainThisModalLabelsForMedicare(false); $('.drxChartContainer').hide(); if (drugList != null && drugList.length > 0 && $("#drugListContainer_" + planTypeID + "_" + planID + " div").length > 0 && $("#prescriptionCost_" + planTypeID + "_" + planID).attr("drxDefaultPharmacyJson") != undefined && $("#prescriptionCost_" + planTypeID + "_" + planID).attr("drxDefaultPharmacyJson") != "" && $("#prescriptionCost_" + planTypeID + "_" + planID).is(":visible")) loadChartForSelectedPharmacy($("#pharmacyDropdown ").val()); else { $('#coverageGapHighChart').hide(); $('#pharmacyDropdownDiv').hide(); if (drugList != null && drugList.length > 0) $('#errorMessageDRXChart').text("The Annual Prescription Cost for this plan is not available for the drug you chosen, please go back and change prescriptions to see your cost broken down by month."); else $('#errorMessageDRXChart').text("You have not entered any prescriptions, please go back and enter or change prescriptions to see your cost broken down by month."); $('#errorMessageDRXChart').show(); } dialogContainer.dialog('open');
}
function loadChartForSelectedPharmacy() { var planID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[0]; var planTypeID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[1].trim(); chartData = getDrxChartData(planID, planTypeID, $("#pharmacyDropdown").val()); if (chartData != '') { buildCoverageGapChart(chartData); }
}
function setTotalCostForMedicare()
{ var totalCost = 0; if ($("#preEstimatePlanPremiumForMedicare").length > 0 && Number($("#preEstimatePlanPremiumForMedicare").html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")) > 0) { totalCost += Number($("#preEstimatePlanPremiumForMedicare").html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); } if ($("#preEstimateOOPCostForMedicare").length > 0 && Number($("#preEstimateOOPCostForMedicare").html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")) > 0) { totalCost += Number($("#preEstimateOOPCostForMedicare").html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); } if ($("#preEstimatePrescriptionCostForMedicare").length > 0 && Number($("#preEstimatePrescriptionCostForMedicare").html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")) > 0) { totalCost += Number($("#preEstimatePrescriptionCostForMedicare").html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); } $("#preEstimateAnnualCostForMedicare").html("$" +totalCost.toFixed(2)); } function setPreEstimateExplainThisModalLabelsForMedicare(loadChart) { var planID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[0]; var planTypeID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[1].trim(); // Set cost values $("#preEstimatePlanPremiumForMedicare").text($("#annualPremium_" + planTypeID + "_" + planID).text()); // Premium $("#preEstimateOOPCostForMedicare").text($("#outOfPocketCost_" + planTypeID + "_" + planID).text()); // OOP Cost if ($("#prescriptionCost_" + planTypeID + "_" + planID).is(":visible"))// Set the prescription cost only if the container is visible $("#preEstimatePrescriptionCostForMedicare").text($("#prescriptionCost_" + planTypeID + "_" + planID).text()); // Prescripption Cost $("#preEstimateAnnualCostForMedicare").text($("#annualCost_" + planTypeID + "_" + planID).text()); // Annual Cost if (loadChart == true) { $("#pharmacyDropdown ").val($("#pharmacyDropdown option:first").val()); loadChartForSelectedPharmacy(); }
}
function getDrxChartData(planID, planTypeID, pharmacyID) { var annualPrescriptionCostPerDrug = 0; var jsonObjectName = "drxDefaultPharmacyJson"; var pharmacyType = ""; if (pharmacyID == "Retail" || pharmacyID == "Mail") { pharmacyType = pharmacyID == "Retail" ? "1": "2"; } if ($("#prescriptionCost_" + planTypeID + "_" + planID).attr(jsonObjectName) != undefined && $("#prescriptionCost_" + planTypeID + "_" + planID).attr(jsonObjectName) != "" && $("#prescriptionCost_" + planTypeID + "_" + planID).is(":visible")) { var drxObject = $.parseJSON($("#prescriptionCost_" + planTypeID + "_" + planID).attr(jsonObjectName)); var drxValues =[]; for (var i = 0; i < drxObject.PharmacyCosts.length; i++) { if ((pharmacyType == "" && drxObject.PharmacyCosts[i].PharmacyID == pharmacyID ) || (pharmacyType != "" && drxObject.PharmacyCosts[i].PharmacyType == pharmacyType)) { $.each(drxObject.PharmacyCosts[i].MonthlyCosts, function (index, value) { if (drxValues[value.MonthID]== undefined) drxValues[value.MonthID]= value.TotalMonthlyCost; else drxValues[value.MonthID]= drxValues[value.MonthID]+value.TotalMonthlyCost; }); } } $('#errorMessageDRXChart').hide(); $('#coverageGapHighChart').show(); $('#pharmacyDropdownDiv').show(); return drxValues; } else { $('#coverageGapHighChart').hide(); $('#pharmacyDropdownDiv').hide(); $('#errorMessageDRXChart').show(); return ''; }
}
function buildCoverageGapChart(chartData) { $('#coverageGapHighChart').highcharts({ chart: { type: 'column', marginBottom: 80 }, credits: { enabled: false }, title: { text: 'When will I need to pay for these costs?' }, xAxis: { categories: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }, yAxis: { title: { text: '' }, min: 0, labels: { formatter: function () { return '$' + this.axis.defaultLabelFormatter.call(this); } }, stackLabels: { enabled: true, style: { fontWeight: 'bold', color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray' }, formatter: function () { return '$' + this.total; } } }, legend: { align: 'center', x: 0, verticalAlign: 'bottom', y: 5, floating: false, backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white', borderColor: '#CCC', borderWidth: 1, shadow: false }, tooltip: { headerFormat: '<b>{point.x}</b><br/>', pointFormat: '{series.name}: {point.y}'//<br/>Total: {point.stackTotal}' }, plotOptions: { column: { stacking: 'normal', //dataLabels: { // enabled: true, // color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white', // style: { // textShadow: '0 0 3px black' // } //} } }, series: [{ name: 'Total Monthly Cost', data: chartData, tooltip: { valuePrefix: '$' } }] });
}
$(function () { $('.toggle-drx-cost-chart').on('click', function () { $('.drxChartContainer').slideDown(); $(window).resize(); }); $('.drxChartContainer .fi-times-skinny').on('click', function () { $('.drxChartContainer').slideUp(); });
});
function closeDialogandGoToMedicareBestFit()
{ var planID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[0]; var planTypeID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[1].trim(); var dialogContainer = $("#preEstimateExplainThisModalForMedicare"); dialogContainer.dialog("close"); goToMedicareBestFit(planTypeID, false);
}
function closeDialogandGoToPrescriptionSearch() { var planID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[0]; var planTypeID = $("#preEstimatePlanSelectionDropdownForMedicare option:selected").val().split("_")[1].trim(); var dialogContainer = $("#preEstimateExplainThisModalForMedicare"); dialogContainer.dialog("close"); goToPrescriptionSearch(planTypeID, false);
}
function isEmployeeEnrolledInValidIndividualPlanType(benefitPlanTypeID) { var userPlanEligibility; var usersPlanSelection; //check if selected plan is individual type if (typeof bptUsersEligibility != 'undefined') { userPlanEligibility = bptUsersEligibility[benefitPlanTypeID]; if (userPlanEligibility != undefined) { usersPlanSelection = $.grep(userPlanEligibility, function (e) { return e.userID == e.primaryUserID && e.currentlySelectedPlanID > 0; }); if (usersPlanSelection != undefined && usersPlanSelection.length > 0 && $("input[id^=txtPlanID_" + benefitPlanTypeID + "_" + usersPlanSelection[0].currentlySelectedPlanID + "]")[0].value.split(":")[3] != "1" && $("input[id^=txtPlanID_" + benefitPlanTypeID + "_" + usersPlanSelection[0].currentlySelectedPlanID + "]")[0].value.split(":")[0] != "-9999") { return true; } } } return false;
}
function isNonEmployeeEnrolledInValidIndividualPlanType(planTypeID) { var eligibility ; //check if selected plan is individual type if (typeof bptUsersEligibility != 'undefined') { eligibility = bptUsersEligibility[planTypeID]; if (eligibility != undefined) { for (var j = 0; j < eligibility.length; j++) { if (eligibility[j].userID != eligibility[j].primaryUserID) { if (hasUserMadeSelectionForIndividualPlanType(eligibility[j].userID, planTypeID) && $("input[id^=txtPlanID_" + planTypeID + "_" + eligibility[j].currentlySelectedPlanID + "]")[0].value.split(":")[3] != "1" && $("input[id^=txtPlanID_" + planTypeID + "_" + eligibility[j].currentlySelectedPlanID + "]")[0].value.split(":")[0] != "-9999") return true; } } } } return false;
}
function isUserEnrolledInValidNonIndividualPlanType(planTypeID, isEmployee) { var validPlanSelected = false; var $userSelection = isEmployee ? $("[id^=coverageChoice_" + planTypeID + "_][membertype ='employee']") : $("[id^=coverageChoice_" + planTypeID + "_][membertype !='employee']") var $selectedPlan = $("input[name=txtPlanID_" + planTypeID + "]:checked"); $userSelection.each(function (index) { var $userCoverage = $(this).parent().find($("[id^=coverage_" + planTypeID + "_][type=hidden]")); if ($userCoverage != undefined && $userCoverage.val() == "1" && $selectedPlan.length > 0 && $selectedPlan[0].value != undefined && $selectedPlan[0].value.split(":")[0] != "-9999" && $selectedPlan[0].value.split(":")[3] != "1") validPlanSelected = true; }); return validPlanSelected;
}
function preventDependentOnlyCoverage()
{ if (!isEmployeeEnrolledInValidIndividualPlanType(203) && !isEmployeeEnrolledInValidIndividualPlanType(204) && !isEmployeeEnrolledInValidIndividualPlanType(208) && !isEmployeeEnrolledInValidIndividualPlanType(209) && !isUserEnrolledInValidNonIndividualPlanType(1, true) && !isUserEnrolledInValidNonIndividualPlanType(99, true) && !isUserEnrolledInValidNonIndividualPlanType(168, true) && !isUserEnrolledInValidNonIndividualPlanType(169, true)) { return (isNonEmployeeEnrolledInValidIndividualPlanType(203) || isNonEmployeeEnrolledInValidIndividualPlanType(204) || isEmployeeEnrolledInValidIndividualPlanType(208) || isEmployeeEnrolledInValidIndividualPlanType(209) || isUserEnrolledInValidNonIndividualPlanType(1, false) || isUserEnrolledInValidNonIndividualPlanType(99, false) || isUserEnrolledInValidNonIndividualPlanType(168, false) || isUserEnrolledInValidNonIndividualPlanType(169, false)) } else return false;
}
//<!-- New function to go to meciare bestfit "page" -->
function goToPrescriptionSearch(planTypeID, animationOff, fipscode) { var allData = "&txtStep=prescriptionSearch"; allData += '&txtPlanTypeID=' + planTypeID; if (currentUserID != undefined) { allData += "&currentUserID=" + currentUserID; } if (fipscode != undefined) { allData += "&txtFipscode=" + fipscode; } else { allData += "&txtFipscode=" + ""; } if ($("#prescription-and-provider-search-container").length > 0) { $("#prescription-and-provider-search-container").parent().hide(); } var coveredMemberIDs = ""; if (typeof currentUserID != "undefined" && currentUserID != undefined) { coveredMemberIDs += currentUserID; } else { $("input[id^='coverageChoice_" + planTypeID + "_']:checked").each(function () { coveredMemberIDs += this.id.replace("coverageChoice_" + planTypeID + "_", "") + ";" }); } showPlanSelectionLoader(); allData += "&coveredUserids=" + coveredMemberIDs; $.ajax({ url: '/benefit/drx/drx_search_ajax.aspx', type: 'POST', data: allData, dataType: 'html', async: true, success: function (msg) { hidePlanSelectionLoader(); $(".prescription-search-container").remove(); $(".plan-selection-container").after(msg); if ($('#showFipsSearch').val() == "true") { $("#zipCountyCheckDialog").dialog({ dialogClass: "", resizable: true, autoOpen: false, modal: true, width: 600, height: 400, closeOnEscape: false, title: "Please Choose Your County", buttons: [{ text: "Save", click: function () { //save selection and then go to pharmacy search $('#showFipsSearch').val("false"); goToPrescriptionSearch(planTypeID, false, $('#ddFipsList').val()); $(this).dialog('close'); } }], /*create: function(event, ui) { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-cta btn-large'); }*/ }); $('#zipCountyCheckDialog').dialog('open'); } else { $(".plan-selection-container").hide(); attachDRXAutocomplete(); $("#btnDRXFinish").attr("onclick", "returnToElectionsAndUpdateCosts(" + planTypeID + ",false)"); if (isAskEmmaEnabled) { askEmma.gheSuccessfulCallMade = false; askEmma.closeEmmaFeatures(); $(".emma-toolbar").hide(); } if ($("#benefits-landing-container").is(":visible")) { animationOff = true; } cleanUpPanels(); //animate if (!animationOff) { $(".prescription-search-container").effect('slide', { direction: 'right', mode: 'show' }, 400); if (planTypeID) { $(".prescription-search-container").attr('planTypeID', planTypeID); window.scrollTo(0, $("#confirmBenefitType-" + planTypeID).offset().top - 20); setTimeout(function () { $(window).scroll(); }, 800); } } } }, error: function (XMLHttpRequest, textStatus, errorThrown) { hidePlanSelectionLoader(); console.log('error', textStatus, errorThrown); bswiftWarningAlert("There was a problem while loading the drug search page. If the problem persists, please contact an administrator."); }, complete: function () { hidePlanSelectionLoader(); } });
}
function initMCXFilters(planTypeID) { var annualEstimatedCosts = []; var planNetworkTypeList = []; var plans; //tabs are enabled so break out by network type if ($("input[name=planNetworkTypeFilter_" + planTypeID + "]:checked").length > 0) { if (planTypeID == "208") { initMCXCostSliders(planTypeID, ["18", "21"], "_MA"); initMCXNonCostFilters(planTypeID, "_MA"); initMCXCostSliders(planTypeID, ["19"], "_Medigap"); initMCXNonCostFilters(planTypeID, "_Medigap"); } else { initMCXCostSliders(planTypeID, ["20"], "_PDP"); initMCXNonCostFilters(planTypeID, "_PDP"); } } //no tabs, break out by bpt else { initMCXCostSliders(planTypeID); initMCXNonCostFilters(planTypeID); //when using filters for bpts, since there is no call to the filter code since no tabs, we need to initialize //the plan count on the filters here $("[name=mcxFiltersCount_" + planTypeID + "]").each(function () { var planCount = $("input[name=txtPlanID_" + planTypeID + "]:not([value^=-9999],[value$=':1'])").length.toString(); $(this).text(planCount + " plan(s) found of " + planCount + " plan(s) available."); }); } $("[id^=planSearchLeftNav_" + planTypeID + "][mcx-filters]").addClass("filters-initialized");
}
/*Initializes cost sliders for the given plan network type
or bpt, sets up the sliders on the page and sliders in the modal for
MCX filters.*/
function initMCXCostSliders(planTypeID, planNetworkTypeList, planNetworkType) { var plans; var planNetworkTypeName = ""; //means plans broken out by bpt if(typeof planNetworkTypeList === 'undefined'){ plans = $("input[name='txtPlanID_" + planTypeID + "']:not([value^=-9999])"); } //means plans are broken out by network type else{ plans = $("input[name='txtPlanID_" + planTypeID + "']:not([value^=-9999])").filter(function (i) { return $.inArray($(this).attr("networktypelv"), planNetworkTypeList) >= 0; }); planNetworkTypeName = planNetworkType; } var annualEstimatedCosts = []; var annualPremiumCosts = []; var medigapPremiumCosts = []; $(plans).each(function () { var planValue = this.value; var planID = planValue.split(':')[0]; if ($("#annualCost_" + planTypeID + "_" + planID).length > 0) { annualEstimatedCosts.push(parseFloat(($("#annualCost_" + planTypeID + "_" + planID).html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-"))).toFixed(2)); } if ($("#annualPremium_" + planTypeID + "_" + planID).length > 0) { annualPremiumCosts.push(parseFloat(($("#annualPremium_" + planTypeID + "_" + planID).html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-"))).toFixed(2)); } medigapPremiumCosts.push(parseFloat($("#eeHeaderCost_" + planID).html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")).toFixed(2)); }); annualEstimatedCosts.sort(function (x, y) { return x - y }); annualPremiumCosts.sort(function (x, y) { return x - y }); medigapPremiumCosts.sort(function (x, y) { return x - y }); //total annual cost slider var annualEstimatedMin = Math.floor(annualEstimatedCosts[0]); var annualEstimatedMax = Math.ceil(annualEstimatedCosts[annualEstimatedCosts.length - 1]); $("[id^=annualEstimatedCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider({ range: true, step: .01, values: [annualEstimatedMin, annualEstimatedMax], min: annualEstimatedMin, max: annualEstimatedMax, slide: function (event, ui) { $("[id^=annual-estimated-cost-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }); } }); }); //need to setup slidestop after all sliders are initialized(makes sure modal/panel sliders are in sync) $("[id^=annualEstimatedCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).on("slidestop", function(event, ui){ $("[id^=annualEstimatedCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function(){ $(this).slider("values", [ui.values[0], ui.values[1]]); }); filterPlans($(this).attr("id").split('_')[1], false, false); }); }); $("[id^=annual-estimated-cost-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); }); //annual premium slider var annualPremiumMin = Math.floor(annualPremiumCosts[0]); var annualPremiumMax = Math.ceil(annualPremiumCosts[annualPremiumCosts.length - 1]); $("[id^=annualPremiumCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider({ range: true, step:.01, values: [annualPremiumMin, annualPremiumMax], min: annualPremiumMin, max: annualPremiumMax, slide: function (event, ui) { $("[id^=annual-premium-cost-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }); } }); }); //need to setup slidestop after all sliders are initialized(makes sure modal/panel sliders are in sync) $("[id^=annualPremiumCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).on("slidestop", function (event, ui) { $("[id^=annualPremiumCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider("values", [ui.values[0], ui.values[1]]); }); filterPlans($(this).attr("id").split('_')[1], false, false); }); }); $("[id^=annual-premium-cost-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); }); //medigap premium cost slider var medigapPremiumMin = Math.floor(medigapPremiumCosts[0]); var medigapPremiumMax = Math.ceil(medigapPremiumCosts[medigapPremiumCosts.length - 1]); $("[id^=medigapPremiumFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider({ range: true, step: .01, values: [medigapPremiumMin, medigapPremiumMax], min: medigapPremiumMin, max: medigapPremiumMax, slide: function (event, ui) { $("[id^=medigap-premium-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }); } }); }); $("[id^=medigap-premium-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); }); //monthly drug premium $("[id^=monthlyDrugPremiumCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { var monthlyDrugPremiumMin = Math.floor(parseFloat($(this).attr("min")).toFixed(2)); var monthlyDrugPremiumMax = Math.ceil(parseFloat($(this).attr("max")).toFixed(2)); $(this).slider({ range: true, step: .01, min: monthlyDrugPremiumMin, max: monthlyDrugPremiumMax, values: [monthlyDrugPremiumMin, monthlyDrugPremiumMax], slide: function (event, ui) { $("[id^=monthly-drug-premium-cost-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }); } }); }); //need to setup slidestop after all sliders are initialized(makes sure modal/panel sliders are in sync) $("[id^=monthlyDrugPremiumCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).on("slidestop", function (event, ui) { $("[id^=monthlyDrugPremiumCostFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider("values", [ui.values[0], ui.values[1]]); }); filterPlans($(this).attr("id").split('_')[1], false, false); }); }); $("[id^=monthly-drug-premium-cost-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); }); //drug deductible $("[id^=drugDeductibleFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { var drugDeductibleMin = Math.floor(parseFloat($(this).attr("min")).toFixed(2)); var drugDeductibleMax = Math.ceil(parseFloat($(this).attr("max")).toFixed(2)); $(this).slider({ range: true, step: .01, min: drugDeductibleMin, max: drugDeductibleMax, values: [drugDeductibleMin, drugDeductibleMax], slide: function (event, ui) { $("[id^=drug-deductible-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }); }, stop: function (event, ui) { $(this).prev().text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); } }); }); $("[id^=drug-deductible-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); }); //annual calculated plan premium $("[id^=annualCalculatedPremiumFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { var annualCalculatedPremiumMin = Math.floor(parseFloat($(this).attr("min")).toFixed(2)); var annualCalculatedPremiumMax = Math.ceil(parseFloat($(this).attr("max")).toFixed(2)); $(this).slider({ range: true, step: .01, min: annualCalculatedPremiumMin, max: annualCalculatedPremiumMax, values: [annualCalculatedPremiumMin, annualCalculatedPremiumMax], slide: function (event, ui) { $("[id^=annual-calculated-premium-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }); } }); }); //need to setup slidestop after all sliders are initialized(makes sure modal/panel sliders are in sync) $("[id^=annualCalculatedPremiumFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).on("slidestop", function (event, ui) { $("[id^=annualCalculatedPremiumFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider("values", [ui.values[0], ui.values[1]]); }); filterPlans($(this).attr("id").split('_')[1], false, false); }); }); $("[id^=annual-calculated-premium-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); }); //deductible and oop max $("[id^=deductibleFilter_" + planTypeID + planNetworkTypeName + "].mcx-filter,[id^=oopFilter_" + planTypeID + planNetworkTypeName + "].mcx-filter").each(function () { $(this).slider({ range: true, min: parseFloat($(this).attr("min")), max: parseFloat($(this).attr("max")), step: .01, values: [parseFloat($(this).attr("min")), parseFloat($(this).attr("max"))], slide: function (event, ui) { $(this).prev().text(format_currency2(ui.values[0], false) + " - " + format_currency2(ui.values[1], false)); }, stop: function (event, ui) { if ($("html,body").hasClass("plansearch")) { var bptID = $(this).attr("id").split('_')[1]; if (bptID == "208") { filterPlans(bptID, false, false, "_Medigap"); } } } }); }); $("[id^=deductible-range_" + planTypeID + planNetworkTypeName + "].mcx-filter,[id^=oop-range_" + planTypeID + planNetworkTypeName + "].mcx-filter").each(function () { $(this).text(format_currency2($(this).next().slider("values", 0), false) + " - " + format_currency2($(this).next().slider("values", 1), false)); });
}
function initMCXNonCostFilters(planTypeID, planNetworkType) { var planNetworkTypeName = ""; if (typeof planNetworkType !== 'undefined' && planNetworkType !== "") { planNetworkTypeName = planNetworkType; } $("[id^=starRatingFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider({ range: true, step: .5, min: Math.floor(parseFloat($(this).attr("min"))), max: Math.ceil(parseFloat($(this).attr("max"))), values: [Math.floor(parseFloat($(this).attr("min"))), Math.ceil(parseFloat($(this).attr("max")))], slide: function (event, ui) { $("[id^=star-rating-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(ui.values[0] + " Stars - " + ui.values[1] + " Stars"); }); } }); }); $("[id^=starRatingFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).on("slidestop", function (event, ui) { $("[id^=starRatingFilter_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).slider("values", [ui.values[0], ui.values[1]]); }); var idArray = $(this).attr('id').split("_"); if (idArray.length === 3) { var benefitPlanType = idArray[1]; var planNetworkType = "_" + idArray[2]; filterPlans(benefitPlanType, false, false, planNetworkType); } else { filterPlans(idArray[1], false, false); } }); }); $("[id^=star-rating-range_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text($(this).next().slider("option","values")[0] + " Stars - " + $(this).next().slider("option","values")[1] + " Stars"); }); initMCXCheckboxAndRadioFilter("rxFilter_" + planTypeID); initMCXCheckboxAndRadioFilter("vendorNameFilter_" + planTypeID); initMCXCheckboxAndRadioFilter("networkTypeFilter_" + planTypeID);
}
function initMCXCheckboxAndRadioFilter(name) { $("input[name^=rxFilter_").each(function () { if ($(this).val() === "") { $(this).prop("checked", true); } }); $("input[name^=" + name + "]").off('click').on('click', function () { var modalYN = $(this).parents('.ui-dialog').length > 0; var isChecked = $(this).prop("checked"); var val = $(this).val(); var items; var nameArray = $(this).attr("name").split("_"); items = $("[name=" + $(this).attr("name") + "]").filter(function () { return $(this).val() === val; }); $(items).each(function () { $(this).prop("checked", isChecked); }); var nameArray = $(this).attr("name").split("_"); if (nameArray.length === 3) { var bptID = nameArray[1]; var networkType = "_" + nameArray[2]; if (!modalYN) { filterPlans(bptID, false, false, networkType) } } else { if (!modalYN) { filterPlans(nameArray[2], false, false); } } });
}
function getFilteredPlans(planTypeID, planList, planNetworkTypeList) { var filteredPlanList = []; var annualEstimatedCostMin; var annualEstimatedCostMax; var annualPremiumCostMin; var annualPremiumCostMax; var drugDeductibleMin; var drugDeductibleMax; var monthlyDrugPremiumMin; var monthlyDrugPremiumMax; var planNetworkTypeName = ""; var passedFiltering = true; var medigapPremiumMin; var medigapPremiumMax; var annualCalculatedPremiumMin; var annualCalculatedPremiumMax; var deductibleMin; var deductibleMax; var oopMin; var oopMax; //using tabs, need to get sliders by networktype if (planNetworkTypeList !== "") { planNetworkTypeName = getPlanNetworkTypeNameByID(planNetworkTypeList.split(","), true); } var carrierNameArray = []; $("input[name=vendorNameFilter_" + planTypeID + planNetworkTypeName + "]:checked").each(function () { carrierNameArray.push($(this).val()); }); var planSubTypeArray = []; $("input[name=networkTypeFilter_" + planTypeID + planNetworkTypeName + "]:checked").each(function () { planSubTypeArray.push($(this).val()); }); //do the filtering $(planList).each(function (i) { var plan = $("input[name=txtPlanID_" + planTypeID + "][value^='" + planList[i] + "']"); var planPod = $(plan).closest("div.plan-selection-plan-portlet"); var planID = $(plan).val().split(':')[0]; passedFiltering = true; //annual cost if ($("#annualEstimatedCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { annualEstimatedCostMin = parseFloat($("#annualEstimatedCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); annualEstimatedCostMax = parseFloat($("#annualEstimatedCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var annualEstimatedCost = parseFloat($("#annualCost_" + planTypeID + "_" + planID).html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-")); if (annualEstimatedCost < annualEstimatedCostMin || annualEstimatedCost > annualEstimatedCostMax) { passedFiltering = false; } } //annual premium if ($("#annualPremiumCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { annualPremiumCostMin = parseFloat($("#annualPremiumCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); annualPremiumCostMax = parseFloat($("#annualPremiumCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var annualPremiumCost = parseFloat(($("#annualPremium_" + planTypeID + "_" + planID).html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-"))); if (annualPremiumCost < annualPremiumCostMin || annualPremiumCost > annualPremiumCostMax) { passedFiltering = false; } } //medigap premium if ($("#medigapPremiumFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { medigapPremiumMin = parseFloat($("#medigapPremiumFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); medigapPremiumMax = parseFloat($("#medigapPremiumFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var medigapPremium = parseFloat(($("#eeHeaderCost_" + planID).html().replace(/[$,)]+/g, "").replace(/[(]+/g, "-"))) if (medigapPremium < medigapPremiumMin || medigapPremium > medigapPremiumMax) { passedFiltering = false; } } //drug deductible if ($("#drugDeductibleFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { if ($("#drugDeductible_" + planID).length > 0) { drugDeductibleMin = parseFloat($("#drugDeductibleFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); drugDeductibleMax = parseFloat($("#drugDeductibleFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var planDrugDeductible = parseFloat($("#drugDeductible_" + planID).attr("deductible")).toFixed(2); if (planDrugDeductible < drugDeductibleMin || planDrugDeductible > drugDeductibleMax) { passedFiltering = false; } } } //drug monthly premium if ($("#monthlyDrugPremiumCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { monthlyDrugPremiumMin = parseFloat($("#monthlyDrugPremiumCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); monthlyDrugPremiumMax = parseFloat($("#monthlyDrugPremiumCostFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var planDrugPremium = parseFloat(plan.attr("drugPremium")).toFixed(2); if (planDrugPremium < monthlyDrugPremiumMin || planDrugPremium > monthlyDrugPremiumMax) { passedFiltering = false; } } //annual calculated plan premium (new one) if ($("#annualCalculatedPremiumFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { annualCalculatedPremiumMin = parseFloat($("#annualCalculatedPremiumFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); annualCalculatedPremiumMax = parseFloat($("#annualCalculatedPremiumFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var planAnnualCalculatedPremium = parseFloat(plan.attr("annualCalculatedPlanPremium")).toFixed(2); if (planAnnualCalculatedPremium < annualCalculatedPremiumMin || planAnnualCalculatedPremium > annualCalculatedPremiumMax) { passedFiltering = false; } } //deductible if ($("#deductibleFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { deductibleMin = parseFloat($("#deductibleFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); deductibleMax = parseFloat($("#deductibleFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var deductiblePlanCost = parseFloat(plan.attr("deductible")).toFixed(2); if (deductiblePlanCost < deductibleMin || deductiblePlanCost > deductibleMax) { passedFiltering = false; } } //oop max if ($("#oopFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0) { oopMin = parseFloat($("#oopFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0)).toFixed(2); oopMax = parseFloat($("#oopFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1)).toFixed(2); var oopPlanCost = parseFloat(plan.attr("oopMax")).toFixed(2); if (oopPlanCost < oopMin || oopPlanCost > oopMax) { passedFiltering = false; } } //haspreferredretailpharm if ($("input[name=hasPreferredRetailPharmFilter_" + planTypeID + planNetworkTypeName + "]").length > 0) { var val = $("input[name='hasPreferredRetailPharmFilter_" + planTypeID + planNetworkTypeName + "']:checked").val(); if (val === "1" && plan.attr("hasPreferredRetailPharmacyNetwork") === "False") { passedFiltering = false; } else if (val === "2" && plan.attr("hasPreferredRetailPharmacyNetwork") === "True") { passedFiltering = false; } } //hasMailDrugBenefits if ($("input[name=hasMailDrugBenefitsFilter_" + planTypeID + planNetworkTypeName + "]").length > 0) { var val = $("input[name='hasMailDrugBenefitsFilter_" + planTypeID + planNetworkTypeName + "']:checked").val(); if (val === "1" && plan.attr("hasMailDrugBenefits") === "False") { passedFiltering = false; } else if (val === "2" && plan.attr("hasMailDrugBenefits") === "True") { passedFiltering = false; } } //rxyn if ($("input[name=rxFilter_" + planTypeID + planNetworkTypeName + "]").length > 0) { var val = $("input[name='rxFilter_" + planTypeID + planNetworkTypeName + "']:checked").val(); if (val === "1" && plan.attr("rxYN") === "False") { passedFiltering = false; } else if (val === "2" && plan.attr("rxYN") === "True") { passedFiltering = false; } } //star rating var starRatingFilterInitialized = $("#starRatingFilter_" + planTypeID + planNetworkTypeName + "_Modal").length > 0; if (starRatingFilterInitialized && $(planPod).find(".starRating").length > 0) { starRatingMin = $("#starRatingFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 0); starRatingMax = $("#starRatingFilter_" + planTypeID + planNetworkTypeName + "_Modal").slider("values", 1); var starRating = $(planPod).find(".starRating").attr("score"); if (starRating < starRatingMin || starRating > starRatingMax) { passedFiltering = false; } } //carrier name var carrierNameInitialized = $("#vendorNameFilter_" + planTypeID + planNetworkTypeName).length > 0 && carrierNameArray.length > 0; if (carrierNameInitialized) { var currentCarrierName = $(planPod).find(".plan-header-carrier-name").text(); if ($.inArray(currentCarrierName, carrierNameArray) < 0) { passedFiltering = false; } } //plan sub type var planSubTypeInitialized = $("#networkTypeFilter_" + planTypeID + planNetworkTypeName).length > 0 && planSubTypeArray.length > 0; if (planSubTypeInitialized) { var currentPlanSubType = $(plan).attr("planSubType"); if ($.inArray(currentPlanSubType, planSubTypeArray) < 0) { passedFiltering = false; } } if (passedFiltering === true) { filteredPlanList.push(planID); } }); //set x plans out of x thing $("[name=mcxFiltersCount_" + planTypeID + planNetworkTypeName + "]").each(function () { $(this).text(filteredPlanList.length.toString() + " plan(s) found of " + planList.length.toString() + " plan(s) available."); }); return filteredPlanList;
}
function getPlanNetworkTypeNameByID(planNetworkTypeArray, includeLeadingUnderScore) { var planNetworkTypeName = ""; if ($.grep(planNetworkTypeArray, function (item) { return item === "18" || item === "21"; }).length > 0) { planNetworkTypeName = "MA"; } else if($.grep(planNetworkTypeArray, function (item) { return item === "19"; }).length > 0){ planNetworkTypeName = "Medigap"; } else if($.grep(planNetworkTypeArray, function (item) { return item === "20"; }).length > 0){ planNetworkTypeName = "PDP"; } if (includeLeadingUnderScore) { planNetworkTypeName = "_" + planNetworkTypeName; } return planNetworkTypeName;
}
function showHideFilterPanels(bptID, planNetworkTypeList) { var currentPlanNetworkName = getPlanNetworkTypeNameByID(planNetworkTypeList, false); $("[id^=planSearchLeftNav_" + bptID + "]").each(function (i) { var planNetworkName = $(this).attr('id').split('_')[2]; if (currentPlanNetworkName === planNetworkName){ $(this).show(); } else { $(this).hide(); } });
}
function showHideMedicareComplianceText(selectedPlanNetworkType) { //hide compliance text if selected tab is Medicare Supplement (Medigap) if (selectedPlanNetworkType == '19') { $("#compliance-text").hide(); $("#medSupMarketingID").show(); } else { $("#compliance-text").show(); $("#medSupMarketingID").hide(); }
}
function showHideQuestionPanel(bptID, planNetworkType) { $("[id^=questions-button_" + bptID + "]").each(function (i) { if (planNetworkType == 19) { $(this).show(); } else { $(this).hide(); } });
}
$(function () { $('[id^="filters-modal-"]').each(function () { $(this).dialog({ resizable: true, autoOpen: false, modal: true, width: "80%", //height: 500, close: function () { if (event.originalEvent) { var benefitPlanTypeID = $(this).attr('id').split('-')[2]; resetFilters(benefitPlanTypeID, isAskEmmaEnabled); } //filterPlans(); } }); }); $('[id^="plan-filters-button-"]').click(function () { var benefitPlanTypeID = $(this).attr('id').split('-')[3]; $('#filters-modal-' + benefitPlanTypeID).dialog('open'); }); $('[id^="cancel-filters-"]').click(function () { var benefitPlanTypeID = $(this).attr('id').split('-')[2]; resetFilters(benefitPlanTypeID, isAskEmmaEnabled); $('#filters-modal-' + benefitPlanTypeID).dialog('close'); }); $('[id^="submit-filters-"]').click(function () { var benefitPlanTypeID = $(this).attr('id').split('-')[2]; filterPlans(benefitPlanTypeID, false, false); $('#filters-modal-' + benefitPlanTypeID).dialog('close'); });
});
$(function () { $('[id^="filters_modal_mcx"]').each(function () { $(this).dialog({ resizable: true, autoOpen: false, modal: true, width: "80%" }); }); $('[id^="mcx-cancel-filters"]').click(function () { var benefitPlanTypeID = $(this).attr('id').split('-')[3]; $('[id^=filters_modal_mcx_' + benefitPlanTypeID + ']').dialog('close'); }); $('[id^="mcx-submit-filters"]').click(function () { var planTypeID = $(this).attr('id').split('-')[3]; if (planTypeID.split("_").length === 2) { var benefitPlanType = planTypeID.split("_")[0]; var planNetworkType = "_" + planTypeID.split("_")[1]; filterPlans(benefitPlanType, false, false, planNetworkType); } else { filterPlans(planTypeID, false, false); } $('[id^=filters_modal_mcx_' + planTypeID + ']').dialog('close'); }); $('[id^="plan_filters_button_mcx"]').click(function () { var idArray = $(this).attr('id').split('_'); var benefitPlanTypeID = idArray[4]; //determines if plans are broken out by network type if (idArray.length === 6) { var planNetworkType = idArray[5]; $('#filters_modal_mcx_' + benefitPlanTypeID + "_" + planNetworkType).dialog('open'); } else { $('#filters_modal_mcx_' + benefitPlanTypeID).dialog('open'); } });
});
function carrierSiteTranferMessage(url, openModalsToCloseSelector, openInNewTab, id, applicationSubmittedModalText, drxPlan) { //temporary garbage var message = ''; if (openInNewTab) { message = "The information you will be accessing is provided by another organization or vendor. If you do not intend to leave our site, Please click Cancel."; } else { message = "You are about to leave this site. Are you sure you want to continue?"; } $('<div id="carrier-site-transfer">' + message + '</div>').dialog({ autoOpen: true, height: 'auto', width: 600, modal: true, title: 'You are now leaving this website', appendTo: "#frmMaint", buttons: [ { text: 'Cancel', click: function () { $('#carrier-site-transfer').dialog("close"); } }, { text: 'Continue', click: function () { if (openInNewTab != undefined && !openInNewTab) { window.location.href = url; } else { $('#carrier-site-transfer').dialog("close"); if (openModalsToCloseSelector != undefined && openModalsToCloseSelector != "") { $(openModalsToCloseSelector).each(function () { $(this).dialog("close"); }); } //attempt to ensure all dialogs are closed before opening new window/tab //if they aren't closed before opening new window/tab, when you come back to current window/tab, they are still open (I think because animation gets paused...?) setTimeout(function () { //url = url + '?drxPlan=' + drxPlan; window.open(url, '_blank'); }, 500); } carrierSiteApplyCompletion(id, applicationSubmittedModalText); } } ], create: function () { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-default btn-large'); $(this).dialog('widget').find('.ui-dialog-buttonset button').eq(1).addClass("btn-recommended"); }, close: function () { $(this).dialog("destroy"); } });
}
function carrierSiteApplyCompletion(id, applicationSubmittedModalText) { //temporary garbage var message = ''; if (applicationSubmittedModalText != null) { message = applicationSubmittedModalText; } //$('<div id="application-completion">' + message + '<br><br><span class="enrollConfirmNum">Confirmation Number: <input type="text"></span></div>').dialog({ $('<div id="application-completion">' + message + '</div>').dialog({ autoOpen: true, height: 'auto', width: 600, modal: true, title: 'Enrollment Complete?', appendTo: "#frmMaint", buttons: [ { text: 'No', click: function () { $('#application-completion').dialog("close"); } }, { text: 'Yes', click: function () { $('#btnApplyNowBPT-' + id).html('<div class="external-app-complete"><span class="fi fi-check-circle fi-before" aria-hidden="true"></span>Successfully Completed</div>'); $('#application-completion').dialog("close"); //if (openModalsToCloseSelector != undefined && openModalsToCloseSelector != "") { // $(openModalsToCloseSelector).each(function () { // $(this).dialog("close"); // }); //} } } ], create: function () { $(this).dialog('widget').find('.ui-dialog-buttonset button').removeClass('ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only').addClass('btn btn-default btn-large'); $(this).dialog('widget').find('.ui-dialog-buttonset button').eq(1).addClass("btn-recommended"); }, close: function () { $(this).dialog("destroy"); } });
}
function showNextIntroPanel(currentPanelID) { var panelList = JSON.parse($("#introPanelsList").val()); var currentPanelIndex = findCurrentIntroPanelIndex(currentPanelID); if (currentPanelIndex === panelList.length - 1 && $('.plan-detail-print').length == 0) { $("#" + currentPanelID).hide("slide", { direction: "left" }, "slow"); $("#benefits-container-2016").show("slide", { direction: "right" }, "slow"); goToLandingPage(null, false, false); $(window).scrollTop(0); return; } var nextPanel = panelList[currentPanelIndex + 1]; $("#" + currentPanelID).hide("slide", { direction: "left" }, "slow"); $("#" + nextPanel.PanelID).show("slide", { direction: "right" }, "slow"); if (nextPanel.Handler !== "undefined") { window[nextPanel.Handler](); $(window).scrollTop(0); }
}
function findCurrentIntroPanelIndex(currentPanelID) { var panelList = JSON.parse($("#introPanelsList").val()); var currentPanelIndex = -1; if (currentPanelID !== null) { for (var i = 0; i < panelList.length; i++) { if (panelList[i].PanelID == currentPanelID) { currentPanelIndex = i; break; } } } return currentPanelIndex;
}
$('.dependents-check-box > input').on('click', function(){
})
Highlight table - Script Codes
Highlight table - Script Codes
Home Page Home
Developer Kevin
Username gnarfugh
Uploaded October 29, 2022
Rating 3
Size 90,049 Kb
Views 18,216
Do you need developer help for Highlight table?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kevin (gnarfugh) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!