/*! copyright (c) 2013 brandon aaron (http://brandonaaron.net) * licensed under the mit license (license.txt). * * version 3.0.0 */ (function (factory) { if (typeof define === 'function' && define.amd) { // amd. register as an anonymous module. define(['jquery'], factory); } else { // browser globals factory(jquery); } }(function ($) { $.fn.bgiframe = function(s) { s = $.extend({ top : 'auto', // auto == bordertopwidth left : 'auto', // auto == borderleftwidth width : 'auto', // auto == offsetwidth height : 'auto', // auto == offsetheight opacity : true, src : 'javascript:false;', conditional : true // expresion or function. return false to prevent iframe insertion }, s); // wrap conditional in a function if it isn't already if (!$.isfunction(s.conditional)) { var condition = s.conditional; s.conditional = function() { return condition; }; } var $iframe = $('