1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-17 06:37:34 +02:00

Saving the playground state in local storage (#1942)

#1476 issue. Updated the function call(`getCodeFromPlayground`) in
`save-playground.js` file from `pagehide` event to change event in ace
editor.

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
This commit is contained in:
Manichand Kondapaka
2024-05-28 15:21:41 +05:30
committed by GitHub
parent 83b31e19af
commit e2cad7da8d
3 changed files with 42 additions and 26 deletions

View File

@ -24,10 +24,10 @@
instructorMenu.title = "Utilities for course instructors";
instructorMenu.innerHTML =
'<i class="fa fa-ellipsis-v" aria-hidden="true"></i>';
redBoxButton.innerHTML = "aspect-ratio box";
redBoxButton.innerHTML = "Toggle aspect-ratio box";
redBoxButton.title =
"Outline the area that fits on one screen while teaching the course.";
playgroundStateButton.innerHTML = "reset all playgrounds";
playgroundStateButton.innerHTML = "Reset all playgrounds";
playgroundStateButton.title =
"Reset code in all playgrounds to its original value.";