PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 2.5.0
ShareThis Dashboard for Google Analytics v2.5.0
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / js / googleanalytics.js
googleanalytics / js Last commit date
googleanalytics.js 5 years ago googleanalytics_createprop.js 5 years ago googleanalytics_dashboard.js 9 years ago googleanalytics_page.js 5 years ago
googleanalytics.js
29 lines
1 /**
2 * Created by mdn on 2016-12-02.
3 */
4
5 (function ($) {
6 ga_loader = {
7 show: function () {
8 $('.ga-loader').show();
9 },
10 hide: function () {
11 $('.ga-loader').hide();
12 }
13 };
14
15 ga_tools = {
16 getCurrentWidth: function (wrapperSelector) {
17 return $(wrapperSelector).width();
18 },
19 recomputeChartWidth: function (minWidth, offset, wrapperSelector) {
20 const currentWidth = ga_tools.getCurrentWidth(wrapperSelector);
21 if (currentWidth >= minWidth) {
22 return parseInt(currentWidth - offset);
23 } else {
24 return minWidth;
25 }
26 }
27 };
28 })(jQuery);
29