Untitled

 avatar
unknown
plain_text
3 years ago
41 kB
3
Indexable

    window.eg_cards = '' +
      '      <div class="card eg-card active" id="shahry">' +
      '          <div class="eg_heading">'+
      '                <h4>Shahry</h4>' +
      '                <div class="eg_mobile">' +
      '                     <img src="https://www.ooredoo.qa/web/wp-content/uploads/2022/01/phone_iphone_black.svg">'+
      '                     <p>Mobile <br>Plans</p>'+
      '                </div>'+
      '          </div>'+
      '          <div class="eg_plan_name desktop">'+
      '                <span>S</span>'+
      '                <span>M</span>'+
      '                <span>L</span>'+
      '                <span>XL</span>'+
      '          </div>'+
      '          <div class="eg_pricing">'+
      '                 <span class="eg_from">From</span>'+
      '                 <span class="eg_qr">QR</span>'+
      '                 <span class="eg_price">130</span>'+
      '                 <span class="eg_month">/Month</span>'+
      '          </div>'+
      '          <p class="eg_para">Best value monthly plans with data, entertainment and more!</p>' +
      '          <a id="Postpaid_discover_shahry" class="link-btn">DISCOVER  <img src="https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/arrow.svg" class="lazyloaded" data-ll-status="loaded"><noscript><img src="https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/arrow.svg"></noscript></a>' +
      '          <div class="eg_plan_name mobile">'+
      '                <span class="active" id="shahry_s">S</span>'+
      '                <span id="shahry_m">M</span>'+
      '                <span id="shahry_l">L</span>'+
      '                <span id="shahry_xl">XL</span>'+
      '          </div>'+
      '          <div class="eg_mobile_table active" data-id="shahry_s">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">18 GB*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">750 min*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">25 min</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button get-plan-btn" data-new-sim="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=211" data-upgrade-hala="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=migration&planId=211" data-switch-ooredoo="https://www.ooredoo.qa/web/en/postpaid-plans/switch-to-ooredoo/">GET PLAN</a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="shahry_m">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">30 GB*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">1800 min*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">50 min</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button get-plan-btn" data-new-sim="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=212" data-upgrade-hala="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=migration&planId=212" data-switch-ooredoo="https://www.ooredoo.qa/web/en/postpaid-plans/switch-to-ooredoo/">GET PLAN</a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="shahry_l">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">42 GB*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">3000 min*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">75 min</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      // '                        <a class="eg-button get-plan-btn" data-new-sim="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=209" data-upgrade-hala="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=migration&planId=209" data-switch-ooredoo="https://www.ooredoo.qa/web/en/postpaid-plans/switch-to-ooredoo/">GET PLAN</a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="shahry_xl">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">60 GB*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">Unlimited</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">200 min*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Roaming data</p>'+
      '                       <p class="eg_details">2 GB</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button get-plan-btn" data-new-sim="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=213" data-upgrade-hala="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=migration&planId=213" data-switch-ooredoo="https://www.ooredoo.qa/web/en/postpaid-plans/switch-to-ooredoo/">GET PLAN</a>'+
      '                 </div>'+
      '          </div>'+
      '      </div>' +
      '      <div class="card eg-card" id="qatarna">' +
      '          <div class="eg_heading">'+
      '                <h4>Qatarna</h4>' +
      '                <div class="eg_mobile">' +
      '                     <img src="https://www.ooredoo.qa/web/wp-content/uploads/2022/01/phone_iphone_black.svg">'+
      '                     <p>Mobile <br>Plans</p>'+
      '                </div>'+
      '          </div>'+
      '          <div class="eg_plan_name desktop">'+
      '                <span>Silver</span>'+
      '                <span>Platinum</span>'+
      '                <span>Gold</span>'+
      '          </div>'+
      '          <div class="eg_pricing">'+
      '                 <span class="eg_from">From</span>'+
      '                 <span class="eg_qr">QR</span>'+
      '                 <span class="eg_price">420</span>'+
      '                 <span class="eg_month">/Month</span>'+
      '          </div>'+
      '          <p class="eg_para">Local data, calls, international benefits and exclusive entertainment included!</p>' +
      '          <a id="Postpaid_discover_qatarna" class="link-btn">DISCOVER  <img src="https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/arrow.svg" class="lazyloaded" data-ll-status="loaded"><noscript><img src="https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/arrow.svg"></noscript></a>' +
      '          <div class="eg_plan_name mobile">'+
      '                <span class="active" id="qatarna_silver">Silver</span>'+
      '                <span id="qatarna_platinum">Platinum</span>'+
      '                <span id="qatarna_gold">Gold</span>'+
      '          </div>'+
      '          <div class="eg_mobile_table active" data-id="qatarna_silver">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">120 GB*</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">Unlimited</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">150 min</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Roaming Data</p>'+
      '                       <p class="eg_details">30 GB</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Special number</p>'+
      '                       <p class="eg_details">Free</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=787"><p>BUY NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="qatarna_platinum">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">500 GB</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">Unlimited</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">300 min</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Roaming Data</p>'+
      '                       <p class="eg_details">100 GB</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Special number</p>'+
      '                       <p class="eg_details">Free</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=215"><p>BUY NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="qatarna_gold">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">150 GB</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">WhatsApp data</p>'+
      '                       <p class="eg_details">Included</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Local calls & SMS</p>'+
      '                       <p class="eg_details">Unlimited</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">International minutes</p>'+
      '                       <p class="eg_details">200 min</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Roaming Data</p>'+
      '                       <p class="eg_details">50 GB</p>'+
      '                 </div>'+
      '                 <div>'+
      '                       <p class="eg_title">Special number</p>'+
      '                       <p class="eg_details">Free</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=1161"><p>BUY NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '      </div>' +
      '      <div class="card eg-card" id="sim">' +
      '          <div class="eg_heading">'+
      '                <h4>5G Data SIM</h4>' +
      '                <div class="eg_mobile">' +
      '                     <img src="https://www.ooredoo.qa/web/wp-content/uploads/2022/01/mobile-data-icon.svg" alt="" class="lazyloaded" data-ll-status="loaded">'+
      '                     <p>Data <br>Plans</p>'+
      '                </div>'+
      '          </div>'+
      '          <div class="eg_plan_name desktop">'+
      '                <span>S</span>'+
      '                <span>M</span>'+
      '                <span>L</span>'+
      '                <span>MAX</span>'+
      '          </div>'+
      '          <div class="eg_pricing">'+
      '                 <span class="eg_from">From</span>'+
      '                 <span class="eg_qr">QR</span>'+
      '                 <span class="eg_price">99</span>'+
      '                 <span class="eg_month">/Month</span>'+
      '          </div>'+
      '          <p class="eg_para">Never-ending internet + streaming and more on the go! with Ooredoo data plan!</p>' +
      '          <a id="Postpaid_discover_data-sim" class="link-btn">DISCOVER  <img src="https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/arrow.svg" class="lazyloaded" data-ll-status="loaded"><noscript><img src="https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/arrow.svg"></noscript></a>' +
      '          <div class="eg_plan_name mobile">'+
      '                <span class="active" id="sim_s">S</span>'+
      '                <span id="sim_m">M</span>'+
      '                <span id="sim_l">L</span>'+
      '                <span id="sim_xl">MAX</span>'+
      '          </div>'+
      '          <div class="eg_mobile_table active" data-id="sim_s">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">10 GB + 10 GB Bonus*</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2044"><p>BUT NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="sim_m">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">25 GB + 25 GB Bonus*</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2045"><p>BUT NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="sim_l">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">Unlimited</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2046"><p>BUT NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '          <div class="eg_mobile_table" data-id="sim_xl">'+
      '                 <div>'+
      '                       <p class="eg_title">Local data</p>'+
      '                       <p class="eg_details">Unlimited</p>'+
      '                 </div>'+
      '                 <div class="buttons">'+
      '                       <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      // '                       <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2048"><p>BUT NEW SIM</p></a>'+
      '                 </div>'+
      '          </div>'+
      '      </div>';




      window.eg_table = ''+
      '<div class="row eg_table">'+
      '      <div class="shahry active">'+
      '            <table>'+
      '              <thead>'+
      '                  <tr>'+
      '                    <th></th>'+
      '                    <th>S</th>'+
      '                    <th>M</th>'+
      '                    <th>L</th>'+
      '                    <th>XL</th>'+
      '                  </tr>'+
      '              </thead>'+
      '              <tbody>'+
      '                  <tr class="localData">'+
      '                    <th class="eg_title">Local Data</th>'+
      '                    <th class="shahry_s">18 GB*</th>'+
      '                    <th class="shahry_m">30 GB*</th>'+
      '                    <th class="shahry_l">42 GB*</th>'+
      '                    <th class="shahry_xl">60 GB*</th>'+
      '                  </tr>'+
      '                  <tr class="WhatsAppData">'+
      '                    <th class="eg_title">WhatsApp Data</th>'+
      '                    <th class="shahry_s">Included</th>'+
      '                    <th class="shahry_m">Included</th>'+
      '                    <th class="shahry_l">Included</th>'+
      '                    <th class="shahry_xl">Included</th>'+
      '                  </tr>'+
      '                  <tr class="localCalls">'+
      '                    <th class="eg_title">Local calls & SMS</th>'+
      '                    <th class="shahry_s">750 min *</th>'+
      '                    <th class="shahry_m">1800 min *</th>'+
      '                    <th class="shahry_l">3000 min *</th>'+
      '                    <th class="shahry_xl">Unlimited</th>'+
      '                  </tr>'+
      '                  <tr class="internationalMin">'+
      '                    <th class="eg_title">International minutes</th>'+
      '                    <th class="shahry_s">25 min</th>'+
      '                    <th class="shahry_m">50 min</th>'+
      '                    <th class="shahry_l">75 min</th>'+
      '                    <th class="shahry_xl">200 min*</th>'+
      '                  </tr>'+
      '                  <tr class="roamingData">'+
      '                    <th class="eg_title">Roaming data</th>'+
      '                    <th class="shahry_s null">x</th>'+
      '                    <th class="shahry_m null">x</th>'+
      '                    <th class="shahry_l null">x</th>'+
      '                    <th class="shahry_xl">2 GB</th>'+
      '                  </tr>'+
      '                  <tr class="specialNumber">'+
      '                    <th class="eg_title">Special Number</th>'+
      '                    <th class="shahry_s null">x</th>'+
      '                    <th class="shahry_m null">x</th>'+
      '                    <th class="shahry_l null">x</th>'+
      '                    <th class="shahry_xl null">x</th>'+
      '                  </tr>'+
      '                  <tr class="benefits">'+
      '                    <th class="eg_title">Exclusive Benefits</th>'+
      '                    <th class="shahry_s null">&#x2713</th>'+
      '                    <th class="shahry_m null">&#x2713</th>'+
      '                    <th class="shahry_l null">&#x2713</th>'+
      '                    <th class="shahry_xl null">&#x2713</th>'+
      '                  </tr>'+
      '                  <tr class="buttons">'+
      '                    <th></th>'+
      '                    <th class="shahry_s">'+
      //'                         <a class="eg-button get-plan-btn" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=211">GET PLAN</a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="shahry_m">'+
      //'                         <a class="eg-button get-plan-btn" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=212">GET PLAN</a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="shahry_l">'+
      //'                         <a class="eg-button get-plan-btn" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=209">GET PLAN</a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="shahry_xl ">'+
      //'                         <a class="eg-button get-plan-btn" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=213">GET PLAN</a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/shahry/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                  </tr>'+
      '              </tbody>'+
      '            </table>'+
 '            <p class="eg_privacyPolicy">* Offer applicable for the first 12 months, <br>changing thereafter to standard prices and allowances. <br><a href="https://www.ooredoo.qa/web/en/general-terms-and-conditions-for-consumer-services/">Terms and conditions apply</a>.</p>'+
      '      </div>'+
      '      <div class="qatarna">'+
      '            <table>'+
      '              <thead>'+
      '                  <tr>'+
      '                    <th></th>'+
      '                    <th>Silver</th>'+
      '                    <th>Platinum</th>'+
      '                    <th>Gold</th>'+
      '                  </tr>'+
      '              </thead>'+
      '              <tbody>'+
      '                  <tr class="localData">'+
      '                    <th class="eg_title">Local Data</th>'+
      '                    <th class="qatarna_silver">120 GB*</th>'+
      '                    <th class="qatarna_platinum">500 GB</th>'+
      '                    <th class="qatarna_gold">150 GB</th>'+
      '                  </tr>'+
      '                  <tr class="WhatsAppData">'+
      '                    <th class="eg_title">WhatsApp Data</th>'+
      '                    <th class="qatarna_silver">Included</th>'+
      '                    <th class="qatarna_platinum">Included</th>'+
      '                    <th class="qatarna_gold">Included</th>'+
      '                  </tr>'+
      '                  <tr class="localCalls">'+
      '                    <th class="eg_title">Local calls & SMS</th>'+
      '                    <th class="qatarna_silver">Unlimited</th>'+
      '                    <th class="qatarna_platinum">Unlimited</th>'+
      '                    <th class="qatarna_gold">Unlimited</th>'+
      '                  </tr>'+
      '                  <tr class="internationalMin">'+
      '                    <th class="eg_title">International minutes</th>'+
      '                    <th class="qatarna_silver">150 min</th>'+
      '                    <th class="qatarna_platinum">300 min</th>'+
      '                    <th class="qatarna_gold">200 min</th>'+
      '                  </tr>'+
      '                  <tr class="roamingData">'+
      '                    <th class="eg_title">Roaming data</th>'+
      '                    <th class="qatarna_silver">30 GB</th>'+
      '                    <th class="qatarna_platinum">100 GB</th>'+
      '                    <th class="qatarna_gold">50 GB</th>'+
      '                  </tr>'+
      '                  <tr class="specialNumber">'+
      '                    <th class="eg_title">Special Number</th>'+
      '                    <th class="qatarna_silver">Free</th>'+
      '                    <th class="qatarna_platinum">Free</th>'+
      '                    <th class="qatarna_gold">Free</th>'+
      '                  </tr>'+
      '                  <tr class="benefits">'+
      '                    <th class="eg_title">Exclusive Benefits</th>'+
      '                    <th class="qatarna_silver">&#x2713</th>'+
      '                    <th class="qatarna_platinum">&#x2713</th>'+
      '                    <th class="qatarna_gold">&#x2713</th>'+
      '                  </tr>'+
      '                  <tr class="buttons">'+
      '                    <th></th>'+
      '                    <th class="qatarna_silver">'+
     // '                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=787"><p>BUY NEW SIM</p></a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="gatarna_platinum">'+
      //'                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=215"><p>BUY NEW SIM</p></a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="qatarna_gold">'+
      //'                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?planId=1161"><p>BUY NEW SIM</p></a>'+
      '                         <a hhref="https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                  </tr>'+
      '              </tbody>'+
      '            </table>'+
      '      </div>'+
      '      <div class="sim">'+
      '            <table>'+
      '              <thead>'+
      '                  <tr>'+
      '                    <th></th>'+
      '                    <th>S</th>'+
      '                    <th>M</th>'+
      '                    <th>L</th>'+
      '                    <th>MAX</th>'+
      '                  </tr>'+
      '              </thead>'+
      '              <tbody>'+
      '                  <tr class="localData">'+
      '                    <th class="eg_title">Local Data</th>'+
      '                    <th class="sim_s">20 GB *</th>'+
      '                    <th class="sim_m">50 GB *</th>'+
      '                    <th class="sim_l">Unlimited</th>'+
      '                    <th class="sim_xl">Unlimited</th>'+
      '                  </tr>'+
      '                  <tr class="WhatsAppData">'+
      '                    <th class="eg_title">WhatsApp Data</th>'+
      '                    <th class="sim_s null">x</th>'+
      '                    <th class="sim_m null">x</th>'+
      '                    <th class="sim_l null">x</th>'+
      '                    <th class="sim_xl null">x</th>'+
      '                  </tr>'+
      '                  <tr class="localCalls">'+
      '                    <th class="eg_title">Local calls & SMS</th>'+
      '                    <th class="sim_s null">x</th>'+
      '                    <th class="sim_m null">x</th>'+
      '                    <th class="sim_l null">x</th>'+
      '                    <th class="sim_xl null">x</th>'+
      '                  </tr>'+
      '                  <tr class="internationalMin">'+
      '                    <th class="eg_title">International minutes</th>'+
      '                    <th class="sim_s null">x</th>'+
      '                    <th class="sim_m null">x</th>'+
      '                    <th class="sim_l null">x</th>'+
      '                    <th class="sim_xl null">x</th>'+
      '                  </tr>'+
      '                  <tr class="roamingData">'+
      '                    <th class="eg_title">Roaming data</th>'+
      '                    <th class="sim_s null">x</th>'+
      '                    <th class="sim_m null">x</th>'+
      '                    <th class="sim_l null">x</th>'+
      '                    <th class="sim_xl null">x</th>'+
      '                  </tr>'+
      '                  <tr class="specialNumber">'+
      '                    <th class="eg_title">Special Number</th>'+
      '                    <th class="sim_s null">x</th>'+
      '                    <th class="sim_m null">x</th>'+
      '                    <th class="sim_l null">x</th>'+
      '                    <th class="sim_xl null">x</th>'+
      '                  </tr>'+
      '                  <tr class="benefits">'+
      '                    <th class="eg_title">Exclusive Benefits</th>'+
      '                    <th class="sim_s null">&#x2713</th>'+
      '                    <th class="sim_m null">&#x2713</th>'+
      '                    <th class="sim_l null">&#x2713</th>'+
      '                    <th class="sim_xl null">&#x2713</th>'+
      '                  </tr>'+
      '                  <tr class="buttons">'+
      '                    <th></th>'+
      '                    <th class="sim_s">'+
      '                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2044"><p>BUY NEW SIM</p></a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="sim_m">'+
      '                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2045"><p>BUY NEW SIM</p></a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="sim_l">'+
      '                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2046"><p>BUY NEW SIM</p></a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                    <th class="sim_xl">'+
      '                         <a class="eg-button" href="https://www.ooredoo.qa/postpaid-plans/postpaid-personal-details?type=dataSIM&planId=2048"><p>BUY NEW SIM</p></a>'+
      '                         <a href="https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/" class="eg_learn">LEARN MORE</a>'+
      '                    </th>'+
      '                  </tr>'+
      '              </tbody>'+
      '            </table>'+
 '            <p class="eg_privacyPolicy">* Offer applicable for the first 12 months, <br>changing thereafter to standard prices and allowances. <br><a href="https://www.ooredoo.qa/web/en/general-terms-and-conditions-for-consumer-services/">Terms and conditions apply</a>.</p>'+
      '      </div>'+
      '</div>';



