Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add Undo and Redo functionality #26

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions css/activity.css
ravjot07 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@

#main-toolbar #clear-button {
background-image: url(../icons/clear-button.svg);
}

#main-toolbar #undo-button {
background-image: url(../icons/undo-button.svg);
}

#main-toolbar #redo-button {
background-image: url(../icons/redo-button.svg);
}
16 changes: 16 additions & 0 deletions icons/redo-button.svg
ravjot07 marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions icons/undo-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<button class="toolbutton" id="activity-button" title="My Activity"></button>
<button class="toolbutton" id="new-button" title="New"></button>
<button class="toolbutton" id="clear-button" title="Clear Canvas"></button>
<button class="toolbutton" id="undo-button" title="Undo"></button>
<button class="toolbutton" id="redo-button" title="Redo"></button>
<button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
</div>

Expand Down