Total Complexity | 8 |
Complexity/F | 4 |
Lines of Code | 48 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | (function($) { |
||
2 | 'use strict'; |
||
3 | $(function() { |
||
4 | if ($('.demo-tabs').length) { |
||
5 | $('.demo-tabs').pwstabs({ |
||
6 | effect: 'none' |
||
7 | }); |
||
8 | } |
||
9 | |||
10 | if ($('.hello_world').length) { |
||
11 | $('.hello_world').pwstabs(); |
||
12 | } |
||
13 | |||
14 | if ($('#rtl-tabs-1').length) { |
||
15 | $('#rtl-tabs-1').pwstabs({ |
||
16 | effect: 'slidedown', |
||
17 | defaultTab: 2, |
||
18 | rtl: true |
||
19 | }); |
||
20 | } |
||
21 | |||
22 | if ($('#vertical-left').length) { |
||
23 | $('#vertical-left').pwstabs({ |
||
24 | effect: 'slideleft', |
||
25 | defaultTab: 1, |
||
26 | containerWidth: '600px', |
||
27 | tabsPosition: 'vertical', |
||
28 | verticalPosition: 'left' |
||
29 | }); |
||
30 | } |
||
31 | |||
32 | if ($('#horizontal-left').length) { |
||
33 | $('#horizontal-left').pwstabs({ |
||
34 | effect: 'slidedown', |
||
35 | defaultTab: 2, |
||
36 | containerWidth: '600px', |
||
37 | horizontalPosition: 'bottom' |
||
38 | }); |
||
39 | } |
||
40 | |||
41 | if ($('.tickets-tab').length) { |
||
42 | $('.tickets-tab').pwstabs({ |
||
43 | effect: 'none' |
||
44 | }); |
||
45 | } |
||
46 | |||
47 | }); |
||
48 | })(jQuery); |