mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:07:34 +00:00
LibWeb: Add document.querySelector()
This commit is contained in:
parent
6e505b853e
commit
67b742bf32
8 changed files with 46 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
function drawSomeCurves() {
|
||||
|
||||
var canvas = document.querySelectorAll("canvas")[0];
|
||||
var canvas = document.querySelector("canvas");
|
||||
var ctx = canvas.getContext("2d");
|
||||
var x = 150;
|
||||
var y = 150;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue