Screen Resolution

Log in to Vote
11 Votes • 5 Comments
I should be able to see my screen resolution without clicking through to While it most likely is not passed through to the Perl on the backend, it can be easily found using the screen object in JavaScript in a Spice. Just print out screen.width x screen.height into a text instant answer. You'll probably need to use a self call, but you can check out the Timer module for an example.
• posted 3 years and 8 months ago • type: Goodie (Perl functions) In Development

This would actually work well as a Goodie that utilizes frontend JavaScript. Spice will now be reserved for IA's that need to use an API to get it's required data.

Goodies can now load a separate JS file and in either the Perl or JavaScript specify the template and other details.

The 2048 Game Goodie will be the first to use JavaScript. It will have the JS functionality very soon!
posted by Moollaza Staff3 years and 8 months ago Link
I'll give this a go. This is my first time making an instant answer so if I have any questions I'll let you know.

posted by <hidden> • 3 years and 8 months ago Link
That's awesome--this is a popular request despite the idea only being added last week.
posted by zac Staff3 years and 8 months ago Link
I was wondering if anyone knows how to load separate JS files as per moollaza's suggestion? If anyone could point me in the right direction that would be awesome.
posted by <hidden> • 3 years and 8 months ago Link
posted by mattr555 Community Leader3 years and 6 months ago Link