Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 9 additions & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,17 @@ body.danger .primary {
background: #1abc9c;
}

#buttonss{
display:flex;
flex-direction: column;
}


.cancel {
font-size: .6rem;
position: fixed;
right: 20px;
bottom: 20px;
/* position: fixed; */
/* right: 20px; */
/* bottom: 20px; */
text-transform: uppercase;
opacity: .6;
color: #fff;
Expand Down
8 changes: 7 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@license MIT Licensed
*/



var TF;

; (function (doc, win) {
Expand Down Expand Up @@ -417,7 +419,7 @@ var TF;
gId('taskTitle').value = e.target.innerHTML;
},



/**
* Loads the database, if no database loads default values
Expand Down Expand Up @@ -569,3 +571,7 @@ var TF;


}(document, window));

function myFunction(){
alert("Are you sure to cancel?")
}
12 changes: 8 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,21 @@ <h1>TwentyFive</h1>
<button id="cancelCountdown" class="cancel" title="Cancel the current task">Cancel</button>
</section>

<section id="naming" class="page naming">
<section id="naming" class="page-naming">
<input type="text" id="taskTitle" class="title" placeholder="What have you been working on?" title="Be as descriptive as possible&hellip;">
<ul id="suggestionList" class="tags"></ul>
<button id="saveNaming" class="primary" title="Save task">Save task</button>
<button id="cancelNaming" class="cancel" title="Cancel the current task">Cancel</button>

<div class="buttons" id="buttonss">
<button id="saveNaming" class="primary" title="Save task">Save task</button>
<button id="cancelNaming" class="cancel" onclick="myFunction()" title="Cancel the current task">Cancel</button>
</div>

</section>

<section id="list" class="page list">
<button id="startCountdown" class="primary start" title="Start a new task">Start a new task</button>
<div id="timeResting"></div>
<ul id="taskList" class="tasklist"></ul>
<ul id="taskList" class="tasklist"></ul>
</section>

<nav>
Expand Down