Calcudoku puzzle forum
https://www.calcudoku.org/forum/

Calcudoku puzzles on your web page
https://www.calcudoku.org/forum/viewtopic.php?f=5&t=146
Page 1 of 1

Author:  calcpnm  [ Wed Jan 18, 2012 5:34 pm ]
Post subject:  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! [woot]

Here's an example 4x4:
Image

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

Author:  pnm  [ Sat Jan 21, 2012 1:58 pm ]
Post subject:  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)... :)

Image

Patrick

Author:  sneaklyfox  [ Sat Jan 21, 2012 4:30 pm ]
Post subject:  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.

Author:  pnm  [ Sat Jan 21, 2012 4:35 pm ]
Post subject:  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

Author:  sneaklyfox  [ Sat Jan 21, 2012 4:38 pm ]
Post subject:  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.)

Author:  pnm  [ Sun Jan 22, 2012 12:04 am ]
Post subject:  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:
Image

Author:  pnm  [ Tue Jan 24, 2012 12:02 pm ]
Post subject:  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:
Image
So, if you want do to these puzzles, simply click the "add to iGoogle" link
on the main page.

Patrick

Author:  pnm  [ Mon Jan 30, 2012 4:58 pm ]
Post subject:  Re: Calcudoku puzzles on your web page

Another site using the widget: 14 across!

Image

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/