Content Sitebar: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 7: Line 7:
|besondereInformation=
|besondereInformation=
{{AnzeigenflaecheBaustein}}
{{AnzeigenflaecheBaustein}}
{{Responsivitaet}}
{{Responsivitaet|seitenverhaeltnis=1:6 - z.B. 400x2400px}}
{{Baustein|titel=Scroll depth|text=The scroll depth can be important for the creation of the advertising. This is provided by iq digital as a postMessage named ''''scroll_message_sitebar'''' and can be queried using the value '''data.scrollPercent''', as in the example here.
 
<syntaxhighlight lang="javascript" line="line" style="font-size:16px">
window.addEventListener('message', function (e) {
        if (e.data.event_id == 'scroll_message_sitebar') {
            console.log(data.scrollPercent);
        }
});
</syntaxhighlight>}}
<includeonly>|wirdReferenziert=true</includeonly>
<includeonly>|wirdReferenziert=true</includeonly>
}}
}}

Navigation menu