Gitter migration: Point people to app.gitter.im (rollout pt. 1)
[gitter.git] / public / js / apps.js
blob7b031f8049d198c5bf28b96a41e565f05244e51b
1 'use strict';
3 require('./utils/tracking');
4 var appEvents = require('./utils/appevents');
6 setTimeout(function() {
7   document.getElementById('apps-panel').classList.add('visible');
8 }, 1000);
10 document.getElementById('osx-download').addEventListener('click', function() {
11   appEvents.trigger('track-event', 'desktop_client_download', { downloadOs: 'osx' });
12 });
14 document.getElementById('windows-download').addEventListener('click', function() {
15   appEvents.trigger('track-event', 'desktop_client_download', { downloadOs: 'windows' });
16 });
18 document.getElementById('linux32-download').addEventListener('click', function() {
19   appEvents.trigger('track-event', 'desktop_client_download', { downloadOs: 'linux' });
20 });
22 document.getElementById('linux64-download').addEventListener('click', function() {
23   appEvents.trigger('track-event', 'desktop_client_download', { downloadOs: 'linux' });
24 });