{"id":25687099,"url":"https://github.com/holyshared/presentation.bootstrap","last_synced_at":"2026-06-18T00:32:00.471Z","repository":{"id":2125472,"uuid":"3068322","full_name":"holyshared/Presentation.Bootstrap","owner":"holyshared","description":"Presentation.Bootstrap","archived":false,"fork":false,"pushed_at":"2012-01-15T12:04:33.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T01:58:19.335Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holyshared.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-12-29T11:18:12.000Z","updated_at":"2013-11-26T14:13:41.000Z","dependencies_parsed_at":"2022-09-10T03:12:57.320Z","dependency_job_id":null,"html_url":"https://github.com/holyshared/Presentation.Bootstrap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/holyshared/Presentation.Bootstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2FPresentation.Bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2FPresentation.Bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2FPresentation.Bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2FPresentation.Bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holyshared","download_url":"https://codeload.github.com/holyshared/Presentation.Bootstrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2FPresentation.Bootstrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34471638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":[],"created_at":"2025-02-24T20:08:08.244Z","updated_at":"2026-06-18T00:32:00.456Z","avatar_url":"https://github.com/holyshared.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nPresentation.Bootstrap\n=======================================\n\nIt is an initialization library which helps initialization of **Presentation.js**. \nIf this library is used, **Presentation.js** can be initialized freely. \nInitialization processing can also be added to a module.\n\n### Default modules\n\n#### Filter module\n\nA filter module registers the filter specified at the time of initialization.  \nTwo or more filters can be specified in arrangement.\n\n#### Helper module\n\nA helper module registers the helper who specified at the time of initialization.  \nTwo or more helpers can be specified with an option. \n\n\nHow to use\n---------------------------------------\n\nIn the following example, **Moostrap** is used and the presentation is initialized.  \nOriginal initialization processing is applicable by defining initialization processing as **Presentation.Bootstrap.Module**.\n\n\t(function(Presentation, Bootstrap, module){\n\t\n\twindow.addEvent('domready', function(){\n\t\n\t\tvar element = $('presentation');\n\t\n\t\tvar presentation = new Presentation(element);\n\t\n\t\tvar bootstrapper = new Bootstrap(Bootstrap.ASYNC_EXECUTER, module, {\n\t\t\tconfigurations: {\n\t\t\t\t//Filter custum configuration\n\t\t\t\t//@see Presentation.js filter guide line.\n\t\t\t\t//@url http://holyshared.github.com/Presentation/\n\t\t\t\tfilters: [\n\t\t\t\t\tnamespace.filter1,\n\t\t\t\t\tnamespace.filter2\n\t\t\t\t],\n\t\n\t\t\t\t//Helper custum configuration\n\t\t\t\tkeyboard: {\n\t\t\t\t\tprev: ['left', 'j'],\n\t\t\t\t\tnext: ['right', 'k'],\n\t\t\t\t\tfirst: ['0'],\n\t\t\t\t\tlast: ['4']\n\t\t\t\t}\n\t\t\t},\n\t\t\tonSuccess: function(){\n\t\t\t\tpresentation.start();\n\t\t\t}\n\t\t});\n\t\tbootstrapper.execute(presentation);\n\n\t});\n\n\t}(Presentation, Moostrap, Presentation.Bootstrap.Module));\n\n\n### The addition of initialization processing\n\nIn order to add initialization processing, it adds using the register method of **Presentation.Bootstrap.Module**.  \nA title, initial setting, and the processing to perform are specified. \n\n\t(function(Module){\n\t\n\t\t/*\n\t\t\tvar bootstrap = new Moostrap(Moostrap.SYNC_EXECUTER, Presentation.Bootstrap.Module, {\n\t\t\t\tconfigurations: {\n\t\t\t\t\tcustum: {\n\t\t\t\t\t\tkey1: 'custum value1',\n\t\t\t\t\t\tkey2: 'custum value2'\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tbootstrap.execute(presentation);\n\t\t*/\n\t\tModule.register('custum', {\n\t\n\t\t\ttitle: 'setup of custum helper',\n\t\n\t\t\t//default configuration\n\t\t\tconfiguration: {\n\t\t\t\tkey1: 'value1',\n\t\t\t\tkey2: 'value2'\n\t\t\t},\n\t\n\t\t\thandler: function(presentation, configuration){\n\t\t\t\tvar bootstrapper = this;\n\t\n\t\t\t\tif (!Type.isObject(configuration)){\n\t\t\t\t\tbootstrapper.failure();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\n\t\t\t\ttry {\n\t\t\t\t\tpresentation.addHelper(new CustumHelper(configuration));\n\t\t\t\t} catch(exception){\n\t\t\t\t\t//Initialization went wrong.\n\t\t\t\t\tthrow exception;\n\t\t\t\t\tbootstrapper.failure();\n\t\t\t\t}\n\t\t\t\t//Initialization was successful.\n\t\t\t\tbootstrapper.success();\n\t\t\t}\n\t\t\n\t\t});\n\t\n\t}(Presentation.Bootstrap.Module));\n\nThe method of building\n---------------------------------------\n\n### A module is not included.\n\nphp packager build Presentation.Bootstrap/Core Presentation.Bootstrap/Module \u003e presentation-standard.js\n\n### A filter module is included.\n\nphp packager build Presentation.Bootstrap/Filter \u003e presentation-standard.js\n\n### A helper module is included.\n\nphp packager build Presentation.Bootstrap/Keyboard \u003e presentation-standard.js  \nphp packager build Presentation.Bootstrap/Controller \u003e presentation-standard.js  \nphp packager build Presentation.Bootstrap/Page \u003e presentation-standard.js  \nphp packager build Presentation.Bootstrap/Swipe \u003e presentation-standard.js\n\n### All the modules are included.\n\nphp packager build Presentation.Bootstrap/Filter Presentation.Bootstrap/Keyboard Presentation.Bootstrap/Controller Presentation.Bootstrap/Page Presentation.Bootstrap/Swipe \u003e presentation-standard.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Fpresentation.bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholyshared%2Fpresentation.bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Fpresentation.bootstrap/lists"}