-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforrások.html
161 lines (136 loc) · 5.92 KB
/
források.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!doctype html>
<html lang="hu" data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Források</title>
<meta name="theme-color" content="#319197">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<style>
.accordion-item .accordion-button {
border-top-left-radius: calc(0.25rem - 1px);
border-top-right-radius: calc(0.25rem - 1px);
}
.accordion-button:not(.collapsed) {
box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);
}
.dark-mode .accordion-button:not(.collapsed) {
color: #fff; /* Sötét szövegszín a nem összecsukott gombokhoz */
background-color: #6ca17e48; /* Sötét háttérszín a nem összecsukott gombokhoz */
box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1); /* Sötét árnyék a nem összecsukott gombokhoz */
}
#teljes-szoveg {
display: none;
}
.carousel-item-blurred {
position: relative;
background-size: cover;
background-position: center;
filter: blur(10px); /* Állítsd a homályosság mértékét igény szerint */
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand activee" href="#">Struktúrális Bioinformatika</a>
<div class="collapse navbar-collapse" id="navbarTogglerDemo03">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link activee" aria-current="page" href="index.html">Főoldal</a>
</li>
<li class="nav-item">
<a class="nav-link" href="források.html">Források</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" aria-disabled="true">elérhetetlen</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Keresés" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Keresés</button>
</form>
<button class="btn ms-3" style="border: 1px solid;" id="dark-mode-toggle" data-bs-toggle="button" aria-pressed="false">Mód</button>
</div>
</div>
</nav>
<div class="container">
<br>
<div class="card" >
<img src="images/59_6266181a46a518.53678057.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Források</h5>
<a class="card-text" href="https://mernokkapu.hu/strukturalis-bioinformatika/ ">
https://mernokkapu.hu/strukturalis-bioinformatika/
</a>
<br>
<a class="card-text" href="https://gyires.inf.unideb.hu/GyBITT/09/ch11.html">
https://gyires.inf.unideb.hu/GyBITT/09/ch11.html
</a>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script>
const darkModeToggle = document.getElementById('dark-mode-toggle');
const htmlElement = document.querySelector('html');
darkModeToggle.addEventListener('click', () => {
const currentTheme = htmlElement.getAttribute('data-bs-theme');
if (currentTheme === 'light') {
htmlElement.setAttribute('data-bs-theme', 'dark');
localStorage.setItem('theme', 'dark');
applyDarkModeStyles();
} else {
htmlElement.setAttribute('data-bs-theme', 'light');
localStorage.setItem('theme', 'light');
applyLightModeStyles();
}
});
function applyDarkModeStyles() {
const accordionHeaders = document.querySelectorAll('.accordion-header');
const accordionBodies = document.querySelectorAll('.accordion-body');
accordionHeaders.forEach(header => {
header.classList.add('dark-mode-accordion-header');
});
accordionBodies.forEach(body => {
body.classList.add('dark-mode-accordion-body');
});
}
function applyLightModeStyles() {
const accordionHeaders = document.querySelectorAll('.accordion-header');
const accordionBodies = document.querySelectorAll('.accordion-body');
accordionHeaders.forEach(header => {
header.classList.remove('dark-mode-accordion-header');
});
accordionBodies.forEach(body => {
body.classList.remove('dark-mode-accordion-body');
});
}
// Check for theme preference from local storage on page load
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
htmlElement.setAttribute('data-bs-theme', savedTheme);
if (savedTheme === 'dark') {
applyDarkModeStyles();
}
}
</script>
<script>
document.getElementById("bovemebben-gomb").addEventListener("click", function(e) {
e.preventDefault(); // Megakadályozza a link alapértelmezett működését (pl. ugrás az href-be)
document.getElementById("teljes-szoveg").style.display = "block";
this.style.display = "none"; // Elrejti a gombot
});
const blurredImage = 'path_to_blurred_image.jpg'; // Itt állítsd be a homályosított kép útvonalát
const carouselItems = document.querySelectorAll('.carousel-item img');
carouselItems.forEach(item => {
if (!item.getAttribute('src')) {
item.parentNode.style.backgroundImage = `url('${blurredImage}')`;
}
});
</script>
</body>
</html>