1010< script src ="sankey.js "> </ script >
1111< script src ="canvg.js "> </ script >
1212< script src ="rgbcolor.js "> </ script >
13+ < script src ="sample_diagrams.js "> </ script >
1314< script src ="sankeymatic.js "> </ script >
1415</ head >
1516< body >
2930 </ div >
3031</ nav >
3132</ header >
32- < div style ="text-align: center; margin-top: 1px; margin-bottom: 16px; ">
33- < span style ="background-color: #E3FF9F; padding: 2px 20px; font-size: 90%; border-width: 0px 1px 1px; border-style: dotted; border-color: #6AE58B; ">
34- If you find SankeyMATIC useful, please consider < a href ="../about/ " target ="_blank "> donating to support further development</ a > . Thanks!</ span >
35- </ div >
3633
37- < main >
34+ < div class ="callout_container "> < span class ="callout ">
35+ If you find SankeyMATIC useful, please consider < a href ="../about/ " target ="_blank "> donating to support further development</ a > . Thanks!
36+ </ span > </ div >
3837
38+ < main >
3939< div class ="center_basic ">
4040
4141< form onsubmit ="process_sankey(); return false; ">
42+ < div id ="example_diagrams " class ="center_text ">
43+ < h4 > Sample Diagrams:
44+ < button type ="button " id ="load_example_job_search " onclick ="reset_graph('job_search'); return false; "> Job Search</ button >
45+ < button type ="button " id ="load_example_election " onclick ="reset_graph('election'); return false; "> Ranked Election</ button >
46+ <!-- <button type="button" id="load_example_energy_all" onclick="reset_graph('energy_flows_all'); return false;">Energy Flows</button> -->
47+ < button type ="button " id ="load_example_basic_budget " onclick ="reset_graph('default_budget'); return false; "> Basic Budget (Default)</ button >
48+ </ h4 >
49+
50+ < p id ="reset_graph_warning " style ="display: none; ">
51+ < em > This will < strong > erase</ strong > your changes. Are you sure?</ em >
52+ < input type ="hidden " id ="demo_graph_chosen " value ="" />
53+ < button type ="button " id ="reset_graph_yes " onclick ="reset_graph_confirmed(); return false; "> Yes, reset the diagram</ button >
54+ < button type ="button " id ="reset_graph_no " onclick ="cancel_reset_graph(); return false; "> Cancel</ button >
55+ </ p >
56+ </ div >
4257
4358< table > < tr > < td >
4459
45-
4660< table class ="center_basic ">
4761< tr >
4862 < td id ="other_entry ">
@@ -51,28 +65,29 @@ <h2 class="ui_head" onclick="toggle_panel('input_options');">
5165< span id ="input_options_indicator " class ="indicator "> –</ span >
5266Inputs< span id ="input_options_hint "> :</ span > </ h2 >
5367
54- < div id ="input_options ">
55- < textarea id ="flows_in " rows ="22 " cols ="40 " onchange ="process_sankey(); "> ' Type a list of Flows between Nodes, like:
68+ < div id ="input_options " class =" center_text " >
69+ < textarea id ="flows_in " rows ="22 " cols ="40 " onchange ="process_sankey(); "> ' Enter Flows between Nodes, like this :
5670' Source [AMOUNT] Target
57- ' Examples:
58- Wages [2000] Budget
59- Interest [25] Budget
6071
61- Budget [500] Taxes
62- Budget [450] Housing
63- Budget [310] Food
64- Budget [205] Transportation
65- Budget [400] Health Care
72+ Wages [1500] Budget
73+ Other [250] Budget
74+
75+ Budget [450] Taxes
76+ Budget [420] Housing
77+ Budget [400] Food
78+ Budget [295] Transportation
79+ Budget [25] Savings
6680
6781' You can set a specific color for a Node:
68- :Taxes #CC66FF
69- ' ...and for a Flow:
70- Budget [160] Other Necessities #00CC00
71- ' Visit the 'Manual' link for more!
82+ :Taxes #90C
83+ ' ...and for a single Flow:
84+ Budget [160] Other Necessities #0F0
7285
7386' After entering your data, use the
7487' controls below to customize your
75- ' diagram's appearance.</ textarea >
88+ ' diagram's appearance.
89+
90+ ' Visit the 'Manual' link for more!</ textarea >
7691
7792< p class ="center_basic "> < button id ="preview_graph " type ="submit "> Preview</ button > </ p >
7893</ div >
@@ -86,7 +101,7 @@ <h2 class="ui_head" onclick="toggle_panel('diagram_options');">
86101< div id ="diagram_options " class ="form_chunk ">
87102< p class ="form_elements1 ">
88103< label for ="canvas_width "> < strong > Diagram Width:</ strong > </ label >
89- < span class ="no_wrap "> < input type ="text " class ="wholenumber " id ="canvas_width " size ="5 " maxlength ="6 " value ="600 " onchange ="process_sankey(); "> px</ span >
104+ < span class ="no_wrap "> < input type ="text " class ="wholenumber " id ="canvas_width " size ="5 " maxlength ="6 " value ="700 " onchange ="process_sankey(); "> px</ span >
90105< label for ="canvas_height " class ="spaced_label "> < strong > Height:</ strong > </ label >
91106< span class ="no_wrap "> < input type ="text " class ="wholenumber " id ="canvas_height " size ="5 " maxlength ="6 " value ="600 " onchange ="process_sankey(); "> px</ span >
92107</ p >
@@ -304,7 +319,7 @@ <h3 class="ui_head" onclick="toggle_panel('svg_options');"><span id="svg_options
304319</ td > < td id ="grapharea ">
305320
306321< div class ="expandable_box ">
307- < h2 class ="ui_head " onclick ="toggle_panel('layout_options'); ">
322+ < h2 id =" layout_options_section " class ="ui_head " onclick ="toggle_panel('layout_options'); ">
308323< span id ="layout_options_indicator " class ="indicator "> +</ span >
309324Layout Options< span id ="layout_options_hint "> ...</ span > </ h2 >
310325< div id ="layout_options " class ="form_chunk " style ="display: none; ">
@@ -355,9 +370,8 @@ <h2 class="ui_head" onclick="toggle_panel('layout_options');">
355370</ main >
356371
357372
358- < div style ="text-align: center; margin-top: 12px; margin-bottom: 1px; ">
359- < span style ="background-color: #E3FF9F; padding: 2px 20px; font-size: 90%; border-width: 1px 1px 0px; border-style: dotted; border-color: #6AE58B; ">
360- <!-- <div style="text-align: center; background-color: #ECFF60; font-size: 90%; padding: 4px; "> -->
373+ < div class ="callout_container ">
374+ < span class ="callout ">
361375If you find SankeyMATIC useful, please consider < a href ="../about/ " target ="_blank "> donating to support further development</ a > . Thanks!</ span >
362376</ div >
363377
0 commit comments