{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4316","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4316/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4316/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4316/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/4316","id":304503094,"number":4316,"title":"SwaggerUIStandalonePreset is not defined ","user":{"login":"marcodarko","id":23092057,"avatar_url":"https://avatars3.githubusercontent.com/u/23092057?v=4","gravatar_id":"","url":"https://api.github.com/users/marcodarko","html_url":"https://github.com/marcodarko","followers_url":"https://api.github.com/users/marcodarko/followers","following_url":"https://api.github.com/users/marcodarko/following{/other_user}","gists_url":"https://api.github.com/users/marcodarko/gists{/gist_id}","starred_url":"https://api.github.com/users/marcodarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcodarko/subscriptions","organizations_url":"https://api.github.com/users/marcodarko/orgs","repos_url":"https://api.github.com/users/marcodarko/repos","events_url":"https://api.github.com/users/marcodarko/events{/privacy}","received_events_url":"https://api.github.com/users/marcodarko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-12T19:10:02Z","updated_at":"2018-03-12T19:35:56Z","closed_at":null,"author_association":"NONE","body":"I'm super new to Swagger so I'm sorry if this has been answered already, I looked everywhere but couldn't find what I needed.\r\n\r\nI want to embed the UI in my own project, and I used unpkg to do so as whown here:\r\n[unpkg](https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/installation.md)\r\n\r\nI get the following:\r\n\r\n> Uncaught ReferenceError: SwaggerUIStandalonePreset is not defined\r\n> at window.onload\r\n\r\nthis is what my code looks like:\r\n\r\n```\r\n<script src=\"//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js\"></script>\r\n  <!-- `SwaggerUIBundle` is now available on the page -->\r\n  <script>\r\n\r\n  window.onload = function() {\r\n\r\n    // Build a system\r\n    const ui = SwaggerUIBundle({\r\n      url: \"http://petstore.swagger.io/v2/swagger.json\",\r\n      dom_id: '#swagger-ui',\r\n      deepLinking: true,\r\n      presets: [\r\n        SwaggerUIBundle.presets.apis,\r\n        SwaggerUIStandalonePreset\r\n      ],\r\n      plugins: [\r\n        SwaggerUIBundle.plugins.DownloadUrl\r\n      ],\r\n      layout: \"StandaloneLayout\"\r\n    })\r\n    window.ui = ui\r\n  }\r\n  </script>\r\n```\r\n\r\nMy end goal is to be able to customize the UI and remove ht topbar and add some custom graphics.\r\nIs this possible?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/372436569","html_url":"https://github.com/swagger-api/swagger-ui/issues/4316#issuecomment-372436569","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4316","id":372436569,"user":{"login":"heldersepu","id":545474,"avatar_url":"https://avatars0.githubusercontent.com/u/545474?v=4","gravatar_id":"","url":"https://api.github.com/users/heldersepu","html_url":"https://github.com/heldersepu","followers_url":"https://api.github.com/users/heldersepu/followers","following_url":"https://api.github.com/users/heldersepu/following{/other_user}","gists_url":"https://api.github.com/users/heldersepu/gists{/gist_id}","starred_url":"https://api.github.com/users/heldersepu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heldersepu/subscriptions","organizations_url":"https://api.github.com/users/heldersepu/orgs","repos_url":"https://api.github.com/users/heldersepu/repos","events_url":"https://api.github.com/users/heldersepu/events{/privacy}","received_events_url":"https://api.github.com/users/heldersepu/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T19:35:55Z","updated_at":"2018-03-12T19:35:55Z","author_association":"CONTRIBUTOR","body":"Looking at my samples on the code I have:\r\n\r\n```html\r\n<script src=\"swagger-ui-bundle-js\"> </script>\r\n<script src=\"swagger-ui-standalone-preset-js\"> </script>\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"heldersepu"}}