This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
1 | $(function() { |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | var $window = $(window) |
||
0 ignored issues
–
show
|
|||
3 | , $top_link = $('#toplink') |
||
4 | , $body = $('body, html') |
||
5 | , offset = $('#code').offset().top |
||
6 | , hidePopover = function ($target) { |
||
7 | $target.data('popover-hover', false); |
||
8 | |||
9 | setTimeout(function () { |
||
0 ignored issues
–
show
|
|||
10 | if (!$target.data('popover-hover')) { |
||
0 ignored issues
–
show
|
|||
11 | $target.popover('hide'); |
||
0 ignored issues
–
show
|
|||
12 | } |
||
0 ignored issues
–
show
|
|||
13 | }, 300); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
14 | }; |
||
15 | |||
16 | $top_link.hide().click(function(event) { |
||
0 ignored issues
–
show
|
|||
17 | event.preventDefault(); |
||
0 ignored issues
–
show
|
|||
18 | $body.animate({scrollTop:0}, 800); |
||
0 ignored issues
–
show
|
|||
19 | }); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
20 | |||
21 | $window.scroll(function() { |
||
0 ignored issues
–
show
|
|||
22 | if($window.scrollTop() > offset) { |
||
0 ignored issues
–
show
|
|||
23 | $top_link.fadeIn(); |
||
0 ignored issues
–
show
|
|||
24 | } else { |
||
0 ignored issues
–
show
|
|||
25 | $top_link.fadeOut(); |
||
0 ignored issues
–
show
|
|||
26 | } |
||
0 ignored issues
–
show
|
|||
27 | }).scroll(); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
28 | |||
29 | $('.popin') |
||
0 ignored issues
–
show
|
|||
30 | .popover({trigger: 'manual'}) |
||
31 | .on({ |
||
0 ignored issues
–
show
|
|||
32 | 'mouseenter.popover': function () { |
||
0 ignored issues
–
show
|
|||
33 | var $target = $(this); |
||
0 ignored issues
–
show
|
|||
34 | |||
35 | $target.data('popover-hover', true); |
||
0 ignored issues
–
show
|
|||
36 | |||
37 | // popover already displayed |
||
0 ignored issues
–
show
|
|||
38 | if ($target.next('.popover').length) { |
||
0 ignored issues
–
show
|
|||
39 | return; |
||
0 ignored issues
–
show
|
|||
40 | } |
||
0 ignored issues
–
show
|
|||
41 | |||
42 | // show the popover |
||
0 ignored issues
–
show
|
|||
43 | $target.popover('show'); |
||
0 ignored issues
–
show
|
|||
44 | |||
45 | // register mouse events on the popover |
||
0 ignored issues
–
show
|
|||
46 | $target.next('.popover:not(.popover-initialized)') |
||
0 ignored issues
–
show
|
|||
47 | .on({ |
||
0 ignored issues
–
show
|
|||
48 | 'mouseenter': function () { |
||
0 ignored issues
–
show
|
|||
49 | $target.data('popover-hover', true); |
||
0 ignored issues
–
show
|
|||
50 | }, |
||
0 ignored issues
–
show
|
|||
51 | 'mouseleave': function () { |
||
0 ignored issues
–
show
|
|||
52 | hidePopover($target); |
||
0 ignored issues
–
show
|
|||
53 | } |
||
0 ignored issues
–
show
|
|||
54 | }) |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
55 | .addClass('popover-initialized'); |
||
0 ignored issues
–
show
|
|||
56 | }, |
||
0 ignored issues
–
show
|
|||
57 | 'mouseleave.popover': function () { |
||
0 ignored issues
–
show
|
|||
58 | hidePopover($(this)); |
||
0 ignored issues
–
show
|
|||
59 | } |
||
0 ignored issues
–
show
|
|||
60 | }); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
61 | }); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
![]() |
|||
62 |