You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: 'Welcome to the Conditional Expression Parser.<br><br>Use your keyboard or the buttons below to navigate this brief tutorial.'
23
23
},{
24
-
onShow: function(){
25
-
if(_options.onShow){_options.onShow();}
24
+
onShow: function(tour){
25
+
if(_options.onShow){_options.onShow(tour);}
26
26
resetInput();
27
27
},
28
28
element: '.js-tutorial-input',
29
29
placement: 'bottom',
30
30
title: 'The Input Box',
31
31
content: 'This textbox is where you\'ll enter the conditional expression you want to analyze.'
32
32
},{
33
-
onShow: function(){
34
-
if(_options.onShow){_options.onShow();}
33
+
onShow: function(tour){
34
+
if(_options.onShow){_options.onShow(tour);}
35
35
resetInput().val(example1);
36
36
},
37
37
element: '.js-tutorial-input',
38
38
placement: 'bottom',
39
39
title: 'A Simple Input',
40
40
content: 'Let\'s begin with a simple example: two conditions, A and B, separated by an OR operator.<br><br>Notice that some syntax like the "if" statement and the opening bracket are included. They are unnecessary and will be ignored.'
41
41
},{
42
-
onShow: function(){
43
-
if(_options.onShow){_options.onShow();}
42
+
onShow: function(tour){
43
+
if(_options.onShow){_options.onShow(tour);}
44
44
resetInput().val(example1).change();
45
45
},
46
46
element: '.js-truth-table',
47
47
placement: 'bottom',
48
48
title: 'A Simple Output',
49
49
content: 'The parser will generate a "truth table" showing all of the code paths in which the expression will evaluate to TRUE. Our simple example has simple results.'
50
50
},{
51
-
onShow: function(){
52
-
if(_options.onShow){_options.onShow();}
51
+
onShow: function(tour){
52
+
if(_options.onShow){_options.onShow(tour);}
53
53
resetInput().val(example2);
54
54
},
55
55
element: '.js-tutorial-input',
56
56
placement: 'bottom',
57
57
title: 'A Complex Input',
58
58
content: 'If your conditional expressions were so simple, you wouldn\'t need this tool!<br><br>Let\'s try something harder with sub-expressions, function calls, strings, and varied operators.'
59
59
},{
60
-
onShow: function(){
61
-
if(_options.onShow){_options.onShow();}
60
+
onShow: function(tour){
61
+
if(_options.onShow){_options.onShow(tour);}
62
62
resetInput().val(example2).change();
63
63
},
64
64
element: '.js-truth-table',
65
65
placement: 'bottom',
66
66
title: 'A Complex Output',
67
67
content: 'Now our truth table is much larger. The different colored columns are used to group conditions within the same expression depth.<br><br>Notice that function parameters and strings are grouped into a single expression even if they look like conditional expressions.'
68
68
},{
69
-
onShow: function(){
70
-
if(_options.onShow){_options.onShow();}
69
+
onShow: function(tour){
70
+
if(_options.onShow){_options.onShow(tour);}
71
71
resetInput().val(example3);
72
72
},
73
73
element: '.js-tutorial-input',
74
74
placement: 'bottom',
75
75
title: 'The XOR Operator',
76
76
content: 'Lastly we\'ll look at the XOR operator. Unlike the OR operator, the XOR operator requires that one or more conditions is FALSE for the overall expression to be TRUE.'
0 commit comments