Skip to content
Snippets Groups Projects
Commit bbedd259 authored by alexisben's avatar alexisben
Browse files

organization chapo

parent ea3d4898
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,15 @@
.organizations
margin-top: $spacing2
.organizations__page
.lead
font-family: $lead-sidebar-font-family
font-weight: $lead-sidebar-weight
line-height: $lead-sidebar-line-height
margin-bottom: $spacing1
@include media-breakpoint-up(desktop)
font-size: $lead-sidebar-size-desktop
.document-content
.organization-meta
.logo
......
......@@ -11,7 +11,18 @@
}}
<div class="container">
{{ partial "organizations/content.html" . }}
<div itemprop="articleBody" class="rich-text">
{{ partial "pages/chapo.html" (dict
"context" .
) }}
{{ if (partial "GetTextFromHTML" .Content) }}
{{ partial "PrepareHTML" (
partial "H2AddId" .Content
) }}
{{ end }}
</div>
<div class="organization-meta">
{{ partial "organizations/logo.html" . }}
{{ partial "organizations/contacts.html" . }}
......
......@@ -165,4 +165,23 @@
document.querySelector('.d-cross').style.left = e.clientX + "px";
document.querySelector('.d-cross').style.top = e.clientY + "px";
})
function responsiveImageDebugOutput(img) {
if (!img) {
throw new TypeError("Expected an image node. Got none.");
}
const listener = function () {
const dimensionWidth = img.naturalWidth * window.devicePixelRatio;
const dimensionHeight = img.naturalHeight * window.devicePixelRatio;
console.log(`
-------------------------
Rendered size: ${img.width}x${img.height}
Intrinsic size: ${dimensionWidth}x${dimensionHeight}
Device Pixel Ratio: ${window.devicePixelRatio}
-------------------------
`);
};
if (img.complete) listener();
//img.addEventListener('load', listener);
}
</script>
\ No newline at end of file
{{- partial "commons/chapo.html" . -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment