Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
6e14380f
Commit
6e14380f
authored
Nov 20, 2014
by
Neil Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix redirect on Code demo.
parent
a2ddb04f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
appengine/app.yaml
appengine/app.yaml
+1
-1
appengine/redirect.html
appengine/redirect.html
+3
-3
demos/code/code.js
demos/code/code.js
+1
-1
No files found.
appengine/app.yaml
View file @
6e14380f
...
...
@@ -11,7 +11,7 @@ handlers:
static_files
:
redirect.html
upload
:
redirect.html
# Code, Maze and Turtle moved from demos on 29 Dec 2012.
-
url
:
/static/demos/(
code|
maze|turtle)/.*
-
url
:
/static/demos/(maze|turtle)/.*
static_files
:
redirect.html
upload
:
redirect.html
# Apps was disbanded on 20 Nov 2014.
...
...
appengine/redirect.html
View file @
6e14380f
...
...
@@ -9,8 +9,8 @@ if (loc.match('/blockly/')) {
loc
=
loc
.
replace
(
'
/blockly/
'
,
'
/static/
'
);
}
//
Code,
Maze and Turtle moved from demos to apps on 29 Dec 2012.
if
(
loc
.
match
(
/
\/
demos
\/(
code|
maze|turtle
)\/
/
))
{
// Maze and Turtle moved from demos to apps on 29 Dec 2012.
if
(
loc
.
match
(
/
\/
demos
\/(
maze|turtle
)\/
/
))
{
loc
=
loc
.
replace
(
'
/demos/
'
,
'
/apps/
'
);
}
...
...
@@ -19,7 +19,7 @@ if (loc.match('/vn.html')) {
loc
=
loc
.
replace
(
'
/vn.html
'
,
'
/vi.html
'
);
}
if
(
loc
.
match
(
'
/
apps/
code/code.html
'
))
{
if
(
loc
.
match
(
'
/code/code.html
'
))
{
// Code moved to index.html on 7 Aug 2013.
loc
=
loc
.
replace
(
'
/code.html
'
,
'
/index.html
'
);
}
else
if
(
loc
.
match
(
'
/apps/code/zh_tw.html
'
))
{
...
...
demos/code/code.js
View file @
6e14380f
...
...
@@ -338,7 +338,7 @@ Code.init = function() {
BlocklyStorage
[
'
LINK_ALERT
'
]
=
MSG
[
'
linkAlert
'
];
BlocklyStorage
[
'
HASH_ERROR
'
]
=
MSG
[
'
hashError
'
];
BlocklyStorage
[
'
XML_ERROR
'
]
=
MSG
[
'
xmlError
'
];
BlocklyApps
.
bindClick
(
linkButton
,
BlocklyStorage
.
link
);
Code
.
bindClick
(
linkButton
,
BlocklyStorage
.
link
);
}
else
if
(
linkButton
)
{
linkButton
.
className
=
'
disabled
'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment