mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-03 03:04:27 +02:00
Merge pull request #1140 from pomeh/1139-add-direct-link-to-levels
Resolves #1139: can use a direct permalink to a specific level
This commit is contained in:
commit
03a82ce78f
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,10 @@ var initDemo = function(sandbox) {
|
|||
'levels'
|
||||
];
|
||||
commands = commands.join(';#').split('#'); // hax
|
||||
} else if (params.hasOwnProperty('level')) {
|
||||
commands = [
|
||||
'level ' + unescape(params.level),
|
||||
];
|
||||
} else if (params.gist_level_id) {
|
||||
$.ajax({
|
||||
url: 'https://api.github.com/gists/' + params.gist_level_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue