Author |
Message |
calcpnm
Site Admin
Posted on: Wed Jan 18, 2012 5:34 pm
Posts: 116 Joined: Wed May 11, 2011 6:44 pm
|
Calcudoku puzzles on your web page
Hello, I've created a widget that you can include on any web page, and will allow your users to do Calcudoku puzzles on that page! Here's an example 4x4: Simply include this code in your page: Code: <div id='calcudoku_div'></div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="http://www.calcudoku.org/dropin/dropin2.js"></script> <script type="text/javascript"> var with_error_checking = true; var puzzle_size = 4; calcudoku_start(); </script>
Put var with_error_checking = false; if you don't want the automatic error checking.
The puzzle_size parameter can be 4, 5, or 6 (there are five of each every day).
The puzzle will be put in the calcudoku_div (so put that where you want the puzzle to appear).
The width of the div is 36 + puzzle_size * 54, the height is 26 + puzzle_size * 54 (in pixels).
This is a first version, so bug reports are very welcome Patrick
|
|
|
|
pnm
Posted on: Sat Jan 21, 2012 1:58 pm
Posts: 3296 Joined: Thu May 12, 2011 11:58 pm
|
Re: Calcudoku puzzles on your web page
Alright, here is a first example of a site using this widget! parole crociate(Italian for crossword) Click on "gioco del giorno" (game of the day)... :) Patrick
|
|
|
|
sneaklyfox
Posted on: Sat Jan 21, 2012 4:30 pm
Posts: 428 Location: Canada Joined: Fri May 13, 2011 2:43 am
|
Re: Calcudoku puzzles on your web page
Neat, except it didn't tell me afterwards whether I did it correctly or not. But very nice.
|
|
|
|
pnm
Posted on: Sat Jan 21, 2012 4:35 pm
Posts: 3296 Joined: Thu May 12, 2011 11:58 pm
|
Re: Calcudoku puzzles on your web page
sneaklyfox wrote: Neat, except it didn't tell me afterwards whether I did it correctly or not. But very nice. Yes, they have a different system: you put your user id and password on the right, and click "Conferma", then it checks the solution and adds points if correct. Patrick
|
|
|
|
sneaklyfox
Posted on: Sat Jan 21, 2012 4:38 pm
Posts: 428 Location: Canada Joined: Fri May 13, 2011 2:43 am
|
Re: Calcudoku puzzles on your web page
Ah, ok. I guess I didn't see it because I don't read Italian (except for some foods and some musical terms haha.)
|
|
|
|
pnm
Posted on: Sun Jan 22, 2012 12:04 am
Posts: 3296 Joined: Thu May 12, 2011 11:58 pm
|
Re: Calcudoku puzzles on your web page
Alright, the widget can now also be used as an "iGoogle gadget". So if you use iGoogle, search the directory for "Mini Calcudoku Gadget" and add it, and please let me know how it works Screenshot below:
|
|
|
|
pnm
Posted on: Tue Jan 24, 2012 12:02 pm
Posts: 3296 Joined: Thu May 12, 2011 11:58 pm
|
Re: Calcudoku puzzles on your web page
The widget has a few more puzzles now: an easy, medium, and hard 4x4, 5x5, and 6x6, just like on the site: So, if you want do to these puzzles, simply click the "add to iGoogle" link on the main page. Patrick
|
|
|
|
pnm
Posted on: Mon Jan 30, 2012 4:58 pm
Posts: 3296 Joined: Thu May 12, 2011 11:58 pm
|
Re: Calcudoku puzzles on your web page
Another site using the widget: 14 across!
|
|
|
|
|