{"id":18251678,"url":"https://github.com/32teeth/manifesto.js","last_synced_at":"2025-04-08T20:46:36.273Z","repository":{"id":31758714,"uuid":"35324896","full_name":"32teeth/manifesto.js","owner":"32teeth","description":"javascript library for offline cache manifest management","archived":false,"fork":false,"pushed_at":"2015-05-22T00:50:04.000Z","size":576,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T16:39:29.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Hacker0x01/react-datepicker","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/32teeth.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":"2015-05-09T10:41:42.000Z","updated_at":"2015-11-02T21:27:29.000Z","dependencies_parsed_at":"2022-09-10T09:02:45.195Z","dependency_job_id":null,"html_url":"https://github.com/32teeth/manifesto.js","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/32teeth%2Fmanifesto.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fmanifesto.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fmanifesto.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fmanifesto.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/32teeth","download_url":"https://codeload.github.com/32teeth/manifesto.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247926962,"owners_count":21019503,"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-05T09:48:13.553Z","updated_at":"2025-04-08T20:46:36.249Z","avatar_url":"https://github.com/32teeth.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# manifesto.js\njavascript library for offline cache manifest management\n\n---\n\n##introduction\n**manifesto.js** is a small script that enables you to control the offline and stored cache manifest experience of your web app.\n\n### design pattern\n**manifesto.js** is built on a revealing module pattern exposing two (2) core methods.\n\n* init()\n* handler()\n\n### usage\n**manifesto.js** is an IIFE *(immediately-invoked function expression)* simply include the file at the bottom of your html page before the closing ***body*** tag\n\n```\n\t/*\n\t** @description include manifesto.js or manifesto.min.js\n\t*/\n\t\u003cscript src=\"manifesto.js\"\u003e\u003c/script?;\n\u003c/body\u003e;\n```\n\n####*init()*\nOnce you have included the multikey.js file, you can invoke the process by calling the setup method. Setup can take from 0 to 1 parameter.\n\n\n#####With callbacks\n```\n/*\n** @param cbfunc {object} callback object mapped to specific events\n** within the browsers window.applicationCache event listeners\n*/\n\n/*\n** declare callbacks\n** note: you can optionally pass only the events you wish to listen too\n** not all are required if you pass the cfbunc argument to init()\n*/\nvar cbfuncs = {\n\tchecking:progress.state,\n\terror:false,\n\tnoupdate:progress.state,\n\tdownloading:progress.state,\n\tprogress:progress.state,\n\tupdateready:progress.state,\n\tcached:progress.state,\n\tobsolete:progress.state\n};\n\n/*\n** with callbacks\n*/\nmanifesto.init(cbfunc);\n\n```\nin the instance above, all the callbacks map to a method within progress class. you can leverage the progress class in the [progress](js/progress.js) file to do your bidding :)\n\n#####Without callbacks\n```\n/*\n** without callbacks\n*/\nmanifesto.init();\n```\n\n\n##example\n---\nBelow is a quick screengrabs of the script running\n\n#####Caching progress in action\n![manifest.js caching process](images/manifestojs.jpg)\n\n#####Cached check and noupdates\n![manifest.js cached process](images/manifestojs-cached.jpg)\n\n#####No Connection (offline) redirect\n*note: in order to test the offline redirect in **Firefox**, you will need to invoke **File\u003eWork Offline***\n![manifest.js offline redirect](images/manifestojs-offline.jpg)\n\nview the [example](index.html) file for more information.\nor check out the [live example here](http://manifestojs.32teeth.org/)\n\n##extras\n---\n\nthere are 2 extras available in this repo.\n\n* [progress bar](js/progress.js)\n* [static tv noise](js/noise.js)\n* [static tv noise on codepen.io](http://codepen.io/32teeth/pen/ZGQVoK)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F32teeth%2Fmanifesto.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F32teeth%2Fmanifesto.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F32teeth%2Fmanifesto.js/lists"}