GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( ff4cca...50c16f )
by Florian
01:15
created

js/tracking.js   A

Complexity

Total Complexity 23
Complexity/F 1

Size

Lines of Code 90
Function Count 23

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 1
Metric Value
cc 0
nc 1
dl 0
loc 90
rs 10
c 4
b 0
f 1
wmc 23
mnd 0
bc 23
fnc 23
bpm 1
cpm 1
noi 0

4 Functions

Rating   Name   Duplication   Size   Complexity  
A tracking.js ➔ trackLine 0 5 1
A tracking.js ➔ trackSearch 0 5 1
A tracking.js ➔ trackAction 0 5 1
A $(document).ready 0 63 1
1
/*jslint
2
  nomen: true
3
  indent: 4
4
*/
5
6
/*global
7
  $, _paq, document
8
*/
9
10
11
function trackMarker(action) {
12
    'use strict';
13
14
    _paq.push(['trackEvent', 'markers', action]);
15
}
16
17
18
function trackLine(action) {
19
    'use strict';
20
21
    _paq.push(['trackEvent', 'lines', action]);
22
}
23
24
25
function trackAction(action) {
26
    'use strict';
27
28
    _paq.push(['trackEvent', 'general', action]);
29
}
30
31
32
function trackSearch(query) {
33
    'use strict';
34
35
    _paq.push(['trackSiteSearch', query, false, false]);
36
}
37
38
$(document).ready(function () {
39
    'use strict';
40
41
    $("#navbarBlog").click(function () {
42
        trackAction("navbar.blog");
43
    });
44
    $("#navbarHelp").click(function () {
45
        trackAction("navbar.help");
46
    });
47
    $("#navbarInfo").click(function () {
48
        trackAction("navbar.info");
49
    });
50
    $("#navbarWhatsnew").click(function () {
51
        trackAction("navbar.whatsnew");
52
    });
53
54
    $("#buttonExportGPX").click(function () {
55
        trackAction("export.gpx");
56
    });
57
58
    $("#buttonPermalink").click(function () {
59
        trackAction("permalink.create");
60
    });
61
    $("#buttonPermalinkShorten").click(function () {
62
        trackAction("permalink.shorten");
63
    });
64
65
    $("#buttonMarkersNew1").click(function () {
66
        trackMarker("new1");
67
    });
68
    $("#buttonMarkersDeleteAll1").click(function () {
69
        trackMarker("deleteall1");
70
    });
71
    $("#buttonMarkersNew2").click(function () {
72
        trackMarker("new2");
73
    });
74
    $("#buttonMarkersDeleteAll2").click(function () {
75
        trackMarker("deleteall2");
76
    });
77
78
    $("#buttonLinesNew").click(function () {
79
        trackLine("new");
80
    });
81
    $("#buttonLinesDeleteAll").click(function () {
82
        trackLine("deleteall");
83
    });
84
85
    $("#sidebartoggle").click(function () {
86
        trackAction("sidebar.toggle");
87
    });
88
    $("#hillshading").click(function () {
89
        trackAction("hillshading.toggle");
90
    });
91
    $("#npa").click(function () {
92
        trackAction("cdda.toggle");
93
    });
94
    $("#npa").click(function () {
95
        trackAction("npa.toggle");
96
    });
97
    $("#geocaches").click(function () {
98
        trackAction("geocaches.toggle");
99
    });
100
});
101