Programs

“use strict”;

var positionImage = function positionImage(imageEl) {
var imageDimensions = imageEl.dataset.imageDimensions.split(‘x’);
var originalWidth = imageDimensions[0];
var originalHeight = imageDimensions[1];
var focalPoint = imageEl.dataset.imageFocalPoint.split(‘,’);
var focalPointX = focalPoint[0];
var focalPointY = focalPoint[1];
var parentNode = imageEl.parentNode;

var scale = function () {
var imageRatio = originalWidth / originalHeight;
var parentClientSize = {
height: parentNode.clientHeight,
width: parentNode.clientWidth
};
var parentRatio = parentClientSize.width / parentClientSize.height;

if (imageRatio > parentRatio) {
return parentClientSize.height / originalHeight;
}

return parentClientSize.width / originalWidth;
}();

var getRelativeOffset = function getRelativeOffset() {
var targetWidth = Math.ceil(originalWidth * scale);
var targetHeight = Math.ceil(originalHeight * scale);
var parentDimensionWidth = parentNode.offsetWidth;
var parentDimensionHeight = parentNode.offsetHeight;
var overflowWidth = targetWidth – parentDimensionWidth;
var overflowHeight = targetHeight – parentDimensionHeight;
var valueX;

if (overflowWidth === 0) {
valueX = focalPointX;
} else {
valueX = Math.max(Math.min(targetWidth * focalPointX – parentDimensionWidth * 0.5, overflowWidth), 0) / overflowWidth;
}

var valueY;

if (overflowHeight === 0) {
valueY = focalPointY;
} else {
valueY = Math.max(Math.min(targetHeight * focalPointY – parentDimensionHeight * 0.5, overflowHeight), 0) / overflowHeight;
}

return {
valueX: valueX,
valueY: valueY
};
};

var relativeOffset = getRelativeOffset();
var valueX = relativeOffset.valueX;
var valueY = relativeOffset.valueY;
imageEl.style.objectPosition = “”.concat(valueX * 100, “% “).concat(valueY * 100, “%”);
};

Our Programs

 


Supporting Italian language programs in elementary, middle, and high schools  - Known throughout the world for its cultural heritage, art treasures, writers, thinkers, educators, inventors, scientists, artists, and musicians, Italy has been an enduring source or innovation, creativity, original thought and learning. A deeper understanding of the Italian language and culture will enhance the educational experience of our students and lead to deeper awareness of cultural differences that enables children and young adults to become more open to and accepting of other cultures.Italidea-Midwest Ltd provides the building blocks necessary to expand the horizons of the students/future leaders that we support and to build an enduring bridge between the United States and Italy through a deeper understanding and appreciation of Italian language and culture.Italidea-Midwest Ltd is committed to initiate, fund and maintain projects and initiatives designed to increase the number of schools, students and language teachers that we support, and build lasting and meaningful relationships with the schools, administrators and faculty that we serve.However, in times of economic difficulty and budget cuts, such programs tend to suffer.Learn more about how to support our programs: Support Us
ur3.jpg

Supporting Italian language programs in elementary, middle, and high schools

Known throughout the world for its cultural heritage, art treasures, writers, thinkers, educators, inventors, scientists, artists, and musicians, Italy has been an enduring source or innovation, creativity, original thought and learning. A deeper understanding of the Italian language and culture will enhance the educational experience of our students and lead to deeper awareness of cultural differences that enables children and young adults to become more open to and accepting of other cultures.

Italidea-Midwest Ltd provides the building blocks necessary to expand the horizons of the students/future leaders that we support and to build an enduring bridge between the United States and Italy through a deeper understanding and appreciation of Italian language and culture.

Italidea-Midwest Ltd is committed to initiate, fund and maintain projects and initiatives designed to increase the number of schools, students and language teachers that we support, and build lasting and meaningful relationships with the schools, administrators and faculty that we serve.

However, in times of economic difficulty and budget cuts, such programs tend to suffer.

Learn more about how to support our programs: Support Us