Commit Graph

8 Commits (aa0297c2f2630f21f5af026170a5a45cceb5b411)

Author SHA1 Message Date
Berkeley Martinez 574709159d Fix use the document as the proxy for jquery
We proxy the jquery object. This lets us use the jQuery that FCC
uses in the iframe.

Since jQuery sets the context, the main document object or DOM, at script
load, we need to create a proxy with the context of the iframe,
the document object of the iframe.

This was originally set to the body element. But not all challenges
require a body element.
2015-11-30 21:48:28 -08:00
Berkeley Martinez f9bdc32474 Fix editor in iFrame should be the code
This should be changed
2015-11-29 16:28:32 -08:00
Berkeley Martinez 6638412cc3 Preview tests now run correctly
Pulling jQuery from the parent frame
2015-11-29 16:28:32 -08:00
Berkeley Martinez 5a785dbad7 Load iFrame on page load 2015-11-29 16:28:32 -08:00
Berkeley Martinez 29f90505b7 More refactoring 2015-11-29 16:27:14 -08:00
Berkeley Martinez 748f7ab93f Progress towards refactoring 2015-11-29 16:21:04 -08:00
Berkeley Martinez 8f3c3e3972 Fix most lint issues 2015-11-04 12:37:25 -08:00
Berkeley Martinez 306c441ae7 add revisioning to js/css files to break caching
This moves the location of javascript files, commonFramework,
iFrameScript, sandbox, plugin, and all the less files.
On gulp or gulp build these files are moved and revisioned.
Places where they are references in jade/html are now removed and
replaced with the use of a helper function `rev`. This function will
take the required file and return a string referencing the revisioned
file. This should alleviate the need for hard refreshing and will break
caches when files change, so fixes for firefox caching issue as well.

NOTE: @benmcmahon @quincylarson, This means files will need to be build
on the server in production before doing a server restart/reload
In production: 'npm run build' To build and revision js/css files

`gulp` and `gulp build` will used in development

npm install also needs to be run in production on initial deploy
2015-08-26 23:30:33 -07:00