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
b1046c5a
Commit
b1046c5a
authored
6 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
merged openIt
parent
2432bad0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#414871
passed
6 months ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Buttons.tsx
+0
-22
0 additions, 22 deletions
src/components/Buttons.tsx
src/contents/engineering.tsx
+8
-7
8 additions, 7 deletions
src/contents/engineering.tsx
with
8 additions
and
29 deletions
src/components/Buttons.tsx
+
0
−
22
View file @
b1046c5a
...
...
@@ -212,28 +212,6 @@ export function ButtonFourRotate(){
}
export
function
openIt
({
whattoopen
,
classnamewhattoopen
,
whattoclose
}:
{
whattoopen
:
string
,
classnamewhattoopen
:
string
,
whattoclose
?:
string
}){
const
openit
=
(
event
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
var
i
,
tabcontent
,
wegcontent
;
console
.
log
(
document
.
getElementById
(
whattoopen
)?.
className
)
tabcontent
=
document
.
getElementsByClassName
(
classnamewhattoopen
);
for
(
i
=
0
;
i
<
tabcontent
.
length
;
i
++
)
{
(
tabcontent
[
i
]
as
HTMLElement
).
style
.
display
=
"
none
"
;
}
/* console.log(document.getElementById(it)!.style.display) */
document
.
getElementById
(
whattoopen
)
!
.
style
.
display
=
"
block
"
;
if
(
whattoclose
){
wegcontent
=
document
.
getElementsByClassName
(
whattoclose
);
for
(
i
=
0
;
i
<
wegcontent
.
length
;
i
++
)
{
(
wegcontent
[
i
]
as
HTMLElement
).
style
.
display
=
"
none
"
;
}
}
event
.
currentTarget
.
className
+=
"
active
"
;
}
return
openit
;
}
export
function
openTab
({
cityName
,
cla
,
weg
}:{
cityName
:
string
,
cla
:
string
,
weg
?:
string
})
{
const
opencity
=
(
event
:
React
.
MouseEvent
<
HTMLButtonElement
,
MouseEvent
>
)
=>
{
var
i
,
tabcontent
,
tablinks
,
wegcontent
;
...
...
This diff is collapsed.
Click to expand it.
src/contents/engineering.tsx
+
8
−
7
View file @
b1046c5a
import
{
ButtonOneEngineering
,
openIt
}
from
"
../components/Buttons
"
;
import
{
ButtonOneEngineering
}
from
"
../components/Buttons
"
;
import
{
LoremShort
}
from
"
../components/loremipsum
"
;
import
{
useEffect
}
from
"
react
"
;
import
{
useLocation
}
from
"
react-router-dom
"
;
import
{
openElement
}
from
"
../utils/openElement
"
;
export
function
Engineering
()
{
...
...
@@ -203,7 +204,7 @@ export function EngineeringCycleTab(){
<
g
id
=
"g25"
transform
=
"translate(7.500978,3.0504898)"
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
It
({
whattoo
pen
:
"
designing
"
,
class
namewhattoopen
:
"
cycletab
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
Element
({
elementToO
pen
:
"
designing
"
,
class
ToHide
:
"
cycletab
"
})
}
>
<
path
className
=
"cls-7"
d
=
"m 42.05,115.59 c 27.77,9.19 57.83,-4.79 69.76,-32.23"
...
...
@@ -221,7 +222,7 @@ export function EngineeringCycleTab(){
id
=
"polygon25"
style
=
{
{
fill
:
"
#850f78
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
transform
=
"matrix(2.9806259,0,0,2.9806259,-225.43722,-156.45123)"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
It
({
whattoo
pen
:
"
learning
"
,
class
namewhattoopen
:
"
cycletab
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
Element
({
elementToO
pen
:
"
learning
"
,
class
ToHide
:
"
cycletab
"
})
}
>
<
path
className
=
"cls-12"
d
=
"M 114,78.55 C 123.45,50.86 110,20.75 82.66,8.6"
...
...
@@ -248,7 +249,7 @@ export function EngineeringCycleTab(){
style
=
{
{
fill
:
"
#a0a7f3
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
inkscape
:
transform-center-x
=
"3.6173751"
inkscape
:
transform-center-y
=
"5.1978852"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
It
({
whattoo
pen
:
"
testing
"
,
class
namewhattoopen
:
"
cycletab
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
Element
({
elementToO
pen
:
"
testing
"
,
class
ToHide
:
"
cycletab
"
})
}
>
<
path
className
=
"cls-9"
d
=
"M 78.599111,7.5468264 C 43.820346,-2.6177588 13.956746,14.286046 4.2106281,46.368749"
...
...
@@ -273,7 +274,7 @@ export function EngineeringCycleTab(){
id
=
"polygon25-6"
style
=
{
{
fill
:
"
#f57d22
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
}
}
transform
=
"matrix(-2.9650314,0.30449893,-0.30449893,-2.9650314,364.84067,249.28249)"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
It
({
whattoo
pen
:
"
building
"
,
class
namewhattoopen
:
"
cycletab
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
Element
({
elementToO
pen
:
"
building
"
,
class
ToHide
:
"
cycletab
"
})
}
>
<
path
className
=
"cls-11"
d
=
"M 2.6659753,50.953505 C -2.0956694,72.727915 10.936866,102.94273 36.656234,113.62834"
...
...
@@ -294,7 +295,7 @@ export function EngineeringCycleTab(){
id
=
"polygon22"
style
=
{
{
strokeWidth
:
"
6
"
,
strokeDasharray
:
"
none
"
,
fill
:
"
#f4cc1e
"
,
fillOpacity
:
"
1
"
}
}
transform
=
"matrix(2.8248588,0,0,2.8248588,-67.797781,-207.96977)"
/>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
It
({
whattoo
pen
:
"
designing
"
,
class
namewhattoopen
:
"
cycletab
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
Element
({
elementToO
pen
:
"
designing
"
,
class
ToHide
:
"
cycletab
"
})
}
>
<
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
"
}
}
...
...
@@ -305,7 +306,7 @@ export function EngineeringCycleTab(){
id
=
"tspan29"
/></
textPath
></
text
>
</
a
>
</
g
>
</
g
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
It
({
whattoo
pen
:
"
overview
"
,
class
namewhattoopen
:
"
cycletab
"
})
}
>
<
a
typeof
=
"button"
className
=
"svg-button"
onClick
=
{
open
Element
({
elementToO
pen
:
"
overview
"
,
class
ToHide
:
"
cycletab
"
})
}
>
<
circle
style
=
{
{
opacity
:
"
0.85
"
,
fill
:
"
#e2dad7
"
,
fillOpacity
:
"
1
"
,
strokeWidth
:
"
15
"
,
strokeLinecap
:
"
round
"
,
strokeLinejoin
:
"
round
"
,
paintOrder
:
"
fill markers stroke
"
}
}
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