'use strict'; /// Create an overlay with an iframe, the iframe's source is [url]. This also /// creates an (x) button to hide the overlay. function run_flutter_app(url) { let id = compute_iframe_id(url); create_overlay(); if (!$('#' + id).length) { $('#flutter-app-overlay').append($( `` )); } $('#flutter-app-overlay').addClass('active'); $('#' + id).addClass('active'); } function open_code_listings(id) { create_overlay(); if (!$('#flutter-app-overlay #' + id).length) { $('#' + id).appendTo($('#flutter-app-overlay')); } $('#flutter-app-overlay').addClass('active'); $('#' + id).addClass('active'); } function create_overlay() { if (!$('#flutter-app-overlay').length) { $('body').append($(`