Merge branch 'master' of https://github.com/ksjdragon/hourglass
This commit is contained in:
commit
26fc6d05ce
@ -13,7 +13,6 @@
|
|||||||
<p class="text">All your work in one place. Finish before your time runs out.</p>
|
<p class="text">All your work in one place. Finish before your time runs out.</p>
|
||||||
<h3 class="text" id="loginButton" style="{{hea}}">Sign in</h3>
|
<h3 class="text" id="loginButton" style="{{hea}}">Sign in</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer id="loginFooter">
|
<footer id="loginFooter">
|
||||||
|
|||||||
@ -367,4 +367,11 @@ select {
|
|||||||
-moz-transition: background-color 0.2s ease;
|
-moz-transition: background-color 0.2s ease;
|
||||||
-ms-transition: background-color 0.2s ease;
|
-ms-transition: background-color 0.2s ease;
|
||||||
transition: background-color 0.2s ease;
|
transition: background-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainBody {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
@ -85,6 +85,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="optionsContainer" style="margin-right:{{optionsStatus}};background-color:{{divColor 'sidebar'}}">
|
<div id="optionsContainer" style="margin-right:{{optionsStatus}};background-color:{{divColor 'sidebar'}}">
|
||||||
</div>
|
</div>
|
||||||
|
<div id="mainBody">
|
||||||
|
</div>
|
||||||
<div class="overlay">
|
<div class="overlay">
|
||||||
<div class="overlayCont" style="{{overlayDim}};">
|
<div class="overlayCont" style="{{overlayDim}};">
|
||||||
<p>Are you sure?</p>
|
<p>Are you sure?</p>
|
||||||
|
|||||||
@ -36,10 +36,11 @@ Session.set("inputOpen",null);
|
|||||||
|
|
||||||
Cookie.set("theme","light",{'years':15});
|
Cookie.set("theme","light",{'years':15});
|
||||||
|
|
||||||
|
Template.registerHelper( 'divColor', (div) => {
|
||||||
|
return themeColors[Cookie.get("theme")][div];
|
||||||
|
})
|
||||||
|
|
||||||
Template.main.helpers({
|
Template.main.helpers({
|
||||||
divColor(div) {
|
|
||||||
return themeColors[Cookie.get("theme")][div];
|
|
||||||
},
|
|
||||||
iconColor(icon) {
|
iconColor(icon) {
|
||||||
let status = Session.get(icon+"Open");
|
let status = Session.get(icon+"Open");
|
||||||
if(status) {
|
if(status) {
|
||||||
@ -190,11 +191,25 @@ Template.main.events({
|
|||||||
Session.set("inputOpen", event.target.getAttribute("op"));
|
Session.set("inputOpen", event.target.getAttribute("op"));
|
||||||
openDivFade(event.target.parentNode.childNodes[4]);
|
openDivFade(event.target.parentNode.childNodes[4]);
|
||||||
},
|
},
|
||||||
|
'focus .creInputSel' (event) {
|
||||||
|
Session.set("inputOpen", event.target.getAttribute("op"));
|
||||||
|
openDivFade(event.target.parentNode.childNodes[4]);
|
||||||
|
},
|
||||||
'click .creOptions p' (event) {
|
'click .creOptions p' (event) {
|
||||||
var p = event.target;
|
var p = event.target;
|
||||||
p.parentNode.parentNode.childNodes[1].value = p.childNodes[0].nodeValue;
|
p.parentNode.parentNode.childNodes[1].value = p.childNodes[0].nodeValue;
|
||||||
closeDivFade(p.parentNode);
|
closeDivFade(p.parentNode);
|
||||||
|
p.parentNode.parentNode.childNodes[1].focus();
|
||||||
Session.set("inputOpen",null)
|
Session.set("inputOpen",null)
|
||||||
|
},
|
||||||
|
'click' (event) {
|
||||||
|
console.log(event.target.className);
|
||||||
|
var e = event.target.className;
|
||||||
|
if(!(e.includes("creInput") || e.includes("select"))) {
|
||||||
|
try {
|
||||||
|
closeDivFade(document.getElementsByClassName("creInputSel")[Session.get("inputOpen")].parentNode.childNodes[4]);
|
||||||
|
} catch(err) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 28 KiB |
Loading…
x
Reference in New Issue
Block a user