fix warnings

This commit is contained in:
Athou
2013-10-14 15:57:35 +02:00
parent 287dea2d36
commit bad915bbaa
2 changed files with 110 additions and 96 deletions

View File

@@ -25,7 +25,16 @@
<wicket:child /> <wicket:child />
<wicket:container wicket:id="footer-container" /> <wicket:container wicket:id="footer-container" />
<wicket:container wicket:id="uservoice"> <wicket:container wicket:id="uservoice">
<script>(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/XYpTZZteqS4lHvgrTXeA.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})()</script> <script>
(function() {
var uv = document.createElement('script');
uv.type = 'text/javascript';
uv.async = true;
uv.src = '//widget.uservoice.com/XYpTZZteqS4lHvgrTXeA.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(uv, s);
})();
</script>
<script> <script>
UserVoice = window.UserVoice || []; UserVoice = window.UserVoice || [];
UserVoice.push(['showTab', 'classic_widget', { UserVoice.push(['showTab', 'classic_widget', {

View File

@@ -25,7 +25,7 @@
} }
url = url.substring(0, url.length - 1); url = url.substring(0, url.length - 1);
url = url.substring(0, url.lastIndexOf('/')); url = url.substring(0, url.lastIndexOf('/'));
var link = $('#title-base-url-link') var link = $('#title-base-url-link');
link.attr('href', url + '/rest'); link.attr('href', url + '/rest');
link.html(link.attr('href')); link.html(link.attr('href'));
@@ -38,11 +38,13 @@
supportedSubmitMethods : ['get', 'post', 'put', 'delete'], supportedSubmitMethods : ['get', 'post', 'put', 'delete'],
onComplete : function(swaggerApi, swaggerUi) { onComplete : function(swaggerApi, swaggerUi) {
if (console) { if (console) {
console.log("Loaded SwaggerUI") console.log("Loaded SwaggerUI");
console.log(swaggerApi); console.log(swaggerApi);
console.log(swaggerUi); console.log(swaggerUi);
} }
$('pre code').each(function(i, e) {hljs.highlightBlock(e)}); $('pre code').each(function(i, e) {
hljs.highlightBlock(e);
});
}, },
onFailure : function(data) { onFailure : function(data) {
if (console) { if (console) {
@@ -55,7 +57,6 @@
window.swaggerUi.load(); window.swaggerUi.load();
}); });
</script> </script>
</head> </head>
@@ -65,22 +66,26 @@
<a id="logo" href="../" style="padding-left: 0px">CommaFeed API</a> <a id="logo" href="../" style="padding-left: 0px">CommaFeed API</a>
<form id='api_selector'> <form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" <div class='input'>
type="text"/></div> <input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text" />
<div class='input'><a id="explore" href="#">Explore</a></div> </div>
<div class='input'>
<a id="explore" href="#">Explore</a>
</div>
</form> </form>
</div> </div>
</div> </div>
<div id="message-bar" class="swagger-ui-wrap"> <div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
&nbsp;
</div>
<h3 style="text-align: center">Authentication is required to access the REST API. Use HTTP Basic Authentication to authenticate yourself.</h3> <h3 style="text-align: center">Authentication is required to access the REST API. Use HTTP Basic Authentication to authenticate
<h3 style="text-align: center">The base URL of the API is <a id="title-base-url-link"></a>.</h3> yourself.</h3>
<div id="swagger-ui-container" class="swagger-ui-wrap"> <h3 style="text-align: center">
The base URL of the API is
</div> <a id="title-base-url-link"></a>
.
</h3>
<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
</body> </body>