{"action":"created","issue":{"url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/142","labels_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/142/comments","events_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/142/events","html_url":"https://github.com/sachinchoolur/lightGallery/issues/142","id":94178884,"number":142,"title":"how to open the gallery from link","user":{"login":"bfmramalho","id":5646901,"avatar_url":"https://avatars.githubusercontent.com/u/5646901?v=3","gravatar_id":"","url":"https://api.github.com/users/bfmramalho","html_url":"https://github.com/bfmramalho","followers_url":"https://api.github.com/users/bfmramalho/followers","following_url":"https://api.github.com/users/bfmramalho/following{/other_user}","gists_url":"https://api.github.com/users/bfmramalho/gists{/gist_id}","starred_url":"https://api.github.com/users/bfmramalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfmramalho/subscriptions","organizations_url":"https://api.github.com/users/bfmramalho/orgs","repos_url":"https://api.github.com/users/bfmramalho/repos","events_url":"https://api.github.com/users/bfmramalho/events{/privacy}","received_events_url":"https://api.github.com/users/bfmramalho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T00:04:38Z","updated_at":"2015-07-10T00:16:18Z","closed_at":"2015-07-10T00:16:18Z","body":"I would like to make the `<ul>` that contains the images hidden, and then lunch the gallery from a link.\r\nIs this possible?"},"comment":{"url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/comments/120179606","html_url":"https://github.com/sachinchoolur/lightGallery/issues/142#issuecomment-120179606","issue_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/142","id":120179606,"user":{"login":"bfmramalho","id":5646901,"avatar_url":"https://avatars.githubusercontent.com/u/5646901?v=3","gravatar_id":"","url":"https://api.github.com/users/bfmramalho","html_url":"https://github.com/bfmramalho","followers_url":"https://api.github.com/users/bfmramalho/followers","following_url":"https://api.github.com/users/bfmramalho/following{/other_user}","gists_url":"https://api.github.com/users/bfmramalho/gists{/gist_id}","starred_url":"https://api.github.com/users/bfmramalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfmramalho/subscriptions","organizations_url":"https://api.github.com/users/bfmramalho/orgs","repos_url":"https://api.github.com/users/bfmramalho/repos","events_url":"https://api.github.com/users/bfmramalho/events{/privacy}","received_events_url":"https://api.github.com/users/bfmramalho/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T00:16:18Z","updated_at":"2015-07-10T00:16:18Z","body":"I found a work around:\r\n`<a id=\"open\">Open Gallert</a>\r\n<ul id=\"lightGallery\">\r\n  <li data-src=\"img/img1.jpg\">\r\n      <img src=\"img/thumb1.jpg\" />\r\n  </li>\r\n  <li data-src=\"img/img2.jpg\">\r\n      <img src=\"img/thumb2.jpg\" />\r\n  </li>\r\n</ul>`\r\nand\r\n`$('#lightGallery').lightGallery();\r\n$(\"#open\").click(function () {\r\n    $('ul#lightGallery li:first').click();\r\n});`\r\n\r\nMaybe there's another way to do this, but this works fine"}}