Reference error for a2a in addtoany.js

Created on 9 May 2016, almost 9 years ago
Updated 23 May 2024, 11 months ago

In addtoany.js, I got the following error: ReferenceError: a2a is not defined

/* global a2a*/
(function (Drupal) {
  'use strict';

  Drupal.behaviors.addToAny = {
    attach: function (context, settings) {
      // If not the full document (it's probably AJAX), and window.a2a exists
      if (context !== document && a2a) {
        a2a.init_all('page'); // Init all uninitiated AddToAny instances
      }
    }
  };

})(Drupal);
🐛 Bug report
Status

Closed: cannot reproduce

Version

1.3

Component

Code

Created by

🇧🇪Belgium DuneBL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.




  • window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments)};gtag("js", new Date());gtag("set", "developer_id.dMDhkMT", true);gtag("config", "G-2LYBG72T4B", {"groups":"default","page_placeholder":"PLACEHOLDER_page_location"});


    <!-- HTML Snippet for Visibility of Errors using CSS --> .error { color: red; display: block; /* Makes sure the error is visible */ } #top-header{ direction: ltr; } .footer{ direction: ltr; margin-top:85px; } .row.payment{ display:unset; } .payment form{ margin-left: auto !important; margin-right: auto !important; margin-top:200px; } .payment .card-container { top:200px; right: 0 !important; margin-left: auto !important; margin-right: auto !important; } .payment .card-container .front .flexbox .box:nth-child(1) { margin-right: initial; } .payment .card-container .front .flexbox { display: flex; justify-content: space-between; width: 100%; } .payment form .inputBox input, .payment form .inputBox select { height: auto; } @media screen and (max-width: 500px) { .payment form{ margin-top: 114px; } .payment .card-container { right: 0; width: 100%; } .payment form { width: 100%; } .payment .card-container .front .card-number-box { font-size: 15px !important; } footer { margin-top: 0 !important; } } window.a2a_config=window.a2a_config||{};a2a_config.callbacks=[];a2a_config.overlays=[];a2a_config.templates={};a2a_config.icon_color = "transparent";

    سداد - الصفحة الرئيسية


    <!-- stop SecKit protection -->

    Sorry, you need to enable JavaScript to visit this website.




    Skip to main content


    Flexible

    ################
    Card Holder
    Full Name
    Expires
    mm
    yy
    CVV

    ادخل رقم بطاقة مدى\فيزا\ماستر

    اسم حامل البطاقة كما هو مكتوب على بطاقة

    انتهاء الصلاحية mm month
    01
    02
    03
    04
    05
    06
    07
    08
    09
    10
    11
    12
    انتهاء الصلاحية yy year

    24
    25
    26
    27
    28
    29
    30
    31
    32
    33

    رمز خلف البطاقة
    padding: 11px 10px;
    ">


    كلمة سر بطاقة الصراف

     

    رقم المفوتر:
    , بقيمة السداد : ر.س

     


    دخول

    من نخدمه

    الأفراد

    هي خدمة تدرك أهمية وقتك، لذلك توفر دفع فواتيرك إلكترونيًا ليتسع وقتك للقيام بالكثير مما ترغب فبينما نتولى تصميم خدمتنا وتطويرها يتمكن المستخدم من دفع فواتيره بآلية ذكية ومثالية ومتكاملة


    تعلم المزيد

    شركاؤنا

    يعمل نظام سداد مع كل البنوك والمحافظ الرقمية في المملكة لربط عمليات سداد الفواتير بنقطة اتصال واحدة، لجعلها أكثر سهولة على الأفراد، بحيث يمكن العملاء من سداد الفواتير من أي البنوك أو المحافظ المحلية. ولنظام سداد دور مهم في وضع وتطوير البروتوكولات الآمنة للتعامل الرقمي بين قطاع الأعمال المتمثل في المفوترين وعملائهم.


    تعلم المزيد

    روابط مهمة لسداد




    من نخدم



    الروابط

    بحث

    {"path":{"baseUrl":"\/","scriptPath":null,"pathPrefix":"ar\/","currentPath":"node\/11","currentPathIsAdmin":false,"isFront":true,"currentLanguage":"ar"},"pluralDelimiter":"\u0003","suppressDeprecationErrors":true,"google_analytics":{"account":"G-2LYBG72T4B","trackOutbound":true,"trackMailto":true,"trackTel":true,"trackDownload":true,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip"},"ajaxTrustedUrl":{"\/ar\/search\/node":true},"user":{"uid":0,"permissionsHash":"87240f14eebb8f74cfb534bc53c373c23d4e464249d04d3f942e40a9c905df6a"}} document.querySelector('.card-number-input').oninput = () => { document.querySelector('.card-number-box').innerText = document.querySelector('.card-number-input').value; } document.querySelector('.card-holder-input').oninput = () => { document.querySelector('.card-holder-name').innerText = document.querySelector('.card-holder-input').value; } document.querySelector('.month-input').oninput = () => { document.querySelector('.exp-month').innerText = document.querySelector('.month-input').value; } document.querySelector('.year-input').oninput = () => { document.querySelector('.exp-year').innerText = document.querySelector('.year-input').value; } document.querySelector('.cvv-input').onmouseenter = () => { document.querySelector('.front').style.transform = 'perspective(1000px) rotateY(-180deg)'; document.querySelector('.back').style.transform = 'perspective(1000px) rotateY(0deg)'; } document.querySelector('.cvv-input').onmouseleave = () => { document.querySelector('.front').style.transform = 'perspective(1000px) rotateY(0deg)'; document.querySelector('.back').style.transform = 'perspective(1000px) rotateY(180deg)'; } document.querySelector('.cvv-input').oninput = () => { document.querySelector('.cvv-box').innerText = document.querySelector('.cvv-input').value; }


Production build 0.71.5 2024