tmc_angel

Experrto events

Apr 17th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  Experrto.onEvent( {
  2.                 guide_started: function ( guideId ) {
  3.                     xrtKissPushDataKeeper.setParamValue( { key: 'Guide-guideId', value: guideId } );
  4.                     xrtKissPushDataKeeper.setParamValue( { key: 'Guide-status', value: 'started' } );
  5.                     _kmq.push( xrtKissPushDataKeeper.getPushData() );
  6.                     console.log( '%c Kiss record sent guide start (' + guideId + ')', 'background-color: #00a; color: #fff;' );
  7.                     localStorage.setItem( 'guide_' + guideId + '-started', 'true' );
  8.                 },
  9.                 guide_finished: function ( guideId ) {
  10.                     xrtKissPushDataKeeper.setParamValue( { key: 'Guide-guideId', value: guideId } );
  11.                     xrtKissPushDataKeeper.setParamValue( { key: 'Guide-status', value: 'finished' } );
  12.                     _kmq.push( xrtKissPushDataKeeper.getPushData() );
  13.                     console.log( '%c Kiss record sent guide finish (' + guideId + ')', 'background-color: #00a; color: #fff;' );
  14.                     localStorage.setItem( 'guide_' + guideId + '-finished', 'true' );
  15.                 }
  16.             } );
RAW Paste Data