(function () {
  try {
    /* main variables */
    var debug = 0;
    var variation_name = "";
    var $;
    /* all Pure helper functions */

    function waitForElement(selector, trigger, delayInterval, delayTimeout) {
      var interval = setInterval(function () {
        if (
          document &&
          document.querySelector(selector) &&
          document.querySelectorAll(selector).length > 0 && window.eg_cards && window.eg_table
        ) {
          clearInterval(interval);
          trigger();
        }
      }, delayInterval);
      setTimeout(function () {
        clearInterval(interval);
      }, delayTimeout);
    }

    function waitForjQuery(trigger, delayInterval, delayTimeout) {
      var interval = setInterval(function () {
        if (window.jQuery !== undefined) {
          clearInterval(interval);
          trigger(window.jQuery);
        }
      }, delayInterval);
      setTimeout(function () {
        clearInterval(interval);
      }, delayTimeout);
    }

      function live (selector, event, callback, context) {
        /****Helper Functions****/
        // helper for enabling IE 8 event bindings
        function addEvent(el, type, handler) {
          if (el.attachEvent) el.attachEvent("on" + type, handler);
          else el.addEventListener(type, handler);
        }
        // matches polyfill
        this.Element &&
          (function (ElementPrototype) {
            ElementPrototype.matches =
              ElementPrototype.matches ||
              ElementPrototype.matchesSelector ||
              ElementPrototype.webkitMatchesSelector ||
              ElementPrototype.msMatchesSelector ||
              function (selector) {
                var node = this,
                  nodes = (
                    node.parentNode || node.document
                  ).querySelectorAll(selector),
                  i = -1;
                while (nodes[++i] && nodes[i] != node);
                return !!nodes[i];
              };
          })(Element.prototype);
        // live binding helper using matchesSelector
        function live(selector, event, callback, context) {
          addEvent(context || document, event, function (e) {
            var found,
              el = e.target || e.srcElement;
            while (
              el &&
              el.matches &&
              el !== context &&
              !(found = el.matches(selector))
            )
              el = el.parentElement;
            if (found) callback.call(el, e);
          });
        }
        live(selector, event, callback, context);
      }

    /* Variation functions */

  

    /* Variation Init */
    function init() {
      /* start your code here */

      document.querySelector('.CMS-shahryAddons .cards-section .plans').innerHTML = window.eg_cards+'<p class="eg_privacyPolicy">* Offer applicable for the first 12 months, <br>changing thereafter to standard prices and allowances. <br><a href="https://www.ooredoo.qa/web/en/general-terms-and-conditions-for-consumer-services/">Terms and conditions apply</a>.</p>';

      document.querySelector('.CMS-shahryAddons .cards-section .plans').insertAdjacentHTML('afterend',window.eg_table);

      live('.eg-card','click',function(){
        if(this.classList.contains('active') != true){
          document.querySelector('.eg-card.active').classList.remove('active');
          this.classList.add('active');

          document.querySelector('.eg_table > div.active').classList.remove('active');
          var getId = this.getAttribute('id');
          document.querySelector('.eg_table .'+getId).classList.add('active');
        }
      })

      live('.eg_plan_name.mobile span','click',function(){
        if(this.classList.contains('active') != true){
          document.querySelector('.eg-card.active .eg_plan_name.mobile span.active').classList.remove('active');
          this.classList.add('active');

          var getId = this.getAttribute('id');
          document.querySelector('.eg-card.active .eg_mobile_table.active').classList.remove('active');
          document.querySelector('[data-id="'+getId+'"]').classList.add('active');
        }
      })


      shahry();
      qatarna();
      sim();     


    }

    function shahry(){
      // get shahry details 
      var xhttp = new XMLHttpRequest();
      xhttp.onreadystatechange = function() {
          if (this.readyState == 4 && this.status == 200) {
            var shahry = document.createElement('div');
            shahry.innerHTML = xhttp.responseText;
            if(shahry.querySelector('#postpaid-plan-card-items [data-analytic-variant="S"] h2')){
              var shahryPrice = shahry.querySelector('#postpaid-plan-card-items [data-analytic-variant="S"] h2').innerHTML;
              document.querySelector('.eg-card#shahry .eg_price').innerHTML = shahryPrice;
            }

          }
      };
      xhttp.open("GET", "https://www.ooredoo.qa/web/en/postpaid-plans/shahry/", true);
      xhttp.send();
    }

    function qatarna(){
            
      // get Qatarna details 
      var xhttp = new XMLHttpRequest();
      xhttp.onreadystatechange = function() {
          if (this.readyState == 4 && this.status == 200) {
            var qatarna = document.createElement('div');
            qatarna.innerHTML = xhttp.responseText;

            if(qatarna.querySelector('#postpaid-plan-card-items [data-analytic-variant="Silver"] h2 span')){
              var qatarnaPrice = qatarna.querySelector('#postpaid-plan-card-items [data-analytic-variant="Silver"] h2 span').innerHTML;
              document.querySelector('.eg-card#qatarna .eg_price').innerHTML = qatarnaPrice;
            }
          }
      };
      xhttp.open("GET", "https://www.ooredoo.qa/web/en/postpaid-plans/qatarna/", true);
      xhttp.send();
    }

    function sim(){
      // get Data Sim details 
      var xhttp = new XMLHttpRequest();
      xhttp.onreadystatechange = function() {
          if (this.readyState == 4 && this.status == 200) {
            var sim = document.createElement('div');
            sim.innerHTML = xhttp.responseText;

            if(sim.querySelector('#postpaid-plan-card-items [data-analytic-variant="S"] h2')){
              var simPrice = sim.querySelector('#postpaid-plan-card-items [data-analytic-variant="S"] h2').innerHTML;
              document.querySelector('.eg-card#sim .eg_price').innerHTML = simPrice;
            }
          }
      };
      xhttp.open("GET", "https://www.ooredoo.qa/web/en/postpaid-plans/5g-data-sim/", true);
      xhttp.send();
    }

    /* Initialize variation */
    waitForElement(".CMS-shahryAddons .cards-section .plans", init, 50, 15000);
  } catch (e) {
    if (debug) console.log(e, "error in Test" + variation_name);
  }
})();
Editor is loading...