init rpr punch list
This commit is contained in:
parent
12cd85718f
commit
12230a0a2f
|
@ -0,0 +1,127 @@
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- Font -->
|
||||||
|
<!-- <link href='http://fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'> -->
|
||||||
|
<!-- CSS -->
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/skeleton.css">
|
||||||
|
<link rel="stylesheet" href="css/custom.css">
|
||||||
|
<!-- <link rel="stylesheet" type="text/css" href="style.css"> -->
|
||||||
|
<!-- No Cache -->
|
||||||
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||||
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
|
<meta http-equiv="Expires" content="0">
|
||||||
|
<script src="metadata.js"></script>
|
||||||
|
</head>
|
||||||
|
<body onLoad="getJson()">
|
||||||
|
|
||||||
|
<textarea id="data"></textarea><br />
|
||||||
|
<input onClick="getJson()" id="getJson" type="button" value="Get" />
|
||||||
|
<input onClick="putJson()" id="put" type="button" value="Put" />
|
||||||
|
<input onClick="test()" id="test" type="button" value="test" />
|
||||||
|
<br />
|
||||||
|
<p class="debug" readonly id="result"></p>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
|
||||||
|
function genUid() {
|
||||||
|
function chr4() {
|
||||||
|
return Math.random().toString(16).slice(-4);
|
||||||
|
}
|
||||||
|
return chr4() + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() + chr4() + chr4();
|
||||||
|
}
|
||||||
|
|
||||||
|
function getuuidJson() {
|
||||||
|
console.log(`getuuidJson`);
|
||||||
|
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
window.list = JSON.parse(req.responseText);
|
||||||
|
console.log(`uuidList - ${window.list}`);
|
||||||
|
injectUuid();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("GET", jsonUrl, true);
|
||||||
|
req.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
function injectUuid() {
|
||||||
|
length = window.list.length;
|
||||||
|
|
||||||
|
for (x = 0; x < length; x++) {
|
||||||
|
if (window.list[x].uuid === undefined) {
|
||||||
|
window.list[x].uuid = genUid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(window.list);
|
||||||
|
sendJson(jsonStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
function sendJson(data) {
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
document.getElementById("result").innerHTML += req.status + req.responseText + "<br />";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("PUT", jsonUrl, true);
|
||||||
|
req.setRequestHeader("Content-type", "application/json");
|
||||||
|
req.send(data);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//getuuidJson();
|
||||||
|
|
||||||
|
function test() {
|
||||||
|
d = document.getElementById("data").value;
|
||||||
|
document.getElementById("result").innerHTML = d;
|
||||||
|
}
|
||||||
|
|
||||||
|
function putJson() {
|
||||||
|
var data = document.getElementById("data").value;
|
||||||
|
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
document.getElementById("result").innerHTML += req.status + req.responseText + "<br />";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("PUT", jsonUrl, true);
|
||||||
|
req.setRequestHeader("Content-type", "application/json");
|
||||||
|
req.send(data);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function getJson() {
|
||||||
|
console.log(`getJson`);
|
||||||
|
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
document.getElementById("data").innerHTML = JSON.stringify(JSON.parse(req.responseText),null,2);
|
||||||
|
document.getElementById("result").innerHTML += req.status + "<br />";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("GET", jsonUrl, true);
|
||||||
|
req.send();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
|
@ -0,0 +1,50 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- Font -->
|
||||||
|
<!-- <link href='http://fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'> -->
|
||||||
|
<!-- CSS -->
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/skeleton.css">
|
||||||
|
<link rel="stylesheet" href="css/custom.css">
|
||||||
|
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
|
||||||
|
<!-- <link rel="stylesheet" type="text/css" href="style.css"> -->
|
||||||
|
<!-- No Cache -->
|
||||||
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||||
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
|
<meta http-equiv="Expires" content="0">
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||||
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
||||||
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||||
|
<script src="metadata.js"></script>
|
||||||
|
<script src="backlogManage.js"></script>
|
||||||
|
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
||||||
|
<script>
|
||||||
|
$( function() {
|
||||||
|
$( "#sortable" ).sortable();
|
||||||
|
$( "#sortable" ).disableSelection();
|
||||||
|
} );
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<button class="button" onClick="disableElement('punchListAll'), disableElement('punchDetail'), enableElement('newEvent')" id="put">New Punch Item</button>
|
||||||
|
<button class="button" onClick="genDaily()" id="daily">Gen Daily</button>
|
||||||
|
<button class="button" onClick="genWeekly()" id="daily">Gen Weekly</button>
|
||||||
|
<button class="button" onClick="getJson(genList)" id="getJson">Refresh</button>
|
||||||
|
<a class="button" href="https://thelinux.pro/broadcast_timer">Time Boxer</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="listWrapper" id="punchListAll">
|
||||||
|
<div id="punchListInProgressWrapper" class="listWrapper">
|
||||||
|
<span class="punchListHeader">Backlog</span>
|
||||||
|
<div id="punchListBacklog"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="debug1"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,412 @@
|
||||||
|
var punches, punchList, listLength, object;
|
||||||
|
|
||||||
|
function isItArray(object) {
|
||||||
|
console.log(`is ${object} Array = ${Array.isArray(object)}`);
|
||||||
|
// return Array.isArray(object);
|
||||||
|
}
|
||||||
|
|
||||||
|
function putJson(data) {
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
//document.getElementById("result").innerHTML = new Date().getTime() + " - " + req.status;
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("PUT", jsonUrl, true);
|
||||||
|
req.setRequestHeader("Content-type", "application/json");
|
||||||
|
req.send(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getJson() {
|
||||||
|
|
||||||
|
// var GoogleAuth = gapi.auth2.init();
|
||||||
|
// if (GoogleAuth.isSignedIn.get() === true) {
|
||||||
|
//displayMeta();
|
||||||
|
console.log(`getJson`);
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
window.punches = JSON.parse(req.responseText);
|
||||||
|
window.punches.sort(function(a, b){return a.priority - b.priority});
|
||||||
|
//callback(window.punches);
|
||||||
|
genStatuses(window.punches);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("GET", jsonUrl, true);
|
||||||
|
req.send();
|
||||||
|
// } else {
|
||||||
|
// console.log('not logged in');
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
function findArrayId(uid) {
|
||||||
|
var length = window.punches.length;
|
||||||
|
|
||||||
|
for (x = 0; x < length; x++) {
|
||||||
|
if (window.punches[x].uuid === uid) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function tagFilter(tagItem) {
|
||||||
|
console.log(`In tagFilter function`);
|
||||||
|
window.tagFilterItem = tagItem;
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearTagFilter() {
|
||||||
|
console.log(`Clear Tags`);
|
||||||
|
window.tagFilterItem = undefined;
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function getStatus(punchList, statusFilter) {
|
||||||
|
return punchList.filter(function(punch) { return punch.progress.toLowerCase() != statusFilter; });
|
||||||
|
}
|
||||||
|
|
||||||
|
function genStatuses(punchList) {
|
||||||
|
// genList(getStatus(punchList, "in progress"), "punchListInProgress");
|
||||||
|
// genList(getStatus(punchList, "new"), "punchListNew");
|
||||||
|
genList(getStatus(punchList, ""), "punchListBacklog");
|
||||||
|
}
|
||||||
|
|
||||||
|
function genBacklog(punchList) {
|
||||||
|
genList(punchList, "punchListBacklog");
|
||||||
|
}
|
||||||
|
|
||||||
|
function genList(punchList, element) {
|
||||||
|
enableElement("punchListAll");
|
||||||
|
var itemStyle = "punches";
|
||||||
|
// isItArray(punchList);
|
||||||
|
|
||||||
|
// punchList.sort(function(a, b){return new Date(a.date).getTime() - new Date(b.date).getTime()});
|
||||||
|
listLength = punchList.length;
|
||||||
|
|
||||||
|
var list = '<ol id="sortable">';
|
||||||
|
|
||||||
|
for (i = 0; i < listLength; i++) {
|
||||||
|
if (punchList[i].progress.toLowerCase() === "in progress") { var style = "inProgress" } else { var style = "punch-default" }
|
||||||
|
if (punchList[i].progress.toLowerCase() === "done" && punchList[i].priority != 99999) {
|
||||||
|
setPriority(punchList[i].uuid, 99999);
|
||||||
|
} else if (punchList[i].progress.toLowerCase() != "done"){
|
||||||
|
list += '<li class="' + style + '"><div class="portlet"><div class="backlog-list-header">' + punchList[i].priority + '<div class=subject>' + punchList[i].subject + '</div></div><div class="backlog-list-content"><div style="punch-list-backlog-details">' + punchList[i].progress + '<br /> Created:' + punchList[i].cDate + '<br /> Modified: ' + punchList[i].mDate + '<br /><textarea>' + punchList[i].notes + '</textarea><br /><input onfocus="clearDefault(this)" type="text" id="tag" value="Add tag"><input onClick="addTag()" type=button value="Add" /> </div></div></div></div></li>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
list += "</ol>";
|
||||||
|
document.getElementById(element).innerHTML = list;
|
||||||
|
|
||||||
|
mkSortable();
|
||||||
|
}
|
||||||
|
|
||||||
|
function mkSortable() {
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
$( function() {
|
||||||
|
$( "#sortable" ).sortable({
|
||||||
|
cancel: ".portlet-toggle",
|
||||||
|
placeholder: "portlet-placeholder ui-corner-all",
|
||||||
|
start: function(event, ui) {
|
||||||
|
window.sortObjectUUID = punchList[ui.item.index()].uuid;
|
||||||
|
console.log(`Start Position: ${ui.item.index()}`);
|
||||||
|
},
|
||||||
|
stop: function(event, ui) {
|
||||||
|
setPriority(window.sortObjectUUID, ui.item.index());
|
||||||
|
console.log(`New Position: ${ui.item.index()}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$( ".portlet" )
|
||||||
|
.addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
|
||||||
|
.find( ".backlog-list-header" )
|
||||||
|
.addClass( "ui-widget-header ui-corner-all" )
|
||||||
|
.prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");
|
||||||
|
|
||||||
|
$( ".portlet-toggle" ).on( "click", function() {
|
||||||
|
var icon = $( this );
|
||||||
|
icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
|
||||||
|
icon.closest( ".portlet" ).find( ".backlog-list-content" ).toggle();
|
||||||
|
});
|
||||||
|
$( "#sortable" ).disableSelection();
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
function setPriority(sortObject, newPosition) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(sortObject);
|
||||||
|
|
||||||
|
for (i = 0; i < punchList.length; i++) {
|
||||||
|
if (punchList[i].priority < 100 && punchList[i].priority >= newPosition && punchList[i].uuid != punchList[item].uuid) {
|
||||||
|
punchList[i].priority = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
punchList[item].priority = newPosition;
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
function startPunch(uuid) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
|
||||||
|
punchList[item].progress = "In Progress";
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
function completePunch(uuid) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
punchList[item].progress = "Done";
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
function enablePunchDetail(uuid) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
console.log(`inside enablePunchDetail`);
|
||||||
|
disableElement("punchListAll");
|
||||||
|
enableElement("punchDetail");
|
||||||
|
// html = "";
|
||||||
|
html = "<p>subject: " + punchList[item].subject + "<br />Created: " + punchList[item].cDate + "<br />Modified Date: " + punchList[item].mDate + "<br />Priority: " + punchList[item].priority + "<br />Progress: " + punchList[item].progress + "<br /><textarea>" + punchList[item].notes + "</textarea><br /><input onfocus='clearDefault(this)' type='text' id='tag' value='Add tag'><input onClick='addTag()' type=button value='Add' /></p><input type=button value=close onClick=getJson()>";
|
||||||
|
document.getElementById("punchDetail").innerHTML = html;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createNewEvent() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
// console.log(`${punchList}`);
|
||||||
|
// console.log(`${window.punches}`);
|
||||||
|
// disableElement("punchList");
|
||||||
|
// disableElement("punchDetail");
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var subjectField = document.getElementById("newSubject").value;
|
||||||
|
var priorityField = document.getElementById("newPriority").value;
|
||||||
|
var progressField = document.getElementById("newProgress").value;
|
||||||
|
var nDateField = document.getElementById("timepickerCreate").value;
|
||||||
|
var notesField = document.getElementById("newNotes").value;
|
||||||
|
|
||||||
|
var newEventJson = { uuid: genUid(), nDate: nDateField, subject: subjectField, priority: priorityField, progress: progressField, notes: notesField };
|
||||||
|
punchList.push(newEventJson);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
disableElement("newEvent");
|
||||||
|
enableElement("punchListAll");
|
||||||
|
// document.getElementById("newEventList").innerHTML = jsonStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
function genDaily() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var daily = [ "Check Workday", "Check Expenses", "Check Change Cases", "Check TD's", "Check at-mentions" ];
|
||||||
|
console.log(`${daily[1]}`);
|
||||||
|
|
||||||
|
for (x = 0; x < daily.length; x++) {
|
||||||
|
var newEventJson = { uuid: genUid(), nDate: "EOD", subject: daily[x], priority: "1", progress: "new", notes: "", tags: [ "work", "daily", "today" ] };
|
||||||
|
punchList.push(newEventJson);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function genWeekly() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var weekly = [ "Update ORB Notes", "Prep Weekly Meeting", "Build out Broadcast Timer" ];
|
||||||
|
|
||||||
|
for (x = 0; x < weekly.length; x++) {
|
||||||
|
var newEventJson = { uuid: genUid(), nDate: "Tuesday", subject: weekly[x], priority: "1", progress: "new", notes: "", tags: [ "work", "weekly" ] };
|
||||||
|
punchList.push(newEventJson);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function deletePunch(uuid) {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
// console.log(`${punchList}`);
|
||||||
|
// console.log(`${window.punches}`);
|
||||||
|
punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
|
||||||
|
console.log(`splicing ${item}`);
|
||||||
|
|
||||||
|
|
||||||
|
punchList.splice(item, 1);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
// document.getElementById("newEventList").innerHTML = jsonStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function enableElement(element) {
|
||||||
|
console.log(`enabling ${element}`);
|
||||||
|
document.getElementById(element).style.display = "block";
|
||||||
|
}
|
||||||
|
|
||||||
|
function disableElement(element) {
|
||||||
|
console.log(`disabling ${element}`);
|
||||||
|
document.getElementById(element).style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayMeta() {
|
||||||
|
document.getElementById("meta").innerHTML = "Version: " + version ;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleShowDone() {
|
||||||
|
if (showDone === false) {
|
||||||
|
window.showDone = true;
|
||||||
|
} else if (showDone === true) {
|
||||||
|
window.showDone = false;
|
||||||
|
} else {
|
||||||
|
window.showDone = false;
|
||||||
|
}
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function editPunch(uuid) {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
disableElement("newEvent");
|
||||||
|
disableElement("punchListAll");
|
||||||
|
enableElement("editPunch");
|
||||||
|
|
||||||
|
punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
|
||||||
|
var id = item;
|
||||||
|
|
||||||
|
var subject = punchList[id].subject;
|
||||||
|
var priority = punchList[id].priority;
|
||||||
|
var progress = punchList[id].progress;
|
||||||
|
var nDate = punchList[id].nDate;
|
||||||
|
var notes = punchList[id].notes;
|
||||||
|
|
||||||
|
document.getElementById("editID").value = id;
|
||||||
|
document.getElementById("editSubject").value = subject;
|
||||||
|
document.getElementById("timepickerEdit").value = nDate;
|
||||||
|
document.getElementById("editNotes").value = notes;
|
||||||
|
document.getElementById("editProgress").value = progress;
|
||||||
|
document.getElementById("editPriority").value = priority;
|
||||||
|
}
|
||||||
|
|
||||||
|
function submitEditPunch() {
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var id = document.getElementById("editID").value;
|
||||||
|
var subjectField = document.getElementById("editSubject").value;
|
||||||
|
var priorityField = document.getElementById("editPriority").value;
|
||||||
|
var progressField = document.getElementById("editProgress").value;
|
||||||
|
var nDateField = document.getElementById("timepickerEdit").value;
|
||||||
|
var notesField = document.getElementById("editNotes").value;
|
||||||
|
|
||||||
|
punchList[id].subject = subjectField;
|
||||||
|
punchList[id].priority = priorityField;
|
||||||
|
punchList[id].progress = progressField;
|
||||||
|
punchList[id].nDate = nDateField;
|
||||||
|
punchList[id].notes = notesField;
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
disableElement("editPunch");
|
||||||
|
}
|
||||||
|
|
||||||
|
function addTag() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
var item = document.getElementById("editID").value;
|
||||||
|
var newTag = document.getElementById("tag").value.toLowerCase();
|
||||||
|
|
||||||
|
console.log(`Item: ${item}`);
|
||||||
|
console.log(`New Tag: ${newTag}`);
|
||||||
|
// make sure tags object exists
|
||||||
|
if (punchList[item].tags === undefined) {
|
||||||
|
console.log(`Adding tags object to punchList[${item}]`);
|
||||||
|
punchList[item].tags = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
punchList[item].tags.push(newTag);
|
||||||
|
console.log(`${punchList[item].tags}`);
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
disableElement("editPunch");
|
||||||
|
enableElement("punchListAll");
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearDefault(a){
|
||||||
|
if (a.defaultValue == a.value) {
|
||||||
|
a.value="";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function genUid() {
|
||||||
|
function chr4() {
|
||||||
|
return Math.random().toString(16).slice(-4);
|
||||||
|
}
|
||||||
|
return chr4() + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() + chr4() + chr4();
|
||||||
|
}
|
||||||
|
|
||||||
|
//google stuff
|
||||||
|
function onSignIn(googleUser) {
|
||||||
|
// var profile = googleUser.getBasicProfile();
|
||||||
|
// console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
|
||||||
|
// console.log('Name: ' + profile.getName());
|
||||||
|
// console.log('Image URL: ' + profile.getImageUrl());
|
||||||
|
// console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
|
||||||
|
// getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function signOut() {
|
||||||
|
var auth2 = gapi.auth2.getAuthInstance();
|
||||||
|
auth2.signOut().then(function () {
|
||||||
|
console.log('User signed out.');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
$('li').on("click", function(event){
|
||||||
|
var target = event.target,
|
||||||
|
index = $(target).index();
|
||||||
|
console.log(target, index);
|
||||||
|
document.getElementById("debug1").innerHTML = target + "<br />" + index;
|
||||||
|
});
|
|
@ -0,0 +1,54 @@
|
||||||
|
|
||||||
|
function clock_cal_date() {
|
||||||
|
var d = new Date();
|
||||||
|
var r = d.getFullYear() + "/" + d.getMonth() + "/" + d.getDate();
|
||||||
|
return r
|
||||||
|
}
|
||||||
|
|
||||||
|
function clock_date() {
|
||||||
|
|
||||||
|
// A regular clock
|
||||||
|
|
||||||
|
var d = new Date();
|
||||||
|
var hour = d.getHours();
|
||||||
|
var minute = d.getMinutes();
|
||||||
|
var second = d.getSeconds();
|
||||||
|
|
||||||
|
if (hour < 10 && hour >= 0) {
|
||||||
|
hour = ('0' + hour);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (minute < 10 && minute >= 0) {
|
||||||
|
minute = ('0' + minute);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (second < 10 && second >= 0) {
|
||||||
|
second = ('0' + second);
|
||||||
|
}
|
||||||
|
|
||||||
|
var r = hour + ":" + minute + ":" + second;
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
function clock_dateUTC() {
|
||||||
|
// Same for UTC
|
||||||
|
var d = new Date();
|
||||||
|
var hourUTC = d.getUTCHours();
|
||||||
|
var minuteUTC = d.getUTCMinutes();
|
||||||
|
var secondUTC = d.getUTCSeconds();
|
||||||
|
|
||||||
|
if (hourUTC < 10) {
|
||||||
|
hourUTC = ('0' + hourUTC);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (minuteUTC < 10) {
|
||||||
|
minuteUTC = ('0' + minuteUTC);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (secondUTC < 10) {
|
||||||
|
secondUTC = ('0' + secondUTC);
|
||||||
|
}
|
||||||
|
|
||||||
|
var r = hourUTC + ":" + minuteUTC + ":" + secondUTC;
|
||||||
|
return r
|
||||||
|
}
|
|
@ -0,0 +1,325 @@
|
||||||
|
#sortable { list-style-type: none; margin: 0; padding: 0; width: 100%; }
|
||||||
|
#sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; color: #AAA;}
|
||||||
|
#sortable li span { position: absolute; margin-left: -1.3em; }
|
||||||
|
.portlet {
|
||||||
|
margin: 0 1em 1em 0;
|
||||||
|
padding: 0.3em;
|
||||||
|
}
|
||||||
|
.backlog-list-header {
|
||||||
|
padding: 0.2em 0.3em;
|
||||||
|
margin-bottom: 0.1em;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.portlet-toggle {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 0;
|
||||||
|
margin-top: -8px;
|
||||||
|
}
|
||||||
|
.backlog-list-content {
|
||||||
|
display: none;
|
||||||
|
padding: 0.4em;
|
||||||
|
}
|
||||||
|
.portlet-placeholder {
|
||||||
|
border: 1px dotted black;
|
||||||
|
margin: 0 1em 1em 0;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
.punch-default { border: 0px solid #AAA; background: #000; }
|
||||||
|
.inProgress { background: /*#80ffcc;*/ #555; color: #000; }
|
||||||
|
.hide { display: none; }
|
||||||
|
.punch-list-backlog-details {
|
||||||
|
font-size: 18px;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
background: #222;
|
||||||
|
color: #AAA; }
|
||||||
|
textarea {
|
||||||
|
background: #111;
|
||||||
|
width:80%;
|
||||||
|
height:50%;
|
||||||
|
color: lime;
|
||||||
|
border: 1px solid #999; }
|
||||||
|
.listWrapper:after {
|
||||||
|
content: "";
|
||||||
|
clear: both; }
|
||||||
|
.listWrapper {
|
||||||
|
margin: 5px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border: 1px solid #999; }
|
||||||
|
.punchListHeader {
|
||||||
|
color: #00bfff;
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 999; }
|
||||||
|
.one.column,
|
||||||
|
.one.columns { width: 4.66666666667%; }
|
||||||
|
.two.columns { width: 13.3333333333%; }
|
||||||
|
.three.columns { width: 22%; }
|
||||||
|
.four.columns { width: 30.6666666667%; }
|
||||||
|
.five.columns { width: 39.3333333333%; }
|
||||||
|
.six.columns { width: 48%; }
|
||||||
|
.seven.columns { width: 56.6666666667%; }
|
||||||
|
.eight.columns { width: 65.3333333333%; }
|
||||||
|
.nine.columns { width: 74.0%; }
|
||||||
|
.ten.columns { width: 82.6666666667%; }
|
||||||
|
.eleven.columns { width: 91.3333333333%; }
|
||||||
|
.twelve.columns { width: 100%; margin-left: 0; }
|
||||||
|
#newEvent {
|
||||||
|
display: none;}
|
||||||
|
#editPunch {
|
||||||
|
display: none; }
|
||||||
|
.punchlist {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
display: table;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
border-bottom: 1px solid #eee; }
|
||||||
|
.punchlist::after {
|
||||||
|
content: "";
|
||||||
|
clear: both; }
|
||||||
|
.top-bottom-border {
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
border-bottom: 1px solid #eee; }
|
||||||
|
.navbar {
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #333;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar a {
|
||||||
|
float: left;
|
||||||
|
font-size: 16px;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
padding: 14px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown {
|
||||||
|
float: left;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown .dropbtn {
|
||||||
|
cursor: pointer;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-size: 16px;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
color: white;
|
||||||
|
padding: 14px 16px;
|
||||||
|
background-color: inherit;
|
||||||
|
font-family: inherit;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
min-width: 160px;
|
||||||
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content a {
|
||||||
|
float: none;
|
||||||
|
color: black;
|
||||||
|
padding: 12px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content a:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.show {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.warn { color: yellow; }
|
||||||
|
.green { color: lime; }
|
||||||
|
.over { color: red; }
|
||||||
|
.current { color: orange; }
|
||||||
|
.punches-current {
|
||||||
|
background: #555; }
|
||||||
|
.subject {
|
||||||
|
width: 89%;
|
||||||
|
float: left;
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 900; }
|
||||||
|
.countdown {
|
||||||
|
float: right;
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 900; }
|
||||||
|
.punches {
|
||||||
|
/* display: block; */
|
||||||
|
/*width: 99%; */
|
||||||
|
text-align: left; }
|
||||||
|
.notes {
|
||||||
|
background: #000;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
color: #fff;
|
||||||
|
max-width: 100%; }
|
||||||
|
.debug {
|
||||||
|
background: #000;
|
||||||
|
color: lime;
|
||||||
|
margin-top: 15px;
|
||||||
|
border: 1px solid lime; }
|
||||||
|
.clock {
|
||||||
|
display: none;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #AAA;
|
||||||
|
padding: 5px;
|
||||||
|
margin-bottom: 0px; }
|
||||||
|
.centerMiddle {
|
||||||
|
padding:0px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle; }
|
||||||
|
.button {
|
||||||
|
display: block;
|
||||||
|
padding: 0px;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
vertical-align: middle;
|
||||||
|
border: 1px solid #333;
|
||||||
|
background-color: #4CAF50;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: 98%;
|
||||||
|
height: 50px;}
|
||||||
|
.nav-button {
|
||||||
|
vertical-align: middle;
|
||||||
|
float: right }
|
||||||
|
.container {
|
||||||
|
width: 99%;
|
||||||
|
max-width: 99%;
|
||||||
|
padding: 0 5px; }
|
||||||
|
.header {
|
||||||
|
background-color: #666;
|
||||||
|
margin-top: 6rem;
|
||||||
|
text-align: center; }
|
||||||
|
.header.columns {
|
||||||
|
background: #666; }
|
||||||
|
.navbar {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 600;
|
||||||
|
background: #222;
|
||||||
|
/*display: none;*/ }
|
||||||
|
.punches {
|
||||||
|
text-align: left; }
|
||||||
|
|
||||||
|
/* Larger than phone */
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.button {
|
||||||
|
padding: 0px;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 1rem;
|
||||||
|
vertical-align: middle;
|
||||||
|
border: 1px solid #333;
|
||||||
|
background-color: #4CAF50;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: 20%;
|
||||||
|
height: 40px;
|
||||||
|
float: right;}
|
||||||
|
.nav-button {
|
||||||
|
vertical-align: middle;
|
||||||
|
float: right }
|
||||||
|
.two-thirds.column { width: 68.8%; }
|
||||||
|
.column,
|
||||||
|
.columns {
|
||||||
|
background: transparent;
|
||||||
|
margin-left: 3px; }
|
||||||
|
.clock-wrapper {
|
||||||
|
display: block;
|
||||||
|
min-width: 50px;
|
||||||
|
}
|
||||||
|
.clock {
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #AAA;
|
||||||
|
padding: 5px;
|
||||||
|
margin-bottom: 0px; }
|
||||||
|
.header {
|
||||||
|
background-color: #666;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 6rem; }
|
||||||
|
.punches {
|
||||||
|
text-align: left; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Larger than tablet */
|
||||||
|
@media (min-width: 750px) {
|
||||||
|
body { margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: 800px; }
|
||||||
|
/* Navbar */
|
||||||
|
.clock-wrapper {
|
||||||
|
display: block;
|
||||||
|
min-width: 50px; }
|
||||||
|
.clock {
|
||||||
|
display: block;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #AAA;
|
||||||
|
padding: 5px;
|
||||||
|
margin-bottom: 0px; }
|
||||||
|
.navbar,
|
||||||
|
.navbar-spacer {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 6.5rem;
|
||||||
|
background: #222;
|
||||||
|
z-index: 99;
|
||||||
|
border-top: 0px solid #eee;
|
||||||
|
border-bottom: 1px solid #eee; }
|
||||||
|
.navbar-spacer {
|
||||||
|
display: none; }
|
||||||
|
.navbar > .container {
|
||||||
|
width: 100%; }
|
||||||
|
.navbar-list {
|
||||||
|
list-style: none;
|
||||||
|
margin-bottom: 0; }
|
||||||
|
.navbar-item {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
margin-bottom: 0; }
|
||||||
|
.navbar-link {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: .2rem;
|
||||||
|
margin-right: 35px;
|
||||||
|
text-decoration: none;
|
||||||
|
line-height: 6.5rem;
|
||||||
|
color: #222; }
|
||||||
|
.navbar-link.active {
|
||||||
|
color: #33C3F0; }
|
||||||
|
.has-docked-nav .navbar {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0; }
|
||||||
|
.has-docked-nav .navbar-spacer {
|
||||||
|
display: block; }
|
||||||
|
/* Re-overiding the width 100% declaration to match size of % based container */
|
||||||
|
.has-docked-nav .navbar > .container {
|
||||||
|
width: 80%; }
|
||||||
|
}
|
|
@ -0,0 +1,622 @@
|
||||||
|
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.datepicker--cell-day.-other-month-:hover, .datepicker--cell-year.-other-decade-:hover {
|
||||||
|
color: #c5c5c5; }
|
||||||
|
.-disabled-.-focus-.datepicker--cell-day.-other-month-, .-disabled-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #fff;
|
||||||
|
background: #a2ddf6; }
|
||||||
|
.-selected-.-focus-.datepicker--cell-day.-other-month-, .-selected-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background: #8ad5f4; }
|
||||||
|
.-in-range-.datepicker--cell-day.-other-month-, .-in-range-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
color: #cccccc; }
|
||||||
|
.-in-range-.-focus-.datepicker--cell-day.-other-month-, .-in-range-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.2); }
|
||||||
|
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
|
||||||
|
background: none;
|
||||||
|
border: none; }
|
||||||
|
|
||||||
|
/* -------------------------------------------------
|
||||||
|
Datepicker cells
|
||||||
|
------------------------------------------------- */
|
||||||
|
.datepicker--cells {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-wrap: wrap;
|
||||||
|
-ms-flex-wrap: wrap;
|
||||||
|
flex-wrap: wrap; }
|
||||||
|
|
||||||
|
.datepicker--cell {
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
cursor: pointer;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 32px;
|
||||||
|
z-index: 1; }
|
||||||
|
.datepicker--cell.-focus- {
|
||||||
|
background: #f0f0f0; }
|
||||||
|
.datepicker--cell.-current- {
|
||||||
|
color: #4EB5E6; }
|
||||||
|
.datepicker--cell.-current-.-focus- {
|
||||||
|
color: #4a4a4a; }
|
||||||
|
.datepicker--cell.-current-.-in-range- {
|
||||||
|
color: #4EB5E6; }
|
||||||
|
.datepicker--cell.-in-range- {
|
||||||
|
background: rgba(92, 196, 239, 0.1);
|
||||||
|
color: #4a4a4a;
|
||||||
|
border-radius: 0; }
|
||||||
|
.datepicker--cell.-in-range-.-focus- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.2); }
|
||||||
|
.datepicker--cell.-disabled- {
|
||||||
|
cursor: default;
|
||||||
|
color: #aeaeae; }
|
||||||
|
.datepicker--cell.-disabled-.-focus- {
|
||||||
|
color: #aeaeae; }
|
||||||
|
.datepicker--cell.-disabled-.-in-range- {
|
||||||
|
color: #a1a1a1; }
|
||||||
|
.datepicker--cell.-disabled-.-current-.-focus- {
|
||||||
|
color: #aeaeae; }
|
||||||
|
.datepicker--cell.-range-from- {
|
||||||
|
border: 1px solid rgba(92, 196, 239, 0.5);
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
border-radius: 4px 0 0 4px; }
|
||||||
|
.datepicker--cell.-range-to- {
|
||||||
|
border: 1px solid rgba(92, 196, 239, 0.5);
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
border-radius: 0 4px 4px 0; }
|
||||||
|
.datepicker--cell.-range-from-.-range-to- {
|
||||||
|
border-radius: 4px; }
|
||||||
|
.datepicker--cell.-selected- {
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
background: #5cc4ef; }
|
||||||
|
.datepicker--cell.-selected-.-current- {
|
||||||
|
color: #fff;
|
||||||
|
background: #5cc4ef; }
|
||||||
|
.datepicker--cell.-selected-.-focus- {
|
||||||
|
background: #45bced; }
|
||||||
|
.datepicker--cell:empty {
|
||||||
|
cursor: default; }
|
||||||
|
|
||||||
|
.datepicker--days-names {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-wrap: wrap;
|
||||||
|
-ms-flex-wrap: wrap;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin: 8px 0 3px; }
|
||||||
|
|
||||||
|
.datepicker--day-name {
|
||||||
|
color: #FF9A19;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
-webkit-flex: 1;
|
||||||
|
-ms-flex: 1;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: .8em; }
|
||||||
|
|
||||||
|
.datepicker--cell-day {
|
||||||
|
width: 14.28571%; }
|
||||||
|
|
||||||
|
.datepicker--cells-months {
|
||||||
|
height: 170px; }
|
||||||
|
|
||||||
|
.datepicker--cell-month {
|
||||||
|
width: 33.33%;
|
||||||
|
height: 25%; }
|
||||||
|
|
||||||
|
.datepicker--years {
|
||||||
|
height: 170px; }
|
||||||
|
|
||||||
|
.datepicker--cells-years {
|
||||||
|
height: 170px; }
|
||||||
|
|
||||||
|
.datepicker--cell-year {
|
||||||
|
width: 25%;
|
||||||
|
height: 33.33%; }
|
||||||
|
|
||||||
|
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.datepicker--cell-day.-other-month-:hover, .datepicker--cell-year.-other-decade-:hover {
|
||||||
|
color: #c5c5c5; }
|
||||||
|
.-disabled-.-focus-.datepicker--cell-day.-other-month-, .-disabled-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #fff;
|
||||||
|
background: #a2ddf6; }
|
||||||
|
.-selected-.-focus-.datepicker--cell-day.-other-month-, .-selected-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background: #8ad5f4; }
|
||||||
|
.-in-range-.datepicker--cell-day.-other-month-, .-in-range-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
color: #cccccc; }
|
||||||
|
.-in-range-.-focus-.datepicker--cell-day.-other-month-, .-in-range-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.2); }
|
||||||
|
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
|
||||||
|
background: none;
|
||||||
|
border: none; }
|
||||||
|
|
||||||
|
/* -------------------------------------------------
|
||||||
|
Datepicker
|
||||||
|
------------------------------------------------- */
|
||||||
|
.datepickers-container {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0; }
|
||||||
|
@media print {
|
||||||
|
.datepickers-container {
|
||||||
|
display: none; } }
|
||||||
|
|
||||||
|
.datepicker {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #dbdbdb;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: content-box;
|
||||||
|
font-family: Tahoma, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #4a4a4a;
|
||||||
|
width: 250px;
|
||||||
|
position: absolute;
|
||||||
|
left: -100000px;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.3s ease, left 0s 0.3s, -webkit-transform 0.3s ease;
|
||||||
|
transition: opacity 0.3s ease, transform 0.3s ease, left 0s 0.3s;
|
||||||
|
transition: opacity 0.3s ease, transform 0.3s ease, left 0s 0.3s, -webkit-transform 0.3s ease;
|
||||||
|
z-index: 100; }
|
||||||
|
.datepicker.-from-top- {
|
||||||
|
-webkit-transform: translateY(-8px);
|
||||||
|
transform: translateY(-8px); }
|
||||||
|
.datepicker.-from-right- {
|
||||||
|
-webkit-transform: translateX(8px);
|
||||||
|
transform: translateX(8px); }
|
||||||
|
.datepicker.-from-bottom- {
|
||||||
|
-webkit-transform: translateY(8px);
|
||||||
|
transform: translateY(8px); }
|
||||||
|
.datepicker.-from-left- {
|
||||||
|
-webkit-transform: translateX(-8px);
|
||||||
|
transform: translateX(-8px); }
|
||||||
|
.datepicker.active {
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transform: translate(0);
|
||||||
|
transform: translate(0);
|
||||||
|
transition: opacity 0.3s ease, left 0s 0s, -webkit-transform 0.3s ease;
|
||||||
|
transition: opacity 0.3s ease, transform 0.3s ease, left 0s 0s;
|
||||||
|
transition: opacity 0.3s ease, transform 0.3s ease, left 0s 0s, -webkit-transform 0.3s ease; }
|
||||||
|
|
||||||
|
.datepicker-inline .datepicker {
|
||||||
|
border-color: #d7d7d7;
|
||||||
|
box-shadow: none;
|
||||||
|
position: static;
|
||||||
|
left: auto;
|
||||||
|
right: auto;
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transform: none;
|
||||||
|
transform: none; }
|
||||||
|
|
||||||
|
.datepicker-inline .datepicker--pointer {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
|
.datepicker--content {
|
||||||
|
box-sizing: content-box;
|
||||||
|
padding: 4px; }
|
||||||
|
.-only-timepicker- .datepicker--content {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
|
.datepicker--pointer {
|
||||||
|
position: absolute;
|
||||||
|
background: #fff;
|
||||||
|
border-top: 1px solid #dbdbdb;
|
||||||
|
border-right: 1px solid #dbdbdb;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
z-index: -1; }
|
||||||
|
.-top-left- .datepicker--pointer, .-top-center- .datepicker--pointer, .-top-right- .datepicker--pointer {
|
||||||
|
top: calc(100% - 4px);
|
||||||
|
-webkit-transform: rotate(135deg);
|
||||||
|
transform: rotate(135deg); }
|
||||||
|
.-right-top- .datepicker--pointer, .-right-center- .datepicker--pointer, .-right-bottom- .datepicker--pointer {
|
||||||
|
right: calc(100% - 4px);
|
||||||
|
-webkit-transform: rotate(225deg);
|
||||||
|
transform: rotate(225deg); }
|
||||||
|
.-bottom-left- .datepicker--pointer, .-bottom-center- .datepicker--pointer, .-bottom-right- .datepicker--pointer {
|
||||||
|
bottom: calc(100% - 4px);
|
||||||
|
-webkit-transform: rotate(315deg);
|
||||||
|
transform: rotate(315deg); }
|
||||||
|
.-left-top- .datepicker--pointer, .-left-center- .datepicker--pointer, .-left-bottom- .datepicker--pointer {
|
||||||
|
left: calc(100% - 4px);
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
transform: rotate(45deg); }
|
||||||
|
.-top-left- .datepicker--pointer, .-bottom-left- .datepicker--pointer {
|
||||||
|
left: 10px; }
|
||||||
|
.-top-right- .datepicker--pointer, .-bottom-right- .datepicker--pointer {
|
||||||
|
right: 10px; }
|
||||||
|
.-top-center- .datepicker--pointer, .-bottom-center- .datepicker--pointer {
|
||||||
|
left: calc(50% - 10px / 2); }
|
||||||
|
.-left-top- .datepicker--pointer, .-right-top- .datepicker--pointer {
|
||||||
|
top: 10px; }
|
||||||
|
.-left-bottom- .datepicker--pointer, .-right-bottom- .datepicker--pointer {
|
||||||
|
bottom: 10px; }
|
||||||
|
.-left-center- .datepicker--pointer, .-right-center- .datepicker--pointer {
|
||||||
|
top: calc(50% - 10px / 2); }
|
||||||
|
|
||||||
|
.datepicker--body {
|
||||||
|
display: none; }
|
||||||
|
.datepicker--body.active {
|
||||||
|
display: block; }
|
||||||
|
|
||||||
|
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.datepicker--cell-day.-other-month-:hover, .datepicker--cell-year.-other-decade-:hover {
|
||||||
|
color: #c5c5c5; }
|
||||||
|
.-disabled-.-focus-.datepicker--cell-day.-other-month-, .-disabled-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #fff;
|
||||||
|
background: #a2ddf6; }
|
||||||
|
.-selected-.-focus-.datepicker--cell-day.-other-month-, .-selected-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background: #8ad5f4; }
|
||||||
|
.-in-range-.datepicker--cell-day.-other-month-, .-in-range-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
color: #cccccc; }
|
||||||
|
.-in-range-.-focus-.datepicker--cell-day.-other-month-, .-in-range-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.2); }
|
||||||
|
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
|
||||||
|
background: none;
|
||||||
|
border: none; }
|
||||||
|
|
||||||
|
/* -------------------------------------------------
|
||||||
|
Navigation
|
||||||
|
------------------------------------------------- */
|
||||||
|
.datepicker--nav {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-justify-content: space-between;
|
||||||
|
-ms-flex-pack: justify;
|
||||||
|
justify-content: space-between;
|
||||||
|
border-bottom: 1px solid #efefef;
|
||||||
|
min-height: 32px;
|
||||||
|
padding: 4px; }
|
||||||
|
.-only-timepicker- .datepicker--nav {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
|
.datepicker--nav-title,
|
||||||
|
.datepicker--nav-action {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
cursor: pointer;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center; }
|
||||||
|
|
||||||
|
.datepicker--nav-action {
|
||||||
|
width: 32px;
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none; }
|
||||||
|
.datepicker--nav-action:hover {
|
||||||
|
background: #f0f0f0; }
|
||||||
|
.datepicker--nav-action.-disabled- {
|
||||||
|
visibility: hidden; }
|
||||||
|
.datepicker--nav-action svg {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px; }
|
||||||
|
.datepicker--nav-action path {
|
||||||
|
fill: none;
|
||||||
|
stroke: #9c9c9c;
|
||||||
|
stroke-width: 2px; }
|
||||||
|
|
||||||
|
.datepicker--nav-title {
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0 8px; }
|
||||||
|
.datepicker--nav-title i {
|
||||||
|
font-style: normal;
|
||||||
|
color: #9c9c9c;
|
||||||
|
margin-left: 5px; }
|
||||||
|
.datepicker--nav-title:hover {
|
||||||
|
background: #f0f0f0; }
|
||||||
|
.datepicker--nav-title.-disabled- {
|
||||||
|
cursor: default;
|
||||||
|
background: none; }
|
||||||
|
|
||||||
|
.datepicker--buttons {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
padding: 4px;
|
||||||
|
border-top: 1px solid #efefef; }
|
||||||
|
|
||||||
|
.datepicker--button {
|
||||||
|
color: #4EB5E6;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 4px;
|
||||||
|
-webkit-flex: 1;
|
||||||
|
-ms-flex: 1;
|
||||||
|
flex: 1;
|
||||||
|
display: -webkit-inline-flex;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: inline-flex;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 32px; }
|
||||||
|
.datepicker--button:hover {
|
||||||
|
color: #4a4a4a;
|
||||||
|
background: #f0f0f0; }
|
||||||
|
|
||||||
|
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.datepicker--cell-day.-other-month-:hover, .datepicker--cell-year.-other-decade-:hover {
|
||||||
|
color: #c5c5c5; }
|
||||||
|
.-disabled-.-focus-.datepicker--cell-day.-other-month-, .-disabled-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #fff;
|
||||||
|
background: #a2ddf6; }
|
||||||
|
.-selected-.-focus-.datepicker--cell-day.-other-month-, .-selected-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background: #8ad5f4; }
|
||||||
|
.-in-range-.datepicker--cell-day.-other-month-, .-in-range-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
color: #cccccc; }
|
||||||
|
.-in-range-.-focus-.datepicker--cell-day.-other-month-, .-in-range-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.2); }
|
||||||
|
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
|
||||||
|
background: none;
|
||||||
|
border: none; }
|
||||||
|
|
||||||
|
/* -------------------------------------------------
|
||||||
|
Timepicker
|
||||||
|
------------------------------------------------- */
|
||||||
|
.datepicker--time {
|
||||||
|
border-top: 1px solid #efefef;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
padding: 4px;
|
||||||
|
position: relative; }
|
||||||
|
.datepicker--time.-am-pm- .datepicker--time-sliders {
|
||||||
|
-webkit-flex: 0 1 138px;
|
||||||
|
-ms-flex: 0 1 138px;
|
||||||
|
flex: 0 1 138px;
|
||||||
|
max-width: 138px; }
|
||||||
|
.-only-timepicker- .datepicker--time {
|
||||||
|
border-top: none; }
|
||||||
|
|
||||||
|
.datepicker--time-sliders {
|
||||||
|
-webkit-flex: 0 1 153px;
|
||||||
|
-ms-flex: 0 1 153px;
|
||||||
|
flex: 0 1 153px;
|
||||||
|
margin-right: 10px;
|
||||||
|
max-width: 153px; }
|
||||||
|
|
||||||
|
.datepicker--time-label {
|
||||||
|
display: none;
|
||||||
|
font-size: 12px; }
|
||||||
|
|
||||||
|
.datepicker--time-current {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-flex: 1;
|
||||||
|
-ms-flex: 1;
|
||||||
|
flex: 1;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 0 0 10px; }
|
||||||
|
|
||||||
|
.datepicker--time-current-colon {
|
||||||
|
margin: 0 2px 3px;
|
||||||
|
line-height: 1; }
|
||||||
|
|
||||||
|
.datepicker--time-current-hours,
|
||||||
|
.datepicker--time-current-minutes {
|
||||||
|
line-height: 1;
|
||||||
|
font-size: 19px;
|
||||||
|
font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1; }
|
||||||
|
.datepicker--time-current-hours:after,
|
||||||
|
.datepicker--time-current-minutes:after {
|
||||||
|
content: '';
|
||||||
|
background: #f0f0f0;
|
||||||
|
border-radius: 4px;
|
||||||
|
position: absolute;
|
||||||
|
left: -2px;
|
||||||
|
top: -3px;
|
||||||
|
right: -2px;
|
||||||
|
bottom: -2px;
|
||||||
|
z-index: -1;
|
||||||
|
opacity: 0; }
|
||||||
|
.datepicker--time-current-hours.-focus-:after,
|
||||||
|
.datepicker--time-current-minutes.-focus-:after {
|
||||||
|
opacity: 1; }
|
||||||
|
|
||||||
|
.datepicker--time-current-ampm {
|
||||||
|
text-transform: uppercase;
|
||||||
|
-webkit-align-self: flex-end;
|
||||||
|
-ms-flex-item-align: end;
|
||||||
|
align-self: flex-end;
|
||||||
|
color: #9c9c9c;
|
||||||
|
margin-left: 6px;
|
||||||
|
font-size: 11px;
|
||||||
|
margin-bottom: 1px; }
|
||||||
|
|
||||||
|
.datepicker--time-row {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 11px;
|
||||||
|
height: 17px;
|
||||||
|
background: linear-gradient(to right, #dedede, #dedede) left 50%/100% 1px no-repeat; }
|
||||||
|
.datepicker--time-row:first-child {
|
||||||
|
margin-bottom: 4px; }
|
||||||
|
.datepicker--time-row input[type='range'] {
|
||||||
|
background: none;
|
||||||
|
cursor: pointer;
|
||||||
|
-webkit-flex: 1;
|
||||||
|
-ms-flex: 1;
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
-webkit-appearance: none; }
|
||||||
|
.datepicker--time-row input[type='range']::-webkit-slider-thumb {
|
||||||
|
-webkit-appearance: none; }
|
||||||
|
.datepicker--time-row input[type='range']::-ms-tooltip {
|
||||||
|
display: none; }
|
||||||
|
.datepicker--time-row input[type='range']:hover::-webkit-slider-thumb {
|
||||||
|
border-color: #b8b8b8; }
|
||||||
|
.datepicker--time-row input[type='range']:hover::-moz-range-thumb {
|
||||||
|
border-color: #b8b8b8; }
|
||||||
|
.datepicker--time-row input[type='range']:hover::-ms-thumb {
|
||||||
|
border-color: #b8b8b8; }
|
||||||
|
.datepicker--time-row input[type='range']:focus {
|
||||||
|
outline: none; }
|
||||||
|
.datepicker--time-row input[type='range']:focus::-webkit-slider-thumb {
|
||||||
|
background: #5cc4ef;
|
||||||
|
border-color: #5cc4ef; }
|
||||||
|
.datepicker--time-row input[type='range']:focus::-moz-range-thumb {
|
||||||
|
background: #5cc4ef;
|
||||||
|
border-color: #5cc4ef; }
|
||||||
|
.datepicker--time-row input[type='range']:focus::-ms-thumb {
|
||||||
|
background: #5cc4ef;
|
||||||
|
border-color: #5cc4ef; }
|
||||||
|
.datepicker--time-row input[type='range']::-webkit-slider-thumb {
|
||||||
|
box-sizing: border-box;
|
||||||
|
height: 12px;
|
||||||
|
width: 12px;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #dedede;
|
||||||
|
background: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background .2s; }
|
||||||
|
.datepicker--time-row input[type='range']::-moz-range-thumb {
|
||||||
|
box-sizing: border-box;
|
||||||
|
height: 12px;
|
||||||
|
width: 12px;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #dedede;
|
||||||
|
background: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background .2s; }
|
||||||
|
.datepicker--time-row input[type='range']::-ms-thumb {
|
||||||
|
box-sizing: border-box;
|
||||||
|
height: 12px;
|
||||||
|
width: 12px;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #dedede;
|
||||||
|
background: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background .2s; }
|
||||||
|
.datepicker--time-row input[type='range']::-webkit-slider-thumb {
|
||||||
|
margin-top: -6px; }
|
||||||
|
.datepicker--time-row input[type='range']::-webkit-slider-runnable-track {
|
||||||
|
border: none;
|
||||||
|
height: 1px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: transparent;
|
||||||
|
background: transparent; }
|
||||||
|
.datepicker--time-row input[type='range']::-moz-range-track {
|
||||||
|
border: none;
|
||||||
|
height: 1px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: transparent;
|
||||||
|
background: transparent; }
|
||||||
|
.datepicker--time-row input[type='range']::-ms-track {
|
||||||
|
border: none;
|
||||||
|
height: 1px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: transparent;
|
||||||
|
background: transparent; }
|
||||||
|
.datepicker--time-row input[type='range']::-ms-fill-lower {
|
||||||
|
background: transparent; }
|
||||||
|
.datepicker--time-row input[type='range']::-ms-fill-upper {
|
||||||
|
background: transparent; }
|
||||||
|
.datepicker--time-row span {
|
||||||
|
padding: 0 12px; }
|
||||||
|
|
||||||
|
.datepicker--time-icon {
|
||||||
|
color: #9c9c9c;
|
||||||
|
border: 1px solid;
|
||||||
|
border-radius: 50%;
|
||||||
|
font-size: 16px;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 5px -1px 0;
|
||||||
|
width: 1em;
|
||||||
|
height: 1em; }
|
||||||
|
.datepicker--time-icon:after, .datepicker--time-icon:before {
|
||||||
|
content: '';
|
||||||
|
background: currentColor;
|
||||||
|
position: absolute; }
|
||||||
|
.datepicker--time-icon:after {
|
||||||
|
height: .4em;
|
||||||
|
width: 1px;
|
||||||
|
left: calc(50% - 1px);
|
||||||
|
top: calc(50% + 1px);
|
||||||
|
-webkit-transform: translateY(-100%);
|
||||||
|
transform: translateY(-100%); }
|
||||||
|
.datepicker--time-icon:before {
|
||||||
|
width: .4em;
|
||||||
|
height: 1px;
|
||||||
|
top: calc(50% + 1px);
|
||||||
|
left: calc(50% - 1px); }
|
||||||
|
|
||||||
|
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.datepicker--cell-day.-other-month-:hover, .datepicker--cell-year.-other-decade-:hover {
|
||||||
|
color: #c5c5c5; }
|
||||||
|
.-disabled-.-focus-.datepicker--cell-day.-other-month-, .-disabled-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #dedede; }
|
||||||
|
.-selected-.datepicker--cell-day.-other-month-, .-selected-.datepicker--cell-year.-other-decade- {
|
||||||
|
color: #fff;
|
||||||
|
background: #a2ddf6; }
|
||||||
|
.-selected-.-focus-.datepicker--cell-day.-other-month-, .-selected-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background: #8ad5f4; }
|
||||||
|
.-in-range-.datepicker--cell-day.-other-month-, .-in-range-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.1);
|
||||||
|
color: #cccccc; }
|
||||||
|
.-in-range-.-focus-.datepicker--cell-day.-other-month-, .-in-range-.-focus-.datepicker--cell-year.-other-decade- {
|
||||||
|
background-color: rgba(92, 196, 239, 0.2); }
|
||||||
|
.datepicker--cell-day.-other-month-:empty, .datepicker--cell-year.-other-decade-:empty {
|
||||||
|
background: none;
|
||||||
|
border: none; }
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,427 @@
|
||||||
|
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Set default font family to sans-serif.
|
||||||
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||||
|
* user zoom.
|
||||||
|
*/
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: sans-serif; /* 1 */
|
||||||
|
-ms-text-size-adjust: 100%; /* 2 */
|
||||||
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove default margin.
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* HTML5 display definitions
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||||
|
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||||
|
* and Firefox.
|
||||||
|
* Correct `block` display not defined for `main` in IE 11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
main,
|
||||||
|
menu,
|
||||||
|
nav,
|
||||||
|
section,
|
||||||
|
summary {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||||
|
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio,
|
||||||
|
canvas,
|
||||||
|
progress,
|
||||||
|
video {
|
||||||
|
display: inline-block; /* 1 */
|
||||||
|
vertical-align: baseline; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent modern browsers from displaying `audio` without controls.
|
||||||
|
* Remove excess height in iOS 5 devices.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio:not([controls]) {
|
||||||
|
display: none;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||||
|
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[hidden],
|
||||||
|
template {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the gray background color from active links in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Improve readability when focused and also mouse hovered in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a:active,
|
||||||
|
a:hover {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text-level semantics
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
border-bottom: 1px dotted;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in Safari and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
dfn {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address variable `h1` font-size and margin within `section` and `article`
|
||||||
|
* contexts in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0.67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address styling not present in IE 8/9.
|
||||||
|
*/
|
||||||
|
|
||||||
|
mark {
|
||||||
|
background: #ff0;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address inconsistent and variable font size in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Embedded content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove border when inside `a` element in IE 8/9/10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
img {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct overflow not hidden in IE 9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
svg:not(:root) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Grouping content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address margin not present in IE 8/9 and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: 1em 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address differences between Firefox and other browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
hr {
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
box-sizing: content-box;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contain overflow in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address odd `em`-unit font size rendering in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
pre,
|
||||||
|
samp {
|
||||||
|
font-family: monospace, monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||||
|
* styling of `select`, unless a `border` property is set.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct color not being inherited.
|
||||||
|
* Known issue: affects color of disabled elements.
|
||||||
|
* 2. Correct font properties not being inherited.
|
||||||
|
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
optgroup,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: inherit; /* 1 */
|
||||||
|
font: inherit; /* 2 */
|
||||||
|
margin: 0; /* 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||||
|
* All other form control elements do not inherit `text-transform` values.
|
||||||
|
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||||
|
* Correct `select` style inheritance in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
select {
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||||
|
* and `video` controls.
|
||||||
|
* 2. Correct inability to style clickable `input` types in iOS.
|
||||||
|
* 3. Improve usability and consistency of cursor style between image-type
|
||||||
|
* `input` and others.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
html input[type="button"], /* 1 */
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"] {
|
||||||
|
-webkit-appearance: button; /* 2 */
|
||||||
|
cursor: pointer; /* 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Re-set default cursor for disabled elements.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button[disabled],
|
||||||
|
html input[disabled] {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove inner padding and border in Firefox 4+.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
input::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||||
|
* the UA stylesheet.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input {
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* It's recommended that you don't attempt to style these elements.
|
||||||
|
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||||
|
*
|
||||||
|
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||||
|
* 2. Remove excess padding in IE 8/9/10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||||
|
* `font-size` values of the `input`, it causes the cursor style of the
|
||||||
|
* decrement button to change from `default` to `text`.
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="number"]::-webkit-inner-spin-button,
|
||||||
|
input[type="number"]::-webkit-outer-spin-button {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||||
|
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||||
|
* (include `-moz` to future-proof).
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="search"] {
|
||||||
|
-webkit-appearance: textfield; /* 1 */
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
-webkit-box-sizing: content-box; /* 2 */
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||||
|
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||||
|
* padding (and `textfield` appearance).
|
||||||
|
*/
|
||||||
|
|
||||||
|
input[type="search"]::-webkit-search-cancel-button,
|
||||||
|
input[type="search"]::-webkit-search-decoration {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define consistent border, margin, and padding.
|
||||||
|
*/
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
border: 1px solid #c0c0c0;
|
||||||
|
margin: 0 2px;
|
||||||
|
padding: 0.35em 0.625em 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||||
|
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||||
|
*/
|
||||||
|
|
||||||
|
legend {
|
||||||
|
border: 0; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||||
|
*/
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Don't inherit the `font-weight` (applied by a rule above).
|
||||||
|
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||||
|
*/
|
||||||
|
|
||||||
|
optgroup {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove most spacing between table cells.
|
||||||
|
*/
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
padding: 0;
|
||||||
|
}
|
|
@ -0,0 +1,418 @@
|
||||||
|
/*
|
||||||
|
* Skeleton V2.0.4
|
||||||
|
* Copyright 2014, Dave Gamache
|
||||||
|
* www.getskeleton.com
|
||||||
|
* Free to use under the MIT license.
|
||||||
|
* http://www.opensource.org/licenses/mit-license.php
|
||||||
|
* 12/29/2014
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* Table of contents
|
||||||
|
––––––––––––––––––––––––––––––––––––––––––––––––––
|
||||||
|
- Grid
|
||||||
|
- Base Styles
|
||||||
|
- Typography
|
||||||
|
- Links
|
||||||
|
- Buttons
|
||||||
|
- Forms
|
||||||
|
- Lists
|
||||||
|
- Code
|
||||||
|
- Tables
|
||||||
|
- Spacing
|
||||||
|
- Utilities
|
||||||
|
- Clearing
|
||||||
|
- Media Queries
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* Grid
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
.container {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 960px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 20px;
|
||||||
|
box-sizing: border-box; }
|
||||||
|
.column,
|
||||||
|
.columns {
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
box-sizing: border-box; }
|
||||||
|
|
||||||
|
/* For devices larger than 400px */
|
||||||
|
@media (min-width: 400px) {
|
||||||
|
.container {
|
||||||
|
width: 85%;
|
||||||
|
padding: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* For devices larger than 550px */
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.container {
|
||||||
|
width: 80%; }
|
||||||
|
.column,
|
||||||
|
.columns {
|
||||||
|
margin-left: 4%; }
|
||||||
|
.column:first-child,
|
||||||
|
.columns:first-child {
|
||||||
|
margin-left: 0; }
|
||||||
|
|
||||||
|
.one.column,
|
||||||
|
.one.columns { width: 4.66666666667%; }
|
||||||
|
.two.columns { width: 13.3333333333%; }
|
||||||
|
.three.columns { width: 22%; }
|
||||||
|
.four.columns { width: 30.6666666667%; }
|
||||||
|
.five.columns { width: 39.3333333333%; }
|
||||||
|
.six.columns { width: 48%; }
|
||||||
|
.seven.columns { width: 56.6666666667%; }
|
||||||
|
.eight.columns { width: 65.3333333333%; }
|
||||||
|
.nine.columns { width: 74.0%; }
|
||||||
|
.ten.columns { width: 82.6666666667%; }
|
||||||
|
.eleven.columns { width: 91.3333333333%; }
|
||||||
|
.twelve.columns { width: 100%; margin-left: 0; }
|
||||||
|
|
||||||
|
.one-third.column { width: 30.6666666667%; }
|
||||||
|
.two-thirds.column { width: 65.3333333333%; }
|
||||||
|
|
||||||
|
.one-half.column { width: 48%; }
|
||||||
|
|
||||||
|
/* Offsets */
|
||||||
|
.offset-by-one.column,
|
||||||
|
.offset-by-one.columns { margin-left: 8.66666666667%; }
|
||||||
|
.offset-by-two.column,
|
||||||
|
.offset-by-two.columns { margin-left: 17.3333333333%; }
|
||||||
|
.offset-by-three.column,
|
||||||
|
.offset-by-three.columns { margin-left: 26%; }
|
||||||
|
.offset-by-four.column,
|
||||||
|
.offset-by-four.columns { margin-left: 34.6666666667%; }
|
||||||
|
.offset-by-five.column,
|
||||||
|
.offset-by-five.columns { margin-left: 43.3333333333%; }
|
||||||
|
.offset-by-six.column,
|
||||||
|
.offset-by-six.columns { margin-left: 52%; }
|
||||||
|
.offset-by-seven.column,
|
||||||
|
.offset-by-seven.columns { margin-left: 60.6666666667%; }
|
||||||
|
.offset-by-eight.column,
|
||||||
|
.offset-by-eight.columns { margin-left: 69.3333333333%; }
|
||||||
|
.offset-by-nine.column,
|
||||||
|
.offset-by-nine.columns { margin-left: 78.0%; }
|
||||||
|
.offset-by-ten.column,
|
||||||
|
.offset-by-ten.columns { margin-left: 86.6666666667%; }
|
||||||
|
.offset-by-eleven.column,
|
||||||
|
.offset-by-eleven.columns { margin-left: 95.3333333333%; }
|
||||||
|
|
||||||
|
.offset-by-one-third.column,
|
||||||
|
.offset-by-one-third.columns { margin-left: 34.6666666667%; }
|
||||||
|
.offset-by-two-thirds.column,
|
||||||
|
.offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
|
||||||
|
|
||||||
|
.offset-by-one-half.column,
|
||||||
|
.offset-by-one-half.columns { margin-left: 52%; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Base Styles
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
/* NOTE
|
||||||
|
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
||||||
|
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
||||||
|
html {
|
||||||
|
font-size: 62.5%; }
|
||||||
|
body {
|
||||||
|
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
|
||||||
|
line-height: 1.6;
|
||||||
|
font-weight: 400;
|
||||||
|
font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
color: #222; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Typography
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
font-weight: 300; }
|
||||||
|
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
|
||||||
|
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
|
||||||
|
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
|
||||||
|
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
|
||||||
|
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
|
||||||
|
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
|
||||||
|
|
||||||
|
/* Larger than phablet */
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
h1 { font-size: 5.0rem; }
|
||||||
|
h2 { font-size: 4.2rem; }
|
||||||
|
h3 { font-size: 3.6rem; }
|
||||||
|
h4 { font-size: 3.0rem; }
|
||||||
|
h5 { font-size: 2.4rem; }
|
||||||
|
h6 { font-size: 1.5rem; }
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Links
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
a {
|
||||||
|
color: #1EAEDB; }
|
||||||
|
a:hover {
|
||||||
|
color: #0FA0CE; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Buttons
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
.button,
|
||||||
|
button,
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"] {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
padding: 0 30px;
|
||||||
|
color: #555;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 38px;
|
||||||
|
letter-spacing: .1rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
text-decoration: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
background-color: transparent;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
cursor: pointer;
|
||||||
|
box-sizing: border-box; }
|
||||||
|
.button:hover,
|
||||||
|
button:hover,
|
||||||
|
input[type="submit"]:hover,
|
||||||
|
input[type="reset"]:hover,
|
||||||
|
input[type="button"]:hover,
|
||||||
|
.button:focus,
|
||||||
|
button:focus,
|
||||||
|
input[type="submit"]:focus,
|
||||||
|
input[type="reset"]:focus,
|
||||||
|
input[type="button"]:focus {
|
||||||
|
color: #333;
|
||||||
|
border-color: #888;
|
||||||
|
outline: 0; }
|
||||||
|
.button.button-primary,
|
||||||
|
button.button-primary,
|
||||||
|
input[type="submit"].button-primary,
|
||||||
|
input[type="reset"].button-primary,
|
||||||
|
input[type="button"].button-primary {
|
||||||
|
color: #FFF;
|
||||||
|
background-color: #33C3F0;
|
||||||
|
border-color: #33C3F0; }
|
||||||
|
.button.button-primary:hover,
|
||||||
|
button.button-primary:hover,
|
||||||
|
input[type="submit"].button-primary:hover,
|
||||||
|
input[type="reset"].button-primary:hover,
|
||||||
|
input[type="button"].button-primary:hover,
|
||||||
|
.button.button-primary:focus,
|
||||||
|
button.button-primary:focus,
|
||||||
|
input[type="submit"].button-primary:focus,
|
||||||
|
input[type="reset"].button-primary:focus,
|
||||||
|
input[type="button"].button-primary:focus {
|
||||||
|
color: #FFF;
|
||||||
|
background-color: #1EAEDB;
|
||||||
|
border-color: #1EAEDB; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Forms
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
input[type="email"],
|
||||||
|
input[type="number"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="text"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="url"],
|
||||||
|
input[type="password"],
|
||||||
|
textarea,
|
||||||
|
select {
|
||||||
|
height: 38px;
|
||||||
|
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #D1D1D1;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: none;
|
||||||
|
box-sizing: border-box; }
|
||||||
|
/* Removes awkward default styles on some inputs for iOS */
|
||||||
|
input[type="email"],
|
||||||
|
input[type="number"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="text"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="url"],
|
||||||
|
input[type="password"],
|
||||||
|
textarea {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
appearance: none; }
|
||||||
|
textarea {
|
||||||
|
min-height: 65px;
|
||||||
|
padding-top: 6px;
|
||||||
|
padding-bottom: 6px; }
|
||||||
|
input[type="email"]:focus,
|
||||||
|
input[type="number"]:focus,
|
||||||
|
input[type="search"]:focus,
|
||||||
|
input[type="text"]:focus,
|
||||||
|
input[type="tel"]:focus,
|
||||||
|
input[type="url"]:focus,
|
||||||
|
input[type="password"]:focus,
|
||||||
|
textarea:focus,
|
||||||
|
select:focus {
|
||||||
|
border: 1px solid #33C3F0;
|
||||||
|
outline: 0; }
|
||||||
|
label,
|
||||||
|
legend {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
font-weight: 600; }
|
||||||
|
fieldset {
|
||||||
|
padding: 0;
|
||||||
|
border-width: 0; }
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
display: inline; }
|
||||||
|
label > .label-body {
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: .5rem;
|
||||||
|
font-weight: normal; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Lists
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
ul {
|
||||||
|
list-style: circle inside; }
|
||||||
|
ol {
|
||||||
|
list-style: decimal inside; }
|
||||||
|
ol, ul {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-top: 0; }
|
||||||
|
ul ul,
|
||||||
|
ul ol,
|
||||||
|
ol ol,
|
||||||
|
ol ul {
|
||||||
|
margin: 1.5rem 0 1.5rem 3rem;
|
||||||
|
font-size: 90%; }
|
||||||
|
li {
|
||||||
|
margin-bottom: 1rem; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Code
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
code {
|
||||||
|
padding: .2rem .5rem;
|
||||||
|
margin: 0 .2rem;
|
||||||
|
font-size: 90%;
|
||||||
|
white-space: nowrap;
|
||||||
|
background: #F1F1F1;
|
||||||
|
border: 1px solid #E1E1E1;
|
||||||
|
border-radius: 4px; }
|
||||||
|
pre > code {
|
||||||
|
display: block;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
white-space: pre; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Tables
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
padding: 12px 15px;
|
||||||
|
text-align: left;
|
||||||
|
border-bottom: 1px solid #E1E1E1; }
|
||||||
|
th:first-child,
|
||||||
|
td:first-child {
|
||||||
|
padding-left: 0; }
|
||||||
|
th:last-child,
|
||||||
|
td:last-child {
|
||||||
|
padding-right: 0; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Spacing
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
button,
|
||||||
|
.button {
|
||||||
|
margin-bottom: 1rem; }
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
fieldset {
|
||||||
|
margin-bottom: 1.5rem; }
|
||||||
|
pre,
|
||||||
|
blockquote,
|
||||||
|
dl,
|
||||||
|
figure,
|
||||||
|
table,
|
||||||
|
p,
|
||||||
|
ul,
|
||||||
|
ol,
|
||||||
|
form {
|
||||||
|
margin-bottom: 2.5rem; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Utilities
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
.u-full-width {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box; }
|
||||||
|
.u-max-full-width {
|
||||||
|
max-width: 100%;
|
||||||
|
box-sizing: border-box; }
|
||||||
|
.u-pull-right {
|
||||||
|
float: right; }
|
||||||
|
.u-pull-left {
|
||||||
|
float: left; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Misc
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
hr {
|
||||||
|
margin-top: 3rem;
|
||||||
|
margin-bottom: 3.5rem;
|
||||||
|
border-width: 0;
|
||||||
|
border-top: 1px solid #E1E1E1; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Clearing
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
|
||||||
|
/* Self Clearing Goodness */
|
||||||
|
.container:after,
|
||||||
|
.row:after,
|
||||||
|
.u-cf {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both; }
|
||||||
|
|
||||||
|
|
||||||
|
/* Media Queries
|
||||||
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
|
/*
|
||||||
|
Note: The best way to structure the use of media queries is to create the queries
|
||||||
|
near the relevant code. For example, if you wanted to change the styles for buttons
|
||||||
|
on small devices, paste the mobile query code up in the buttons section and style it
|
||||||
|
there.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* Larger than mobile */
|
||||||
|
@media (min-width: 400px) {}
|
||||||
|
|
||||||
|
/* Larger than phablet (also point when grid becomes active) */
|
||||||
|
@media (min-width: 550px) {}
|
||||||
|
|
||||||
|
/* Larger than tablet */
|
||||||
|
@media (min-width: 750px) {}
|
||||||
|
|
||||||
|
/* Larger than desktop */
|
||||||
|
@media (min-width: 1000px) {}
|
||||||
|
|
||||||
|
/* Larger than Desktop HD */
|
||||||
|
@media (min-width: 1200px) {}
|
|
@ -0,0 +1,428 @@
|
||||||
|
var punches, punchList, listLength, object;
|
||||||
|
|
||||||
|
function isItArray(object) {
|
||||||
|
console.log(`is ${object} Array = ${Array.isArray(object)}`);
|
||||||
|
// return Array.isArray(object);
|
||||||
|
}
|
||||||
|
|
||||||
|
function putJson(data) {
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
document.getElementById("result").innerHTML = new Date().getTime() + " - " + req.status;
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("PUT", jsonUrl, true);
|
||||||
|
req.setRequestHeader("Content-type", "application/json");
|
||||||
|
req.send(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getJson() {
|
||||||
|
|
||||||
|
// var GoogleAuth = gapi.auth2.init();
|
||||||
|
// if (GoogleAuth.isSignedIn.get() === true) {
|
||||||
|
displayMeta();
|
||||||
|
console.log(`getJson`);
|
||||||
|
let req = new XMLHttpRequest();
|
||||||
|
req.onreadystatechange = () => {
|
||||||
|
if (req.readyState == XMLHttpRequest.DONE) {
|
||||||
|
window.punches = JSON.parse(req.responseText);
|
||||||
|
window.punches.sort(function(a, b){return a.priority - b.priority});
|
||||||
|
//callback(window.punches);
|
||||||
|
genStatuses(window.punches);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
req.open("GET", jsonUrl, true);
|
||||||
|
req.send();
|
||||||
|
// } else {
|
||||||
|
// console.log('not logged in');
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
function findArrayId(uid) {
|
||||||
|
var length = window.punches.length;
|
||||||
|
|
||||||
|
for (x = 0; x < length; x++) {
|
||||||
|
if (window.punches[x].uuid === uid) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function tagFilter(tagItem) {
|
||||||
|
console.log(`In tagFilter function`);
|
||||||
|
window.tagFilterItem = tagItem;
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearTagFilter() {
|
||||||
|
console.log(`Clear Tags`);
|
||||||
|
window.tagFilterItem = undefined;
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function getStatus(punchList, statusFilter) {
|
||||||
|
return punchList.filter(function(punch) { return punch.progress.toLowerCase() === statusFilter; });
|
||||||
|
}
|
||||||
|
|
||||||
|
function genStatuses(punchList) {
|
||||||
|
genList(getStatus(punchList, "in progress"), "punchListInProgress");
|
||||||
|
genList(getStatus(punchList, "new"), "punchListNew");
|
||||||
|
genList(getStatus(punchList, "done"), "punchListDone");
|
||||||
|
}
|
||||||
|
|
||||||
|
function genList(punchList, element) {
|
||||||
|
document.getElementById("showDone").innerHTML = "Show Done: <a href='#' onClick='toggleShowDone()'>" + showDone + "</a>";
|
||||||
|
console.log(`current tag = ${window.tagFilterItem}`);
|
||||||
|
|
||||||
|
disableElement("punchDetail");
|
||||||
|
enableElement("punchListAll");
|
||||||
|
var itemStyle = "punches";
|
||||||
|
// isItArray(punchList);
|
||||||
|
|
||||||
|
// punchList.sort(function(a, b){return new Date(a.date).getTime() - new Date(b.date).getTime()});
|
||||||
|
listLength = punchList.length;
|
||||||
|
|
||||||
|
var list = '';
|
||||||
|
|
||||||
|
for (i = 0; i < listLength; i++) {
|
||||||
|
if (window.tagFilterItem != undefined) {
|
||||||
|
if (punchList[i].tags != undefined && punchList[i].tags.includes(window.tagFilterItem)) {
|
||||||
|
console.log(`in tagFilterIf`);
|
||||||
|
list += "<div class='punchlist top-bottom-border'>"; //
|
||||||
|
list += "<div class='punchlist container top-bottom-border'>"; //
|
||||||
|
list += "<div class='ten columns'>";
|
||||||
|
list += "<div class='12 columns " + itemStyle + "' onClick=enablePunchDetail(\"" + punchList[i].uuid + "\")><span class=subject>" + punchList[i].subject + "</span></div>"; //
|
||||||
|
list += "<div class='three columns " + itemStyle + "'>Status: " + punchList[i].progress + "</div>";
|
||||||
|
list += "<div class='two columns " + itemStyle + "'>Priority: " + punchList[i].priority + "</div>";
|
||||||
|
list += "<div class='four columns " + itemStyle + "'>Need By: " + punchList[i].nDate + "</div>";
|
||||||
|
|
||||||
|
if (punchList[i].tags != undefined) {
|
||||||
|
list += "<div class='four columns " + itemStyle + "'>Tags: ";
|
||||||
|
for (t = 0; t < punchList[i].tags.length; t++) {
|
||||||
|
list += "<a href='#' onClick(tagFilter(" + punchList[i].tags[t] + ")>" + punchList[i].tags[t] + "</a>, ";
|
||||||
|
}
|
||||||
|
list += "</div>";
|
||||||
|
}
|
||||||
|
list += "</div>";
|
||||||
|
list += "<div class='two columns'>";
|
||||||
|
list += "<div class=dropdown>";
|
||||||
|
list += "<button class=dropbtn onClick=dropMenu(\"" + punchList[i].uuid + "\")>Act<i class='fa fa-caret-down'></i></button>";
|
||||||
|
list += "<div class=dropdown-content id='myDropdown" + punchList[i].uuid + "'>";
|
||||||
|
list += "<a onClick=startPunch(\"" + punchList[i].uuid + "\")>start</a>";
|
||||||
|
list += "<a onClick=completePunch(\"" + punchList[i].uuid + "\")>done</a>";
|
||||||
|
list += "<a onClick=editPunch(\"" + punchList[i].uuid + "\")>edit</a>";
|
||||||
|
list += "<a onClick=deletePunch(\"" + punchList[i].uuid + "\")>delete</a>";
|
||||||
|
list += "</div></div></div></div></div>";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.log(`in tagFilterElse`);
|
||||||
|
list += "<div class='punchlist top-bottom-border'>"; //
|
||||||
|
list += "<div class='punchlist container top-bottom-border'>"; //
|
||||||
|
list += "<div class='ten columns'>";
|
||||||
|
list += "<div class='12 columns " + itemStyle + "' onClick=enablePunchDetail(\"" + punchList[i].uuid + "\")><span class=subject>" + punchList[i].subject + "</span></div>"; //
|
||||||
|
list += "<div class='three columns " + itemStyle + "'>Status: " + punchList[i].progress + "</div>";
|
||||||
|
list += "<div class='two columns " + itemStyle + "'>Priority: " + punchList[i].priority + "</div>";
|
||||||
|
list += "<div class='four columns " + itemStyle + "'>Need By: " + punchList[i].nDate + "</div>";
|
||||||
|
|
||||||
|
if (punchList[i].tags != undefined) {
|
||||||
|
list += "<div class='four columns " + itemStyle + "'>Tags: ";
|
||||||
|
for (t = 0; t < punchList[i].tags.length; t++) {
|
||||||
|
list += "<a href='#' onClick=tagFilter(\"" + punchList[i].tags[t] + "\")>" + punchList[i].tags[t] + "</a>, ";
|
||||||
|
}
|
||||||
|
list += "</div>";
|
||||||
|
}
|
||||||
|
list += "</div>";
|
||||||
|
list += "<div class='two columns'>";
|
||||||
|
list += "<div class=dropdown>";
|
||||||
|
list += "<button class=dropbtn onClick=dropMenu(\"" + punchList[i].uuid + "\")>Act<i class='fa fa-caret-down'></i></button>";
|
||||||
|
list += "<div class=dropdown-content id='myDropdown" + punchList[i].uuid + "'>";
|
||||||
|
list += "<a onClick=startPunch(\"" + punchList[i].uuid + "\")>start</a>";
|
||||||
|
list += "<a onClick=completePunch(\"" + punchList[i].uuid + "\")>done</a>";
|
||||||
|
list += "<a onClick=editPunch(\"" + punchList[i].uuid + "\")>edit</a>";
|
||||||
|
list += "<a onClick=deletePunch(\"" + punchList[i].uuid + "\")>delete</a>";
|
||||||
|
list += "</div></div></div></div></div>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
document.getElementById(element).innerHTML = list;
|
||||||
|
|
||||||
|
if (showDone === false) {
|
||||||
|
disableElement("punchListDoneWrapper");
|
||||||
|
} else {
|
||||||
|
enableElement("punchListDoneWrapper");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function startPunch(uuid) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
punchList[item].progress = "In Progress";
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
function completePunch(uuid) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
punchList[item].progress = "Done";
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
|
||||||
|
function enablePunchDetail(uuid) {
|
||||||
|
var punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
console.log(`inside enablePunchDetail`);
|
||||||
|
disableElement("punchListAll");
|
||||||
|
enableElement("punchDetail");
|
||||||
|
// html = "";
|
||||||
|
html = "<p>subject: " + punchList[item].subject + "<br />Created: " + punchList[item].cDate + "<br />Modified Date: " + punchList[item].mDate + "<br />Priority: " + punchList[item].priority + "<br />Progress: " + punchList[item].progress + "<br /><textarea>" + punchList[item].notes + "</textarea><br /><input onfocus='clearDefault(this)' type='text' id='tag' value='Add tag'><input onClick='addTag()' type=button value='Add' /></p><input type=button value=close onClick=getJson()>";
|
||||||
|
document.getElementById("punchDetail").innerHTML = html;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createNewEvent() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
// console.log(`${punchList}`);
|
||||||
|
// console.log(`${window.punches}`);
|
||||||
|
// disableElement("punchList");
|
||||||
|
// disableElement("punchDetail");
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var subjectField = document.getElementById("newSubject").value;
|
||||||
|
var priorityField = document.getElementById("newPriority").value;
|
||||||
|
var progressField = document.getElementById("newProgress").value;
|
||||||
|
var nDateField = document.getElementById("timepickerCreate").value;
|
||||||
|
var notesField = document.getElementById("newNotes").value;
|
||||||
|
|
||||||
|
var newEventJson = { uuid: genUid(), nDate: nDateField, subject: subjectField, priority: priorityField, progress: progressField, notes: notesField };
|
||||||
|
punchList.push(newEventJson);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
disableElement("newEvent");
|
||||||
|
enableElement("punchListAll");
|
||||||
|
// document.getElementById("newEventList").innerHTML = jsonStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
function genDaily() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var daily = [ "Check Workday", "Check Expenses", "Check Change Cases", "Check TD's", "Check at-mentions" ];
|
||||||
|
console.log(`${daily[1]}`);
|
||||||
|
|
||||||
|
for (x = 0; x < daily.length; x++) {
|
||||||
|
var newEventJson = { uuid: genUid(), nDate: "EOD", subject: daily[x], priority: "1", progress: "new", notes: "", tags: [ "work", "daily", "today" ] };
|
||||||
|
punchList.push(newEventJson);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function genWeekly() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var weekly = [ "Update ORB Notes", "Prep Weekly Meeting", "Build out Broadcast Timer" ];
|
||||||
|
|
||||||
|
for (x = 0; x < weekly.length; x++) {
|
||||||
|
var newEventJson = { uuid: genUid(), nDate: "Tuesday", subject: weekly[x], priority: "1", progress: "new", notes: "", tags: [ "work", "weekly" ] };
|
||||||
|
punchList.push(newEventJson);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function deletePunch(uuid) {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
// console.log(`${punchList}`);
|
||||||
|
// console.log(`${window.punches}`);
|
||||||
|
punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
|
||||||
|
console.log(`splicing ${item}`);
|
||||||
|
|
||||||
|
|
||||||
|
punchList.splice(item, 1);
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
// document.getElementById("newEventList").innerHTML = jsonStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function enableElement(element) {
|
||||||
|
console.log(`enabling ${element}`);
|
||||||
|
document.getElementById(element).style.display = "block";
|
||||||
|
}
|
||||||
|
|
||||||
|
function disableElement(element) {
|
||||||
|
console.log(`disabling ${element}`);
|
||||||
|
document.getElementById(element).style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayMeta() {
|
||||||
|
document.getElementById("meta").innerHTML = "Version: " + version ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* When the user clicks on the button,
|
||||||
|
toggle between hiding and showing the dropdown content */
|
||||||
|
function dropMenu(item) {
|
||||||
|
window.dropId = "myDropdown" + item;
|
||||||
|
document.getElementById(window.dropId).classList.toggle("show");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Close the dropdown if the user clicks outside of it
|
||||||
|
window.onclick = function(e) {
|
||||||
|
if (!e.target.matches('.dropbtn')) {
|
||||||
|
var myDropdown = document.getElementById(window.dropId);
|
||||||
|
if (myDropdown.classList.contains('show')) {
|
||||||
|
myDropdown.classList.remove('show');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleShowDone() {
|
||||||
|
if (showDone === false) {
|
||||||
|
window.showDone = true;
|
||||||
|
} else if (showDone === true) {
|
||||||
|
window.showDone = false;
|
||||||
|
} else {
|
||||||
|
window.showDone = false;
|
||||||
|
}
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function editPunch(uuid) {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
disableElement("newEvent");
|
||||||
|
disableElement("punchListAll");
|
||||||
|
enableElement("editPunch");
|
||||||
|
|
||||||
|
punchList = window.punches;
|
||||||
|
item = findArrayId(uuid);
|
||||||
|
|
||||||
|
var id = item;
|
||||||
|
|
||||||
|
var subject = punchList[id].subject;
|
||||||
|
var priority = punchList[id].priority;
|
||||||
|
var progress = punchList[id].progress;
|
||||||
|
var nDate = punchList[id].nDate;
|
||||||
|
var notes = punchList[id].notes;
|
||||||
|
|
||||||
|
document.getElementById("editID").value = id;
|
||||||
|
document.getElementById("editSubject").value = subject;
|
||||||
|
document.getElementById("timepickerEdit").value = nDate;
|
||||||
|
document.getElementById("editNotes").value = notes;
|
||||||
|
document.getElementById("editProgress").value = progress;
|
||||||
|
document.getElementById("editPriority").value = priority;
|
||||||
|
}
|
||||||
|
|
||||||
|
function submitEditPunch() {
|
||||||
|
punchList = window.punches;
|
||||||
|
|
||||||
|
var id = document.getElementById("editID").value;
|
||||||
|
var subjectField = document.getElementById("editSubject").value;
|
||||||
|
var priorityField = document.getElementById("editPriority").value;
|
||||||
|
var progressField = document.getElementById("editProgress").value;
|
||||||
|
var nDateField = document.getElementById("timepickerEdit").value;
|
||||||
|
var notesField = document.getElementById("editNotes").value;
|
||||||
|
|
||||||
|
punchList[id].subject = subjectField;
|
||||||
|
punchList[id].priority = priorityField;
|
||||||
|
punchList[id].progress = progressField;
|
||||||
|
punchList[id].nDate = nDateField;
|
||||||
|
punchList[id].notes = notesField;
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
disableElement("editPunch");
|
||||||
|
}
|
||||||
|
|
||||||
|
function addTag() {
|
||||||
|
/* Before doing this,
|
||||||
|
Refresh the array,
|
||||||
|
So that we don't overwrite data */
|
||||||
|
getJson();
|
||||||
|
|
||||||
|
var item = document.getElementById("editID").value;
|
||||||
|
var newTag = document.getElementById("tag").value.toLowerCase();
|
||||||
|
|
||||||
|
console.log(`Item: ${item}`);
|
||||||
|
console.log(`New Tag: ${newTag}`);
|
||||||
|
// make sure tags object exists
|
||||||
|
if (punchList[item].tags === undefined) {
|
||||||
|
console.log(`Adding tags object to punchList[${item}]`);
|
||||||
|
punchList[item].tags = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
punchList[item].tags.push(newTag);
|
||||||
|
console.log(`${punchList[item].tags}`);
|
||||||
|
|
||||||
|
jsonStr = JSON.stringify(punchList);
|
||||||
|
putJson(jsonStr);
|
||||||
|
disableElement("editPunch");
|
||||||
|
enableElement("punchListAll");
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearDefault(a){
|
||||||
|
if (a.defaultValue == a.value) {
|
||||||
|
a.value="";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function genUid() {
|
||||||
|
function chr4() {
|
||||||
|
return Math.random().toString(16).slice(-4);
|
||||||
|
}
|
||||||
|
return chr4() + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() +
|
||||||
|
'-' + chr4() + chr4() + chr4();
|
||||||
|
}
|
||||||
|
|
||||||
|
//google stuff
|
||||||
|
function onSignIn(googleUser) {
|
||||||
|
var profile = googleUser.getBasicProfile();
|
||||||
|
console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
|
||||||
|
console.log('Name: ' + profile.getName());
|
||||||
|
console.log('Image URL: ' + profile.getImageUrl());
|
||||||
|
console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
|
||||||
|
getJson();
|
||||||
|
}
|
||||||
|
|
||||||
|
function signOut() {
|
||||||
|
var auth2 = gapi.auth2.getAuthInstance();
|
||||||
|
auth2.signOut().then(function () {
|
||||||
|
console.log('User signed out.');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,93 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- Font -->
|
||||||
|
<!-- <link href='http://fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'> -->
|
||||||
|
<!-- CSS -->
|
||||||
|
<link rel="stylesheet" href="css/normalize.css">
|
||||||
|
<link rel="stylesheet" href="css/skeleton.css">
|
||||||
|
<link rel="stylesheet" href="css/custom.css">
|
||||||
|
<link href="css/datepicker.min.css" rel="stylesheet" type="text/css">
|
||||||
|
<!-- <link rel="stylesheet" type="text/css" href="style.css"> -->
|
||||||
|
<!-- No Cache -->
|
||||||
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||||||
|
<meta http-equiv="Pragma" content="no-cache">
|
||||||
|
<meta http-equiv="Expires" content="0">
|
||||||
|
<meta name="google-signin-client_id" content="999467953896-gku66r62t0sbodkroiqre0g43l8teal1.apps.googleusercontent.com">
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||||
|
<script src="metadata.js"></script>
|
||||||
|
<script src="eventManage.js"></script>
|
||||||
|
<script src="timePicker.js"></script>
|
||||||
|
<script src="js/datepicker.min.js"></script>
|
||||||
|
<!-- Include English language -->
|
||||||
|
<script src="js/i18n/datepicker.en.js"></script>
|
||||||
|
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="g-signin2 u-pull-right" data-onsuccess="onSignIn"></div>
|
||||||
|
<div class="u-pull-right" id="signOut"><a href="#" onclick="signOut();">Sign out</a></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<button class="button" onClick="disableElement('punchListAll'), disableElement('punchDetail'), enableElement('newEvent')" id="put">New Punch Item</button>
|
||||||
|
<button class="button" onClick="genDaily()" id="daily">Gen Daily</button>
|
||||||
|
<button class="button" onClick="genWeekly()" id="daily">Gen Weekly</button>
|
||||||
|
<button class="button" onClick="getJson(genList)" id="getJson">Refresh</button>
|
||||||
|
<a class="button" href="https://thelinux.pro/broadcast_timer">Time Boxer</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row" id="editPunch">
|
||||||
|
<input type=hidden id=editID>
|
||||||
|
|
||||||
|
<input class="u-full-width" type="text" id="editSubject" value=""><br />
|
||||||
|
<input class="u-full-width" type="text" id="editPriority" value=""><br />
|
||||||
|
<input class="u-full-width" type="text" id="editProgress" READONLY><br />
|
||||||
|
<input type='text' id='timepickerEdit' class='datepicker-here u-full-width' data-timepicker='true' data-language='en'><br />
|
||||||
|
<!-- <input type="text" id="editStartDate" value=""> -->
|
||||||
|
<textarea class="u-full-width" id="editNotes" value=""></textarea>
|
||||||
|
<input onfocus="clearDefault(this)" type='text' id='tag' value="new Tag"><input onClick="addTag()" type=button value="ADD" />
|
||||||
|
<input class="u-full-width" onClick="submitEditPunch()" id="test" type="button" value="Update" />
|
||||||
|
</div>
|
||||||
|
<div class="container row" id="newEvent">
|
||||||
|
<form id="newEventForm" onSubmit="return processEventForm(this.form)">
|
||||||
|
<input onfocus="clearDefault(this)" class="u-full-width" type="text" id="newSubject" value="subject">
|
||||||
|
<input onfocus="clearDefault(this)" class="u-full-width" type="text" id="newPriority" value="priority">
|
||||||
|
<input type="hidden" id="newProgress" value="new">
|
||||||
|
<input onfocus="clearDefault(this)" type='text' id='timepickerCreate' class='datepicker-here u-full-width' data-timepicker='true' data-language='en' value="date">
|
||||||
|
<textarea class="u-full-width" id="newNotes" value="Notes"></textarea>
|
||||||
|
<input class="u-full-width" onClick="createNewEvent()" id="test" type="button" value="Update" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="listWrapper" id="punchListAll">
|
||||||
|
<div id="punchListInProgressWrapper" class="listWrapper">
|
||||||
|
<span class="punchListHeader">In Progress</span>
|
||||||
|
<div id="punchListInProgress"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="punchListNewWrapper" class="listWrapper">
|
||||||
|
<span class="punchListHeader">New</span>
|
||||||
|
<div id="punchListNew"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="punchListDoneWrapper" class="listWrapper">
|
||||||
|
<span class="punchListHeader">Done</span>
|
||||||
|
<div id="punchListDone"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="punchDetail"></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p id="result"></p>
|
||||||
|
<div id="clearTags" class="grid-meta u-pull-right"><a href="#" onClick="clearTagFilter()">Clear Tags</a></div><br />
|
||||||
|
<div id="showDone" class="grid-meta u-pull-right"></div><br />
|
||||||
|
<div id="meta" class="grid-meta u-pull-right"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['cs'] = {
|
||||||
|
days: ['Neděle', 'Pondělí', 'Úterý', 'Středa', 'Čtvrtek', 'Pátek', 'Sobota'],
|
||||||
|
daysShort: ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'],
|
||||||
|
daysMin: ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'],
|
||||||
|
months: ['Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'],
|
||||||
|
monthsShort: ['Led', 'Úno', 'Bře', 'Dub', 'Kvě', 'Čvn', 'Čvc', 'Srp', 'Zář', 'Říj', 'Lis', 'Pro'],
|
||||||
|
today: 'Dnes',
|
||||||
|
clear: 'Vymazat',
|
||||||
|
dateFormat: 'dd.mm.yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['da'] = {
|
||||||
|
days: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
|
||||||
|
daysShort: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
|
||||||
|
daysMin: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
|
||||||
|
months: ['Januar','Februar','Marts','April','Maj','Juni', 'Juli','August','September','Oktober','November','December'],
|
||||||
|
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
|
||||||
|
today: 'I dag',
|
||||||
|
clear: 'Nulstil',
|
||||||
|
dateFormat: 'dd/mm/yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,13 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['de'] = {
|
||||||
|
days: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
|
||||||
|
daysShort: ['Son', 'Mon', 'Die', 'Mit', 'Don', 'Fre', 'Sam'],
|
||||||
|
daysMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
|
||||||
|
months: ['Januar','Februar','März','April','Mai','Juni', 'Juli','August','September','Oktober','November','Dezember'],
|
||||||
|
monthsShort: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
|
||||||
|
today: 'Heute',
|
||||||
|
clear: 'Aufräumen',
|
||||||
|
dateFormat: 'dd.mm.yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
};
|
||||||
|
})(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['en'] = {
|
||||||
|
days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||||
|
daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
||||||
|
daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
||||||
|
months: ['January','February','March','April','May','June', 'July','August','September','October','November','December'],
|
||||||
|
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||||
|
today: 'Today',
|
||||||
|
clear: 'Clear',
|
||||||
|
dateFormat: 'MM dd, yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 0
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['es'] = {
|
||||||
|
days: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
|
||||||
|
daysShort: ['Dom', 'Lun', 'Mar', 'Mie', 'Jue', 'Vie', 'Sab'],
|
||||||
|
daysMin: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'],
|
||||||
|
months: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', 'Julio','Augosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
||||||
|
monthsShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
|
||||||
|
today: 'Hoy',
|
||||||
|
clear: 'Limpiar',
|
||||||
|
dateFormat: 'dd/mm/yyyy',
|
||||||
|
timeFormat: 'hh:ii aa',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,13 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['fi'] = {
|
||||||
|
days: ['Sunnuntai', 'Maanantai', 'Tiistai', 'Keskiviikko', 'Torstai', 'Perjantai', 'Lauantai'],
|
||||||
|
daysShort: ['Su', 'Ma', 'Ti', 'Ke', 'To', 'Pe', 'La'],
|
||||||
|
daysMin: ['Su', 'Ma', 'Ti', 'Ke', 'To', 'Pe', 'La'],
|
||||||
|
months: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu', 'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
|
||||||
|
monthsShort: ['Tammi', 'Helmi', 'Maalis', 'Huhti', 'Touko', 'Kesä', 'Heinä', 'Elo', 'Syys', 'Loka', 'Marras', 'Joulu'],
|
||||||
|
today: 'Tänään',
|
||||||
|
clear: 'Tyhjennä',
|
||||||
|
dateFormat: 'dd.mm.yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
};
|
||||||
|
})(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['fr'] = {
|
||||||
|
days: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
|
||||||
|
daysShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
|
||||||
|
daysMin: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'],
|
||||||
|
months: ['Janvier','Février','Mars','Avril','Mai','Juin', 'Juillet','Août','Septembre','Octobre','Novembre','Decembre'],
|
||||||
|
monthsShort: ['Jan', 'Fév', 'Mars', 'Avr', 'Mai', 'Juin', 'Juil', 'Août', 'Sep', 'Oct', 'Nov', 'Dec'],
|
||||||
|
today: "Aujourd'hui",
|
||||||
|
clear: 'Effacer',
|
||||||
|
dateFormat: 'dd/mm/yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { ;(function ($) { $.fn.datepicker.language['hu'] = {
|
||||||
|
days: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
|
||||||
|
daysShort: ['Va', 'Hé', 'Ke', 'Sze', 'Cs', 'Pé', 'Szo'],
|
||||||
|
daysMin: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'],
|
||||||
|
months: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
|
||||||
|
monthsShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
|
||||||
|
today: 'Ma',
|
||||||
|
clear: 'Törlés',
|
||||||
|
dateFormat: 'yyyy-mm-dd',
|
||||||
|
timeFormat: 'hh:ii aa',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery); })(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['nl'] = {
|
||||||
|
days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
||||||
|
daysShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||||
|
daysMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
||||||
|
months: ['Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December'],
|
||||||
|
monthsShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
|
||||||
|
today: 'Vandaag',
|
||||||
|
clear: 'Legen',
|
||||||
|
dateFormat: 'dd-MM-yy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 0
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,13 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['pl'] = {
|
||||||
|
days: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'],
|
||||||
|
daysShort: ['Nie', 'Pon', 'Wto', 'Śro', 'Czw', 'Pią', 'Sob'],
|
||||||
|
daysMin: ['Nd', 'Pn', 'Wt', 'Śr', 'Czw', 'Pt', 'So'],
|
||||||
|
months: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
|
||||||
|
monthsShort: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
|
||||||
|
today: 'Dzisiaj',
|
||||||
|
clear: 'Wyczyść',
|
||||||
|
dateFormat: 'yyyy-mm-dd',
|
||||||
|
timeFormat: 'hh:ii:aa',
|
||||||
|
firstDay: 1
|
||||||
|
};
|
||||||
|
})(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['pt-BR'] = {
|
||||||
|
days: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
|
||||||
|
daysShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
||||||
|
daysMin: ['Do', 'Se', 'Te', 'Qu', 'Qu', 'Se', 'Sa'],
|
||||||
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
||||||
|
monthsShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
|
||||||
|
today: 'Hoje',
|
||||||
|
clear: 'Limpar',
|
||||||
|
dateFormat: 'dd/mm/yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 0
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['pt'] = {
|
||||||
|
days: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
|
||||||
|
daysShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
|
||||||
|
daysMin: ['Do', 'Se', 'Te', 'Qa', 'Qi', 'Sx', 'Sa'],
|
||||||
|
months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
|
||||||
|
monthsShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
|
||||||
|
today: 'Hoje',
|
||||||
|
clear: 'Limpar',
|
||||||
|
dateFormat: 'dd/mm/yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,13 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['ro'] = {
|
||||||
|
days: ['Duminică', 'Luni', 'Marţi', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'],
|
||||||
|
daysShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'],
|
||||||
|
daysMin: ['D', 'L', 'Ma', 'Mi', 'J', 'V', 'S'],
|
||||||
|
months: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie','Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'],
|
||||||
|
monthsShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 'Iul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'],
|
||||||
|
today: 'Azi',
|
||||||
|
clear: 'Şterge',
|
||||||
|
dateFormat: 'dd.mm.yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
};
|
||||||
|
})(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['sk'] = {
|
||||||
|
days: ['Nedeľa', 'Pondelok', 'Utorok', 'Streda', 'Štvrtok', 'Piatok', 'Sobota'],
|
||||||
|
daysShort: ['Ned', 'Pon', 'Uto', 'Str', 'Štv', 'Pia', 'Sob'],
|
||||||
|
daysMin: ['Ne', 'Po', 'Ut', 'St', 'Št', 'Pi', 'So'],
|
||||||
|
months: ['Január','Február','Marec','Apríl','Máj','Jún', 'Júl','August','September','Október','November','December'],
|
||||||
|
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Máj', 'Jún', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
|
||||||
|
today: 'Dnes',
|
||||||
|
clear: 'Vymazať',
|
||||||
|
dateFormat: 'dd.mm.yyyy',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,12 @@
|
||||||
|
;(function ($) { $.fn.datepicker.language['zh'] = {
|
||||||
|
days: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
||||||
|
daysShort: ['日', '一', '二', '三', '四', '五', '六'],
|
||||||
|
daysMin: ['日', '一', '二', '三', '四', '五', '六'],
|
||||||
|
months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
||||||
|
monthsShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
||||||
|
today: '今天',
|
||||||
|
clear: '清除',
|
||||||
|
dateFormat: 'yyyy-mm-dd',
|
||||||
|
timeFormat: 'hh:ii',
|
||||||
|
firstDay: 1
|
||||||
|
}; })(jQuery);
|
|
@ -0,0 +1,10 @@
|
||||||
|
var version = "0.5.143",
|
||||||
|
debug = false,
|
||||||
|
jsonUrl = 'https://api.myjson.com/bins/dyaht';
|
||||||
|
showDone = false,
|
||||||
|
items,
|
||||||
|
item,
|
||||||
|
notes,
|
||||||
|
cDate,
|
||||||
|
array_counter = 0;
|
||||||
|
|
|
@ -0,0 +1,184 @@
|
||||||
|
body {
|
||||||
|
background-color: #333;
|
||||||
|
color: #fff;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-left: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
th { color: #FFF; font-size: 28px; }
|
||||||
|
table { border-collapse: collapse; }
|
||||||
|
table, th, td { border: 0px solid #999; padding: 0px; padding-top: 0px; padding-bottom: 0px; }
|
||||||
|
|
||||||
|
.clear { clear: both ;}
|
||||||
|
|
||||||
|
|
||||||
|
.grid-container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas:
|
||||||
|
'top-bar'
|
||||||
|
'info-bar'
|
||||||
|
'left'
|
||||||
|
'right'
|
||||||
|
'bottom';
|
||||||
|
grid-gap: 3px;
|
||||||
|
padding: 4px;
|
||||||
|
padding-top: 0px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas:
|
||||||
|
'top-bar top-bar'
|
||||||
|
'info-bar info-bar'
|
||||||
|
'left right'
|
||||||
|
'bottom bottom';
|
||||||
|
grid-gap: 3px;
|
||||||
|
padding: 4px;
|
||||||
|
padding-top: 0px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-top-bar {
|
||||||
|
grid-area: top-bar;
|
||||||
|
padding: 0px;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-info-bar {
|
||||||
|
grid-area: info-bar;
|
||||||
|
padding-top: 0px;
|
||||||
|
background-color: #222;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-main {
|
||||||
|
width: 75%;
|
||||||
|
grid-area: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-left {
|
||||||
|
grid-area: left;
|
||||||
|
width: 25%;
|
||||||
|
min-width: 500px;
|
||||||
|
border-right: 1px solid #AAA;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-bottom {
|
||||||
|
grid-area: bottom;
|
||||||
|
background-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-clock {
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-meta {
|
||||||
|
border: 0px solid #AAA;
|
||||||
|
background-color: #000;
|
||||||
|
color: lime;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-nav {
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-events {
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 100%;
|
||||||
|
background-color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainClock-cal {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 20px;
|
||||||
|
border-left: 1px solid #999;
|
||||||
|
border-top: 1px solid #999;
|
||||||
|
border-bottom: 1px solid #999;
|
||||||
|
border-right: 1px solid #999;
|
||||||
|
padding: 5px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainClock-left {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 20px;
|
||||||
|
border-left: 1px solid #999;
|
||||||
|
border-top: 1px solid #999;
|
||||||
|
border-bottom: 1px solid #999;
|
||||||
|
border-right: 0px solid #999;
|
||||||
|
padding: 5px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainClock-right {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 20px;
|
||||||
|
border-left: 0px solid #999;
|
||||||
|
border-top: 1px solid #999;
|
||||||
|
border-bottom: 1px solid #999;
|
||||||
|
border-right: 1px solid #999;
|
||||||
|
padding: 5px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.events {
|
||||||
|
/* border: 1px solid #DDD; */
|
||||||
|
padding: 2px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.events-current {
|
||||||
|
background-color: #666;
|
||||||
|
/* border: 1px solid #DDD; */
|
||||||
|
padding: 2px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
th.events {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.events {
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.btn-group .button {
|
||||||
|
background-color: #4CAF50;
|
||||||
|
border: 1px solid green;
|
||||||
|
color: white;
|
||||||
|
padding: 15px 32px;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
float: right;
|
||||||
|
border-bottom: 2px solid #AAA;
|
||||||
|
} */
|
||||||
|
|
||||||
|
.btn-group .button:not(:last-child) {
|
||||||
|
border-right: none; /* Prevent double borders */
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group .button:hover {
|
||||||
|
background-color: #3e8e41;
|
||||||
|
}
|
||||||
|
|
||||||
|
.countdown { float: right; text-align: right; font-size: 60px; }
|
||||||
|
.warn { color: yellow; }
|
||||||
|
.over { color: red; }
|
||||||
|
.green { color: lime; }
|
||||||
|
.debug { background-color: #000; color: lime; border: 2px; border-color: lime; }
|
||||||
|
.notes { min-width: 1000px; width: 100%; background-color: #000; color: #AAA; min-height: 200px; border: 1px solid #aaa;}
|
||||||
|
.notesTitle { background-color: #000; color: #AAA; font-size: 20px;}
|
||||||
|
|
||||||
|
.subject { color: #fff; font-size: 45px; }
|
||||||
|
.header { width: 100%; background-color: #222; }
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,79 @@
|
||||||
|
// Create start date
|
||||||
|
var start = new Date(),
|
||||||
|
prevDay,
|
||||||
|
startHours = 9;
|
||||||
|
|
||||||
|
timeFormat = 'hh:mm:ss',
|
||||||
|
// 09:00 AM
|
||||||
|
start.setHours(9);
|
||||||
|
start.setMinutes(0);
|
||||||
|
|
||||||
|
// If today is Saturday or Sunday set 10:00 AM
|
||||||
|
if ([6, 0].indexOf(start.getDay()) != -1) {
|
||||||
|
start.setHours(10);
|
||||||
|
startHours = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#timepickerCreate').datepicker({
|
||||||
|
timepicker: true,
|
||||||
|
language: 'en',
|
||||||
|
startDate: start,
|
||||||
|
minHours: 0,
|
||||||
|
maxHours: 23,
|
||||||
|
onSelect: function (fd, d, picker) {
|
||||||
|
// Do nothing if selection was cleared
|
||||||
|
if (!d) return;
|
||||||
|
|
||||||
|
var day = d.getDay();
|
||||||
|
|
||||||
|
// Trigger only if date is changed
|
||||||
|
if (prevDay != undefined && prevDay == day) return;
|
||||||
|
prevDay = day;
|
||||||
|
|
||||||
|
// If chosen day is Saturday or Sunday when set
|
||||||
|
// hour value for weekends, else restore defaults
|
||||||
|
if (day == 6 || day == 0) {
|
||||||
|
picker.update({
|
||||||
|
// minHours: 10,
|
||||||
|
// maxHours: 16
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
picker.update({
|
||||||
|
// minHours: 9,
|
||||||
|
// maxHours: 18
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#timepickerEdit').datepicker({
|
||||||
|
timepicker: true,
|
||||||
|
language: 'en',
|
||||||
|
startDate: start,
|
||||||
|
minHours: 0,
|
||||||
|
maxHours: 23,
|
||||||
|
onSelect: function (fd, d, picker) {
|
||||||
|
// Do nothing if selection was cleared
|
||||||
|
if (!d) return;
|
||||||
|
|
||||||
|
var day = d.getDay();
|
||||||
|
|
||||||
|
// Trigger only if date is changed
|
||||||
|
if (prevDay != undefined && prevDay == day) return;
|
||||||
|
prevDay = day;
|
||||||
|
|
||||||
|
// If chosen day is Saturday or Sunday when set
|
||||||
|
// hour value for weekends, else restore defaults
|
||||||
|
if (day == 6 || day == 0) {
|
||||||
|
picker.update({
|
||||||
|
// minHours: 10,
|
||||||
|
// maxHours: 16
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
picker.update({
|
||||||
|
// minHours: 9,
|
||||||
|
// maxHours: 18
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in New Issue