.lesson-duration-container {
background-color: #f0f4f8; /* Szarawe tło dopasowane do reszty strony */
padding: 8px 15px; /* Wewnętrzny odstęp */
border-radius: 8px; /* Zaokrąglone rogi */
font-family: ‘Roboto’, Arial, sans-serif; /* Czcionka Roboto, jeśli dostępna */
font-size: 16px; /* Rozmiar tekstu */
color: #6c757d; /* Ciemny szary kolor tekstu */
display: inline-block; /* Wyświetlanie jako element blokowy */
margin-bottom: 20px; /* Odstęp na dole */
border: none; /* Bez obramowania */
}
.lesson-duration-label {
font-weight: 700; /* Pogrubienie dla etykiety */
color: #6c757d; /* Ciemny szary kolor dla etykiety */
margin-right: 5px; /* Odstęp od wartości */
}
.lesson-duration-value {
color: #6c757d; /* Ciemny szary kolor dla wartości */
font-weight: 700; /* Pogrubienie dla wartości */
}Podświetlanie tekstu z notatkami
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.highlight {
background-color: #cce7ff; /* Kolor podświetlenia bez notatki */
position: relative;
display: inline;
}
.highlight.with-note {
background-color: #ffeb3b; /* Kolor podświetlenia z notatką */
}
.note-box {
position: absolute;
background-color: #f9f9f9;
color: #333;
font-size: 14px;
line-height: 1.6;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
max-width: 250px;
z-index: 1000;
white-space: normal;
text-align: left;
display: none; /* Domyślnie ukryta */
}
.note-controls {
position: absolute;
top: -30px;
right: -30px;
display: flex;
gap: 10px;
z-index: 10;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}
.note-controls.visible {
opacity: 1;
pointer-events: all;
}
.note-controls span {
cursor: pointer;
background-color: gray;
color: white;
padding: 5px 10px;
border-radius: 5px;
font-size: 16px;
font-weight: bold;
}
.note-controls span:hover {
background-color: darkgray;
}
document.addEventListener(“DOMContentLoaded”, () => {
/**
* Funkcja do sprawdzania, czy element jest nagłówkiem.
*/
const isHeaderElement = (node) => {
while (node) {
if (node.nodeType === 1 && node.tagName.match(/^H[1-5]$/)) {
return true;
}
node = node.parentNode;
}
return false;
};
/**
* Funkcja do sprawdzania, czy element należy do tabeli.
*/
const isInsideTable = (node) => {
while (node) {
if (node.tagName === “TD” || node.tagName === “TH”) {
return node;
}
node = node.parentNode;
}
return null;
};
/**
* Funkcja do walidacji zaznaczenia.
* Blokuje zaznaczenie tekstu z różnych komórek tabeli oraz nagłówków z tekstem.
*/
const isSelectionValid = (selection) => {
if (selection.rangeCount === 0) return false;
const range = selection.getRangeAt(0);
const startContainer = range.startContainer;
const endContainer = range.endContainer;
const startInHeader = isHeaderElement(startContainer);
const endInHeader = isHeaderElement(endContainer);
// Blokowanie zaznaczenia nagłówków z tekstem
if (startInHeader !== endInHeader) {
return false;
}
const startCell = isInsideTable(startContainer);
const endCell = isInsideTable(endContainer);
// Blokuj zaznaczenie, jeśli obejmuje różne komórki tabeli
if (startCell && endCell && startCell !== endCell) {
return false;
}
return true;
};
/**
* Funkcja do podświetlania zaznaczonego tekstu.
*/
const wrapTextWithHighlight = (range) => {
const fragment = range.extractContents();
const highlight = document.createElement(“span”);
highlight.className = “highlight”;
highlight.appendChild(fragment);
range.insertNode(highlight);
const noteControls = document.createElement(“div”);
noteControls.className = “note-controls visible”;
const editNote = document.createElement(“span”);
editNote.textContent = “✎”;
editNote.title = “Edytuj notatkę”;
noteControls.appendChild(editNote);
const removeHighlight = document.createElement(“span”);
removeHighlight.textContent = “x”;
removeHighlight.title = “Usuń podświetlenie”;
noteControls.appendChild(removeHighlight);
highlight.style.position = “relative”;
highlight.appendChild(noteControls);
let noteBox = null;
const updateNotePosition = () => {
const rect = highlight.getBoundingClientRect();
if (noteBox) {
noteBox.style.top = `${rect.height}px`;
noteBox.style.left = `${rect.width / 2}px`;
}
};
const hideControlsAndNoteAfterDelay = () => {
setTimeout(() => {
noteControls.classList.remove(“visible”);
if (noteBox) noteBox.style.display = “none”;
}, 3000);
};
// Wyświetl przyciski na 3 sekundy po podświetleniu
hideControlsAndNoteAfterDelay();
highlight.addEventListener(“click”, () => {
noteControls.classList.add(“visible”);
if (noteBox) noteBox.style.display = “block”;
hideControlsAndNoteAfterDelay();
});
editNote.addEventListener(“click”, () => {
const noteText = prompt(“Dodaj lub edytuj notatkę:”, noteBox?.textContent || “”);
if (noteText) {
if (!noteBox) {
noteBox = document.createElement(“div”);
noteBox.className = “note-box”;
highlight.appendChild(noteBox);
}
noteBox.textContent = noteText;
noteBox.style.display = “block”;
highlight.classList.add(“with-note”);
updateNotePosition();
hideControlsAndNoteAfterDelay();
}
});
removeHighlight.addEventListener(“click”, () => {
const parent = highlight.parentNode;
while (highlight.firstChild) {
parent.insertBefore(highlight.firstChild, highlight);
}
parent.removeChild(highlight);
if (noteBox) noteBox.remove();
});
};
/**
* Obsługa zdarzenia `mouseup` – walidacja zaznaczenia.
*/
document.body.addEventListener(“mouseup”, () => {
const selection = window.getSelection();
if (selection.rangeCount > 0 && selection.toString().trim()) {
if (!isSelectionValid(selection)) {
alert(“Nie można zaznaczać tekstu z różnych komórek tabeli lub nagłówków z tekstem!”);
selection.removeAllRanges();
return;
}
const range = selection.getRangeAt(0);
wrapTextWithHighlight(range);
selection.removeAllRanges();
}
});
});
Introduction to Skin Anatomy
Did you know?
Did you know that the skin on your lips is actually thinner than the skin on the rest of your body? The skin on your lips is different from the rest of your body because it is thinner and more delicate. Skin on your face can be up to 16 cell layers thick while the skin on your lips is only 3 to 5 layers thick. This means your blood vessels are more apparent, giving your lips their pink or red colour.
Figure 1.1 generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
The skin is not only the largest organ of the human body but also one of the most complex. As a dynamic structure, it serves as a critical barrier between the external environment and the internal organs, while providing structural integrity, thermoregulation, and sensory feedback. The skin is composed of three primary layers: the epidermis, dermis, and subcutaneous tissue.
Epidermis
The epidermis is the outermost layer of the skin, serving as the body’s first line of defense against environmental hazards. This layer is thin, yet it performs essential roles in shielding deeper tissues from mechanical injury, pathogens, and dehydration. It is composed primarily of keratinocytes, cells that produce keratin, a tough protein that provides durability and strength. The epidermis is an avascular layer, meaning it lacks blood vessels and relies on nutrient exchange with the underlying dermis. The epidermis is divided into several distinct sublayers.
Figure 1.2, generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
Sublayers of the Epidermis
Layer
Description
Stratum Corneum
The outermost layer of the epidermis, composed of dead, flattened keratinocytes known as corneocytes. These cells are filled with keratin and arranged in overlapping layers to form a strong, protective barrier. Cells are continuously shed and replaced.
Stratum Lucidum
A thin, transparent layer present only in thicker areas of the skin, such as the palms of the hands and soles of the feet. It consists of flattened, dead keratinocytes that add an extra layer of protection.
Stratum Granulosum
This layer contains keratohyalin granules, essential for the production of keratin. Keratinocytes in this layer lose their nuclei and become flattened as they move upwards, contributing to the formation of the stratum corneum.
Stratum Spinosum
Known as the “spiny layer” due to the appearance of cells under a microscope, this layer contains desmosomes, which provide strength and flexibility. Langerhans cells, involved in immune response, are also found in this layer.
Stratum Basale
The deepest layer, where new keratinocytes are generated through mitosis. This layer also contains melanocytes, which produce melanin for skin color and UV protection, and Merkel cells, which contribute to the sense of touch by detecting pressure changes.
Cell Types in the Epidermis
Keratinocytes: The most abundant cells in the epidermis, responsible for producing keratin, which forms the waterproof barrier of the skin.
Melanocytes: Cells that produce melanin, providing pigmentation to the skin and protecting it from UV radiation.
Langerhans Cells: Immune cells that patrol the epidermis, identifying and capturing harmful pathogens.
Merkel Cells: Sensory cells located in the stratum basale, responsible for detecting fine touch and pressure.
The constant renewal of the epidermis ensures that the skin can maintain its protective functions, with old cells being shed and replaced by new cells generated in the deeper layers. The process of skin cell turnover takes approximately 28-30 days in healthy adults.
Dermis
Beneath the epidermis lies the dermis, a much thicker and more structurally complex layer. The dermis provides the skin with its strength and elasticity, owing to its rich network of collagen and elastin fibers. Unlike the epidermis, the dermis is well-vascularized and contains a variety of structures, including blood vessels, nerve endings, hair follicles, and glands. The dermis is composed of two main sublayers: the papillary layer, closer to the epidermis, and the reticular layer – deeper within.
Figure 1.3, generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
Sublayers of the Dermis
Layer
Description
Papillary Layer
This upper layer of the dermis is composed of loose connective tissue and forms dermal papillae, which are small, finger-like projections extending into the epidermis. These projections increase the surface area for nutrient exchange and help anchor the dermis to the epidermis. The papillary layer is rich in capillaries, supplying nutrients to the avascular epidermis, and contains Meissner’s corpuscles, specialized nerve endings that detect light touch.
Reticular Layer
The deeper and thicker layer of the dermis is composed of dense, irregular connective tissue rich in collagen and elastin fibers. These fibers provide the skin with tensile strength and elasticity, allowing it to stretch and recoil without tearing. The reticular layer also contains various structures such as hair follicles, sebaceous glands (oil glands), sweat glands, and larger blood vessels.
Hair Follicles and Associated Structures
The dermis is home to hair follicles, which are responsible for the growth of hair. Each follicle is anchored deep in the dermis, and its root extends down into the subcutaneous tissue. Sebaceous glands are attached to hair follicles and secrete sebum, an oily substance that lubricates the skin and hair, preventing them from becoming dry and brittle. Hair follicles also contain arrector pili muscles, small muscles that contract in response to cold or fear, causing “goosebumps.”
Subcutaneous Tissue
The subcutaneous tissue, also known as the hypodermis, is the deepest layer of the skin, located beneath the dermis. This layer serves as a critical interface between the skin and the underlying muscles and bones. It is primarily composed of adipose tissue (fat), which acts as a cushion to absorb mechanical shocks and insulate the body from extreme temperatures.
Figure 1.4, generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
Components of the Subcutaneous Tissue
Adipose Tissue: The primary component of the hypodermis, adipose tissue stores fat, which serves as an energy reserve and provides insulation. The thickness of this layer varies across different parts of the body and among individuals.
Connective Tissue: In addition to adipose cells, the subcutaneous layer contains fibrous connective tissue that binds the skin to underlying structures, such as muscles and bones.
Blood Vessels and Nerves: Larger blood vessels and nerves pass through the subcutaneous tissue to supply the dermis and epidermis. This layer also contains lymphatic vessels, which help drain excess fluid from the tissues and return it to the bloodstream.
Associated Skin Structures: Hair, Nails, and Glands
The skin not only serves as a protective barrier but also houses several specialized structures that play critical roles in maintaining its overall function. These structures include hair follicles, nails, and glands, all of which contribute to sensory perception, protection, and homeostasis.
Hair Follicles
Hair follicles are complex tubular structures responsible for producing hair, a keratinized filament that extends from the epidermis through the dermis and sometimes into the subcutaneous tissue. Hair provides insulation, protects against UV radiation, and enhances sensory perception. Each hair follicle undergoes a growth cycle, composed of the following phases:
Anagen (Growth Phase): This is the active phase of hair growth, which can last for several years, depending on the location of the hair.
Catagen (Transitional Phase): Hair growth slows, and the hair follicle begins to shrink. This phase typically lasts a few weeks.
Telogen (Resting Phase): The follicle remains inactive, and eventually, the old hair is shed, making way for new growth.
As you already know each hair follicle is associated with a sebaceous gland that secretes sebum to keep the hair and surrounding skin moisturized.
Arrector pili muscles are small smooth muscles attached to hair follicles that contract in response to cold or emotional stimuli, causing the hair to stand up, a phenomenon known as “goosebumps.”
Figure 1.5, generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
Sweat Glands
Sweat and sebaceous glands are vital for maintaining the health and functionality of the skin. Together, they regulate body temperature, manage hydration, and protect the skin from external elements.
While sweat glands are primarily responsible for cooling the body and excreting waste, sebaceous glands ensure the skin and hair remain moisturized and protected
Figure 1.6, generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
Types of Sweat and Sebaceous Glands
Gland Type
Description
Eccrine Sweat Glands
Found throughout the body, especially on the palms, soles, and forehead, eccrine glands secrete a watery sweat directly onto the skin surface. This sweat is primarily composed of water, salts, and waste products, and its evaporation helps cool the body.
Apocrine Sweat Glands
Located mainly in the armpits, groin, and around the nipples, apocrine glands secrete a thicker, milky fluid into hair follicles. This sweat is initially odorless, but when broken down by skin bacteria, it produces body odor. These glands become active during puberty and are linked to emotional and hormonal changes.
Sebaceous Glands
Found throughout the skin except on the palms and soles, sebaceous glands are closely associated with hair follicles. They secrete an oily substance called sebum, which lubricates the hair and skin, preventing them from becoming dry and brittle. Sebum also plays a role in maintaining the skin’s barrier function, protecting against environmental damage and the growth of harmful microorganisms. Unlike sweat glands, sebaceous glands do not play a direct role in thermoregulation but are essential for skin health and hydration.
Nails
Nails are hardened structures composed of keratin and are located at the tips of fingers and toes. Nails serve multiple purposes, including protecting the delicate tissues of the fingertips and enhancing fine motor skills. The primary parts of the nail include:
Nail Plate: The visible, hard part of the nail.
Nail Bed: The skin beneath the nail plate, rich in blood vessels, which give the nail its pinkish color.
Nail Matrix: The area beneath the skin at the base of the nail where new nail cells are produced, leading to nail growth.
Cuticle (Eponychium): A thin layer of skin that protects the area between the nail and the skin from infection.
Figure 1.7, generated using Servier Medical Art, provided by Servier, licensed under a Creative Commons Attribution 4.0 unported license
Nails grow continuously throughout life, with the growth rate influenced by factors such as age, nutrition, and overall health.
Common Congenital Anomalies
Congenital anomalies of the integumentary system, which includes the skin, hair, nails, and associated glands, are often visible at birth and can range from benign to conditions with significant health implications. These anomalies can affect appearance, skin function, and, in some cases, increase the risk of complications like infections or malignancies. Below are some frequently observed congenital anomalies in the integumentary system:
Congenital Anomaly
Description
Congenital Melanocytic Nevus (CMN)
CMNs are pigmented birthmarks that vary in size and can appear anywhere on the body. Small CMNs are generally benign, but larger nevi (greater than 20 cm in diameter) may increase the risk of melanoma. Regular monitoring and, in some cases, surgical removal may be recommended for larger or atypical lesions.
Epidermal Nevus
These are skin lesions formed by an overgrowth of epidermal cells, often appearing as raised, pigmented patches. Epidermal nevi are generally benign but may become pigmented patches.. Some cases are associated with systemic conditions, requiring further medical evaluation and monitoring.
Port-Wine Stain (PWS)
A type of capillary malformation, PWS presents as a flat, reddish-purple birthmark typically on the face or neck. Although usually asymptomatic, PWS can darken and thicken over time. Laser therapy is often used to reduce visibility, particularly if located in prominent areas. In rare cases, PWS can be associated with Sturge-Weber syndrome.
Albinism
Albinism is a genetic condition characterized by reduced or absent melanin production, affecting skin, hair, and eye pigmentation. Individuals with albinism are more sensitive to sunlight and have an increased risk of skin cancer. Management includes protective sun measures and regular dermatological evaluations.
Ichthyosis
Ichthyosis encompasses a group of disorders that cause dry, scaly skin due to abnormal skin cell turnover. Symptoms range from mild to severe, with certain types, like lamellar ichthyosis, appearing at birth. Treatment focuses on regular moisturization and specialized skincare to prevent cracking and infection.
Epidermolysis Bullosa (EB)
EB is a group of genetic conditions causing fragile skin that easily blisters from minor friction. Symptoms can range from mild to life-threatening, depending on the type. Management includes wound care, infection prevention, and, in severe cases, supportive therapies to address complications.
Congenital Hypertrichosis
Often called “werewolf syndrome,” is a rare genetic condition that causes excessive hair growth from birth. It results in abnormal hair growth, typically on the face, arms, and other parts of the body. The condition is caused by genetic mutations and can be inherited in an X-linked dominant pattern. While it has cosmetic effects, there are no specific treatments beyond hair removal methods.
Zaloguj się
To szkolenie wymaga wykupienia dostępu. Zaloguj się.