Skip to content

Instantly share code, notes, and snippets.

View a-pechenyi's full-sized avatar
💭
working...

Artem Pechenyi a-pechenyi

💭
working...
  • UNTELEPORTED
  • Kyiv
View GitHub Profile
@a-pechenyi
a-pechenyi / widgets.js
Last active December 24, 2015 10:24 — forked from verkligheten/widgets.js
widgets
$(function() {
'use strict';
var updateWidgetPreview = function() {
var iframe = $('#previewiframe');
var form = $("#previewform");
if (form.length == 0) {
form = $("<form/>", {id: "previewform", action: iframe.data('url'), target: "previewiframe", method: "GET"});
form.hide();
form.appendTo(document.body);