Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

Reference · Playable number grid

ensureKazuPlayStylefunction

Put the style in the page once: in the document's head, or in the shadow root the host is in.

Import it

import { ensureKazuPlayStyle } from "@johnmorrisdotca/kazu/play";

Definition

function ensureKazuPlayStyle(host: Element): void

Parameters

NameTypeDescription
hostElement

The DOM element receiving scoped styles or the native player.

Examples

import { ensureKazuPlayStyle } from "@johnmorrisdotca/kazu/play";

const host = document.createElement("div");
ensureKazuPlayStyle(host);
console.log(host.tagName);

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.