Drobne dostosowanie Javascript

Closed job
Expected budget:

Proposed by freelancer

Preferable skills:
javascript
Published:
Valid until:

Job description

Drobna zmiana w kodzie Javascript dotyczącego widgetu Trusted Shop. Jestem raczej zielony w JS i nie umiem sobie z tym poradzić. Widget na stronie insafe.store

Pomimo że np zmieniam 'disableTrustbadge' na 'true' to widget dalej jest widoczny.

Inne zmiany również nie działają.

<script>(function () {

var du = (document.querySelector('html').getAttribute('lang')=="pl");

var _mytsid = '';

if((du)){

_mytsid = 'XXXXXXX';

}

else{

_mytsid = '';

}

_tsConfig = {

'yOffset': '0', /* offset from page bottom */

'variant': 'default', /* text, default, small, reviews, custom, custom_reviews */

'customElementId': '', /* required for variants custom and custom_reviews */

'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */ 'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */

'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */

'disableResponsive': 'false', /* deactivate responsive behaviour */

'disableTrustbadge': 'false', /* deactivate trustbadge */

'trustCardTrigger': 'mouseenter', /* set to 'click' if you want the trustcard to be opened on click instead */ 'customCheckoutElementId': ''/* required for custom trustcard */

};

var _ts = document.createElement('script');

_ts.type = 'text/javascript';

_ts.charset = 'utf-8';

_ts.async = true;

_ts.src = 'widgets.trustedshops.com/js/' + _mytsid + '.js'; var __ts = document.getElementsByTagName('script')[0]; __ts.parentNode.insertBefore(_ts, __ts);

})();

</script>

Required functions:

Submitted offers (3)

Mateusz Magier

30 deals
  • angular
  • api
  • backend
  • ... (+15)
Added: on 2021-11-11

Bartłomiej Wacko

3 deals
  • api
  • backend
  • cms
  • ... (+9)
Added: on 2021-11-10

MMS

13 deals
  • ajax
  • api
  • backend
  • ... (+11)
Added: on 2021-11-10