def construct_embed(source_url): shader_id = source_url.split("/")[-1] return f'' def make_iframe(shader_code): #keep a single function? script = make_script(shader_code) return f"""""" def make_script(shader_code): # code copied and fixed(escaping single quotes to double quotes!!!) from https://webglfundamentals.org/webgl/webgl-shadertoy.html script = ("""