morpheus.HelpMenu = function() { var html = []; html.push('
'); html .push(''); html .push(''); html.push('
'); this.$el = $(html.join('')); this.$el.find('button').on('click', function(e) { e.stopImmediatePropagation(); }); this.$el.find('[name=contact]').on('click', function(e) { e.preventDefault(); e.stopPropagation(); e.stopImmediatePropagation(); window.open('mailto:morpheus@broadinstitute.org'); morpheus.Util.trackEvent({ eventCategory : 'ToolBar', eventAction : 'contact' }); }); this.$el.find('[name=tutorial]').on('click', function(e) { e.preventDefault(); e.stopPropagation(); e.stopImmediatePropagation(); window.open(morpheus.Util.URL + 'tutorial.html'); morpheus.Util.trackEvent({ eventCategory : 'ToolBar', eventAction : 'tutorial' }); }); this.$el.find('[name=linking]').on('click', function(e) { e.preventDefault(); e.stopPropagation(); e.stopImmediatePropagation(); window.open(morpheus.Util.URL + 'linking.html'); morpheus.Util.trackEvent({ eventCategory : 'ToolBar', eventAction : 'linking' }); }); this.$el.find('[name=source]').on('click', function(e) { e.preventDefault(); e.stopPropagation(); e.stopImmediatePropagation(); window.open('https://github.com/joshua-gould/morpheus.js'); morpheus.Util.trackEvent({ eventCategory : 'ToolBar', eventAction : 'source' }); }); };