Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Closing the Gap in Non-Latin Script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multilingual Digital Humanities
Closing the Gap in Non-Latin Script
Commits
48dae3a1
Commit
48dae3a1
authored
3 years ago
by
Jonas Müller-Laackman
Browse files
Options
Downloads
Patches
Plain Diff
removed timesheet stuff
parent
3d5680b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
timesheet-white.min.css
+0
-2
0 additions, 2 deletions
timesheet-white.min.css
timesheet.min.js
+0
-1
0 additions, 1 deletion
timesheet.min.js
with
0 additions
and
3 deletions
timesheet-white.min.css
deleted
100644 → 0
+
0
−
2
View file @
3d5680b6
.white
.timesheet
{
width
:
720px
;
height
:
292px
;
margin
:
0
auto
}
.white
.timesheet
{
border-top
:
1px
solid
rgba
(
60
,
60
,
60
,
0.3
);
background-color
:
#fbfbfb
;
position
:
relative
}
.white
.timesheet.color-scheme-default
.bubble-default
{
background-color
:
RGBA
(
252
,
70
,
74
,
1
)}
.white
.timesheet.color-scheme-default
.bubble-lorem
{
background-color
:
RGBA
(
154
,
202
,
39
,
1
)}
.white
.timesheet.color-scheme-default
.bubble-ipsum
{
background-color
:
RGBA
(
60
,
182
,
227
,
1
)}
.white
.timesheet.color-scheme-default
.bubble-dolor
{
background-color
:
RGBA
(
244
,
207
,
48
,
1
)}
.white
.timesheet.color-scheme-default
.bubble-sit
{
background-color
:
RGBA
(
169
,
105
,
202
,
1
)}
.white
.timesheet.color-scheme-alternative
.bubble-default
{
background-color
:
#f3552e
}
.white
.timesheet.color-scheme-alternative
.bubble-lorem
{
background-color
:
#88c33a
}
.white
.timesheet.color-scheme-alternative
.bubble-ipsum
{
background-color
:
#436ae0
}
.white
.timesheet.color-scheme-alternative
.bubble-dolor
{
background-color
:
#f4d234
}
.white
.timesheet.color-scheme-alternative
.bubble-sit
{
background-color
:
#707d86
}
.white
.timesheet
.scale
{
height
:
100%
;
position
:
absolute
;
top
:
0
;
left
:
0
;
float
:
left
}
.white
.timesheet
.scale
section
{
float
:
left
;
width
:
59px
;
color
:
rgba
(
50
,
50
,
50
,
0.8
);
font-family
:
"Signika Negative"
;
font-size
:
13px
;
line-height
:
24px
;
font-weight
:
300
;
border-left
:
1px
dashed
rgba
(
50
,
50
,
50
,
0.1
);
height
:
100%
}
.white
.timesheet
.data
{
margin
:
28px
0
0
0
;
padding
:
0
;
text-align
:
left
;
list-style-type
:
none
;
color
:
rgba
(
250
,
250
,
250
,
0.8
);
font-family
:
"Signika Negative"
;
font-size
:
13px
;
overflow
:
hidden
}
.white
.timesheet
.data
li
{
margin
:
0
0
3px
0
;
line-height
:
22px
;
height
:
21px
;
display
:
block
;
cursor
:
pointer
;
clear
:
both
;
position
:
relative
;
white-space
:
nowrap
}
.white
.timesheet
.data
li
:hover
.bubble
{
opacity
:
1
}
.white
.timesheet
.data
li
.date
{
color
:
#797979
;
font-size
:
14px
}
.white
.timesheet
.data
li
.label
{
font-weight
:
lighter
;
font-size
:
14px
;
padding-left
:
5px
;
line-height
:
21px
;
color
:
#333332
;
white-space
:
nowrap
}
.white
.timesheet
.data
li
.bubble
{
width
:
24px
;
height
:
7px
;
display
:
block
;
float
:
left
;
position
:
relative
;
top
:
7px
;
border-radius
:
4px
;
margin
:
0
10px
0
0
;
opacity
:
0.7
}
/*# sourceMappingURL=timesheet-white.min.css.map */
This diff is collapsed.
Click to expand it.
timesheet.min.js
deleted
100644 → 0
+
0
−
1
View file @
3d5680b6
!
function
(){
"
use strict
"
;
var
Timesheet
=
function
(
container
,
min
,
max
,
data
){
this
.
data
=
[],
this
.
year
=
{
min
:
min
,
max
:
max
},
this
.
parse
(
data
||
[]),
"
undefined
"
!=
typeof
document
&&
(
this
.
container
=
"
string
"
==
typeof
container
?
document
.
querySelector
(
"
#
"
+
container
):
container
,
this
.
drawSections
(),
this
.
insertData
())};
Timesheet
.
prototype
.
insertData
=
function
(){
for
(
var
html
=
[],
widthMonth
=
this
.
container
.
querySelector
(
"
.scale section
"
).
offsetWidth
,
n
=
0
,
m
=
this
.
data
.
length
;
m
>
n
;
n
++
){
var
cur
=
this
.
data
[
n
],
bubble
=
this
.
createBubble
(
widthMonth
,
this
.
year
.
min
,
cur
.
start
,
cur
.
end
),
line
=
[
'
<span style="margin-left:
'
+
bubble
.
getStartOffset
()
+
"
px; width:
"
+
bubble
.
getWidth
()
+
'
px;" class="bubble bubble-
'
+
(
cur
.
type
||
"
default
"
)
+
'
" data-duration="
'
+
(
cur
.
end
?
Math
.
round
((
cur
.
end
-
cur
.
start
)
/
1
e3
/
60
/
60
/
24
/
39
):
""
)
+
'
"></span>
'
,
'
<span class="date">
'
+
bubble
.
getDateLabel
()
+
"
</span>
"
,
'
<span class="label">
'
+
cur
.
label
+
"
</span>
"
].
join
(
""
);
html
.
push
(
"
<li>
"
+
line
+
"
</li>
"
)}
this
.
container
.
innerHTML
+=
'
<ul class="data">
'
+
html
.
join
(
""
)
+
"
</ul>
"
},
Timesheet
.
prototype
.
drawSections
=
function
(){
for
(
var
html
=
[],
c
=
this
.
year
.
min
;
c
<=
this
.
year
.
max
;
c
++
)
html
.
push
(
"
<section>
"
+
c
+
"
</section>
"
);
this
.
container
.
className
=
"
timesheet color-scheme-default
"
,
this
.
container
.
innerHTML
=
'
<div class="scale">
'
+
html
.
join
(
""
)
+
"
</div>
"
},
Timesheet
.
prototype
.
parseDate
=
function
(
date
){
return
-
1
===
date
.
indexOf
(
"
/
"
)?(
date
=
new
Date
(
parseInt
(
date
,
10
),
0
,
1
),
date
.
hasMonth
=!
1
):(
date
=
date
.
split
(
"
/
"
),
date
=
new
Date
(
parseInt
(
date
[
1
],
10
),
parseInt
(
date
[
0
],
10
)
-
1
,
1
),
date
.
hasMonth
=!
0
),
date
},
Timesheet
.
prototype
.
parse
=
function
(
data
){
for
(
var
n
=
0
,
m
=
data
.
length
;
m
>
n
;
n
++
){
var
beg
=
this
.
parseDate
(
data
[
n
][
0
]),
end
=
4
===
data
[
n
].
length
?
this
.
parseDate
(
data
[
n
][
1
]):
null
,
lbl
=
4
===
data
[
n
].
length
?
data
[
n
][
2
]:
data
[
n
][
1
],
cat
=
4
===
data
[
n
].
length
?
data
[
n
][
3
]:
3
===
data
[
n
].
length
?
data
[
n
][
2
]:
"
default
"
;
beg
.
getFullYear
()
<
this
.
year
.
min
&&
(
this
.
year
.
min
=
beg
.
getFullYear
()),
end
&&
end
.
getFullYear
()
>
this
.
year
.
max
?
this
.
year
.
max
=
end
.
getFullYear
():
beg
.
getFullYear
()
>
this
.
year
.
max
&&
(
this
.
year
.
max
=
beg
.
getFullYear
()),
this
.
data
.
push
({
start
:
beg
,
end
:
end
,
label
:
lbl
,
type
:
cat
})}},
Timesheet
.
prototype
.
createBubble
=
function
(
wMonth
,
min
,
start
,
end
){
return
new
Bubble
(
wMonth
,
min
,
start
,
end
)};
var
Bubble
=
function
(
wMonth
,
min
,
start
,
end
){
this
.
min
=
min
,
this
.
start
=
start
,
this
.
end
=
end
,
this
.
widthMonth
=
wMonth
};
Bubble
.
prototype
.
formatMonth
=
function
(
num
){
return
num
=
parseInt
(
num
,
10
),
num
>=
10
?
num
:
"
0
"
+
num
},
Bubble
.
prototype
.
getStartOffset
=
function
(){
return
this
.
widthMonth
/
12
*
(
12
*
(
this
.
start
.
getFullYear
()
-
this
.
min
)
+
this
.
start
.
getMonth
())},
Bubble
.
prototype
.
getFullYears
=
function
(){
return
(
this
.
end
&&
this
.
end
.
getFullYear
()
||
this
.
start
.
getFullYear
())
-
this
.
start
.
getFullYear
()},
Bubble
.
prototype
.
getMonths
=
function
(){
var
fullYears
=
this
.
getFullYears
(),
months
=
0
;
return
this
.
end
?
this
.
end
.
hasMonth
?(
months
+=
this
.
end
.
getMonth
()
+
1
,
months
+=
12
-
(
this
.
start
.
hasMonth
?
this
.
start
.
getMonth
():
0
),
months
+=
12
*
(
fullYears
-
1
)):(
months
+=
12
-
(
this
.
start
.
hasMonth
?
this
.
start
.
getMonth
():
0
),
months
+=
12
*
(
fullYears
-
1
>
0
?
fullYears
-
1
:
0
)):
months
+=
this
.
start
.
hasMonth
?
1
:
12
,
months
},
Bubble
.
prototype
.
getWidth
=
function
(){
return
this
.
widthMonth
/
12
*
this
.
getMonths
()},
Bubble
.
prototype
.
getDateLabel
=
function
(){
return
[(
this
.
start
.
hasMonth
?
this
.
formatMonth
(
this
.
start
.
getMonth
()
+
1
)
+
"
/
"
:
""
)
+
this
.
start
.
getFullYear
(),
this
.
end
?
"
-
"
+
((
this
.
end
.
hasMonth
?
this
.
formatMonth
(
this
.
end
.
getMonth
()
+
1
)
+
"
/
"
:
""
)
+
this
.
end
.
getFullYear
()):
""
].
join
(
""
)},
window
.
Timesheet
=
Timesheet
}();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment