id
stringclasses
20 values
date
timestamp[s]date
2025-05-12 00:00:00
2025-05-12 00:00:00
level
stringclasses
4 values
description
stringlengths
28
5.03k
project
stringclasses
50 values
task-1
2025-05-12T00:00:00
easy
- Check or uncheck `#axes` to create `LineChart` instance `chart` with config whose attributes values: - type: the value of `#type`, default is `line` - id: `{type}Chart` - data: imported from `./assets/data.js` - options: - axes: the `checked` value of `#axes` - Call `chart.draw()` - Clear `#chart`, appen...
chart
task-2
2025-05-12T00:00:00
easy
Check or uncheck `#grids` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - grids: the `checked` value of `#grids`
chart
task-3
2025-05-12T00:00:00
easy
Select one or more `#datasets` options to create `LineChart` instance: - reuse function `createChart()` - filter `config.data.datasets` whose item (dataset) `label` value is selected
chart
task-4
2025-05-12T00:00:00
moderate
- Check or uncheck `#legends` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - legends: the `checked` value of `#legends` - In `./common/Chart.js`, when `options.legends` is true or not defined: - append g element (class `legends`) on the top of `svg` - appen...
chart
task-5
2025-05-12T00:00:00
moderate
- Check or uncheck `#dataLabels` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - dataLabels: the `checked` value of `#dataLabels` - In `./common/LineChart.js`, when `options.pointStyle` is `circle` or `rect`: - append g element (class `points points-{index}`) ...
chart
task-6
2025-05-12T00:00:00
moderate
- Select `#pointStyle` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - pointStyle: the value of `#pointStyle` - In `./common/LineChart.js`, when `options.pointStyle` is `circle` or `rect`: - append g element (class `points points-{index}`) inside `svg` for eac...
chart
task-7
2025-05-12T00:00:00
challenging
In `./common/LineChart.js`: - append an initially hidden g element (class `tooltips hidden`) inside `svg` - when mouse hovers over the `.datasets` area in `svg`, display `.tooltips` near the mouse position - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse - append rect element (cl...
chart
task-8
2025-05-12T00:00:00
challenging
- In `./common/SmoothLineChart.js`, class `SmoothLineChart` inherits from `LineChart`, `SmoothLineChart`: - replace all polylines with smooth curved lines inside `.datasets` - Select the option `SmoothLine Chart` of `#type` to create `SmoothLineChart` instance
chart
task-9
2025-05-12T00:00:00
moderate
In `./common/Chart.js`, when click legend: - show (remove class `hidden`) or hide (add class `hidden`) `.dataset` lines, dataLabels, points
chart
task-10
2025-05-12T00:00:00
challenging
-In `./common/ScatterChart.js`, class `ScatterChart` inherits from `LineChart`, `ScatterChart`: - options.pointStyle is default circle - options.dataLabels is always true - all `.dataset` lines are hidden - Select the option `Scatter Chart` of `#type` to create `ScatterChart` instance, and make `#dataLabels` disa...
chart
task-11
2025-05-12T00:00:00
challenging
-In `./common/StepChart.js`, class `StepChart` inherits from `LineChart`, `StepChart`: - replace all polylines with step style polylines inside `.datasets` - in each step style polyline: - each `dataset.data` responds to a horizontal line segment whose width is the distance between two near grid-x - the f...
chart
task-12
2025-05-12T00:00:00
challenging
- In `./common/AreaChart.js`, class `AreaChart` inherits from `LineChart`, `AreaChart`: - append g element (class `areas`) inside `svg` - append polygons (each class `area area-{index}`) inside `.areas` - each `.area` is below the `.dataset` line - each `.area` color is the same as `.dataset` line color, half ...
chart
task-13
2025-05-12T00:00:00
challenging
- In `./common/BarChart.js`, class `BarChart` inherits from `Chart`, `BarChart`: - there is 1 more grid-x line than LineChart, all the grid-x lines are evenly distributed in `.grids` - axis-x labels are placed between 2 adjacent grids below the `.axis-x` - append g element (class `datasets`) inside `svg` and make...
chart
task-14
2025-05-12T00:00:00
challenging
In `./common/BarChart.js`, when `options.dataLabels` is true: - append g element (class `dataLabels dataLabels-{index}`) inside `svg` for each `dataset` - append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item - each dataLabel is above the `.dataset` bars, distri...
chart
task-15
2025-05-12T00:00:00
challenging
In `./common/BarChart.js`: - append an initially hidden g element (class `tooltips hidden`) inside `svg` - when mouse hovers over the `.datasets` area in `svg`, display `.tooltips` near the mouse position - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse - in `.tooltips`, show all...
chart
task-16
2025-05-12T00:00:00
challenging
- In `./common/PieChart.js`, class `PieChart` inherits from `Chart`, `PieChart`: - append g element (class `datasets`) inside `svg` and make it fill the most area of `svg` - append g element (class `dataset dataset-0`) inside `.datasets` for the first `datasets` item - append sectors (path elements, each class `s...
chart
task-17
2025-05-12T00:00:00
moderate
- In `./common/DoughnutChart.js`, class `DoughnutChart` inherits from `PieChart`, `DoughnutChart`: - cover the central circle area with `#circleMask` from `assets/res.svg` - Select the option `Doughnut Chart` of `#type` to create `DoughnutChart` instance
chart
task-18
2025-05-12T00:00:00
challenging
In `./common/PieChart.js`, when `options.dataLabels` is true: - append g element (class `dataLabels dataLabels-0`) inside `svg` for the first `dataset` - append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item - show the sector data and proportion in each dataLabe...
chart
task-19
2025-05-12T00:00:00
moderate
In `./common/PieChart.js`: - when mouse hovers over a sector, it scales up by 1.05 times proportionally around pie center point - when mouse leaves a sector, its size returns to normal
chart
task-20
2025-05-12T00:00:00
challenging
In `./common/PieChart.js`: - append an initially hidden g element (class `tooltips hidden`) inside `svg` - when mouse hovers over a sector in `svg`, display `.tooltips` near the mouse position - show the sector data and proportion in `.tooltips` - when mouse leaves a sector, hide `.tooltips` (add class `hidden`)
chart
task-1
2025-05-12T00:00:00
easy
- change `.color.rgb` background with rgba color whose each item is from the value of corresponding range input - For each `.prop` in `.color.rgb`, move range slider to show value in `.result`
color
task-2
2025-05-12T00:00:00
easy
For each `.prop` in `.color.rgb`: - move range slider to change `.color` background color - background color is rgb color whose each item is from the value of corresponding range input
color
task-3
2025-05-12T00:00:00
easy
- add element `.color.hsl` to `.root` - implement hsl color config panel like `.color.rgb` - each color component value is 0 and alpha is 1 - change `.color.hsl` background with hsl color whose item is from the corespondent range value
color
task-4
2025-05-12T00:00:00
easy
- add element `.color.lab` to `.root` - implement lab color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.lab` background with lab color whose item is from the corespondent range value
color
task-5
2025-05-12T00:00:00
easy
- add element `.color.lch` to `.root` - implement lch color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.lch` background with lch color whose item is from the corespondent range value
color
task-6
2025-05-12T00:00:00
moderate
- add element `.color.oklab` to `.root` - implement oklab color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.oklab` background with oklab color whose item is from the corespondent range value
color
task-7
2025-05-12T00:00:00
moderate
- add element `.color.oklch` to `.root` - implement oklch color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.oklch` background with oklch color whose item is from the corespondent range value
color
task-8
2025-05-12T00:00:00
moderate
- add element `.color.hwb` to `.root` - implement hwb color config panel like `.color.rgb` - each color component value is 0 and alpha is 1 - change `.color.hwb` background with hwb color whose item is from the corespondent range value
color
task-9
2025-05-12T00:00:00
challenging
- add a button `#changeTheme` fixed at the bottom-center of the page - click `#changeTheme` to change the light and dark theme of the page - use `light-dark()` to manage themes
color
task-10
2025-05-12T00:00:00
challenging
- use hsl relative color for dark theme
color
task-11
2025-05-12T00:00:00
challenging
- make `.result` color contrast ratio to be more than 4.5 to comply with WCAG guidelines
color
task-12
2025-05-12T00:00:00
challenging
- add element `.color.hsl-wheel` to `.root` - draw a hsl color wheel (class `wheel`) canvas in the `.hsl-wheel` - canvas has the same width and height, color wheel fill the entire canvas - lightness is 50 - red is at the leftmost point of the color wheel, with red, green and blue arranged clockwise - saturated red is t...
color
task-13
2025-05-12T00:00:00
challenging
When click `.hsl-wheel .wheel` color: - change `.hsl-wheel` background color to `.hsl-wheel .wheel` color - add a block (class `block`) in the `.hsl-wheel` if it does not exist, and set its center at the clicked point - `.block` width and height is less than or equal 12px
color
task-14
2025-05-12T00:00:00
challenging
- add a vertical lightness range (class `l`) in the `.hsl-wheel`, at the right of `.hsl-wheel .wheel` - default value is 50 - change lightness range to redraw `.hsl-wheel .wheel` with new lightness
color
task-15
2025-05-12T00:00:00
challenging
- add element `.color.lch-wheel` to `.root` - draw a hsl color wheel (class `wheel`) canvas in the `.lch-wheel` - lightness is 50, saturate is 100 - red is at the leftmost point of the color wheel, with red, green and blue arranged clockwise
color
task-16
2025-05-12T00:00:00
challenging
When click `.lch-wheel .wheel` color: - change `.lch-wheel` background color to lch color with h from `.lch-wheel .wheel` angle, lightness 50 , chroma 50 - add a block (class `block`) in the `.lch-wheel` if it does not exist, and set its center at the clicked point - `.block` width and height is less than or equal 12...
color
task-17
2025-05-12T00:00:00
challenging
- default `.lch-wheel .wheel` angle (h) is 0 - add a lightness vertical range (class `l`) in the `.lch-wheel` - default value is 50 - change lightness range to redraw `.lch-wheel .wheel` with new lightness, and update `.lch-wheel` background color - add a chroma vertical range (class `c`) in the `.lch-wheel` - de...
color
task-18
2025-05-12T00:00:00
challenging
- add element `.color.hwb-wheel` to `.root` - draw a hsl color wheel (class `wheel`) canvas in the `.hwb-wheel` - lightness is 50, saturate is 100 - red is at the leftmost point of the color wheel, with red, green and blue arranged clockwise
color
task-19
2025-05-12T00:00:00
challenging
When click `.wheel` color: - change `.hwb-wheel` background color to hwb color with h from `.wheel` angle, whiteness 0, blackness 0 - add a block (class `block`) in the `.hwb-wheel` if it does not exist, and set its center at the clicked point - `.block` width and height is less than or equal 12px
color
task-20
2025-05-12T00:00:00
challenging
- default `.wheel` angle (h) is 0 - add a whiteness vertical range (class `w`) in the `.hwb-wheel` - default value is 0 - change whiteness range to update `.hwb-wheel` background color - add a blackness vertical range (class `b`) in the `.hwb-wheel` - default value is 0 - change blackness range to update `.hwb...
color
task-1
2025-05-12T00:00:00
easy
Add tools element (class 'tools', height 40px) and entries element (class 'entries') in the leftbar of the page. tools and entries together fill the entire leftbar space. Add buttons with text 'file', 'dir', 'del' at the tools right side.
dom
task-2
2025-05-12T00:00:00
easy
Click button file to append a file element (class 'entry file') in the entries panel. A file has an unique 'id' attribute, a 'data-content' attribute with random text and random filename. Click a file to display text in the editor. Use DOM API as much as possible. Save codes to 'common/file.js' imported by 'index.js'.
dom
task-3
2025-05-12T00:00:00
easy
Click button dir to append a dir element (class 'entry dir') in the entries panel. A dir has an unique id attribute, random dirname as its text content and a child element (class 'dir-content'). Click dir to show/hide dir-content by add/remove class 'open'. Use DOM API as much as possible. Save codes to 'common/dir.js'...
dom
task-4
2025-05-12T00:00:00
easy
When an entry (file or dir) is created or clicked, mark it as SelectedEntry (add class 'selected', highlight bg color). Remove 'selected' class from the entry when creating (or clicking) other entry or clicking empty space of the entries panel. Save codes to 'common/sel.js' imported by 'index.js'. When SelectedEntry is...
dom
task-5
2025-05-12T00:00:00
moderate
Button del is disabled when SelectedEntry is empty. Click button del to delete SelectedEntry and set SelectedEntry to its next sibling entry if existed, or previous sibling if existed, or parent entry. If new SelectedEntry is dir, show its content. Save codes to 'common/entry.js' imported by 'index.js'.
dom
task-6
2025-05-12T00:00:00
moderate
Drag and move an entry to append to entries panel, or to insert after other file. Drag and move an entry to append to other dir when dragging to target's left half part, and to insert after the target when dragging to target's right half part. Save codes to 'common/drag.js' imported by 'index.js'.
dom
task-7
2025-05-12T00:00:00
moderate
Add context menu (class menu) when right clicking entry. Add menu item (class menu-item) 'add file' (class menu-item-add-file), 'add dir' (class menu-item-add-dir), delete (class menu-item-delete) properly for entry. Save codes to 'common/menu.js' imported by 'index.js'.
dom
task-8
2025-05-12T00:00:00
moderate
Add context menu when right clicking entries panel. Add menu item 'add file', 'add dir', delete properly for entries panel. Save codes to 'common/menu.js'.
dom
task-9
2025-05-12T00:00:00
moderate
Add menu item copy (class menu-item-copy), paste (class menu-item-paste) properly for entry and entries panel. Save codes to 'common/menu.js'.
dom
task-10
2025-05-12T00:00:00
challenging
Add menu item rename (class menu-item-rename) for entry. Use prompt to collect new name. Save codes to 'common/menu.js'.
dom
task-11
2025-05-12T00:00:00
challenging
Append button imp in tools panel. Click button imp to clear entries panel and import JSON data to entries panel from prompt dialog. Save codes to 'common/entry.js'. JSON Data sample: ```{"entries":[{"type":"file", "name":"filename", "content":"content"}, {"type":"dir", "name":"dirname", "children":[{"type":"file", "nam...
dom
task-12
2025-05-12T00:00:00
challenging
Append button exp in tools panel. Click button exp to save all entries to JSON data displayed in alert dialog. Save codes to 'common/entry.js'.
dom
task-13
2025-05-12T00:00:00
challenging
Modify file content in editor and auto save the content. Save codes to 'common/editor.js' imported by 'index.js'.
dom
task-14
2025-05-12T00:00:00
challenging
Dispatch and display shortcuts for menu items. In MACOS, use keys 'Cmd+C' for copy, 'Cmd+V' for paste, 'Cmd+J' for 'add file', 'Cmd+K' for 'add dir'. In other OS, replace 'Cmd' with 'Ctrl'. Save codes to 'common/menu.js'.
dom
task-15
2025-05-12T00:00:00
challenging
Dispatch and display shortcut for menu item 'delete'. Use key 'Delete' and 'Backspace' to delete entry. Save codes to 'common/menu.js'.
dom
task-16
2025-05-12T00:00:00
challenging
Append button gen in tools panel. Click button gen to generate 100 files or dirs at the root of entries panel. Generate less than 10 files or dirs for each dir at the root. Save codes to 'common/entry.js'.
dom
task-17
2025-05-12T00:00:00
challenging
Add resizer with absolute positions at the right side of the leftbar. resizer is hidden by default and become visible when mouse hovers over leftbar. Save codes to 'common/resizer.js'.
dom
task-18
2025-05-12T00:00:00
challenging
Drag resizer to adjust leftbar width. Save codes to 'common/resizer.js'.
dom
task-19
2025-05-12T00:00:00
challenging
Append button filter in tools panel. Click button filter to use prompt dialog to collect keyword which is used to filter entry name. Save codes to 'common/filter.js'.
dom
task-20
2025-05-12T00:00:00
moderate
Add menu item 'cut' with shortcut (Cmd/Ctrl+X) for entry.
dom
task-1
2025-05-12T00:00:00
easy
Add tools element (class 'tools', height 40px) and entries element (class 'entries') in the leftbar of the page. tools and entries together fill the entire leftbar space. Add buttons with text 'file', 'dir', 'del' at the tools right side. Save codes to 'index.html'.
dom1
task-2
2025-05-12T00:00:00
easy
Click button file to append a file element (class 'entry file') in the entries panel. A file has an unique 'id' attribute, a 'data-content' attribute with random text and random filename. Click a file to display text in the editor. Use DOM API as much as possible. Save codes to 'index.html'.
dom1
task-3
2025-05-12T00:00:00
easy
Click button dir to append a dir element (class 'entry dir') in the entries panel. A dir has an unique id attribute, random dirname as its text content and a child element (class 'dir-content'). Click dir to show/hide dir-content by add/remove class 'open'. Use DOM API as much as possible. Save codes to 'index.html'.
dom1
task-4
2025-05-12T00:00:00
easy
When an entry (file or dir) is created or clicked, mark it as SelectedEntry (add class 'selected', highlight bg color). Remove 'selected' class from the entry when creating (or clicking) other entry or clicking empty space of the entries panel. When SelectedEntry is file, insert new entry after it. When SelectedEntry i...
dom1
task-5
2025-05-12T00:00:00
moderate
Button del is disabled when SelectedEntry is empty. Click button del to delete SelectedEntry and set SelectedEntry to its next sibling entry if existed, or previous sibling if existed, or parent entry. If new SelectedEntry is dir, show its content. Save codes to 'index.html'.
dom1
task-6
2025-05-12T00:00:00
moderate
Drag and move an entry to append to entries panel, or to insert after other file. Drag and move an entry to append to other dir when dragging to target's left half part, and to insert after the target when dragging to target's right half part.
dom1
task-7
2025-05-12T00:00:00
moderate
Add context menu(class menu) when right clicking entry. Add menu item(class menu-item) 'add file'(class menu-item-add-file), 'add dir'(class menu-item-add-dir), delete(class menu-item-delete) properly for entry.
dom1
task-8
2025-05-12T00:00:00
moderate
Add context menu when right clicking entries panel. Add menu item 'add file', 'add dir', delete properly for entries panel.
dom1
task-9
2025-05-12T00:00:00
moderate
Add menu item copy(class menu-item-copy), paste(class menu-item-paste) properly for entry and entries panel.
dom1
task-10
2025-05-12T00:00:00
challenging
Add menu item rename(class menu-item-rename) for entry. Use prompt to collect new name.
dom1
task-11
2025-05-12T00:00:00
challenging
Append button imp in tools panel. Click button imp to clear entries panel and import JSON data to entries panel from prompt dialog. JSON Data sample: ```{"entries":[{"type":"file", "name":"filename", "content":"content"}, {"type":"dir", "name":"dirname", "children":[{"type":"file", "name":"filename", "content":"content...
dom1
task-12
2025-05-12T00:00:00
challenging
Append button exp in tools panel. Click button exp to save all entries to JSON data displayed in alert dialog.
dom1
task-13
2025-05-12T00:00:00
challenging
Modify file content in editor and auto save the content.
dom1
task-14
2025-05-12T00:00:00
challenging
Dispatch and display shortcuts for menu items. In MACOS, use keys 'Cmd+C' for copy, 'Cmd+V' for paste, 'Cmd+J' for 'add file', 'Cmd+K' for 'add dir'. In other OS, replace 'Cmd' with 'Ctrl'.
dom1
task-15
2025-05-12T00:00:00
challenging
Dispatch and display shortcut for menu item 'delete'. Use key 'Delete' and 'Backspace' to delete entry.
dom1
task-16
2025-05-12T00:00:00
challenging
Append button gen in tools panel. Click button gen to generate 100 files or dirs at the root of entries panel. Generate less than 10 files or dirs for each dir at the root.
dom1
task-17
2025-05-12T00:00:00
challenging
Add resizer with absolute positions at the right side of the leftbar. resizer is hidden by default and become visible when mouse hovers over leftbar.
dom1
task-18
2025-05-12T00:00:00
challenging
Drag resizer to adjust leftbar width.
dom1
task-19
2025-05-12T00:00:00
challenging
Append button filter in tools panel. Click button filter to use prompt dialog to collect keyword which is used to filter entry name.
dom1
task-20
2025-05-12T00:00:00
moderate
Add menu item 'cut' with shortcut(Cmd/Ctrl+X) for entry.
dom1
task-1
2025-05-12T00:00:00
easy
Add toolkit container (class 'toolkit') and svg element (class 'canvas') in '.root'. toolkit and canvas together fill the whole space of the browser element. Add shape container (class 'shape'), prop container (class 'prop') and operation container (class 'operation') horizontally in the toolkit. shape container (3 la...
draw
task-2
2025-05-12T00:00:00
easy
Add radios wrapped by label in shape container with values: line, rect, ellipse. Add radios wrapped by label in operation container with values: move, rotate, zoom, copy, delete, fill. Each radio in both shape and operation container has the same name 'operation'. Each label's class is the the value of its inner radio....
draw
task-3
2025-05-12T00:00:00
easy
When click label line, use mouse in canvas to draw a svg line (line width is '.line-width' value, line color is '.color' value). The line's start point is the point when mouse pressing down and end point is the point when mouse pressing up.
draw
task-4
2025-05-12T00:00:00
easy
When click label rect, use mouse in canvas to draw a svg rect (fill color is white, line width is '.line-width' value, line color is '.color' value). The rect's left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up.
draw
task-5
2025-05-12T00:00:00
easy
When click label ellipse, use mouse in canvas to draw a svg ellipse (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The ellipse's center is the rect center, ...
draw
task-6
2025-05-12T00:00:00
easy
After label delete clicked, click any shape (line/rect/ellipse/...) in the canvas to delete it.
draw
task-7
2025-05-12T00:00:00
easy
After label fill clicked, click any shape (line/rect/ellipse/...) in the canvas to set its fill color to '.color' value.
draw
task-8
2025-05-12T00:00:00
moderate
After label copy clicked, click any shape (line/rect/ellipse/...) in the canvas to copy itself. The copied shape is placed 20 to the right and 20 below the original shape.
draw
task-9
2025-05-12T00:00:00
challenging
When the length of the line is less than line width, keep it to be the line width.
draw
task-10
2025-05-12T00:00:00
challenging
When the width or height of the rect is less than line width, keep it to be line width.
draw
task-11
2025-05-12T00:00:00
challenging
When the x or y radius of the ellipse is less than half line width, keep it to be half line width.
draw
task-12
2025-05-12T00:00:00
challenging
After label move clicked, drag and move any shape in the canvas.
draw
task-13
2025-05-12T00:00:00
challenging
After label rotate clicked, drag and rotate any shape in the canvas around its center.
draw
task-14
2025-05-12T00:00:00
challenging
Perform move and rotate operations on a shape in any sequence, ensuring that each operation builds on the previous one.
draw
task-15
2025-05-12T00:00:00
challenging
After label zoom clicked, drag and zoom any shape in the canvas according the distance between mouse position and its center. Zoom the shape around its center.
draw
task-16
2025-05-12T00:00:00
challenging
Perform move, rotate, and zoom operations on a shape in any sequence, ensuring that each operation builds on the previous one.
draw
task-17
2025-05-12T00:00:00
easy
Set label move clicked after creating or copying a shape.
draw
task-18
2025-05-12T00:00:00
moderate
Press and hold the blankspace to enable moving the shape. Release it to restore the selected label if needed.
draw
task-19
2025-05-12T00:00:00
challenging
Support touch events for operations: create, copy, delete, fill.
draw
task-20
2025-05-12T00:00:00
challenging
Support touch events for operations: move, rotate, zoom.
draw