This file contains 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
// Documented by Stoyan Stefanov: https://www.facebook.com/note.php?note_id=10151176218703920 | |
(function() { | |
var url = 'http://example.org/js.js'; | |
var iframe = document.createElement('iframe'); | |
(iframe.frameElement || iframe).style.cssText = | |
"width: 0; height: 0; border: 0"; | |
iframe.src = "javascript:false"; | |
var where = document.getElementsByTagName('script')[0]; | |
where.parentNode.insertBefore(iframe, where); | |
var doc = iframe.contentWindow.document; |
This file contains 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
// knockout-jquery-ui-widget.js | |
// Copyright (c) 2011, Planapple, Inc. | |
// License: MIT (http://www.opensource.org/licenses/mit-license.php) | |
// | |
// Knockout binding for jQuery UI widgets | |
// | |
// Examples: | |
// <input type="submit" value="OK" data-bind='jqueryui: "button"' /> | |
// | |
// Attaches a jQuery UI button widget to this button, with default options. |