jensoleg/swagger-ui

How to hide side bar URL input div?

ajainy opened this issue · 1 comments

Specifically this code of block

<div class="token-generator hide">
  <span data-close="" class="icon-budicon-471"></span>
  <label for="input-api-token">Url</label>
  <input autocorrect="off" class="form-control" id="input_baseUrl" placeholder="http://example.com/api" type="text">

  <div class="scope-selector">
                    <label for="scopes">Token</label>

                    <div class="area controls">
                        <input autocorrect="off" class="form-control" id="input_apiKey" placeholder="Enter api key or token" type="text">
                    </div>

                    <div class="area cta">
                        <div data-add-scope="" id="explore" class="btn"><span class="icon-budicon-519"></span>
                        </div>
                    </div>
   </div>
</div>

I tried putting this jscript code, didn't work

$('div.token-generator.hide').hide();

Try this in api-exploer.css

.swagger-section .token-generator.hide {
    display: none;
}