-->
`;
const embedded = createRawHtml(rawHtml);
embedded.appendChild(appendScript("https://platform.twitter.com/widgets.js"));
return embedded;
}
function processSingleContentElement(contentElement) {
switch (contentElement.displayType) {
case 'section': return contentElement.elements.map(it => processSingleContentElement(it));
case 'paragraph': return createSimpleTextElement(contentElement.text);
case 'header': return createSimpleTextElement(contentElement.text, 'h' + contentElement.level);
case 'image': return createImage(contentElement);
case 'twitter': return createTwitter(contentElement);
case 'youtube': return createYoutube(contentElement);
default: return createSimpleTextElement(JSON.stringify(contentElement));
}
}
function fillContentIntoElement(createdElement, htmlEl) {
try {
console.log(createdElement, htmlEl);
if (createdElement.length) {
createdElement.forEach(ch => htmlEl.appendChild(ch));
} else {
htmlEl.appendChild(createdElement);
}
} catch (e) {
console.error(e.message);
}
}
function fillContent(contentElementsList, htmlElements) {
const contentElements = Array.from(contentElementsList);
console.log(contentElements);
const lastElementIndex = htmlElements.length - 1;
htmlElements.forEach((htmlEl, index) => {
htmlEl.innerHTML = '';
if(contentElements.length > index) {
if(index === lastElementIndex) {
contentElements.slice(index).forEach(ce => fillContentIntoElement(processSingleContentElement(ce),htmlEl))
} else {
const createdElement = processSingleContentElement(contentElements[index]);
fillContentIntoElement(createdElement, htmlEl);
}
}
});
}
function createSlides(slides) {
const templateWrapper = document.getElementById('slide-template');
const template = templateWrapper.content.querySelector(".slide-template");
return slides.map((it, index) => {
const cloned = template.cloneNode(true);
const contentPlaceholders = cloned.querySelectorAll(".content-placeholder");
fillContent(it.elements, contentPlaceholders)
if (infiniteLayout) {
cloned.querySelectorAll(".adslot").forEach(slot => {
slot.id = slot.id + '_' + index;
});
}
return cloned;
});
}
var slides = [{"elements":[{"text":"Rather than be angry at her situation, Loyall tries to see the humour by posting photos of her foot wherever she goes.","level":3,"displayType":"header"},{"elements":[{"text":"Doctors who perform amputations on their patients are not usually asked for that part back. Kristi Loyall, is not your typical patient though. In 2011, the young woman began to feel numbness in her right pinky toe. She discussed this with a doctor who didn't think it was anything to worry about. Over the years, the numbness worked its way to half of her foot. At night, she was facing extreme pain in her foot but she assumed she was just having sleep problems. Finally, her doctor referred her to a neurologist but after six visits they couldn't give her a concrete diagnosis. By 2015, a lump had grown. She was sent for an MRI and x-rays. Doctors believed she had lipoma, a non-cancerous fatty tumor or Tarsal Tunnel Syndrome, constriction/compression of the nerves in the foot. Finally, the hard news came in April 2016, it was cancer. After a failed surgery that did not remove the cancer completely, thus, causing to spread to the rest of the foot her only option was amputation.","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/71c63df4-1514-387c-bdb9-0ab4bd8263b8.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"\"I asked, 'Can I have my foot back?'\" Loyall tells ABC News. \"He thought I was kidding, but then he's like, 'I think that you can, but not too many people ask for body parts back.'\"","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/8100475f-e10b-379c-9cc5-4e75420c34e1.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"The cancer did not extend beyond her right foot. She admits, early detection is vital. \"If you have any lumps or abnormalities, I'd tell people to get it checked out. I might not have lost my foot had I moved a little faster,\" she says.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/464495e2-9c63-378a-8858-d5adc461944b.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Loyall's cancer is an aggressive epitheliod sarcoma. She is being monitored by the MD Anderson Cancer Center in Houston, Texas.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/094f72d6-212e-34c0-b57b-bf8f8a3767f7.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Having a good sense of humour and good friends she says are key to her recovery.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/9df46b2a-b4cc-32f3-a7da-1df3bd149a95.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"\"At first, I thought my life was over. but after I got my foot back, I've been more positive,\" Loyall says. \"I was pessimistic, but this changed my attitude about life.\"","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/d377061c-680b-3764-9edd-ce4e5eb492d5.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Part of the healing process meant she takes her foot everywhere she goes.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c2bd13b8-f71c-3667-ab5d-e864d9d3202f.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"\"One of my main coping mechanisms is to make a joke of everything. I made the Instagram, and I like to take pictures of the foot,\" she says.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c79f1d24-9705-35f1-a78c-2e1b99dbe7de.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Her Instagram account is appropriately named @onefootwander.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/61bd7c13-9f0b-3ee7-b947-a64e15a12133.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"She says people have been very supportive, writing positive comments on her account.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/98e2909c-4b01-3bee-9e74-ecbd17c8e42d.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"When out in public with her foot, strangers assume it's plastic. \"Someone said, 'I like your foot,' as I was taking a picture once. My roommate was holding it once as we went to get food, and the guy at the drive-thru though it was cool,\" she says.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/bce395c6-12c4-36fa-856a-01c6e77a4eee.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Loyall has been out of work for almost a year and her medical bills continue to mount, adding to those expenses are her rent, food, and other expenses.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/777af62b-1330-3261-a7f9-d67ef1f09a1c.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Another concern she has is her German Shepherd Nova wanting a taste of her foot. \"I usually keep the foot in my car so my dog doesn't get it. I usually just keep it in the trunk, in a shoe box,\" she says with a laugh.","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c0bc9014-0d99-3a95-81bd-c77cd66b4bfe.jpeg","caption":"onefootwander","displayType":"image"},{"elements":[{"text":"","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"elements":[{"text":"If you want to help Kristi Loyall with her recovery costs, you can donate on the [GoFundMe][1] page set up her behalf. [1]: https://www.gofundme.com/2tsr2mpu","level":1,"displayType":"paragraph"}],"displayType":"section"}]}];
var slide_index = parseInt(0);
var slide_json = createSlides(slides);
var initial_slide = slide_index;
var initial_url = location.pathname + location.search;
var base_url = '/one-foot';
var next_gallery = '/spoiled-pets';
var first_load = true;
var has_scrolled = false;
var title = "She Lost Her Foot To Cancer, But What She Did With It Will Make You Laugh.";
var path = base_url
var utm_campaign, utm_subid, utm_source, utm_content, utm_term = 'n/a';
// try {
// var url = new URL(window.location.href);
// utm_campaign = encodeURIComponent(url.searchParams.get("utm_campaign"));
// utm_source = encodeURIComponent(url.searchParams.get("utm_source"));
// utm_content = encodeURIComponent(url.searchParams.get("utm_content"));
// utm_term = encodeURIComponent(url.searchParams.get("utm_term"));
// utm_medium = encodeURIComponent(url.searchParams.get("utm_medium"));
// if (utm_content && utm_campaign){
// var googletag = googletag || {};
// googletag.cmd = googletag.cmd || [];
// googletag.cmd.push(function() {
// googletag.pubads().setTargeting("utm_subid", utm_term);
// googletag.pubads().setTargeting("utm_subid_c", utm_campaign);
// });
// }
// } catch (e) {
// }