Site custom settings

SmartCover

Code
Default
Values
Description

mode

progressive

blank header footer banner progressive (default)

The display mode for the web site

progressive_autostart

0

integer

Number of seconds before progressive mode automaticaly start displaying.

progressive_scroll

200

integer

Number of pixel before to display (also number of pixels for scroll up)

hide_1_min

0

integer

seconds of the start of the first period

hide_1_max

5

integer

secondes of the end

hide_1_dist

1600

integer

pixels to scroll to hide

hide_2_min

6

integer

seconds of the start of the second period

hide_2_max

15

integer

secondes of the end

hide_2_dist

1000

integer

pixels to scroll to hide

hide_3_min

16

integer

seconds of the start of the third period

hide_3_max

360

integer

secondes of the end

hide_3_dist

600

integer

pixels to scroll to hide

close_button

false

bool (false / true)

Add or not a close button on every campagne

// Some code

SmartScroll

Code
Default
Value
Description

final_close

false

bool (false/true)

Enable when the "minimized" button is clicked to never open the ad again.

SmartRead

Code
Default
Value
Description

disable_pip

false

bool (false/true)

Disable the Picture in Picture experience

disable_vision

false

bool (false/true)

Disable the Vision experience

SmartSkin

Code
Label
Default
Value
Description

sm

Sticky Mode

c

c : class t : transform cs : custom

Manage the sticky mode by using a specific class "smk_top" or by managing transform on main element.

tit

Transform Initial Top

0

integer

Distance in pixels to the top of the website when the scroll is at the top. * Only in transform mode

tst

Transform Scrolling Top

0

integer

Distance to keep on top when scrolling. * Only in transform mode

tee

Transform Exist Element

string

Query identifier to have alternate initial and scrolling top value if the element is present. * Only in transform mode

teeit

Transform Exist Element Initial Top

0

integer

Distance in pixels to the top of the website when the scroll is at the top and when element is present. * Only in transform mode

teest

Transform Exist Element Scrolling Top

0

integer

Distance to keep on top when scrolling and when element is present. * Only in transform mode

bck

Background Element

body

string

Query identifier of the element to apply the background color.

You can also have you own custom sticky javascript function :

smxDeep._window._run_id_scrollCustom = function() {
    //Your own function
}

//Example detecting sub navigation
smxDeep._window._run_id_scrollCustom = function() {
    var subNav = smxDeep._document.querySelector(".sub-nav-wrapper");
    var contentDiv =  smxDeep._document.body;
    var smk =  smxDeep._document.getElementById("_run_id_smk");

    if(subNav != null) {
        var initialTop = 179;
    } else {
        var initialTop = 139;
    }
    var scrollingTop = 40;

    var rect = contentDiv.getBoundingClientRect();

    if(smk != null) {
        smk.style.position = "fixed";
        if( rect.top + parseInt(initialTop) > scrollingTop) {
            smk.style.transform = "translateY(" + ( rect.top + parseInt(initialTop)) + "px)";
        } else {
            smk.style.transform = "translateY("+scrollingTop+"px)";
        }
    }
}

SmartView

Code
Default
Value
Description

v

empty

original

Switch to original display mode

el

empty

QuerySelector

Auto position under this element

scrm

600

Integer

Distance in pixel to minimize

scr1

3000

Integer

Distance in pixel to disappear on interval t1 > t2

scr2

2000

Integer

Distance in pixel to disappear on interval t2 > t3

scr3

1000

Integer

Distance in pixel to disappear on interval t3 >

tps1

4

Integer

Sanctuarisation of the expand mode (in seconds)

tps2

15

Integer

End time of high scroller user (between tps1 and tps2)

tps3

40

Integer

End time of medium scroller user (between tps2 and tps3)

tpsc

180

Integer

End time of low scroller user and time to auto disappear of the ad

Last updated