JavaScript -Zusammenbruch beeinflussen die Flex -AnzeigeHTML

HTML-Programmierer
Anonymous
 JavaScript -Zusammenbruch beeinflussen die Flex -Anzeige

Post by Anonymous »

Egal wie ich versucht habe, mein CSS zu ändern. Ich bin nicht in der Lage, 5 Kategorien in .Content trotz des Anzeigens: Flex Eigenschaft. Genau wie die Eigenschaft Flex bestellt sie? Ich bin in der Lage, etwas Anständiges zu bekommen, besonders in .Hori-box-skill < /code> Wenn ich den My JavaScript entfernen, entfernen Sie den kollabsiblen Effekt.

Code: Select all

document.addEventListener("DOMContentLoaded", function() {
var coll = document.getElementsByClassName("collapse");

for (var i = 0; i < coll.length; i++) {
var content = coll[i].nextElementSibling;
content.style.display = "none"; // Ensures it's hidden on load

coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
});< /code>
* {
padding: 0;
margin: 0;
box-sizing: border-box;

}

html {
scroll-behavior: smooth;
}

body {
overflow-x: hidden;
}

/* Top section here */

.top-section {
color: white;
}

.header {
background-image: url("../images/my_pc1.jpg");
background-size: cover;
background-position: center;
height: 100vh;
position: relative;

}

.header::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.2);
/* adjust opacity here */
z-index: 1;
}

.header * {
position: relative;
z-index: 2;
/* Ensures content appears above the overlay */
}

.bottom-section {
background-color: black;
color: white;
padding: 50px;

}

.right-navbar ul {
display: flex;
justify-content: center;
text-align: center;
gap: 20px;
font-size: 20px;
padding: 0;
margin: 0;
}

.navbar {
background-color: rgba(19, 22, 26, 0.5);
/* padding: 10px;  */
position: relative;
width: 100%;

}

.navbar li {
padding: 10px;
}

.navbar li:hover {
background-color: rgba(19, 22, 26, 0.7);
}

.description {
padding: 0 30px;
display: flex;
justify-content: space-between;
text-align: center;
}

.description .quote p {
color: white;
padding-top: 150px;
padding-right: 20px;
font-family: "Alfa Slab One";
text-transform: uppercase;
font-size: 20px;
overflow: hidden;
white-space: nowrap;
animation: typing 2.5s steps(38)forwards;

}

.description .quote p::after {
content: "";
position: absolute;
display: block;
height: 100%;
width: 1px;
background: #dadada;
right: 0;
top: 0;
animation: cursorr 1s steps(1, end) 2.5s 1 forwards;
;
}

@keyframes typing {
from {
width: 0;
}

to {
width: 100%;
}

}

@keyframes cursorr {
0% {
opacity: 1;
}

50% {
opacity: 0;
}

100% {
opacity: 0;
}
}

/* Bootom section */

.about {
padding: 30px 20px;

}

.about p {
line-height: 1.5rem;
text-align: justify;
font-size: 20px;
}

.content {
display: flex;
justify-content: space-between;
text-align: center;
flex-wrap: wrap;
gap: 20px;
overflow: hidden;
transition: max-height 0.3s ease-out;
line-height: 2.5rem;
}

.content h4 {
text-transform: uppercase;
}

.collapse {
background-color: #000;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 50px;
text-transform: uppercase;
}

.collapse:after {
content: '\002B';
font-size: 13px;
color: white;
float: right;
margin-left: 5px;
font-size: 25px;

}

.active:after {
content: "\2212";
}

.active,
.collapse:hover {
background-color: #555;
}

a,
li {
list-style: none;
text-decoration: none;
color: white;
}

/* Form */

.form-group {
margin: 2rem 0;
}

.contacts input,
.content textarea {
border: none;
border-bottom: 1px white solid;
width: 90%;
padding-bottom: 1rem;
background-color: black;

}

.contacts input::placeholder,
.contact textarea::placeholder {
color: white;
opacity: 1;
}

