MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / flipSession

Function flipSession

assets/js/StudyTimer_1.js:33–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32// piece of code to flip between the session and break
33const flipSession=()=>
34{
35 insession=false
36 inbreak= true
37 displayedPlanner=true;
38 timer_session.style.display='none';
39 timer_break.style.display='block';
40 timer_break.style.transform='rotateY(0deg)';
41
42 // for displaying the goals only once on the screen
43 if(displayedSession)
44 { curListLenCount+=1;
45 dropDownDiv.innerHTML+=
46 `<div class='dropdown-div'>
47 <p class='dropdown-div-heading'> Session ${curListLenCount}
48 </p>
49 <ul class='ul-list-dropdown' id="session_displayer__list-${curListLenCount}"> </ul>
50 </div>`
51 displaySessionDetails()
52 displayedSession=false
53 }
54
55}
56const flipBreak=()=>
57{
58 insession=true

Callers 1

startClockFunction · 0.85

Calls 1

displaySessionDetailsFunction · 0.85

Tested by

no test coverage detected