Moving some JS folders (#4820)

* Moving folders

* Pointing to new locations
This commit is contained in:
Maxime Beauchemin
2018-04-17 21:05:01 -07:00
committed by GitHub
parent 2900ca345d
commit c0db6dbb57
353 changed files with 257 additions and 257 deletions

View File

@@ -0,0 +1,12 @@
const $ = require('jquery');
function iframeWidget(slice) {
$('#code').attr('rows', '15');
const url = slice.render_template(slice.formData.url);
slice.container.html('<iframe style="width:100%;"></iframe>');
const iframe = slice.container.find('iframe');
iframe.css('height', slice.height());
iframe.attr('src', url);
}
module.exports = iframeWidget;