{"id":20011188,"url":"https://github.com/litten/mobileimgviewer","last_synced_at":"2025-05-04T20:30:57.658Z","repository":{"id":20380461,"uuid":"23656043","full_name":"litten/MobileImgViewer","owner":"litten","description":"A smooth picture viewer library for mobile web development. 一个流畅的图片查看库，用于移动web开发。","archived":false,"fork":false,"pushed_at":"2014-09-19T10:16:42.000Z","size":833,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T11:51:36.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-04T09:17:04.000Z","updated_at":"2020-02-21T02:02:49.000Z","dependencies_parsed_at":"2022-07-31T18:08:55.100Z","dependency_job_id":null,"html_url":"https://github.com/litten/MobileImgViewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2FMobileImgViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2FMobileImgViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2FMobileImgViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2FMobileImgViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litten","download_url":"https://codeload.github.com/litten/MobileImgViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252395206,"owners_count":21740987,"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":[],"created_at":"2024-11-13T07:24:43.088Z","updated_at":"2025-05-04T20:30:57.051Z","avatar_url":"https://github.com/litten.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"MobileImgViewer\r\n===============\r\nA smooth picture viewer library for mobile web development, which has the same experience with native APPs.           \r\n\r\n一个流畅的图片查看库，用于移动web开发。其拥有与本地应用相同的体验。\r\n\r\n###Demo 栗子\r\n\r\n[Demo](http://littendomo.sinaapp.com/mobileImgviewer/example.html)\r\n\r\n![Demo](http://littendomo.sinaapp.com/mobileImgviewer/demo.gif)      \r\n\r\n###Usage 使用\r\n\r\n####1、Basic 基础\r\n\r\n```js\r\n/* @param ctn {Dom} a Dom that contains imgs               \r\n */\r\n\r\nnew MobileImgViewer({\r\n\tctn: document.getElementById('ctn')\r\n});\r\n```\r\n\r\n####2、Advanced 进阶\r\n\r\n```js\r\n/* @param ctn {Dom} a Dom that contains imgs               \r\n * @param backBtn {String} wordings on the back button\r\n * @param menu {Array} menus on the upper right corner\r\n * @param menu\u003ebtn {String} the text on the menu buttons\r\n * @param menu\u003ecallback {Function} callback of the menu buttons\r\n */\r\n\r\nnew MobileImgViewer({\r\n\tctn: document.getElementById('ctn'),\r\n\tbackBtn: \"查看图片\",\r\n\tmenu: [{\r\n\t\tbtn: \"btn1\",\r\n\t\tcallback: function(event){\r\n\t\t\talert(\"you touch btn1\");\r\n\t\t}\r\n\t},{\r\n\t\tbtn: \"btn2\",\r\n\t\tcallback: function(event){\r\n\t\t\talert(\"you touch btn2\");\r\n\t\t}\r\n\t},{\r\n\t\tbtn: \"btn3\",\r\n\t\tcallback: function(event){\r\n\t\t\tlert(\"you touch btn3\");\r\n\t\t}\r\n\t}]\r\n});\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitten%2Fmobileimgviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitten%2Fmobileimgviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitten%2Fmobileimgviewer/lists"}