Skip to content

Instantly share code, notes, and snippets.

@honewatson
Created April 7, 2016 06:34
Show Gist options
  • Save honewatson/4d0ee3abc0d9d8f2970a30247526f866 to your computer and use it in GitHub Desktop.
Save honewatson/4d0ee3abc0d9d8f2970a30247526f866 to your computer and use it in GitHub Desktop.
var b = [];
var f;
var s = document.createElement('script');
s.src = 'https://code.jquery.com/jquery-1.11.1.min.js';
s.onload = function() {
var ifr = window.jQuery('.iframe-container.main iframe')[0];
f = new F(ifr.contentWindow, ifr.contentDocument, ifr.contentWindow.jQuery, ifr.contentWindow.EasyEdit, ifr.contentWindow.EasyEdit.wizard);
};
document.body.appendChild(s);
var F = function(window, document, $, EasyEdit, wizard) {
this.window = window;
this.document = document;
this.$ = $;
this.EasyEdit = EasyEdit;
this.wizard = wizard;
console.log(this.window);
console.log(this.document);
console.log(this.$);
console.log(this.EasyEdit);
console.log(wizard);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment