mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-01 08:35:32 +02:00
facebook page link and logging
This commit is contained in:
parent
740a94ccf6
commit
af3d440874
10 changed files with 59 additions and 7 deletions
|
@ -11272,9 +11272,18 @@ var MainHelperBar = HelperBar.extend({
|
|||
}, {
|
||||
icon: 'globe',
|
||||
id: 'intl'
|
||||
}, {
|
||||
newPageLink: true,
|
||||
icon: 'facebook',
|
||||
id: 'fb',
|
||||
href: 'https://www.facebook.com/LearnGitBranching'
|
||||
}];
|
||||
},
|
||||
|
||||
onFbClick: function() {
|
||||
log.viewInteracted('fbPageLink');
|
||||
},
|
||||
|
||||
onIntlClick: function() {
|
||||
this.showDeferMe(this.intlHelper);
|
||||
log.viewInteracted('openIntlBar');
|
||||
|
@ -18286,7 +18295,8 @@ exports.levelSequences = {
|
|||
]
|
||||
};
|
||||
|
||||
if (window.location && window.location.href.indexOf('showRemote') !== -1) {
|
||||
if (typeof window !== 'undefined' && window.location &&
|
||||
window.location.href.indexOf('showRemote') !== -1) {
|
||||
exports.levelSequences.remote = [
|
||||
require('../../levels/remote/clone').level
|
||||
];
|
||||
|
@ -31840,9 +31850,18 @@ var MainHelperBar = HelperBar.extend({
|
|||
}, {
|
||||
icon: 'globe',
|
||||
id: 'intl'
|
||||
}, {
|
||||
newPageLink: true,
|
||||
icon: 'facebook',
|
||||
id: 'fb',
|
||||
href: 'https://www.facebook.com/LearnGitBranching'
|
||||
}];
|
||||
},
|
||||
|
||||
onFbClick: function() {
|
||||
log.viewInteracted('fbPageLink');
|
||||
},
|
||||
|
||||
onIntlClick: function() {
|
||||
this.showDeferMe(this.intlHelper);
|
||||
log.viewInteracted('openIntlBar');
|
||||
|
@ -35640,7 +35659,8 @@ exports.levelSequences = {
|
|||
]
|
||||
};
|
||||
|
||||
if (window.location && window.location.href.indexOf('showRemote') !== -1) {
|
||||
if (typeof window !== 'undefined' && window.location &&
|
||||
window.location.href.indexOf('showRemote') !== -1) {
|
||||
exports.levelSequences.remote = [
|
||||
require('../../levels/remote/clone').level
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue