Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed May 4, 2015
1 parent 49a1aff commit dd02423
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions chapter-2a.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<a name="Chapter2a"></a>
# Chapter 2 - Translating from the client
# Chapter 2 – Translating from the client



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

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

<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.
<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.
```
<div class="container">
<div class="panel panel-default">
Expand Down Expand Up @@ -226,7 +226,7 @@ function checkTranslationStatus (fileId, timeout, onSuccess) {
```
And replace the string ‘&lt;my_consumer_key&gt;’ by your consumer key (not the consumer secret).

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

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

Expand All @@ -240,11 +240,11 @@ git checkout v1.0-workshop-client
```


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)
and continue at the ['Customize the Viewer Behavior'](chapter-3.md#Chapter3) section.
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)
and continue with the section [Customize the Viewer Behavior](chapter-3.md#Chapter3).


=========================
[Next](chapter-3.md#Chapter3) -
[Parent](chapter-2.md#Chapter2) -
[Next](chapter-3.md#Chapter3)
[Parent](chapter-2.md#Chapter2)
[Home](README.md)
18 changes: 9 additions & 9 deletions chapter-2b.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a name="Chapter2b"></a>
# Chapter 2 - Translating from the server
# Chapter 2 Translating from the server


<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.
Expand All @@ -16,7 +16,7 @@ upload.html
<!-- Bootstrap CSS -->
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />
<script src="/upload.js"></script>
</head>
Expand All @@ -32,7 +32,7 @@ $(document).ready (function () {
}) ;
```

<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.
<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.
```
<div class="container">
<div class="panel panel-default">
Expand Down Expand Up @@ -98,7 +98,7 @@ Press "Ctrl + C" to exit the node server first if it is running, and execute the
npm install
```

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

<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.
Expand Down Expand Up @@ -338,7 +338,7 @@ function translateProgress (urn) {
}
```

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

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

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


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)
and continue at the ['Customize the Viewer Behavior'](chapter-3.md#Chapter3) section.
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)
and continue with the section [Customize the Viewer Behavior](chapter-3.md#Chapter3).


=========================
[Next](chapter-3.md#Chapter3) -
[Parent](chapter-2.md#Chapter2) -
[Next](chapter-3.md#Chapter3)
[Parent](chapter-2.md#Chapter2)
[Home](README.md)

0 comments on commit dd02423

Please sign in to comment.