From 0310afbb044619c2166b1667c0fde12948a238cf Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 6 Sep 2023 22:42:48 -0400 Subject: remove code input since it's not really needed anymore --- index.html | 4 ---- pugl.js | 9 +-------- things.txt | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 8bbbeb8..5b10c84 100644 --- a/index.html +++ b/index.html @@ -50,10 +50,6 @@ -
- - -
× diff --git a/pugl.js b/pugl.js index 3c40494..7708b31 100644 --- a/pugl.js +++ b/pugl.js @@ -42,7 +42,6 @@ let next_widget_id = 1; let widget_choices; let widget_search; let widgets_container; -let code_input; let error_element; let parsed_widgets; let paused = false; @@ -2548,7 +2547,6 @@ function import_widgets(string) { function export_widgets_to_local_storage() { const widget_str = export_widgets(); - code_input.value = widget_str; // re-read metadata so that having multiple tabs with pugl open isn't an issue const new_metadata = JSON.parse(localStorage.getItem(`${APP_ID}-metadata`)); creation_metadata = new_metadata || {}; @@ -2688,7 +2686,6 @@ function startup() { widget_choices = document.getElementById('widget-choices'); widget_search = document.getElementById('widget-search'); widgets_container = document.getElementById('widgets-container'); - code_input = document.getElementById('code'); error_element = document.getElementById('error'); creation_title_element = document.getElementById('creation-title'); auto_update_element = document.getElementById('auto-update'); @@ -2777,7 +2774,7 @@ function startup() { document.getElementById('link-creation').addEventListener('click', () => { // copy link - const string = code_input.value; + const string = export_widgets(); const url = new URL(location.href); url.search = ''; url.hash = ''; @@ -2798,10 +2795,6 @@ function startup() { set_up_framebuffer(); }); - document.getElementById('code-form').addEventListener('submit', () => { - new_creation(code_input.value); - }); - pause_element = document.getElementById('pause'); play_element = document.getElementById('play'); step_element = document.getElementById('step'); diff --git a/things.txt b/things.txt index bc1692d..094a498 100644 --- a/things.txt +++ b/things.txt @@ -12,4 +12,4 @@ noisy: buffer;n:output;iinput:sn1,sn2,sn3;;rot2;n:rot21;iv:.pos;itheta:mul1.w;cdir:0;;circle;n:circle1;ipos:.pos;iinside:rot21,0;ioutside:#000;isize:0.8;;noise_sin;n:sn1;ix:rot21.xy,mul1.x;;remap;n:remap1;ix:.pos;ia1:-1;ib1:1;ia2:0;ib2:6.28;;noise_sin;n:sn2;ix:rot21.xy,mul1.y;;noise_sin;n:sn3;ix:rot21.xy,mul1.z;;mul;n:mul1;ia:.time;ib:0.2,0.4,0.6,0.1;;prev;n:prev1;ipos:.pos;cwrap:0;csample:0;;_out=output simple cross product: -_title=cross;;cross;n:cross1;ix:.pos.xy,1;iy:0.2,.pos.xy;;_out=cross1 +s.pommicket.com/pugl/index.html?import=_title%3Dcross%3B%3Bcross%3Bn%3Across1%3Bix%3A.pos.xy%2C1%3Biy%3A0.2%2C.pos.xy%3B%3B_out%3Dcross1 -- cgit v1.2.3