.contacts input:focus,
.contact textarea:focus {
outline: none;
/* Removes blue border */
border-bottom: 1px solid white;
/* Keeps your white bottom border */
color: white;
/* Makes typed text white */

}

.form-group .btn {
display: inline-block;
padding: 1rem 2rem;
border: 1px solid;
width: 50%;
border-radius: 10px;
font-size: 20px;
cursor: pointer;
transition: all 0.7s ease-in-out;

}

.form-group .btn:hover {
background-color: #0056b3;
width: 90%;

}

.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;

}

/* Media queries */

@media(max-width:768px) {
.right-navbar ul {
flex-direction: column;
align-items: center;
background-color: rgba(0, 0, 0, 0.8);
gap: 10px;
padding: 5px;
}

.right-navbar ul li {
margin: 5px 0;
padding: 5px 0;
font-size: 18px;

}

.navbar {
flex-direction: column;
align-items: center;
width: 100%;

}

.navbar li:hover {
background-color: #555;
width: 100%;

}

.description .quote p {
padding-top: 50px;
font-size: 15px;
text-align: center;
}

.collapse {
font-size: 30px;
}

.form-group .btn {
width: 100%;
}

.about p {
line-height: 1.2rem;
text-align: justify;
font-size: 15px;
word-spacing:  1px;
}

}< /code>
[*]










[list]
[url=#about-me]About[/url]
[*][url=#skills]Skills[/url]
[*][url=#projects]Project[/url]
[*]Contact
[/list]




[list]
[*]
[*]
[/list]

I don't develop, I engineer Solutions.









About Me
I am Yannick, A highly motivated and inquisitive problem-solver. I leverage the power of Information Technology to architect, sustain, and optimise innovative solutions.
My core competencies encompass the full lifecycle of applications development and maintenance, complemented by a robust understanding of data-centric disciplines including Data-Science, Analysis, and Engineering.




skills glimpse


[h4]Programming[/h4]
[list]
[*]
Python

[*]
Javascript

[*]
C#

[*]
HTML &  C S S & l t ; / p & g t ; < b r   / >                     & l t ; / l i & g t ; < b r   / >                     & l t ; l i & g t ; < b r   / >                         & l t ; p & g t ; L i n u x / U n i x & l t ; / p & g t ; < b r   / >                     & l t ; / l i & g t ; < b r   / >                 & l t ; / u l & g t ; < b r   / >             & l t ; / d i v & g t ; < b r   / >             & l t ; d i v   c l a s s = " b o x   p r o g r a m m i n g " & g t ; < b r   / >                 & l t ; h 4 & g t ; D a t a b a s e s   D B M S & l t ; / h 4 & g t ; < b r   / >                 & l t ; u l & g t ; < b r   / >                     & l t ; l i & g t ; < b r   / >                         & l t ; p & g t ; T - S Q L / P L - S Q L & l t ; / p & g t ; < b r   / >                     & l t ; / l i & g t ; < b r   / >                     & l t ; l i >
Mongo DB

[*]
MariaDB

[*]
Hbase

[*]
BigQuery

[/list]

[h4]Machine-Learning[/h4]
[list]
[*]
Regressions

[*]
Random Forests

[*]
Apriori

[*]
K-Nearest neighbours

[*]
Backpropafation

[*]
RNN

[*]
LSTM

[*]
Statistics Inference

[*]

[/list]

[h4]Methodology[/h4]
[list]
[*]
Agile

[*]
DevOps

[/list]

[h4]Others[/h4]
[list]
[*]
Tableau/Power BI

[*]
Databricks

[*]
Flask/.Net

[*]
Gitlab

[*]
Ansible/Jenkins

[*]
Docker

[*]
Kubernetes

[*]
React/EprssJS

[/list]




Projects

[list]
[*]Web
[*]Data Science
[*]Data Engineering
[*]DevOps
[/list]



Get in touch



First Name


Last Name


Email Address


Message
   

Send Message










Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post