Created
December 18, 2011 16:14
-
-
Save zachseifts/1493798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var jsdom = require('jsdom'); | |
| var growl = require('growl'); | |
| jsdom.env("http://appstatealert.com/", [ | |
| 'http://code.jquery.com/jquery-1.5.min.js' | |
| ], | |
| function(errors, window) { | |
| var $ = window.$ | |
| var stat = $("#wrapper-content-inner strong:first").text(); | |
| growl('Campus is operating under: ' + stat); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment