cleaned up page, parameterized base url

This commit is contained in:
Ayush Gupta
2011-07-27 12:35:01 -07:00
parent 9e874d65ab
commit 6486cf7ba3
2 changed files with 7 additions and 11 deletions

View File

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

View File

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