add links in egui

This commit is contained in:
Simon Gardling 2022-02-24 01:50:59 -05:00
parent 8601e1e38f
commit 9c3d43793a
2 changed files with 4 additions and 7 deletions

View File

@ -65,6 +65,7 @@ impl epi::App for MathApp {
ui.label("Function: ");
ui.text_edit_singleline(func_str);
});
let func_test_output = test_func(func_str.clone());
if !func_test_output.is_empty() {
parse_error = func_test_output;
@ -89,6 +90,9 @@ impl epi::App for MathApp {
}
ui.add(egui::Slider::new(num_interval, 10..=usize::MAX).text("Interval"));
ui.hyperlink_to("Supported Expressions", "https://github.com/Titaniumtown/meval-rs#supported-expressions");
ui.hyperlink_to("I'm Opensource! (and licensed under AGPLv3)", "https://github.com/Titaniumtown/integral_site");
});
let _update_back = chart_manager.do_update_back(func_str.clone(), *min_x, *max_x);

View File

@ -26,10 +26,3 @@
</script>
</body>
</html>
<!-- Todo: port this to egui -->
<!-- <h4><a href="https://github.com/Titaniumtown/meval-rs#supported-expressions">Supported Expressions</a></h4>
<h3 id="%3Ca%20href=%22https://github.com/Titaniumtown/integral_site%22%3EI&amp;#8217;m%20Open%20Source!%3C/a%3E%20(and%20licensed%20under%20AGPLv3)"><a href="https://github.com/Titaniumtown/integral_site">I&#8217;m Open Source!</a> (and licensed under AGPLv3)</h3> -->