“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, “%”);
};
sign the pledge
Sign the Path to Justice Pledge
Officials who sign the Path to Justice Pledge commit to support policies that:
-
End police brutality and killings by restricting the use of force, creating non-lethal response teams, and demilitarizing police forces.
-
Hold law enforcement accountable by creating committees for oversight with subpoena powers, and eliminating exceptions for law enforcement such as qualified immunity
Please provide a link to a social media post or press release as proof of a public statement in support of the Path to Justice Pledge.
[% with (progress) { %]
[% if ( goal && total ) { %]
[% progress.current = goal_type == ‘dollars’ ? total.dollars : total.actions; %]
[% progress.percent = parseInt(progress.current/goal*100); %]
{{ page.currency_sym|default:”$” }}[%= add_commas(total.dollars) %] raised so far
of our goal of {{ page.currency_sym|default:”$” }}[%= add_commas(goal) %]!
[% } else { %]
[%= add_commas(total.actions) %] [%= total.actions != 1 ? ‘actions’ : ‘action’ %] taken so far
of our goal of [%= add_commas(goal) %]!
[% } %]
[% } %]
[% } %]
State
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
District of Columbia
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
Washington, D.C.
West Virginia
Wisconsin
Wyoming
actionkit.forms.contextRoot = ‘https://go.theactionpac.com/context/’;
actionkit.forms.initForm(‘act’);