cleaned up page, parameterized base url
This commit is contained in:
@@ -43,10 +43,8 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
The latest API base URL is
|
<br>The latest API base URL is
|
||||||
<span class='code'>
|
<span id="api_host_url" class='code'></span>
|
||||||
http://api.wordnik.com/v4
|
|
||||||
</span>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -55,15 +53,10 @@ http://api.wordnik.com/v4
|
|||||||
<div id='footer'>
|
<div id='footer'>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://www.wordnik.com" class="strong">wordnik.com</a></li>
|
<li><a href="http://swagger.wordnik.com" class="strong">swagger.wordnik.com</a></li>
|
||||||
<li><a href="http://twitter.com/wordnik">@wordnik</a></li>
|
|
||||||
<li><a href="http://twitter.com/wordnikapi">@wordnikapi</a></li>
|
<li><a href="http://twitter.com/wordnikapi">@wordnikapi</a></li>
|
||||||
<li><a href="http://github.com/wordnik">github.com/wordnik</a></li>
|
<li><a href="http://github.com/wordnik">github.com/wordnik</a></li>
|
||||||
<li><a href="irc://irc.freenode.net/wordnik">#wordnik on IRC</a></li>
|
<li><a href="irc://irc.freenode.net/wordnik">#wordnik on IRC</a></li>
|
||||||
<li><a href="http://www.wordnik.com/about">about</a></li>
|
|
||||||
<li><a href="http://smartwords.wordnik.com/">smartwords</a></li>
|
|
||||||
<li><a href="http://blog.wordnik.com">blog</a></li>
|
|
||||||
<li><a href="/terms">terms</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
// create and initialize SwaggerService
|
// create and initialize SwaggerService
|
||||||
var swaggerService = new SwaggerService("http://swagr.api.wordnik.com/v4");
|
var hostUrl = "http://swagr.api.wordnik.com/v4";
|
||||||
|
|
||||||
|
$("#api_host_url").html(hostUrl);
|
||||||
|
var swaggerService = new SwaggerService(hostUrl);
|
||||||
swaggerService.init();
|
swaggerService.init();
|
||||||
|
|
||||||
// Create convenience references to Spine models
|
// Create convenience references to Spine models
|
||||||
|
|||||||
Reference in New Issue
Block a user