-
Notifications
You must be signed in to change notification settings - Fork 3
/
custom_popup_andyblac.yaml
37 lines (36 loc) · 1.11 KB
/
custom_popup_andyblac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
custom_popup_andyblac_tap:
tap_action:
action: "fire-dom-event"
browser_mod:
service: "browser_mod.popup"
data:
title: "[[[ return variables.popup_title ? variables.popup_title : ' '; ]]]"
size: >
[[[
const mediaQuery = window.matchMedia("(max-width: 800px)")
if (mediaQuery.matches) {
return "fullscreen";
}
]]]
style: >
--popup-padding-x: 0px;
--popup-padding-y: 0px;
content: "[[[ return variables.popup_content; ]]]"
custom_popup_andyblac_hold:
hold_action:
action: "fire-dom-event"
browser_mod:
service: "browser_mod.popup"
data:
title: "[[[ return variables.popup_title ? variables.popup_title : ' '; ]]]"
size: >
[[[
const mediaQuery = window.matchMedia("(max-width: 800px)")
if (mediaQuery.matches) {
return "fullscreen";
}
]]]
style: >
--popup-padding-x: 0px;
--popup-padding-y: 0px;
content: "[[[ return variables.popup_content; ]]]"