Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opening-hours
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
regionalkauf
opening-hours
Commits
1509eb46
Commit
1509eb46
authored
Jul 01, 2014
by
Johannes Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created lib folder
parent
81ef072c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
dateViews.js
lib/dateViews.js
+3
-11
No files found.
lib/dateViews.js
View file @
1509eb46
...
...
@@ -47,9 +47,9 @@ function createMonthView(data, now, monthOffset) {
var
oHours
=
getDataFromTo
(
data
,
startDate
,
endDate
);
var
content
=
'<div class="monthview-maindiv">'
;
content
+=
'<div class="monthview-month">'
+
moment
(
monthDate
).
format
(
"MMMM"
)
+
'</div>'
;
content
+=
'<table class="monthview-table"><thead class="monthview-thead"><tr>'
;
for
(
var
i
=
0
;
i
<
7
;
i
++
)
{
content
+=
'<th class="monthview-th">'
+
moment
(
oHours
[
i
].
date
).
format
(
"dd"
)
+
'</th>'
;
}
...
...
@@ -153,15 +153,6 @@ function compareDate(date1, date2) {
return
diff
;
}
function
parseJSON
(
json
)
{
var
result
=
JSON
.
parse
(
json
);
for
(
var
i
=
0
;
i
<
result
.
length
;
i
++
)
{
var
elem
=
result
[
i
];
elem
[
0
]
=
new
Date
(
elem
[
0
]);
elem
[
1
]
=
new
Date
(
elem
[
1
]);
}
return
result
;
}
moment
.
lang
(
"de"
);
...
...
@@ -175,3 +166,4 @@ console.log();
fs
.
writeFile
(
process
.
env
[
"HOME"
]
+
'/Desktop/bla.html'
,
weekView
,
function
(
err
)
{
console
.
log
(
err
);
});
console
.
log
(
moment
.
weekdaysMin
());
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment