@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
32 lines • 981 B
JavaScript
/**
* 2024-09-07: Migrated from the same folder in fps-library-v2/common/Images/...
*/
export const imgTargetChoices = [
{ index: 0, key: 'top', text: "Full Body (_top)" },
{ index: 1, key: 'blank', text: "New Window (_blank)" },
];
export const imgTargetChoicesAll = [
{ index: 0, key: 'top', text: "Full Body (_top)" },
{ index: 1, key: 'blank', text: "New Window (_blank)" },
// These do not seem to work.
// { index: 2, key: 'self', text: "Same Frame (_self)" },
// { index: 3, key: 'parent', text: "Parent Frameset (_parent)" },
];
export function getTarget(findMe) {
if (findMe === 'blank') {
return "_blank";
}
else if (findMe === 'self') {
return "_self";
}
else if (findMe === 'parent') {
return "_parent";
}
else if (findMe === 'top') {
return "_top";
}
else {
return "_top";
}
}
//# sourceMappingURL=imgTarget.js.map