{"id":18914877,"url":"https://github.com/ajayns/previewer","last_synced_at":"2025-04-15T08:31:36.393Z","repository":{"id":57330241,"uuid":"95912801","full_name":"ajayns/previewer","owner":"ajayns","description":"A super light-weight JavaScript image previewer [not actively maintained]","archived":false,"fork":false,"pushed_at":"2020-06-08T09:24:15.000Z","size":787,"stargazers_count":25,"open_issues_count":1,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T18:55:09.756Z","etag":null,"topics":["image-viewer","javascript","javascript-library","js-library","vanilla-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajayns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T18:10:02.000Z","updated_at":"2023-04-26T11:17:33.000Z","dependencies_parsed_at":"2022-09-21T02:20:46.758Z","dependency_job_id":null,"html_url":"https://github.com/ajayns/previewer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayns%2Fpreviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayns%2Fpreviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayns%2Fpreviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayns%2Fpreviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajayns","download_url":"https://codeload.github.com/ajayns/previewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249035580,"owners_count":21202114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-viewer","javascript","javascript-library","js-library","vanilla-javascript"],"created_at":"2024-11-08T10:13:10.735Z","updated_at":"2025-04-15T08:31:36.113Z","avatar_url":"https://github.com/ajayns.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# previewer\n\n![Giphy](https://media.giphy.com/media/xUOrwnP6582IGswTaU/giphy.gif)\n\n[Demo 1](https://sidworks.netlify.app/)\n\nA JavaScript image previewer for the web, which uses a Picasa inspired UI and is super light-weight.\n\n## Setup\n\nMake sure you have the previewer.js and previewer.css files (or the minified versions) included in the html document.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"Path/To/previewer.css\" /\u003e\n\n\u003cscript src=\"Path/To/previewer.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\n```\nFor adding the preview functionality to a single image, just add a `preview-image` class.\n\n```html\n\u003cimg src=\"Path/To/Image\" alt=\"\" class=\"preview-image\"/\u003e\n```\n\nFor multiple images, arranged as a list, add a `preview-images` class to the parent.\n\n```html\n\u003cul class=\"preview-images\"\u003e\n  \u003cli\u003e\u003cimg src=\"Path/To/Image1\" alt=\"\" /\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cimg src=\"Path/To/Image2\" alt=\"\" /\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cimg src=\"Path/To/Image3\" alt=\"\" /\u003e\u003c/li\u003e\n\u003c/ul\u003e\n```\n\nFor different thumbnail and preview, use `data-previewer` attribute.\n\n```html\n\u003cimg src=\"Path/To/Thumbnail\" data-previewer=\"Path/To/Image\" \u003e\n\n```\n\nTo finish up, initialize previewer by adding the following code:\n\n```javascript\nvar previewer = new Previewer();\n```\n\n## Features to be added\n* Popup and close animations\n* \u003cs\u003e Keyboard support \u003c/s\u003e\n* Add Gulp to auto-minify\n* \u003cs\u003e Mobile support \u003c/s\u003e\n* Add loader\n* \u003cs\u003e Remove jQuery dependancy \u003c/s\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajayns%2Fpreviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajayns%2Fpreviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajayns%2Fpreviewer/lists"}