Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
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
2024 Competition
Bielefeld-CeBiTec
Commits
8a7b999f
Commit
8a7b999f
authored
6 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
kann ich openit two löschen
parent
4f8e7b74
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#414855
failed
6 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Buttons.tsx
+15
-15
15 additions, 15 deletions
src/components/Buttons.tsx
src/components/HorizontalTimeline.tsx
+1
-1
1 addition, 1 deletion
src/components/HorizontalTimeline.tsx
src/contents/engineering.tsx
+6
-6
6 additions, 6 deletions
src/contents/engineering.tsx
with
22 additions
and
22 deletions
src/components/Buttons.tsx
+
15
−
15
View file @
8a7b999f
...
@@ -5,7 +5,15 @@ interface UrlButtonProps{
...
@@ -5,7 +5,15 @@ interface UrlButtonProps{
href
:
string
,
href
:
string
,
children
:
string
,
children
:
string
,
};
};
interface
TabButtonProps
{
classy
?:
string
,
closing
:
string
,
opentype
:
string
/* children?: React.ReactNode, */
/* onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void, */
name
:
string
,
type
:
string
}
export
function
Villagebutton
({
title
,
source
,
page
}:
{
title
:
string
;
source
:
string
;
page
:
string
})
{
export
function
Villagebutton
({
title
,
source
,
page
}:
{
title
:
string
;
source
:
string
;
page
:
string
})
{
return
(
return
(
...
@@ -90,15 +98,7 @@ export function TabButtonRow({data, classy, opentype, closing}: {data: Array<Tab
...
@@ -90,15 +98,7 @@ export function TabButtonRow({data, classy, opentype, closing}: {data: Array<Tab
interface
TabButtonProps
{
classy
?:
string
,
closing
:
string
,
opentype
:
string
/* children?: React.ReactNode, */
/* onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void, */
name
:
string
,
type
:
string
}
// neuer
// neuer
export
function
TabButton
({
classy
,
name
,
closing
,
opentype
,
type
}:
TabButtonProps
){
export
function
TabButton
({
classy
,
name
,
closing
,
opentype
,
type
}:
TabButtonProps
){
if
(
!
classy
){
if
(
!
classy
){
...
@@ -234,23 +234,23 @@ export function ButtonFourRotate(){
...
@@ -234,23 +234,23 @@ export function ButtonFourRotate(){
export
function
openIt
({
it
}:
{
it
:
string
}){
export
function
openIt
({
whattoopen
,
classnamewhattoopen
}:
{
whattoopen
:
string
,
classnamewhattoopen
:
string
}){
const
openit
=
(
event
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
const
openit
=
(
event
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
/* console.log(document.getElementById(it)) */
/* console.log(document.getElementById(it)) */
console
.
log
(
document
.
getElementById
(
it
)?.
className
)
console
.
log
(
document
.
getElementById
(
whattoopen
)?.
className
)
let
tabcontent
=
document
.
getElementsByClassName
(
"
cycletab
"
);
let
tabcontent
=
document
.
getElementsByClassName
(
classnamewhattoopen
);
for
(
let
i
=
0
;
i
<
tabcontent
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
tabcontent
.
length
;
i
++
)
{
(
tabcontent
[
i
]
as
HTMLElement
).
style
.
display
=
"
none
"
;
(
tabcontent
[
i
]
as
HTMLElement
).
style
.
display
=
"
none
"
;
}
}
/* console.log(document.getElementById(it)!.style.display) */
/* console.log(document.getElementById(it)!.style.display) */
document
.
getElementById
(
it
)
!
.
style
.
display
=
"
block
"
;
document
.
getElementById
(
whattoopen
)
!
.
style
.
display
=
"
block
"
;
event
.
currentTarget
.
className
+=
"
active
"
;
event
.
currentTarget
.
className
+=
"
active
"
;
}
}
return
openit
;
return
openit
;
}
}
export
function
openItTwo
({
it
}:
{
it
:
string
}){
function
openItTwo
({
it
}:
{
it
:
string
}){
const
openit
=
(
event
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
const
openit
=
(
event
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
/* console.log(document.getElementById(it)) */
/* console.log(document.getElementById(it)) */
console
.
log
(
document
.
getElementById
(
it
)?.
className
)
console
.
log
(
document
.
getElementById
(
it
)?.
className
)
...
...
This diff is collapsed.
Click to expand it.
src/components/HorizontalTimeline.tsx
+
1
−
1
View file @
8a7b999f
...
@@ -131,7 +131,7 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
...
@@ -131,7 +131,7 @@ function TimeItem({tag, title, pic, author, tabid}: ItemProps){
<
div
>
<
div
>
{
children
}
{
children
}
</
div
>
</
div
>
<
button
onClick
=
{
Open
({
person
})
}
>
Close
</
button
>
<
button
onClick
=
{
Open
({
person
})
}
>
Close
</
button
>
</
span
>
</
span
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/contents/engineering.tsx
+
6
−
6
View file @
8a7b999f
...
@@ -203,7 +203,7 @@ export function EngineeringCycleTab(){
...
@@ -203,7 +203,7 @@ export function EngineeringCycleTab(){
<
g
<
g
id
=
"g25"
id
=
"g25"
transform
=
"translate(7.500978,3.0504898)"
>
transform
=
"translate(7.500978,3.0504898)"
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
it
:
"
designing
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
whattoopen
:
"
designing
"
,
classnamewhattoopen
:
"
cycletab
"
})
}
>
<
path
<
path
className
=
"cls-7"
className
=
"cls-7"
d
=
"m 42.05,115.59 c 27.77,9.19 57.83,-4.79 69.76,-32.23"
d
=
"m 42.05,115.59 c 27.77,9.19 57.83,-4.79 69.76,-32.23"
...
@@ -221,7 +221,7 @@ export function EngineeringCycleTab(){
...
@@ -221,7 +221,7 @@ export function EngineeringCycleTab(){
id
=
"polygon25"
id
=
"polygon25"
style
=
{
{
fill
:
"
#850f78
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
style
=
{
{
fill
:
"
#850f78
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
transform
=
"matrix(2.9806259,0,0,2.9806259,-225.43722,-156.45123)"
/>
transform
=
"matrix(2.9806259,0,0,2.9806259,-225.43722,-156.45123)"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
it
:
"
learning
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
whattoopen
:
"
learning
"
,
classnamewhattoopen
:
"
cycletab
"
})
}
>
<
path
<
path
className
=
"cls-12"
className
=
"cls-12"
d
=
"M 114,78.55 C 123.45,50.86 110,20.75 82.66,8.6"
d
=
"M 114,78.55 C 123.45,50.86 110,20.75 82.66,8.6"
...
@@ -248,7 +248,7 @@ export function EngineeringCycleTab(){
...
@@ -248,7 +248,7 @@ export function EngineeringCycleTab(){
style
=
{
{
fill
:
"
#a0a7f3
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
style
=
{
{
fill
:
"
#a0a7f3
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
inkscape
:
transform-center-x
=
"3.6173751"
inkscape
:
transform-center-x
=
"3.6173751"
inkscape
:
transform-center-y
=
"5.1978852"
/>
inkscape
:
transform-center-y
=
"5.1978852"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
it
:
"
testing
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
whattoopen
:
"
testing
"
,
classnamewhattoopen
:
"
cycletab
"
})
}
>
<
path
<
path
className
=
"cls-9"
className
=
"cls-9"
d
=
"M 78.599111,7.5468264 C 43.820346,-2.6177588 13.956746,14.286046 4.2106281,46.368749"
d
=
"M 78.599111,7.5468264 C 43.820346,-2.6177588 13.956746,14.286046 4.2106281,46.368749"
...
@@ -273,7 +273,7 @@ export function EngineeringCycleTab(){
...
@@ -273,7 +273,7 @@ export function EngineeringCycleTab(){
id
=
"polygon25-6"
id
=
"polygon25-6"
style
=
{
{
fill
:
"
#f57d22
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
style
=
{
{
fill
:
"
#f57d22
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
transform
=
"matrix(-2.9650314,0.30449893,-0.30449893,-2.9650314,364.84067,249.28249)"
/>
transform
=
"matrix(-2.9650314,0.30449893,-0.30449893,-2.9650314,364.84067,249.28249)"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
it
:
"
building
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
whattoopen
:
"
building
"
,
classnamewhattoopen
:
"
cycletab
"
})
}
>
<
path
<
path
className
=
"cls-11"
className
=
"cls-11"
d
=
"M 2.6659753,50.953505 C -2.0956694,72.727915 10.936866,102.94273 36.656234,113.62834"
d
=
"M 2.6659753,50.953505 C -2.0956694,72.727915 10.936866,102.94273 36.656234,113.62834"
...
@@ -294,7 +294,7 @@ export function EngineeringCycleTab(){
...
@@ -294,7 +294,7 @@ export function EngineeringCycleTab(){
id
=
"polygon22"
id
=
"polygon22"
style
=
{
{
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
,
fill
:
"
#f4cc1e
"
,
fillOpacity
:
"
1
"
}
}
style
=
{
{
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
,
fill
:
"
#f4cc1e
"
,
fillOpacity
:
"
1
"
}
}
transform
=
"matrix(2.8248588,0,0,2.8248588,-67.797781,-207.96977)"
/>
transform
=
"matrix(2.8248588,0,0,2.8248588,-67.797781,-207.96977)"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
it
:
"
designing
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
whattoopen
:
"
designing
"
,
classnamewhattoopen
:
"
cycletab
"
})
}
>
<
text
<
text
style
=
{
{
fontSize
:
"
17.3333px
"
,
lineHeight
:
"
0
"
,
fontFamily
:
"
Arial
"
,
fill
:
"
#000000
"
,
fillOpacity
:
"
1
"
,
stroke
:
"
none
"
,
strokeWidth
:
"
15
"
,
strokeLinecap
:
"
round
"
,
strokeLinejoin
:
"
round
"
,
strokeDasharray
:
"
none
"
,
strokeOpacity
:
"
1
"
,
paintOrder
:
"
fill markers stroke
"
}
}
style
=
{
{
fontSize
:
"
17.3333px
"
,
lineHeight
:
"
0
"
,
fontFamily
:
"
Arial
"
,
fill
:
"
#000000
"
,
fillOpacity
:
"
1
"
,
stroke
:
"
none
"
,
strokeWidth
:
"
15
"
,
strokeLinecap
:
"
round
"
,
strokeLinejoin
:
"
round
"
,
strokeDasharray
:
"
none
"
,
strokeOpacity
:
"
1
"
,
paintOrder
:
"
fill markers stroke
"
}
}
...
@@ -305,7 +305,7 @@ export function EngineeringCycleTab(){
...
@@ -305,7 +305,7 @@ export function EngineeringCycleTab(){
id
=
"tspan29"
/></
textPath
></
text
>
</
a
>
id
=
"tspan29"
/></
textPath
></
text
>
</
a
>
</
g
>
</
g
>
</
g
>
</
g
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
it
:
"
overview
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
openIt
({
whattoopen
:
"
overview
"
,
classnamewhattoopen
:
"
cycletab
"
})
}
>
<
circle
<
circle
style
=
{
{
opacity
:
"
0.85
"
,
fill
:
"
#e2dad7
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
15
"
,
strokeLinecap
:
"
round
"
,
strokeLinejoin
:
"
round
"
,
paintOrder
:
"
fill markers stroke
"
}
}
style
=
{
{
opacity
:
"
0.85
"
,
fill
:
"
#e2dad7
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
15
"
,
strokeLinecap
:
"
round
"
,
strokeLinejoin
:
"
round
"
,
paintOrder
:
"
fill markers stroke
"
}
}
id
=
"path1"
id
=
"path1"
...
...
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