Tutorial Gifs at Project folder
This commit is contained in:
1 parent
76c46394ee
commit
37f21c288e
19 files changed
+22
-1
No files matched your search
@@ -363,6 +363,27 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
|
||||
}
|
||||
break
|
||||
|
||||
case 'Gifs': // This means the Gifs folder under Projects.
|
||||
{
|
||||
let path = process.env.PROJECTS_PATH + '/' + requestParameters[2] + '/Gifs'
|
||||
|
||||
if (requestParameters[3] !== undefined) {
|
||||
path = path + '/' + requestParameters[3]
|
||||
}
|
||||
|
||||
if (requestParameters[4] !== undefined) {
|
||||
path = path + '/' + requestParameters[4]
|
||||
}
|
||||
|
||||
if (requestParameters[5] !== undefined) {
|
||||
path = path + '/' + requestParameters[5]
|
||||
}
|
||||
|
||||
path = unescape(path)
|
||||
respondWithImage(path, httpResponse)
|
||||
}
|
||||
break
|
||||
|
||||
case 'favicon.ico': // This means the Scripts folder.
|
||||
{
|
||||
respondWithImage(process.env.PATH_TO_CLIENT + 'WebServer/Images/' + 'favicon.ico', httpResponse)
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -228,7 +228,7 @@ function newSuperalgosTutorialSpace() {
|
||||
|
||||
if (currentGifName === newGifName) { return }
|
||||
currentGifName = newGifName
|
||||
htmlGif.src = 'Images/Tutorial/Gifs/' + currentGifName + '.gif'
|
||||
htmlGif.src = 'Gifs/' + currentNode.project + '/' + currentGifName + '.gif'
|
||||
htmlGif.width = "400"
|
||||
htmlGif.height = "580"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user