mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +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',
|
icon: 'globe',
|
||||||
id: 'intl'
|
id: 'intl'
|
||||||
|
}, {
|
||||||
|
newPageLink: true,
|
||||||
|
icon: 'facebook',
|
||||||
|
id: 'fb',
|
||||||
|
href: 'https://www.facebook.com/LearnGitBranching'
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onFbClick: function() {
|
||||||
|
log.viewInteracted('fbPageLink');
|
||||||
|
},
|
||||||
|
|
||||||
onIntlClick: function() {
|
onIntlClick: function() {
|
||||||
this.showDeferMe(this.intlHelper);
|
this.showDeferMe(this.intlHelper);
|
||||||
log.viewInteracted('openIntlBar');
|
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 = [
|
exports.levelSequences.remote = [
|
||||||
require('../../levels/remote/clone').level
|
require('../../levels/remote/clone').level
|
||||||
];
|
];
|
||||||
|
@ -31840,9 +31850,18 @@ var MainHelperBar = HelperBar.extend({
|
||||||
}, {
|
}, {
|
||||||
icon: 'globe',
|
icon: 'globe',
|
||||||
id: 'intl'
|
id: 'intl'
|
||||||
|
}, {
|
||||||
|
newPageLink: true,
|
||||||
|
icon: 'facebook',
|
||||||
|
id: 'fb',
|
||||||
|
href: 'https://www.facebook.com/LearnGitBranching'
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onFbClick: function() {
|
||||||
|
log.viewInteracted('fbPageLink');
|
||||||
|
},
|
||||||
|
|
||||||
onIntlClick: function() {
|
onIntlClick: function() {
|
||||||
this.showDeferMe(this.intlHelper);
|
this.showDeferMe(this.intlHelper);
|
||||||
log.viewInteracted('openIntlBar');
|
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 = [
|
exports.levelSequences.remote = [
|
||||||
require('../../levels/remote/clone').level
|
require('../../levels/remote/clone').level
|
||||||
];
|
];
|
||||||
|
|
1
build/bundle.min.681df2a8.js
Normal file
1
build/bundle.min.681df2a8.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
build/bundle.min.js
vendored
2
build/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -549,6 +549,8 @@ li.rebaseEntry,
|
||||||
|
|
||||||
.helperBar a {
|
.helperBar a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -557,6 +559,10 @@ li.rebaseEntry,
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.helperBar a:last-child {
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.helperBar a:last-child:after {
|
.helperBar a:last-child:after {
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
|
@ -13,7 +13,7 @@
|
||||||
<meta property="og:image" content="http://pcottle.github.io/learnGitBranching/assets/learnGitBranching.png"/>
|
<meta property="og:image" content="http://pcottle.github.io/learnGitBranching/assets/learnGitBranching.png"/>
|
||||||
<meta property="og:description" content="A interactive Git visualization tool to educate and challenge!"/>
|
<meta property="og:description" content="A interactive Git visualization tool to educate and challenge!"/>
|
||||||
|
|
||||||
<link rel="stylesheet" href="build/main.e751aa61.css" type="text/css" charset="utf-8">
|
<link rel="stylesheet" href="build/main.e882d864.css" type="text/css" charset="utf-8">
|
||||||
<link rel="stylesheet" href="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
<link rel="stylesheet" href="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -116,6 +116,11 @@
|
||||||
<% for(var i = 0; i < items.length; i++) { %>
|
<% for(var i = 0; i < items.length; i++) { %>
|
||||||
<% if (items[i].text) { %>
|
<% if (items[i].text) { %>
|
||||||
<a data-id="<%= items[i].id %>"><%= items[i].text %></a>
|
<a data-id="<%= items[i].id %>"><%= items[i].text %></a>
|
||||||
|
<% } else if (items[i].newPageLink) { %>
|
||||||
|
<a data-id="<%= items[i].id %>"
|
||||||
|
target="_blank" href="<%= items[i].href %>">
|
||||||
|
<i data-id="<%= items[i].id %>" class="icon-<%= items[i].icon %>"></i>
|
||||||
|
</a>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<a data-id="<%= items[i].id %>">
|
<a data-id="<%= items[i].id %>">
|
||||||
<i data-id="<%= items[i].id %>" class="icon-<%= items[i].icon %>"></i>
|
<i data-id="<%= items[i].id %>" class="icon-<%= items[i].icon %>"></i>
|
||||||
|
@ -434,7 +439,7 @@
|
||||||
For a much easier time perusing the source, see the individual files at:
|
For a much easier time perusing the source, see the individual files at:
|
||||||
https://github.com/pcottle/learnGitBranching
|
https://github.com/pcottle/learnGitBranching
|
||||||
-->
|
-->
|
||||||
<script src="build/bundle.min.9253686e.js"></script>
|
<script src="build/bundle.min.681df2a8.js"></script>
|
||||||
|
|
||||||
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
|
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
|
||||||
The downside? No raw logs to parse for analytics, so I have to include
|
The downside? No raw logs to parse for analytics, so I have to include
|
||||||
|
|
|
@ -760,9 +760,18 @@ var MainHelperBar = HelperBar.extend({
|
||||||
}, {
|
}, {
|
||||||
icon: 'globe',
|
icon: 'globe',
|
||||||
id: 'intl'
|
id: 'intl'
|
||||||
|
}, {
|
||||||
|
newPageLink: true,
|
||||||
|
icon: 'facebook',
|
||||||
|
id: 'fb',
|
||||||
|
href: 'https://www.facebook.com/LearnGitBranching'
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onFbClick: function() {
|
||||||
|
log.viewInteracted('fbPageLink');
|
||||||
|
},
|
||||||
|
|
||||||
onIntlClick: function() {
|
onIntlClick: function() {
|
||||||
this.showDeferMe(this.intlHelper);
|
this.showDeferMe(this.intlHelper);
|
||||||
log.viewInteracted('openIntlBar');
|
log.viewInteracted('openIntlBar');
|
||||||
|
|
|
@ -27,7 +27,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 = [
|
exports.levelSequences.remote = [
|
||||||
require('../../levels/remote/clone').level
|
require('../../levels/remote/clone').level
|
||||||
];
|
];
|
||||||
|
|
|
@ -549,6 +549,8 @@ li.rebaseEntry,
|
||||||
|
|
||||||
.helperBar a {
|
.helperBar a {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -557,6 +559,10 @@ li.rebaseEntry,
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.helperBar a:last-child {
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.helperBar a:last-child:after {
|
.helperBar a:last-child:after {
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,6 +116,11 @@
|
||||||
<% for(var i = 0; i < items.length; i++) { %>
|
<% for(var i = 0; i < items.length; i++) { %>
|
||||||
<% if (items[i].text) { %>
|
<% if (items[i].text) { %>
|
||||||
<a data-id="<%= items[i].id %>"><%= items[i].text %></a>
|
<a data-id="<%= items[i].id %>"><%= items[i].text %></a>
|
||||||
|
<% } else if (items[i].newPageLink) { %>
|
||||||
|
<a data-id="<%= items[i].id %>"
|
||||||
|
target="_blank" href="<%= items[i].href %>">
|
||||||
|
<i data-id="<%= items[i].id %>" class="icon-<%= items[i].icon %>"></i>
|
||||||
|
</a>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<a data-id="<%= items[i].id %>">
|
<a data-id="<%= items[i].id %>">
|
||||||
<i data-id="<%= items[i].id %>" class="icon-<%= items[i].icon %>"></i>
|
<i data-id="<%= items[i].id %>" class="icon-<%= items[i].icon %>"></i>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue