Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 21 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 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 |