Skip to content

Commit

Permalink
Format code consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
p0wen committed Oct 1, 2020
1 parent e779a67 commit 0697d3d
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 222 deletions.
6 changes: 3 additions & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,18 +279,18 @@ input:checked + .slider:before {
}

@media all and (max-height: 414px) and (orientation: landscape) {
/** https://webkit.org/blog/7929/designing-websites-for-iphone-x/ **/
/** https://webkit.org/blog/7929/designing-websites-for-iphone-x/ **/
@supports (padding: max(0px)) {
.app {
padding-left: max(12px, env(safe-area-inset-left));
padding-right: max(12px, env(safe-area-inset-right));
font-size: 0.9rem;
}
.quote {
padding-top: 0px;
padding-top: 0px;
}
.quote div p {
margin-bottom: 0rem;
margin-bottom: 0rem;
}
}
.streakbar {
Expand Down
16 changes: 7 additions & 9 deletions assets/js/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ if ("serviceWorker" in navigator) {
* Fix Viewport for mobile browser (https://dev.to/admitkard/mobile-issue-with-100vh-height-100-100vh-3-solutions-3nae)
*/

window.addEventListener('resize', () => {
resizeView()
})
window.addEventListener("resize", () => {
resizeView();
});

function resizeView() {
document.querySelector(':root').style
.setProperty('--vh', window.innerHeight/100 + 'px');
document
.querySelector(":root")
.style.setProperty("--vh", window.innerHeight / 100 + "px");
}

//get today's date for all kinds of function
Expand Down Expand Up @@ -145,7 +146,7 @@ outline.style.strokeDashoffset = outlineLength;
// Initiliazation of the App

function init() {
resizeView()
resizeView();
dateSetup();
timeSensitivBackground(currentHour);
timerSettings();
Expand All @@ -172,7 +173,6 @@ function printLog(message) {
* Setup the Timer after changes are made in the Modal Settings by the user
*/


function timerSettings() {
meditationTimeElem.textContent = formatDuration(meditationDuration);
medTimeSetBtn.forEach((option) => {
Expand Down Expand Up @@ -354,8 +354,6 @@ function calculateProgress() {
outline.style.strokeDashoffset = progress;
}



/**
* Stopping the Timer if the settings are changed while the timer is running
*/
Expand Down
Loading

0 comments on commit 0697d3d

Please sign in to comment.