You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter-2a.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<aname="Chapter2a"></a>
2
-
# Chapter 2 - Translating from the client
2
+
# Chapter 2 – Translating from the client
3
+
3
4
4
-
5
5
<b>Step 1:</b> Create a new html page and JavaScript file – i.e. upload.html and upload.js in *www* directory. Then copy the following basic html skeleton code into the file and save it.
If you're working through this sub-tutorial as part of the main 'getting started' tutorial, [go back there now](https://github.com/Developer-Autodesk/tutorial-getting.started-view.and.data/blob/master/README.md)
244
-
and continue at the ['Customize the Viewer Behavior'](chapter-3.md#Chapter3) section.
243
+
If you're working through this sub-tutorial as part of the main 'getting started' tutorial, [go back there now](https://github.com/Developer-Autodesk/tutorial-getting.started-view.and.data/blob/master/README.md)
244
+
and continue with the section [Customize the Viewer Behavior](chapter-3.md#Chapter3).
Copy file name to clipboardExpand all lines: chapter-2b.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
<aname="Chapter2b"></a>
2
-
# Chapter 2 - Translating from the server
2
+
# Chapter 2 – Translating from the server
3
3
4
4
5
5
<b>Step 1:</b> Create a new html page and JavaScript file in folder /www – i.e. upload.html and upload.js. Then copy the following basic html skeleton code into the file and save it.
<b>Step 2:</b> Add controls in your html page to post files for translation. Add the following code between the <body></body> tags.
35
+
<b>Step 2:</b> Add controls in your html page to post files for translation. Add the following code between the <body></body> tags.
36
36
```
37
37
<div class="container">
38
38
<div class="panel panel-default">
@@ -98,7 +98,7 @@ Press "Ctrl + C" to exit the node server first if it is running, and execute the
98
98
npm install
99
99
```
100
100
101
-
<b>Step 5:</b> Create a file named ‘lmv.js’ in the /routes folder. Then copy the following [content](https://raw.githubusercontent.com/Developer-Autodesk/workflow-node.js-view.and.data.api/workshop-server/routes/lmv.js)
101
+
<b>Step 5:</b> Create a file named ‘lmv.js’ in the /routes folder. Then copy the following [content](https://raw.githubusercontent.com/Developer-Autodesk/workflow-node.js-view.and.data.api/workshop-server/routes/lmv.js)
102
102
into the file and save it. This lmv.js is a javascript library which hides the complexity of accessing the REST API.
103
103
104
104
<b>Step 6:</b> Create a JavaScript file in the /routes folder – i.e. upload.js. Then copy the following code into the file and save it.
@@ -338,7 +338,7 @@ function translateProgress (urn) {
338
338
}
339
339
```
340
340
341
-
<b>Step 9:</b> Press "Ctrl + C" to exit your node server if it is running and restart it by running `node server.js`, connect to your local server using a WebGL-compatible browser:
341
+
<b>Step 9:</b> Press "Ctrl + C" to exit your node server if it is running and restart it by running `node server.js`, connect to your local server using a WebGL-compatible browser:
(If you chose to checkout the code instead of creating the files by hand, remember to run the 'npm install' command now).
355
355
356
356
357
-
If you're working through this sub-tutorial as part of the main 'getting started' tutorial, [go back there now](https://github.com/Developer-Autodesk/tutorial-getting.started-view.and.data/blob/master/README.md)
358
-
and continue at the ['Customize the Viewer Behavior'](chapter-3.md#Chapter3) section.
357
+
If you're working through this sub-tutorial as part of the main 'getting started' tutorial, [go back there now](https://github.com/Developer-Autodesk/tutorial-getting.started-view.and.data/blob/master/README.md)
358
+
and continue with the section [Customize the Viewer Behavior](chapter-3.md#Chapter3).
0 commit comments