Skip to content

Commit dd02423

Browse files
author
Jeremy Tammik
committedMay 4, 2015
typo
1 parent 49a1aff commit dd02423

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed
 

‎chapter-2a.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<a name="Chapter2a"></a>
2-
# Chapter 2 - Translating from the client
2+
# Chapter 2 – Translating from the client
3+
34

4-
55
<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.
66

77
upload.html
@@ -16,7 +16,7 @@ upload.html
1616
1717
<!-- Bootstrap CSS -->
1818
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />
19-
19+
2020
<!-- Autodesk.ADN.Toolkit.Viewer -->
2121
<script src=" https://rawgit.com/Developer-Autodesk/library-javascript-view.and.data.api/master/js/Autodesk.ADN.Toolkit.ViewData.js"></script>
2222
<script src="/upload.js"></script>
@@ -40,7 +40,7 @@ $(document).ready (function () {
4040
}) ;
4141
```
4242

43-
<b>Step 2:</b> Add controls in your html page to post files for translation. Add the following code between the &lt;body&gt;&lt;/body&gt; tags.
43+
<b>Step 2:</b> Add controls in your html page to post files for translation. Add the following code between the &lt;body&gt;&lt;/body&gt; tags.
4444
```
4545
<div class="container">
4646
<div class="panel panel-default">
@@ -226,7 +226,7 @@ function checkTranslationStatus (fileId, timeout, onSuccess) {
226226
```
227227
And replace the string ‘&lt;my_consumer_key&gt;’ by your consumer key (not the consumer secret).
228228

229-
<b>Step 4:</b> Connect to your local server using a WebGL-compatible browser, please make sure your node server is running:
229+
<b>Step 4:</b> Connect to your local server using a WebGL-compatible browser, please make sure your node server is running:
230230

231231
[http://localhost:3000/upload.html](http://localhost:3000/upload.html)
232232

@@ -240,11 +240,11 @@ git checkout v1.0-workshop-client
240240
```
241241

242242

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 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).
245245

246246

247247
=========================
248-
[Next](chapter-3.md#Chapter3) -
249-
[Parent](chapter-2.md#Chapter2) -
248+
[Next](chapter-3.md#Chapter3)
249+
[Parent](chapter-2.md#Chapter2)
250250
[Home](README.md)

‎chapter-2b.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<a name="Chapter2b"></a>
2-
# Chapter 2 - Translating from the server
2+
# Chapter 2 Translating from the server
33

44

55
<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.
@@ -16,7 +16,7 @@ upload.html
1616
1717
<!-- Bootstrap CSS -->
1818
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />
19-
19+
2020
<script src="/upload.js"></script>
2121
</head>
2222
@@ -32,7 +32,7 @@ $(document).ready (function () {
3232
}) ;
3333
```
3434

35-
<b>Step 2:</b> Add controls in your html page to post files for translation. Add the following code between the &lt;body&gt;&lt;/body&gt; tags.
35+
<b>Step 2:</b> Add controls in your html page to post files for translation. Add the following code between the &lt;body&gt;&lt;/body&gt; tags.
3636
```
3737
<div class="container">
3838
<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
9898
npm install
9999
```
100100

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)
102102
into the file and save it. This lmv.js is a javascript library which hides the complexity of accessing the REST API.
103103

104104
<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) {
338338
}
339339
```
340340

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:
342342

343343
[http://localhost:3000/upload.html](http://localhost:3000/upload.html)
344344

@@ -354,11 +354,11 @@ git checkout v1.0-workshop-server
354354
(If you chose to checkout the code instead of creating the files by hand, remember to run the 'npm install' command now).
355355

356356

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).
359359

360360

361361
=========================
362-
[Next](chapter-3.md#Chapter3) -
363-
[Parent](chapter-2.md#Chapter2) -
362+
[Next](chapter-3.md#Chapter3)
363+
[Parent](chapter-2.md#Chapter2)
364364
[Home](README.md)

0 commit comments

Comments
 (0)
Please sign in to comment.