Permalink
Browse files

(root) Well, this has potential.

  • Loading branch information...
ELLIOTTCABLE committed Jun 21, 2011
0 parents commit 2f35e333d77c5d9235a32247ee8b72c469ec4a21
Showing with 36 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. 0 README.markdown
  3. +7 −0 Source/page.js
  4. +2 −0 package.json
  5. +11 −0 server.js
  6. +2 −0 template/ANAL.css
  7. +13 −0 template/ANAL.html
@@ -0,0 +1 @@
+node_modules
No changes.
@@ -0,0 +1,7 @@
+(function(page){ var _ = page; var constructify
+ ;_['constructify'] =
+ constructify = function(window){
+ console.log(window.document.getElementById('the.link').setAttribute('href', "http://elliottcable.name"))
+ }
+
+return page; })( (typeof(module) !== "undefined") ? (module.exports = {}) : (ANAL = {page: {}}).page )
@@ -0,0 +1,2 @@
+{ "name": "ANAL-Wowhead",
+ "main": "./Source/ANAL-Wowhead.js" }
@@ -0,0 +1,11 @@
+var util = require('util')
+, fs = require('fs')
+, jsdom = require('jsdom').jsdom
+, ANAL = {page: require('./Source/page')}
+
+fs.readFile('./template/ANAL.html', function(err, data) { if (err) throw err; var window
+ window = jsdom(data).createWindow();
+
+ ANAL.page.constructify(window);
+ util.log(window.document.outerHTML);
+})
@@ -0,0 +1,2 @@
+a { color: #000000 }
+a:hover { color: #BADA55 }
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang='en' xml:lang="en">
+ <head>
+ <meta charset="UTF-8"/>
+ <title>ANAL</title>
+
+ <link rel="stylesheet" href="../template/ANAL.css"/>
+ <script src="../Source/page.js"></script>
+ </head>
+ <body>
+ <a href="http://google.com/search?q=elliottcable" id="the.link">elliottcable</a>
+ </body>
+</html>

0 comments on commit 2f35e33

Please sign in to comment.