{"id":25771875,"url":"https://github.com/zr00da/mockshit","last_synced_at":"2026-04-12T23:07:27.963Z","repository":{"id":81514401,"uuid":"87950966","full_name":"zr00da/mockshit","owner":"zr00da","description":"Mockshit. Offensively simple HTML/CSS mockup system with views and actions.","archived":false,"fork":false,"pushed_at":"2017-04-13T12:01:15.000Z","size":318,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T03:20:01.866Z","etag":null,"topics":["html","mock","mockup","prototype","ui"],"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/zr00da.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T15:33:53.000Z","updated_at":"2023-02-14T22:57:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee432df2-dc14-4869-9c5f-f3141f7b5e49","html_url":"https://github.com/zr00da/mockshit","commit_stats":null,"previous_names":["zr00da/mockshit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zr00da/mockshit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zr00da%2Fmockshit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zr00da%2Fmockshit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zr00da%2Fmockshit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zr00da%2Fmockshit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zr00da","download_url":"https://codeload.github.com/zr00da/mockshit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zr00da%2Fmockshit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285704833,"owners_count":27217837,"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","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["html","mock","mockup","prototype","ui"],"created_at":"2025-02-27T03:19:37.353Z","updated_at":"2025-11-21T23:02:28.006Z","avatar_url":"https://github.com/zr00da.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mockshit\nMockshit. Offensively simple HTML/CSS mockup system with views and actions.\n\n![Mockshit in action!](https://github.com/mystrdat/mockshit/raw/master/demo.gif)\n\nEither load the `mockshit.js` script before the end of your `\u003c/body\u003e` tag or use the provided `template.html` to do your thing.\n\n`\u003cscript src=\"https://rawgit.com/mystrdat/mockshit/master/mockshit.js\"\u003e\u003c/script\u003e` \n\n## Professional workflow\n\n- Write everything in one HTML file like a pig and style it \n- Position some elements as `absolute` or `fixed` so they can overlap, the method requires it\n- Add an `id` to elements to make them \"components\", make sure it's unique\n- Provide a config object to show/hide components in fictious views (first loads as default)\n- Link between views with `data-click=\"view1\"` attribute on any element (more actions coming!)\n- Use `.in` and `.out` classes when views change to animate components\n- Need dynamic data? No you don't, work around it\n- Learn to pretend it's not _that_ easy\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n  \u003ctitle\u003emockshit\u003c/title\u003e\n  \u003clink rel=\"stylesheet\" href=\"style.css\"\u003e\n  \u003cscript\u003e\n    window.views = {\n      view1: ['title1', 'content1', 'footer'],\n      view2: ['title2', 'content2', 'footer'],\n      view3: ['title3', 'content3', 'notice']\n    };\n  \u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\n\u003cheader\u003e\n  \u003cspan id=\"title1\"\u003eYer\u003c/span\u003e\n  \u003cspan id=\"title2\"\u003ea hacker,\u003c/span\u003e\n  \u003cspan id=\"title3\"\u003eHarry.\u003c/span\u003e\n\u003c/header\u003e\n\n\u003cdiv id=\"content1\"\u003e\n  \u003ch1\u003e1!\u003c/h1\u003e\n  \u003cp\u003eGlück Auf! Das famos Mundraub picheln.\u003c/p\u003e\n  \u003cbutton data-click=\"view2\"\u003eNext!\u003c/button\u003e\n\u003c/div\u003e\n\n\u003cdiv id=\"content2\"\u003e\n  \u003ch1\u003e2!\u003c/h1\u003e\n  \u003cp\u003eDet är ett välkänt faktum att läsare distraheras\n    av läsbar text på en sida när man skall studera layouten.\u003c/p\u003e \n  \u003cbutton data-click=\"view3\"\u003eMore next!\u003c/button\u003e\n\u003c/div\u003e\n\n\u003cdiv id=\"content3\"\u003e\n  \u003ch1\u003e3!\u003c/h1\u003e\n  \u003cp\u003eNem csak 5 évszázadot élt túl, de az elektronikus\n    betûkészleteknél is változatlanul megmaradt.\u003c/p\u003e\n  \u003cbutton data-click=\"view1\"\u003eGo back!\u003c/button\u003e\n\u003c/div\u003e\n\n\u003cdiv id=\"notice\"\u003eBut you suck!\u003c/div\u003e\n\n\u003cfooter id=\"footer\"\u003e\u0026copy;2018\u003c/footer\u003e\n\n\u003cscript src=\"mockshit.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzr00da%2Fmockshit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzr00da%2Fmockshit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzr00da%2Fmockshit/lists"}