Andrew Meadowsarchive remaining JS scriptsc0b446c10 years agoHistory
12 lines · 306 B · JavaScript
RawDownload
var width = 0,    height = 0; function onUpdate(dt) {    if (width != Window.innerWidth || height != Window.innerHeight) {        width = Window.innerWidth;        height = Window.innerHeight;        print("New window dimensions: " + width + ", " + height);    }} Script.update.connect(onUpdate);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t