Expand my Community achievements bar.

java script

Avatar

Level 2

Hi All,

There is one piece of code which encrypts the URL and that is in JS. Basically want to include that in PB and ultimately include that PB in HTML so that it creates encrypted link for all the HTML templates. How we can achieve this.

1 Reply

Avatar

Community Advisor

Hi @ayushhtiwari,

 

You can start by creating your PB and putting into it your JS code that do the encrypting like this: 

Amine_Abedour_0-1731074441443.png

In the delivery, load the PB like this :

Amine_Abedour_1-1731074930904.png

Select the PB created :

Amine_Abedour_2-1731074990906.png

 

You should have someting like this:

Amine_Abedour_0-1731075331466.png

 

 

You can now use your funtion as pleased il your HTML :

Amine_Abedour_3-1731075105159.png

 

Result  :

Amine_Abedour_4-1731075195450.png

 

 Br