Open Roberta

Button, Click and Action!

Background

This is a GitHub task, make sure to read the info.
Be sure to be done with the task : Building the project (Programming getting started 1/2) before doing this task.
Task

Create a button in gallery. When clicked print a message to console.log or alert in the window itself.
This is a basic task and there are many tasks can be done if you do this one correctly. How to do it:
The code for gallery is in /OpenRobertaServer/staticResources/js/app/roberta/controller/galleryList.controller.js and /OpenRobertaServer/staticResources/index.html .
How to attach action to button can be seen at https://www.w3schools.com/jsref/event_onclick.asp .
Button should be added in index.html with some unique id of your choice. The code of what button will do after clicked (onclick function) should be written in galleryList.controller.js.

Deliverables

Send a link to your branch of the fork which has the capability. Learn about branch and fork from https://help.github.com/en/github/getting-started-with-github/fork-a-repo and https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches.

Task tags

  • github
  • novice
  • javascript

Students who completed this task

GandaSul, Amos Gamaliel, RohanC, Blippy, nishanth1232, kiminonawa

Task type

  • code Code
close

2019