diff --git a/clockIn.html b/clockIn.html
index dbe3515..5aab4aa 100644
--- a/clockIn.html
+++ b/clockIn.html
@@ -27,7 +27,7 @@ and open the template in the editor.
Tus fichadas
Situación de los ultimos 7 días
-
Total: 7.7h
+
diff --git a/config.js b/config.js
index 3812dd5..b3b50d2 100644
--- a/config.js
+++ b/config.js
@@ -4,5 +4,5 @@ var process = {
};
var config = {
- urlBase: 'http://localhost:9090'
+ urlBase: 'http://localhost:8080'
};
diff --git a/css/style.css b/css/style.css
index 7401567..c7eb25e 100644
--- a/css/style.css
+++ b/css/style.css
@@ -274,7 +274,7 @@ header{
.listHorario .headerLi{
width: 100%;
overflow: hidden;
- border-bottom: 1px solid #9EA7AC;
+ border-top: 1px solid #9EA7AC;
padding-bottom: 10px;
}
diff --git a/img/middle.png b/img/middle.png
new file mode 100644
index 0000000..63350a4
Binary files /dev/null and b/img/middle.png differ
diff --git a/js/clockIn.js b/js/clockIn.js
index c02e5b2..ae7f839 100644
--- a/js/clockIn.js
+++ b/js/clockIn.js
@@ -42,7 +42,7 @@ function setView() {
$("." + userData["button2"]).show();
}
-function fichar(direction) {
+function fichar(direction) {
$.post({
urlPath: 'clockIn',
jsonData: [userData['userFk'], direction],
@@ -87,44 +87,89 @@ function getInfo() {
processData: false,
success: function (data) {
$('.footer').show();
- printHorario(data);
+ printTimetable(data);
}
});
}
-function printHorario(horarios) {
- var c = "in";
- for (var i = 0; i < horarios.length; i++) {
- if (i % 2 !== 0) {
- c = "out";
- } else {
- c = "in";
- }
- if (horarios[i]["7_dias_antes"] === "total") {
- if (horarios.length > (i + 1)) {
- printTotalHours(horarios[i + 1]);
- }
- if (horarios.length > (i + 2)) {
- $(".total").text('Total: ' + horarios[i + 2]["1_dia_antes"] + 'h');
- }
- break;
- }
- $(".listHorario").append('