1var luxarDisclaimer = {
2 params: {},
3 container: null,
4 cookie_name: 'luxar_disclamer_hide',
5
6 show: function () {
7
8 if (BX.getCookie(luxarDisclaimer.cookie_name) === 'Y') {
9 return false;
10 }
11
12 var containerChilds = [];
13
14 containerChilds.push(
15 BX.create(
16 'div',
17 {
18 props: {className: 'luxar_disclaimer_text'},
19 html: (luxarDisclaimer.params.text !== undefined ? luxarDisclaimer.params.text : '')
20 }
21 )
22 );
23
24 if (luxarDisclaimer.params.button_on == 'Y' && luxarDisclaimer.params.button_text.length > 0) {
25 containerChilds.push(
26 BX.create(
27 'a',
28 {
29 props: {className: 'luxar_disclaimer_button'},
30 attrs: {href: "#"},
31 html: (luxarDisclaimer.params.button_text),
32 events: {
33 click: function (e) {
34 e.preventDefault();
35 luxarDisclaimer.hide();
36 return false;
37 }
38 }
39 }
40 )
...
</html>