PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
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 4 years ago googleanalytics_createprop.js 3 years ago googleanalytics_dashboard.js 3 years ago googleanalytics_page.js 2 months ago
googleanalytics.js
31 lines
1 /**
2 * Google Analytics loader script.
3 *
4 * @package GoogleAnalytics
5 */
6
7 (function ($) {
8 ga_loader = {
9 show: function () {
10 $( '.ga-loader' ).show();
11 },
12 hide: function () {
13 $( '.ga-loader' ).hide();
14 }
15 };
16
17 ga_tools = {
18 getCurrentWidth: function (wrapperSelector) {
19 return $( wrapperSelector ).width();
20 },
21 recomputeChartWidth: function (minWidth, offset, wrapperSelector) {
22 const currentWidth = ga_tools.getCurrentWidth( wrapperSelector );
23 if (currentWidth >= minWidth) {
24 return parseInt( currentWidth - offset );
25 } else {
26 return minWidth;
27 }
28 }
29 };
30 })( jQuery );
31