%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/stats.varak.net/plugins/Tour/javascripts/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/stats.varak.net/plugins/Tour/javascripts/engagement.js

/**
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 */
var tourEngagement = {
    skipChallenge: function (key) {
        var $challenge = $('.tourEngagement .' + key + ' ');
        $challenge.find('.icon-hide').removeClass('icon-hide').addClass('icon-ok');

        var ajaxRequest = new ajaxHelper();
        ajaxRequest.addParams({module: 'API', method: 'Tour.skipChallenge', id: key}, 'get');
        ajaxRequest.withTokenInUrl();
        ajaxRequest.setFormat('json');
        ajaxRequest.send();
    },
    goToPage: function (page) {

        var ajaxRequest = new ajaxHelper();
        ajaxRequest.addParams({module: 'Tour', action: 'getEngagement', page: page}, 'get');
        ajaxRequest.withTokenInUrl();
        ajaxRequest.setFormat('html');
        ajaxRequest.setCallback(function (callback) {
            $('.widgetBody.tourEngagement').parent().html(callback);
        })
        ajaxRequest.send();
    }
};

Zerion Mini Shell 1.0