View unanswered posts | View active topics It is currently Sat Dec 20, 2014 3:04 pm



← Back to the Calcudoku puzzle page




Reply to topic  [ 8 posts ] 
 Calcudoku puzzles on your web page 
Author Message
Site Admin
User avatar

Posted on: Wed Jan 18, 2012 3:34 pm




Posts: 96
Joined: Wed May 11, 2011 4: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! [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


Profile
User avatar

Posted on: Sat Jan 21, 2012 11:58 am




Posts: 1540
Joined: Thu May 12, 2011 9:58 pm
Post 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


Profile
User avatar

Posted on: Sat Jan 21, 2012 2:30 pm




Posts: 422
Location: Canada
Joined: Fri May 13, 2011 12:43 am
Post 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.


Profile
User avatar

Posted on: Sat Jan 21, 2012 2:35 pm




Posts: 1540
Joined: Thu May 12, 2011 9:58 pm
Post 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


Profile
User avatar

Posted on: Sat Jan 21, 2012 2:38 pm




Posts: 422
Location: Canada
Joined: Fri May 13, 2011 12:43 am
Post 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.)


Profile
User avatar

Posted on: Sat Jan 21, 2012 10:04 pm




Posts: 1540
Joined: Thu May 12, 2011 9:58 pm
Post 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


Profile
User avatar

Posted on: Tue Jan 24, 2012 10:02 am




Posts: 1540
Joined: Thu May 12, 2011 9:58 pm
Post 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


Profile
User avatar

Posted on: Mon Jan 30, 2012 2:58 pm




Posts: 1540
Joined: Thu May 12, 2011 9:58 pm
Post Re: Calcudoku puzzles on your web page
Another site using the widget: 14 across!

Image


Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
All forum contents © Patrick Min, and by the post authors.

Forum software phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.