/**/ ;(function(){ "use strict"; var Quizgnome = { isReady: false, onLoad: function() {}, onResize: function() {}, onFinish: function() {} }; function getResource(type, url, objName, cb) { if (objName && typeof window[objName] !== "undefined") { cb(); return; } cb = cb || function() {}; var sel = document.createElement(type); sel.addEventListener('load', cb); sel.async = true; sel.src = url; if (type==='link') { sel.rel = "stylesheet"; } sel.href = url; document.body.appendChild(sel); } /* GTM */ (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-5MHJZD'); var template = ''+ ''+ '
'+ '
'+ '
'+ ' '+ '
'+ ' This year, thousands of Americans will be saying goodbye to their landlords and buying their first homes. Are you ready to be one of them? Take this quiz to find out.'+ '
'+ ' '+ '
'+ '
'+ '

Are You Ready to Buy a House?

'+ '

This year, thousands of Americans will be saying goodbye to their landlords and buying their first homes. Are you ready to be one of them? Take this quiz to find out.

'+ '
'+ '
'+ ' '+ '
'+ '
'+ '
'+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ '
'+ '
'; var container = ''; if (!container) { /* Container is not specify, use current script tag */ var scriptContainer; if (document.currentScript) { scriptContainer = document.currentScript; } else { var scripts = document.getElementsByTagName('script'); scriptContainer = scripts[scripts.length - 1]; } container = scriptContainer.parentNode; } else { if (document.querySelector) { container = document.querySelector(container) || document.querySelector('#' + container); } else { container = document.getElementsById(container); } } function addEvent(element, eventName, fn) { if (element.addEventListener){ element.addEventListener(eventName, fn, false); } else if (element.attachEvent){ element.attachEvent('on' + eventName, fn); } } getResource('link', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'); getResource('link', '//www.quizgnome.com/css/quiz-alone.css?v=20180213163925333576'); getResource('script', '//code.jquery.com/jquery-1.12.2.min.js', 'jQuery', function(){ jQuery(container).html(template);;(function($){ $(function(){ var oldHeight = null; var quiz = {"conclusions": [{"content": "While home ownership may be in your future, you might want to hold off for another year or so. Pay down your debts and keep saving money so when your dream home goes on the market, you'll be prepared.", "image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/c681f6e8-9824-413d-8907-82f1eeb44445.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:09:34.657933", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/c681f6e8-9824-413d-8907-82f1eeb44445.jpg", "attributiontext": "Getty Images", "height": 3338, "caption": "", "attributionhtml": "Getty Images", "width": 5398}, "key": "considerrenting", "title": "Consider Renting for a While"}, {"content": "You're certainly on the right track toward owning your home, but you may not be there quite yet. If you think you're ready, consider applying for a pre-approved mortgage. If your application is denied, work on your budget, keep saving and go to a few open houses to help motivate yourself to do what it takes to get there soon.", "image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/60e0fa51-23a1-456a-9796-3df4c8570070.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:08:32.871026", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/60e0fa51-23a1-456a-9796-3df4c8570070.jpg", "attributiontext": "Getty Images", "height": 1412, "caption": "", "attributionhtml": "Getty Images", "width": 2123}, "key": "almostthere", "title": "Almost There"}, {"content": "You've done your research and have been managing your finances well, so you're probably ready to start looking at homes now. Applying for a pre-approved mortgage will let you know what price range you should be looking at.", "image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/35a1b283-0a6a-41d0-b1ed-a6711ddb7d14.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:08:13.359021", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/35a1b283-0a6a-41d0-b1ed-a6711ddb7d14.jpg", "attributiontext": "Getty Images", "height": 1414, "caption": "", "attributionhtml": "Getty Images", "width": 2120}, "key": "getreadytocallthemovers", "title": "Get Ready to Call the Movers"}], "overview": {"content": "This year, thousands of Americans will be saying goodbye to their landlords and buying their first homes. Are you ready to be one of them? Take this quiz to find out.", "image": {"thumburl": "http://cache2.asset-cache.net/xt/495164547.jpg?v=1&g=fs1|0|FPG|64|547&s=1&b=RjI4", "height": "1475", "attributionlink": "", "keywords": [{"text": "25-29 Years", "visualprominence": null, "type": 3, "id": "60641"}, {"text": "30-34 Years", "visualprominence": null, "type": 3, "id": "60644"}, {"text": "Adult", "visualprominence": null, "type": 3, "id": "67257"}, {"text": "Young Adult", "visualprominence": null, "type": 3, "id": "67258"}, {"text": "Mid Adult", "visualprominence": null, "type": 3, "id": "67259"}, {"text": "Adults Only", "visualprominence": null, "type": 3, "id": "123967"}, {"text": "Gt London", "visualprominence": null, "type": 0, "id": "12323224"}, {"text": "Horizontal", "visualprominence": null, "type": 10, "id": "60560"}, {"text": "Beginnings", "visualprominence": null, "type": 6, "id": "60193"}, {"text": "Togetherness", "visualprominence": null, "type": 6, "id": "60321"}, {"text": "Achievement", "visualprominence": null, "type": 6, "id": "60427"}, {"text": "Moving House", "visualprominence": null, "type": 6, "id": "70215"}, {"text": "Celebration", "visualprominence": null, "type": 6, "id": "79111"}, {"text": "Relocation", "visualprominence": null, "type": 6, "id": "97804"}, {"text": "Home Ownership", "visualprominence": null, "type": 6, "id": "103623"}, {"text": "Mixed Race Person", "visualprominence": null, "type": 2, "id": "61260"}, {"text": "Young Men", "visualprominence": null, "type": 4, "id": "96552"}, {"text": "Mid Adult Women", "visualprominence": null, "type": 4, "id": "96584"}, {"text": "Color Image", "visualprominence": null, "type": 9, "id": "70720"}, {"text": "UK", "visualprominence": null, "type": 7, "id": "61720"}, {"text": "London - England", "visualprominence": null, "type": 7, "id": "70042"}, {"text": "Two People", "visualprominence": null, "type": 5, "id": "96496"}, {"text": "People", "visualprominence": null, "type": 0, "id": "60004"}, {"text": "Happiness", "visualprominence": null, "type": 0, "id": "60165"}, {"text": "Enjoyment", "visualprominence": null, "type": 0, "id": "60173"}, {"text": "Indoors", "visualprominence": null, "type": 0, "id": "60590"}, {"text": "Domestic Room", "visualprominence": null, "type": 0, "id": "60634"}, {"text": "Window", "visualprominence": null, "type": 0, "id": "61514"}, {"text": "Painting", "visualprominence": null, "type": 0, "id": "61749"}, {"text": "Heterosexual Couple", "visualprominence": null, "type": 0, "id": "61792"}, {"text": "Bright", "visualprominence": null, "type": 0, "id": "62187"}, {"text": "Day", "visualprominence": null, "type": 0, "id": "63066"}, {"text": "Sunlight", "visualprominence": null, "type": 0, "id": "65672"}, {"text": "DIY", "visualprominence": null, "type": 0, "id": "75550"}, {"text": "Domestic Life", "visualprominence": null, "type": 0, "id": "77246"}, {"text": "Photography", "visualprominence": null, "type": 0, "id": "100604"}, {"text": "Cardboard Box", "visualprominence": null, "type": 0, "id": "102388"}, {"text": "Couple - Relationship", "visualprominence": null, "type": 0, "id": "239249"}, {"text": "Sunny", "visualprominence": null, "type": 0, "id": "8991886"}, {"text": "Home Improvement", "visualprominence": null, "type": 0, "id": "14469214"}, {"text": "Casual Clothing", "visualprominence": null, "type": 15, "id": "60081"}, {"text": "Brown Hair", "visualprominence": null, "type": 15, "id": "60949"}, {"text": "Arm Around", "visualprominence": null, "type": 15, "id": "61702"}], "summary": "A couple celebrating moving in to a new home", "photosource": null, "thumbheight": 0, "authorizations": [], "title": "A couple celebrating moving in to a new home", "attributiontext": "Gary Burchell/Taxi/Getty Images", "width": "2036", "collectionname": "Taxi", "photoid": "GettyPremium/495164547", "isfavorite": false, "credit": "Gary Burchell/Taxi/Getty Images", "validated_image": true, "thumbwidth": 0, "licensetype": "RightsManaged", "url": "http://photos.demandstudios.com/getty/article/240/189/495164547.jpg", "applicableproductofferings": [0], "caption": "", "attributionhtml": "Gary Burchell/Taxi/Getty Images", "photoguid": null}}, "total_score": 0, "title": "Are You Ready to Buy a House?", "questions": [{"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/822c452c-bf8a-4c7e-99be-821537ab0f47.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:21:24.273877", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/822c452c-bf8a-4c7e-99be-821537ab0f47.jpg", "attributiontext": "Getty Images", "height": 1413, "caption": "", "attributionhtml": "Getty Images", "width": 2122}, "explanation": ["The minimum down payment on a house may be as low as 3.5 percent, which is just $8,750 on a $250,000 home. But you'll also need to pay for closing costs, legal fees and insurance, which can add thousands to your initial investment.", "The minimum down payment on a house may be as low as 3.5 percent, which is just $8,750 on a $250,000 home. But you'll also need to pay for closing costs, legal fees and insurance, which can add thousands to your initial investment.", "The minimum down payment on a house may be as low as 3.5 percent, which is just $8,750 on a $250,000 home. But you'll also need to pay for closing costs, legal fees and insurance, which can add thousands to your initial investment."], "answers": [{"content": "Not yet.", "explanation": "The minimum down payment on a house may be as low as 3.5 percent, which is just $8,750 on a $250,000 home. But you'll also need to pay for closing costs, legal fees and insurance, which can add thousands to your initial investment.", "correct": "True", "conclusions": {"considerrenting": 2}}, {"content": "Yes, I have just enough for the minimum down payment.", "explanation": "The minimum down payment on a house may be as low as 3.5 percent, which is just $8,750 on a $250,000 home. But you'll also need to pay for closing costs, legal fees and insurance, which can add thousands to your initial investment.", "correct": "True", "conclusions": {"almostthere": 2}}, {"content": "Yes, I have more than the minimum down payment.", "explanation": "The minimum down payment on a house may be as low as 3.5 percent, which is just $8,750 on a $250,000 home. But you'll also need to pay for closing costs, legal fees and insurance, which can add thousands to your initial investment.", "correct": "True", "conclusions": {"getreadytocallthemovers": 2}}], "title": "Have you saved enough for a down payment? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/1586f5b1-0b0c-46fb-ac4c-50b21bdc3c0a.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:20:45.457875", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/1586f5b1-0b0c-46fb-ac4c-50b21bdc3c0a.jpg", "attributiontext": "Getty Images", "height": 1414, "caption": "", "attributionhtml": "Getty Images", "width": 2121}, "explanation": ["Mortgage payments are just one of the expenses homeowners pay each month. You will also have to pay for property taxes, insurance, water, sewage and other utilities. If you are buying a condo, you'll also have condo fees or homeowner\u2019s association fees. In some cases, these extra costs can be more than your mortgage payment.", "Mortgage payments are just one of the expenses homeowners pay each month. You will also have to pay for property taxes, insurance, water, sewage and other utilities. If you are buying a condo, you'll also have condo fees or homeowner\u2019s association fees. In some cases, these extra costs can be more than your mortgage payment.", "Mortgage payments are just one of the expenses homeowners pay each month. You will also have to pay for property taxes, insurance, water, sewage and other utilities. If you are buying a condo, you'll also have condo fees or homeowner\u2019s association fees. In some cases, these extra costs can be more than your mortgage payment."], "answers": [{"content": "Yes. I've created a budget with all of my future costs and compared it to my income.", "explanation": "Mortgage payments are just one of the expenses homeowners pay each month. You will also have to pay for property taxes, insurance, water, sewage and other utilities. If you are buying a condo, you'll also have condo fees or homeowner\u2019s association fees. In some cases, these extra costs can be more than your mortgage payment.", "correct": "True", "conclusions": {"getreadytocallthemovers": 2}}, {"content": "I'm not sure.", "explanation": "Mortgage payments are just one of the expenses homeowners pay each month. You will also have to pay for property taxes, insurance, water, sewage and other utilities. If you are buying a condo, you'll also have condo fees or homeowner\u2019s association fees. In some cases, these extra costs can be more than your mortgage payment.", "correct": "True", "conclusions": {"considerrenting": 2}}, {"content": "No problem! My mortgage payments will be about the same as my current rent.", "explanation": "Mortgage payments are just one of the expenses homeowners pay each month. You will also have to pay for property taxes, insurance, water, sewage and other utilities. If you are buying a condo, you'll also have condo fees or homeowner\u2019s association fees. In some cases, these extra costs can be more than your mortgage payment.", "correct": "True", "conclusions": {"almostthere": 2}}], "title": "Can you afford the monthly payments for the house you want? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/530ff65a-43e1-4c85-96ac-d527c6f01d7d.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:18:32.732760", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/530ff65a-43e1-4c85-96ac-d527c6f01d7d.jpg", "attributiontext": "Getty Images", "height": 1414, "caption": "", "attributionhtml": "Getty Images", "width": 2120}, "explanation": ["It's important that your income brings in enough to cover the costs of home ownership and life's other financial responsibilities. A good rule of thumb is that your mortgage payments shouldn't exceed 28 percent of your gross income.", "It's important that your income brings in enough to cover the costs of home ownership and life's other financial responsibilities. A good rule of thumb is that your mortgage payments shouldn't exceed 28 percent of your gross income."], "answers": [{"content": "Not as well as I'd like.", "explanation": "It's important that your income brings in enough to cover the costs of home ownership and life's other financial responsibilities. A good rule of thumb is that your mortgage payments shouldn't exceed 28 percent of your gross income.", "correct": "True", "conclusions": {"considerrenting": 2}}, {"content": "Yes, I'm happy with my income.", "explanation": "It's important that your income brings in enough to cover the costs of home ownership and life's other financial responsibilities. A good rule of thumb is that your mortgage payments shouldn't exceed 28 percent of your gross income.", "correct": "True", "conclusions": {"getreadytocallthemovers": 1, "almostthere": 1}}], "title": "Does your job pay well? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/48e2371f-9a01-4391-89db-3b66796c1129.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:13:38.320378", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/48e2371f-9a01-4391-89db-3b66796c1129.jpg", "attributiontext": "Getty Images", "height": 1412, "caption": "", "attributionhtml": "Getty Images", "width": 2123}, "explanation": ["Lenders like to know that you will be able to make your mortgage payments every month. Having stable employment, and therefore a steady paycheck, may determine whether or not you get a mortgage. If you work freelance or change jobs frequently, it may be more difficult to get a loan approved.", "Lenders like to know that you will be able to make your mortgage payments every month. Having stable employment, and therefore a steady paycheck, may determine whether or not you get a mortgage. If you work freelance or change jobs frequently, it may be more difficult to get a loan approved.", "Lenders like to know that you will be able to make your mortgage payments every month. Having stable employment, and therefore a steady paycheck, may determine whether or not you get a mortgage. If you work freelance or change jobs frequently, it may be more difficult to get a loan approved."], "answers": [{"content": "I'm between jobs.", "explanation": "Lenders like to know that you will be able to make your mortgage payments every month. Having stable employment, and therefore a steady paycheck, may determine whether or not you get a mortgage. If you work freelance or change jobs frequently, it may be more difficult to get a loan approved.", "correct": "True", "conclusions": {"getreadytocallthemovers": -2, "considerrenting": 1, "almostthere": 1}}, {"content": "I have been with my company for over two years.", "explanation": "Lenders like to know that you will be able to make your mortgage payments every month. Having stable employment, and therefore a steady paycheck, may determine whether or not you get a mortgage. If you work freelance or change jobs frequently, it may be more difficult to get a loan approved.", "correct": "True", "conclusions": {"getreadytocallthemovers": 1}}, {"content": "I just started a new job recently.", "explanation": "Lenders like to know that you will be able to make your mortgage payments every month. Having stable employment, and therefore a steady paycheck, may determine whether or not you get a mortgage. If you work freelance or change jobs frequently, it may be more difficult to get a loan approved.", "correct": "True", "conclusions": {"almostthere": 2}}], "title": "What's your employment status? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/1c31e98d-99b9-4dbe-9c62-cd5137dba28f.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:13:17.930072", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/1c31e98d-99b9-4dbe-9c62-cd5137dba28f.jpg", "attributiontext": "Getty Images", "height": 1414, "caption": "", "attributionhtml": "Getty Images", "width": 2120}, "explanation": ["Having a good credit history is vital before applying for a mortgage. Having no credit history may be almost as bad as having poor credit. Showing that you can handle debts like a credit card, a car loan or a student loan shows mortgage lenders that you are financially responsible.", "Having a good credit history is vital before applying for a mortgage. Having no credit history may be almost as bad as having poor credit. Showing that you can handle debts like a credit card, a car loan or a student loan shows mortgage lenders that you are financially responsible.", "Having a good credit history is vital before applying for a mortgage. Having no credit history may be almost as bad as having poor credit. Showing that you can handle debts like a credit card, a car loan or a student loan shows mortgage lenders that you are financially responsible."], "answers": [{"content": "Not really. I'm often late on payments.", "explanation": "Having a good credit history is vital before applying for a mortgage. Having no credit history may be almost as bad as having poor credit. Showing that you can handle debts like a credit card, a car loan or a student loan shows mortgage lenders that you are financially responsible.", "correct": "True", "conclusions": {"considerrenting": 2}}, {"content": "I've never had to borrow a dollar in my life. I don\u2019t use credit cards.", "explanation": "Having a good credit history is vital before applying for a mortgage. Having no credit history may be almost as bad as having poor credit. Showing that you can handle debts like a credit card, a car loan or a student loan shows mortgage lenders that you are financially responsible.", "correct": "True", "conclusions": {"getreadytocallthemovers": -2, "considerrenting": 1}}, {"content": "Yes. I pay my bills on time and make more than the minimum payments on my credit card.", "explanation": "Having a good credit history is vital before applying for a mortgage. Having no credit history may be almost as bad as having poor credit. Showing that you can handle debts like a credit card, a car loan or a student loan shows mortgage lenders that you are financially responsible.", "correct": "True", "conclusions": {"getreadytocallthemovers": 1}}], "title": "Do you have good credit? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/327e54b3-d3de-4a33-b46c-a1b6f2a54392.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:12:57.020218", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/327e54b3-d3de-4a33-b46c-a1b6f2a54392.jpg", "attributiontext": "Getty Images", "height": 1500, "caption": "", "attributionhtml": "Getty Images", "width": 1999}, "explanation": ["Having a lot of credit card or other high-interest debt can affect your credit rating, which means you could pay higher interest rates when you get a mortgage. Just as important, being unable to pay off your credit cards may mean your finances aren't healthy enough yet to commit to a mortgage.", "Having a lot of credit card or other high-interest debt can affect your credit rating, which means you could pay higher interest rates when you get a mortgage. Just as important, being unable to pay off your credit cards may mean your finances aren't healthy enough yet to commit to a mortgage.", "Having a lot of credit card or other high-interest debt can affect your credit rating, which means you could pay higher interest rates when you get a mortgage. Just as important, being unable to pay off your credit cards may mean your finances aren't healthy enough yet to commit to a mortgage."], "answers": [{"content": "None. My credit cards are paid off.", "explanation": "Having a lot of credit card or other high-interest debt can affect your credit rating, which means you could pay higher interest rates when you get a mortgage. Just as important, being unable to pay off your credit cards may mean your finances aren't healthy enough yet to commit to a mortgage.", "correct": "True", "conclusions": {"getreadytocallthemovers": 1}}, {"content": "Some, but I plan to pay it off soon.", "explanation": "Having a lot of credit card or other high-interest debt can affect your credit rating, which means you could pay higher interest rates when you get a mortgage. Just as important, being unable to pay off your credit cards may mean your finances aren't healthy enough yet to commit to a mortgage.", "correct": "True", "conclusions": {"considerrenting": 1, "almostthere": 1}}, {"content": "More than I care to admit.", "explanation": "Having a lot of credit card or other high-interest debt can affect your credit rating, which means you could pay higher interest rates when you get a mortgage. Just as important, being unable to pay off your credit cards may mean your finances aren't healthy enough yet to commit to a mortgage.", "correct": "True", "conclusions": {"getreadytocallthemovers": -2, "considerrenting": 1, "almostthere": -1}}], "title": "Do you have a lot of credit card debt? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/46a04364-438d-49d0-bc16-cfeaa3b7588b.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:12:40.299139", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/46a04364-438d-49d0-bc16-cfeaa3b7588b.jpg", "attributiontext": "Getty Images", "height": 3467, "caption": "", "attributionhtml": "Getty Images", "width": 5157}, "explanation": ["Buying a home may not be a good idea if you can't commit to staying there for at least three years. Selling your house a couple of years after buying it could cost you a lot of money since the home's value may not have increased enough to cover the costs of purchasing it.", "Buying a home may not be a good idea if you can't commit to staying there for at least three years. Selling your house a couple of years after buying it could cost you a lot of money since the home's value may not have increased enough to cover the costs of purchasing it."], "answers": [{"content": "I'm not sure.", "explanation": "Buying a home may not be a good idea if you can't commit to staying there for at least three years. Selling your house a couple of years after buying it could cost you a lot of money since the home's value may not have increased enough to cover the costs of purchasing it.", "correct": "True", "conclusions": {"considerrenting": 1, "almostthere": 1}}, {"content": "Yes!", "explanation": "Buying a home may not be a good idea if you can't commit to staying there for at least three years. Selling your house a couple of years after buying it could cost you a lot of money since the home's value may not have increased enough to cover the costs of purchasing it.", "correct": "True", "conclusions": {"getreadytocallthemovers": 1}}], "title": "Are you prepared to stay in the same location for the next three to five years? "}, {"image": {"thumburl": "http://photos2.demandstudios.com/DM-Resize/s3.amazonaws.com/photography.prod.demandstudios.com/d32d7989-f46b-4250-bd4d-d9ddecaded01.jpg?w=120&h=120&keep_ratio=1", "photoid": "uploaded/2017-02-07 15:12:06.956062", "credit": "Getty Images", "url": "http://s3.amazonaws.com/photography.prod.demandstudios.com/d32d7989-f46b-4250-bd4d-d9ddecaded01.jpg", "attributiontext": "Getty Images", "height": 1414, "caption": "", "attributionhtml": "Getty Images", "width": 2121}, "explanation": ["As a homeowner, there\u2019s no landlord to call, so it's your responsibility to keep your home in good repair. If you're not prepared to tackle even minor repairs like a dripping faucet or a dead fuse, you should add a few hundred dollars each year to your budget projections before buying a house.", "As a homeowner, there\u2019s no landlord to call, so it's your responsibility to keep your home in good repair. If you're not prepared to tackle even minor repairs like a dripping faucet or a dead fuse, you should add a few hundred dollars each year to your budget projections before buying a house."], "answers": [{"content": "Are you kidding? Not me.", "explanation": "As a homeowner, there\u2019s no landlord to call, so it's your responsibility to keep your home in good repair. If you're not prepared to tackle even minor repairs like a dripping faucet or a dead fuse, you should add a few hundred dollars each year to your budget projections before buying a house.", "correct": "True", "conclusions": {"considerrenting": 1}}, {"content": "No problem!", "explanation": "As a homeowner, there\u2019s no landlord to call, so it's your responsibility to keep your home in good repair. If you're not prepared to tackle even minor repairs like a dripping faucet or a dead fuse, you should add a few hundred dollars each year to your budget projections before buying a house.", "correct": "True", "conclusions": {"getreadytocallthemovers": 1, "almostthere": 2}}], "title": "Are you prepared to fix a leaky faucet?"}], "type": "CategoryQuiz"}; var categoryScore = {}; var correct = 0; var $container; if (typeof container !== 'undefined') { $container = $(container); } else { $container = $('.quiz-container'); } function isInIframe() { try { return window.self !== window.top; } catch (e) { return true; } } function postMessage(data) { /* Append verification data */ data.id = 'www.quizgnome.com/ready-buy-house-1019.html'; var target = window.top; target.postMessage(data, '*'); } /* Process quiz page to detect answers with image */ $('.quiz-page.question', $container).each(function() { var $page = $(this); var $imgs = $('.answers .answer img', $page); if ($imgs.length > 0) { $page.addClass('has-image-answer'); $imgs.each(function() { var $img = $(this); var src = $img.attr('src'); var $label = $img.parents('label'); $img.hide(); $label.css('background-image', 'url('+src+')'); if ($label.text().trim() === '') { $label.children('p').text($img.attr('alt')); } }); } }); postMessage({ type: 'load', quiz: quiz }); function handleResize() { var height = $('body, html').outerHeight(true) + 20; if (height != oldHeight) { postMessage({ type: 'resize', height: height }); oldHeight = height; } } $(window).on('resize', handleResize); setInterval(function(){ handleResize(); }, 500); $('button.action', $container).click(function(){ var id = $(this).data('qid'); $('.quiz-page', $container).hide(); $('.quiz-page.page-' + (++id), $container).show(); // Scroll to top of next question if (isInIframe()) { postMessage({ type: 'next', page: id }); } else { var $page = $('.quiz-pages', $container); if ($page.length > 0) { $('html, body').animate({ scrollTop: $page.offset().top }, 1000); } } $('.quiz-progress', $container).removeAttr('style'); $('.progressbar .step', $container).each(function(){ if ($(this).data('step') <= id) { $(this).addClass('active'); } else { $(this).removeClass('active'); } }); $('.quiz-content .action', $container).hide(); if ($(this).hasClass('rewind')) { categoryScore = {}; correct = 0; $('.quiz-content .answer', $container).removeClass('incorrect correct'); $('.quiz-content .answers', $container).removeData('disabled').removeClass('disabled'); $('.quiz-content .action', $container).hide(); $('.quiz-content .explaination', $container).hide(); $('.quiz-content .sub-explaination', $container).hide(); $('.correct-incorrect', $container).html(''); } if ($(this).hasClass('finish')) { $('.conclusions .conclusion', $container).hide(); $('.conclusions .conclusion .action', $container).show(); if (quiz.type === 'CategoryQuiz') { /* Calculate max category */ var maxScore = 0; var maxKey; for (var key in categoryScore) { if (categoryScore[key] > maxScore) { maxScore = categoryScore[key]; maxKey = key; } } $('.conclusions .conclusion[data-key="'+maxKey+'"]', $container).show(); } else { /* Show conclusion based on score */ $('.conclusions .conclusion', $container).each(function(){ if ($(this).data('min') <= correct && $(this).data('max') >= correct ) { $(this).show(); } }); $('.conclusion .score', $container).text(Math.round(correct / quiz.total_score * 100) + '%'); } } }); function isCorrect(answer) { var qid = $(answer).data('qid') - 1; var aid = $(answer).data('aid'); return (quiz.questions[qid] && quiz.questions[qid].answers[aid] && quiz.questions[qid].answers[aid].correct === 'True'); } $('.quiz-content .answer', $container).click(function(){ var $answersContainer = $(this).parent(); if ($answersContainer.data('disabled') || $answersContainer.hasClass('disabled')) { return; } $(this).addClass('selected'); var qid = $(this).data('qid') - 1; var aid = $(this).data('aid'); if (isCorrect($(this))) { $(this).addClass('correct'); if (quiz.type === 'CategoryQuiz') { for (var key in quiz.questions[qid].answers[aid].conclusions) { categoryScore[key] = (categoryScore[key] || 0) + parseInt(quiz.questions[qid].answers[aid].conclusions[key]); } } else { /* Add correct score. */ correct += parseInt(quiz.questions[qid].answers[aid].points); } $('.correct-incorrect', $answersContainer).html('Correct !'); } else { $(this).addClass('incorrect'); /* Find the correct one */ $(this).siblings().each(function(){ if (isCorrect($(this))) { $(this).addClass('correct'); } }); $('.correct-incorrect', $answersContainer).html('Incorrect !'); } $(this).parent('.answers').data('disabled', true).addClass('disabled'); var question = $(this).parent().parent(); $('.action', question).show(); $('.explaination', question).show(); $('.sub-explanation', question).hide(); $('.explaination .answer-' + aid, question).show(); }); }); })(jQuery);}); window.Quizgnome = Quizgnome; })(); /* if this part get executed that mean someone open the url directly. */ /* */