Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit fbdedb3

Browse files
author
constantinol
committed
button made without functionality
1 parent 0b3b636 commit fbdedb3

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

runestone/timed/css/timed.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ ul#pageNums li {
1010
color: #000 !important;
1111
}
1212

13+
/* adding from here DELETE THIS*/
14+
.class1 {
15+
background-color: #FFFF99 !important;
16+
border: none;
17+
color: #030201 !important;
18+
cursor: pointer;
19+
width: 150;
20+
height: 115;
21+
text-align: center;
22+
text-decoration: none;
23+
display: inline-block;
24+
font-size: 15px;
25+
}
26+
/* adding to here DELETE THIS*/
27+
1328
/* The following override styles in Bootstrap distribution file (bootstrap.min.css) */
1429

1530
.pagination > .active > a,

runestone/timed/js/timed.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,19 @@ export default class Timed extends RunestoneBase {
261261
$(this.leftNavButton).css("cursor", "pointer");
262262
this.leftContainer.appendChild(this.leftNavButton);
263263
this.pagNavList.appendChild(this.leftContainer);
264+
//
265+
this.leftContainer = document.createElement("li");
266+
this.flagButton = document.createElement("button");
267+
$(this.flagButton).addClass("class1");
268+
this.flagButton.innerHTML = "Flag";
269+
$(this.flagButton).attr("aria-labelledby", "Flag");
270+
$(this.flagButton).attr("tabindex", "5");
271+
$(this.flagButton).attr("role", "button");
272+
$(this.flagButton).attr("id", "flag");
273+
$(this.flagButton).css("cursor", "pointer");
274+
this.leftContainer.appendChild(this.flagButton);
275+
this.pagNavList.appendChild(this.leftContainer);
276+
//
264277
this.rightContainer = document.createElement("li");
265278
this.rightNavButton = document.createElement("button");
266279
$(this.rightNavButton).attr("aria-label", "Next");

0 commit comments

Comments
 (0)