Completed
Push — dev5 ( 76b71a...013a5b )
by Ron
11:53
created

resources/js/template_files/tabs.js   A

Complexity

Total Complexity 8
Complexity/F 4

Size

Lines of Code 48
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 8
eloc 30
mnd 6
bc 6
fnc 2
dl 0
loc 48
rs 10
bpm 3
cpm 4
noi 0
c 0
b 0
f 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);