Forum Replies Created
-
-
Hi Martin,
thank you very much for having a look on this (again). I have no JS knowledge, so I hope that I have understood your correctly: Borlabs Cookie provides 2 JS fields:
1.) JavaScript stored in the Global field is executed as soon as a blocked content is unlocked by the visitor (i.e. only once per page). For example, use this to load an external JavaScript library.
To execute the JavaScript stored in the Global field before the blocked content is loaded, enable the Execute Global Code First option.
If this option is enabled (status: ON) and a visitor unblocks the content, the JavaScript from the Global field is executed before the blocked content is loaded.
function (contentBlockerData) { / Here is your global code / }
- JavaScript stored in the initialization box is executed each time blocked content is unblocked (that is, as many times as the visitor unblocks content). The code is executed after the JavaScript from the Global Box.
For developers
The code is executed in a function that takes the variable el as a parameter. el contains the unlocked object.function (el, contentBlockerData) { / Here is your initialization code / }
Hello Martin,
I have setup a testpage: https://www.gluecksknirpse.de/stefans-seite/
Here I have added (below the 2 buttons – please ignore them) the following wp text:
[borlabs-cookie id=”bunny” type=”content-blocker”][fvplayer id="68"][/borlabs-cookie]
The id of borlabs-cookie shortcode can be set to any other id.
If you click on “Inhalt laden” (= load content), FV Player is shown – but with an error message.
Could you have a look in the source code to answer your question? ;-) I don’t think, that player is simply hidden with CSS.
Christian