{"id":27969693,"url":"https://github.com/denissdubinin/javascript-sudoku","last_synced_at":"2025-05-07T21:54:04.098Z","repository":{"id":280827899,"uuid":"147828871","full_name":"denissdubinin/javascript-sudoku","owner":"denissdubinin","description":"Javascript Sudoku","archived":false,"fork":false,"pushed_at":"2018-10-27T07:45:40.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T21:53:59.091Z","etag":null,"topics":["javascript","jquery-plugin","jquery-plugins","sudoku","sudoku-generator","sudoku-puzzle"],"latest_commit_sha":null,"homepage":"https://denissdubinin.github.io/javascript-sudoku/","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/denissdubinin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-09-07T13:43:16.000Z","updated_at":"2019-09-11T06:13:56.000Z","dependencies_parsed_at":"2025-03-05T14:41:49.137Z","dependency_job_id":"a1166865-da1b-416c-b327-bfc0a7aa2f95","html_url":"https://github.com/denissdubinin/javascript-sudoku","commit_stats":null,"previous_names":["denissdubinin/javascript-sudoku"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denissdubinin%2Fjavascript-sudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denissdubinin%2Fjavascript-sudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denissdubinin%2Fjavascript-sudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denissdubinin%2Fjavascript-sudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denissdubinin","download_url":"https://codeload.github.com/denissdubinin/javascript-sudoku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961850,"owners_count":21832193,"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":["javascript","jquery-plugin","jquery-plugins","sudoku","sudoku-generator","sudoku-puzzle"],"created_at":"2025-05-07T21:54:03.346Z","updated_at":"2025-05-07T21:54:04.088Z","avatar_url":"https://github.com/denissdubinin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript Sudoku\n\n[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/denissdubinin/javascript-sudoku)\n\nJavascript plugin that generates random sudoku grid.\n\n![Javascript Sudoku](example.png)\n\n## Demo\n\nhttps://denissdubinin.github.io/javascript-sudoku/\n\n## Installation\n\n### CDN\n1. Add a sudoku script to your page:\n    \n    ```html\n    \u003cscript src=\"https://cdn.jsdelivr.net/gh/denissdubinin/javascript-sudoku@latest/dist/sudoku.min.js\"\u003e\u003c/script\u003e\n    ```\n\n2. Add a sudoku stylesheet to your page:\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/denissdubinin/javascript-sudoku@latest/dist/sudoku.min.css\"\u003e\n    ```\n\n### Local files\n1. Add a sudoku script to your page:\n    \n    ```html\n    \u003cscript src=\"PATH_TO_DIR/sudoku.min.js\"\u003e\u003c/script\u003e\n    ```\n\n2. Add a sudoku stylesheet to your page:\n\n    ```html\n    \u003clink rel=\"stylesheet\" href=\"PATH_TO_DIR/sudoku.min.css\"\u003e\n    ```\n\n## Usage\n\n1. Create `div` element on your page:\n\n    ```html\n    \u003cdiv\u003e\u003c/div\u003e\n    ```\n\n2. Initialise Sudoku plugin:\n    \n    ```javascript\n    $(element).Sudoku();\n    ```\n\n3. Custom control buttons\n\n    You can use custom buttons for sudoku. To disable default buttons, set options `useCustomButtons` to `true`.\n\n    For custom buttons use `ID` selector:\n\n    * `start-sudoku` for start button\n    * `r-sudoku` for reset button\n    * `gn-sudoku` for generate button\n\n    Example:\n\n    ```html\n    \u003cdiv class=\"button\" id=\"start-sudoku\"\u003eSTART\u003c/div\u003e\n    \u003cdiv class=\"button\" id=\"r-sudoku\"\u003eRESET\u003c/div\u003e\n    \u003cdiv class=\"button\" id=\"gn-sudoku\"\u003eGENERATE NEW SUDOKU\u003c/div\u003e\n    ```\n\n# Example\n\n```javascript\n$(element).Sudoku({\n    dropTimerOnReset: true,\n    markWrongCellsOnFly: false,\n    useTimer: true,\n    timerOnly: true,\n});\n```\n\n## Options\n\n`squareSize`\n\nSize of small squre. Default `3`\n\n`dropTimerOnReset`\n\nReset timer on sudoku reset. Default `true`\n\n`markWrongCellsOnFly`: false,\n\nMark cell with red if it has wrong value right after number is entered. Default `false`\n\n`markWrongCellsOnFinish`\n\nMark cell with wrong value with red when all cells are filled. Default `true`\n\n`useTimer`\n\nEnable timer. Default `true`\n\n`timerOnly`\n\nGame can be started only with activated timer. Works only with `options.useTimer === true`. Default `true`\n\n`useCustomButtons`\n\nIf you want to use own control buttons, enable this options. Default `false`\n\n`sudokuMixIterations`\n\nIterations count for mixing random rows and columns between themselfs The larger number, the more mixed sudoku becomes and the more time script initialisation takes. Default `500`\n\n## Dependencies\njQuery 1.7\n\n## License\nCopyright \u0026copy; 2018 Deniss Dubinin\n\nLicensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenissdubinin%2Fjavascript-sudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenissdubinin%2Fjavascript-sudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenissdubinin%2Fjavascript-sudoku/lists"}