$(“#id”) .CrosswordCompiler(1,2,3);
{“reveal-word”: ”path to image”, “reveal-letter”: ”path to image”,
“revert”: ”path to image”, “solution”: “path to image”,
“check” : “path to image”, “pencil”: “path to image”,
“submit” : “path to image”, “save” : “path to image” }
PARAMETER |
VALUE |
DESCRIPTION |
BACKCOLOR |
Any Html valid Color |
Background Color for the puzzle |
SELCOLOR |
Any Html valid Color |
Color for the selected cells. |
URLCOLOR |
Any Html valid Color |
Color for url clues color |
CLUEURLTARGET |
STRING |
|
HINTURLTEXT |
String |
The text to be in the url, default is “?” |
CLUECOLOR |
Any Html valid Color |
Color for Clues |
FINISDHEURL |
String |
|
FINISHEDURLFRAME |
String |
|
COMPLETIONPICTURE |
String |
|
COMPLETIONPICTUREURL |
String |
|
COMPLETIONPICTUREURLFRAME |
|
|
MAXCHEATS |
Any number > 0 |
The max number for cheating |
SCROLLWIDTH |
Any number > 0 |
|
SCROLLHEIGHT |
Any number > 0 |
|
SUBMIT |
String |
Url for submit |
SUBMITMETHOD |
String |
|
SUBMITFRAME |
string |
|
SAVE |
String |
Url for Save |
GRIDBACKCOLOR |
Any Html valid Color |
Grid’s Background Color |
WRONGCOLOR |
Any Html valid Color |
Color for wrong letters. |
GRIDCOLOR |
Any Html valid Color |
Grid’s Color |
BLOCKCOLOR |
Any Html valid Color |
Color for block in grid |
FONTCOLOR |
Any Html valid Color |
Color for font in cells |
NUMCOLOR |
Any Html valid Color |
Color for numbers in cell |
CURCOLOR |
Any Html valid Color |
Color for the cell with focus |
REVEALEDCOLOR |
Any Html valid Color |
Color for Revealed letters |
COMPLETECORRECT |
true or false |
Only if correct |
FRIENDLYSUBMIT |
true or false |
Friendly Submit |
SHOWSOL |
True or false |
To show solution on Load |
TITLE |
String |
|
COPYRIGHT |
String |
|
PROGRESS |
String |
To load Progress. |
TIMEFROMLOAD |
true or false |
To start timer on load. |
STARTIME |
Any number > 0 |
Initial Timer value. |
TIMER |
true or false |
To enabled timer |
NOPAUSE |
true or false |
To let user pause the timer |
TITLEHEIGHT |
Any number>0 |
Title Height |
TITLELEFT |
true or false |
To align title to the left |
URL Format
Each URL given for a puzzle can contain placeholders to be replaced with data from the puzzle. The following list describes them:
%SUBMIT% |
Is replaced by progress considering “Friendly Submit” value |
%MARKED% |
Is replaced by progress plus mark for the answers |
%PROGRESS% |
Is replaced by progress of the puzzle |
%TIME% |
Is replaced by time in seconds |
%CHARSET% |
Is replaced by the Charset |
%KEYWORD% |
Is replaced by the keyword progress. |
getElementById('CrosswordCompilerPuz').CrossWord
getElementById('CrosswordCompilerPuz').CrossWord.Grid.ButtonActions['reveal-letter']();
.Clues .ClueText{ color:blue; }The state also changes a containing class, so you can use .Completed and .Selected. E.g. To set the completed clue text color to be yellow with strikethrough:
.Clues .Completed .ClueText{ text-decoration: line-through; color:yellow; }
Currently similar customization is not easily possible for the grid. To identify the class of different elements to use in css, you can view the applet in your browser and use Developer Tools to inspect each element.
.CCPuzButtons .reveal-word{ background:url(myImage.png) no-repeat; }Note that for high-res screens you also need to provide a myImage_2x.png file, and specify in CSS the high-res icon versions. e.g.
@media (-webkit-min-device-pixel-ratio: 2),(min-resolution:2dppx),(min-resolution: 192dpi) { .CCPuzButtons .reveal-word{ background:url(myImage_2x.png) no-repeat; }}