{"id":13426895,"url":"https://github.com/cmpolis/Pagify","last_synced_at":"2025-03-15T22:30:50.648Z","repository":{"id":1662995,"uuid":"2389214","full_name":"cmpolis/Pagify","owner":"cmpolis","description":"Effortlessly create single page web sites with this jQuery plugin.","archived":false,"fork":false,"pushed_at":"2017-03-25T18:05:18.000Z","size":110,"stargazers_count":486,"open_issues_count":14,"forks_count":85,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-11-27T14:56:15.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cmpolis.github.com/Pagify","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/cmpolis.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":"2011-09-14T23:40:40.000Z","updated_at":"2024-08-27T16:15:04.000Z","dependencies_parsed_at":"2022-09-07T01:52:36.739Z","dependency_job_id":null,"html_url":"https://github.com/cmpolis/Pagify","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/cmpolis%2FPagify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpolis%2FPagify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpolis%2FPagify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmpolis%2FPagify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmpolis","download_url":"https://codeload.github.com/cmpolis/Pagify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801600,"owners_count":20350105,"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-07-31T00:01:47.786Z","updated_at":"2025-03-15T22:30:45.636Z","avatar_url":"https://github.com/cmpolis.png","language":"JavaScript","readme":"# Pagify.js\n\nA jQuery plugin for effortlessly creating single page web sites. [Demo](http://cmpolis.github.com/Pagify)\n\n### Features\n\n- __Simple__ - include pagify.js, create a div, make one jQuery call and you're done!\n- __Lightweight__ - pagify.js is far less than 100 lines of code, well commented and easy to understand and extend!\n- __Flexible__ - Get started by only specifying a list of pages or customize animations, default pages and caching!\n- __Fast__ - Load all pages upfront or load on the fly; a simple $.get() is used to get content with minimal proccessing!\n- __Clean__ - Replace long HTML files broken up into sections and verbose JS to do the simple task of switching content!\n- __Couldn't find an adjective...__ - Uses only Javascript and HTML so it can be uploaded like any other static site!\n\n## Usage\n\n_Checkout the simple demo to see how it works, or..._\n\n### Create a _container_ page:\n\nLoad Pagify and jQuery:\n\n``` html\n\u003cscript src=\"jquery.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"pagify.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\nCreate a div that will contain page content:\n\n``` html\n\u003cdiv id='page_holder' /\u003e\n```\n\nCall __pagify__ on the aforementioned div and pass in options. _The only required option is `pages`._\n\n``` js\n$('#page_holder').pagify({\n    pages: ['home', 'about', 'contact'],\n    'default': 'home' // The name of a page or null for an empty div\n});\n```\n\nLink to other pages by linking to hashes of their page names:\n\n``` html\n\u003ca href='#contact'\u003eContact\u003c/a\u003e\n\u003ca href='#about'\u003eAbout\u003c/a\u003e\n...\n```\n### Write other pages\n\nCreate content pages in the same directory as the container as `[page_name].html`\n\n_i.e. about.html_\n\n``` html\n\u003ch1\u003eAbout us\u003c/h1\u003e\n\u003cp\u003eThis is an about page!\u003c/p\u003e\n```\n\n## Options\n\n`pages` - an array of page names. _Required._\n\n`default` - the page that is loaded on startup.  _null is default (for an empty div)._\n\n`animation` - the jQuery animation that is used to show pages, i.e. `fadeIn`, `show`, `slideUp`, `slideDown`. _`show` is default._\n\n`animationSpeed` - the speed of the animation, i.e. `fast`, `slow`, 1000. _'normal' is default._\n\n`animationOut` - the jQuery animation that is used to hide pages, i.e. `fadeOut`, `hide`, `slideUp`, `slideDown`. _`hide` is default._\n\n`animationOutSpeed` - the speed of the animationOut, i.e. `fast`, `slow`, 1000. _0 is default._\n\n`cache` - true or false. Determines if all pages are loaded upfront or not. _false is default._\n\n`onChange` - a function that takes the page name as a parameter and is executed when the page changes. _empty function is default._\n\n## Etc...\n\n**Created by [@ChrisPolis](http://twitter.com/ChrisPolis), [blog](http://bytemuse.com)**\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmpolis%2FPagify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmpolis%2FPagify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmpolis%2FPagify/lists"}