client/javascript/ShareThisSimpleExpander.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 21
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 12
mnd 0
bc 0
fnc 2
dl 0
loc 21
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
jQuery(document).ready(
2
3
    function()
4
    {
5
        jQuery('.share-expanded').hide();
6
        jQuery('.share-holder').on(
7
            'click',
8
            '.share-button > a',
9
            function(event)
10
            {
11
                event.preventDefault();
12
                jQuery(this)
13
                    .closest('.share-holder')
14
                    .find('.share-expanded')
15
                    .slideToggle();
16
                return false;
17
            }
18
        )
19
    }
20
21
);
22