Posted on Leave a comment

| Hometalk


| Hometalk

Showing popular Hometalk projects.

su*****@ho******.com","upload_error_invalid_file_resolution":"The image you are trying to upload is too big. Please upload a smaller image.","upload_error_too_small":"The image you are trying to upload is too small. Please upload a photo at least 800 pixels wide and 250 pixels high.","upload_error_resource_not_exist":"Upload Failed, Invalid File Or Image","upload_error_connection_error":"Upload Failed, Connection Error","upload_error_file_not_accepted":"Type of file not accepted","step":"Step","of":"of","scraping_add_info":"Add the time, cost, and difficulty level for your","scraping_add_info_before_posting":"before posting","scraping_add_details":"Add these final details before posting your","create_your":"Create your","manually":"manually"},"sharebox_tooltip":{"step1":"Here you can find tips to guide you through creating a helpful and clear step-by-step tutorial","step2":"For a helpful & useful tutorial, make sure to add a clear title and at least 4 photos: a before photo, 2 in-process photos and an after photo","step3":"Tell us what inspired your project; this is your place to share your story & inspire others. You can add specific steps as you add pictures.","step4":"Make sure that your pictures are focused and bright, show each stope of your project, and include the materials & tools you used","step5":"Share a before picture or a picture of your materials to start off your post","step6":"Share a picture of each step. People especially like shots of your hands in the process of doing a step","step7":"Make sure to include a great after photo of the completed project in all its glory","step8":"Write the name of the material or tool you used. If you know where to get it, include that in the designated field.","step9":"Estimate the cost of your project, how long it took you to complete and how challenging the process was"},"quill_emoji":{"frequently_used":"Frequently Used","people_body":"People & Body","animal_nature":"Animals & Nature","food_drink":"Food & Drink","activity":"Activity","travel_places":"Travel & Places","objects":"Objects","symbols":"Symbols","flags":"Flags"},"activity":{"material":"Material","materials":"Materials","minute":"Minute","minutes":"Minutes","hour":"Hour","hours":"Hours","day":"Day","days":"Days","week":"Week","weeks":"Weeks","month":"Month","months":"Months","easy":"Easy","medium":"Medium","advanced":"Advanced","by_author":"by","wow":"WOW","save":"SAVE","preview_mode":"Preview Mode","edit_and_post":"Edit & Post","you_can_do_it":"You can do it! Saved to","delete":"Delete","edit_project":"Edit project","edit_discussion":"Edit discussion","view":"View","views":"Views","new":"NEW!","unpublished_project":"UNPUBLISHED PROJECT!","processing":"Video processing","read_review":"Read review","next_label":"Next","previous_label":"Prev"},"materials":{"resources_for_project":"Resources for this project:","see_more":"See More","see_all_materials":"See all materials","share_disclaimer":"Hometalk may collect a small share of sales from the links on this page.","price_availability_disclaimer":"Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.","disclaimer_info":"More info","suggested_materials":"Suggested materials:"},"blogger_card":{"button_link":"Go"},"feed":{"title_discussions":"Answer DIY questions","subtitle_discussions":"These hometalkers need your help!","see_all_label":"see all","title_new_projects":"New DIY projects","view_discussion":"View discussion"},"discussion":{"answer_button":"Answer this question","answered_label":"Answered","asked_label":"Asked","related_feed_label":"Related Discussions","resolve_button":"Resolve this question","resolved_button":"Question Resolved!","sidebar_questions_title":"Popular DIY Questions","sidebar_question_button":"Answer"},"account_settings":{"account_settings":"Account Settings","personalize":"Personalize","notice_important":"Important:","notice_text":"Any changes you make will affect all Hometalk Network sites that use this account","add_photo":"Add profile photo","import_photo":"Import photo","or_word":"or","name":"Name","country":"Country","city":"City","city_required_validation":"City is required","zipcode":"Zip Code","zipcode_validation":"Please enter a valid ZIP code","profile_page_title":"Profile Page","profile_page_title_chars_validation":"The profile page must be at least 4 characters.","profile_page_title_space_validation":"The profile page name cannot contain a space.","profile_page_title_one_letter_validation":"Must contain at least 1 letter","not_available_validation":"Not available.","not_only_letters_validation":"Only alphabetical (at least one), numerical and hyphens are allowed","is_available_validation":"is available!","blogger_check_label":"I am a blogger","blogger_findout_text":"Find out how to drive traffic to your blog","blogger_findout_link_label":"here","about_me":"About Me","about_me_placeholder":"Optional","profile_info_update_success":"Profile info updated successfully.","profile":"Profile","protect":"Protect","notifications":"Notifications","password":"Password","old_password":"Old Password","or_you_can":"or you can","reset_password":"Reset Password","profile_page_password_sent_notice":"An email to reset your password was sent to","new_password":"New Password","min_password_chars":"minimum 8 characters","confirm_password":"Confirm Password","enter_password_validation":"Please enter your password","min_password_chars_validation":"Your password must be at least 8 characters","passwords_mismatch_validation":"Your passwords don't match. Please type it again","password_incorrect_validation":"Sorry, the password you entered is incorrect","password_update_success_validation":"Password updated successfully!","logout_sessions_title":"Log out other Sessions","logout_sessions_text":"Press the button below to log your account out from any other devices you may be logged in to. You'll stay logged in here.","logout_sessions_button":"Log out my other sessions","logout_sessions_success":"Sessions successfully logged out.","standing":"Standing","account_status":"Account Status","current_status_text":"You are currently a","status_member":"Member","status_blogger":"Blogger","change_options_text":"You can change your account status by selecting one of the following options:","option_member_account":"Member Account","option_blogger_account":"Blogger Account","blog_url":"Blog URL","blog_url_validation":"Please enter a valid blog URL","deactivate_account":"Deactivate Account","deactivate_title":"Leaving so soon? Help us improve by telling us why","deactivate_reason_validation":"Please give your reason for deactivating","status_change_lb_title":"Change Account Type","status_change_lb_text":"Are you sure you would like to switch your account type?","status_change_lb_success_validation":"Your account status has been changed successfully","status_change_lb_button_cancel":"Oops, no!","deactivate_account_lb_title":"Deactivate Account","deactivate_account_lb_text":"Are you sure you want to completely deactivate your account? There's no turning back!","deactivate_account_lb_unsubscribe_link":"Click here to unsubscribe from emails instead»","deactivate_account_lb_button_cancel":"Oops, no! Keep my account","blog_links":"Blog Links","blog_links_move_text":"This page moved","blog_links_move_link_label":"here","connect":"Connect","social_media":"Social Media","social_media_subtitle":"Display social network links connected to your blog or brand on your profile","profile_link":"profile link","social_info_update_success":"Social info updated successfully.","change_status_deactivate":"Your request to deactivate your account has been submitted. Please allow up to 2 business days for this change to take effect.","change_status_pending":"Your request to change your account type has been submitted. Please allow up to 2 business days for this change to take effect.","edit_email_lb_title":"Edit Email Address","edit_email_lb_text":"We promise never to sell or give away your email address to anyone","edit_email_lb_current_email":"Current email","edit_email_lb_email_new_placeholder":"Enter New Email","edit_email_lb_email_updated_successfully":"Email updated successfully.","edit_email_lb_login_to_change_message":"Please login to change your email","social_media_facebook_profile_validation":"Please add a full url starting with www.facebook.com","social_media_pinterest_profile_validation":"Please add a full url starting with www.pinterest.com","social_media_instagram_profile_validation":"Please add a full url starting with www.instagram.com","social_media_youtube_profile_validation":"Please add a full url starting with www.youtube.com","social_media_twitter_profile_validation":"Please add a full url starting with www.twitter.com","social_media_linkedin_profile_validation":"Please add a full url starting with www.linkedin.com","subscribe":"Subscribe","email_me_at":"Email me at: ","edit_email":"Edit Email","email_title":"Email preferences","email_subtitle":"Check all the emails you would like to receive","ht_emails":"Hometalk Email","newsletters":"NEWSLETTERS","notification_emails":"NOTIFICATION EMAILS","influencer_emails":"INFLUENCER EMAILS","comments_on_project":"Comments on my project","feedback_on_my_discussions":"Feedback on my discussions","new_followers":"My new followers","alerts_post_perf":"Alerts about my post performance","alerts_HT_episodes":"Alerts for new HometalkTV episodes from hosts I follow","save":"Save","email_settings":"Email Settings","blogger_account_title":"U"},"profile":{"about_me":"About me","edit_button_label":"Edit profile","check_my_site_header":"Check out my site:","no_questions_self":"You haven't asked or answered any DIY questions yet","no_questions":"No questions yet","visit_forum":"Visit the forum","read_more":"Read More","asked":"Asked","answered":"Answered","followers":"Followers","following":"Following","see_profile":"See profile","no_followers":"No followers yet","no_drafts_self":"You don't have any drafts at the moment","no_drafts":"No drafts yet","no_unpublished":"No unpublished posts yet","no_unpublished_self":"You don't have any unpublished posts at the moment","saved_to":"Saved to"},"slideshow":{"by_author":"By","counter_of":"of","next_button":"Next","next_slideshow":"Next Slideshow"},"homepage":{"need_some":"Need some","diy_help":"DIY help?","ask_community":"Ask the community","love_diy":"Love DIY?","want_to_inspire":"Want to inspire others?","join_us":"Join us!"},"qop":{"qop_title_loggedout":"Questions on this post","qop_title_loggedin":"Have a question about this project?","view_answers":"View answers","answer_this":"Answer this"},"opt_out":{"header":"Unsubscribe from email","save_preferences":"Save all preferences","unsubscribe":"Unsubscribe Now!","unsubscribe_success":"You've been successfully unsubscribed!","resubscribe_message":"You can always resubscribe below or in your","account_settings":"account settings","invalid_token":"Invalid Token.","please_unsubscribe_from":"Please unsubscribe from","here":"here","error_occured":"An error has occurred.","are_you_sure_title":"Are you sure you want to unsubscribe?","are_you_sure_subtitle":"Instead you can change how often you will receive the newsletter","option_three_times":"Three times a week","option_once":"Once a week","option_never":"Unsubscribe"},"signup_lightbox":{"existing_account_text":"Your email address appears to have an account associated with it.","login":"Log in","reset":"Reset your password","locked_account":"Your account has been locked due to too many incorrect password attempts.","unlock_account":"Unlock your account by clicking the link in the email we sent or","reset_password":"Reset your password","wrong_password":"The password you entered is incorrect.","missing_email":"This email does not match any account on Hometalk.","trying_to":"Are you trying to","sign_up":"sign up?","error_birth_year":"Please enter a valid birth year","error_city":"Please enter a valid city","error_country":"Please enter a valid country","error_email":"Please enter a valid email address","error_gender":"Please enter a valid gender","error_name":"Please enter a valid user name","error_password":"Please enter a valid password","error_zipcode":"Please enter a valid ZIP code","error_short_password":"Your password must be at least 8 characters.","forgot_password":"Forgot password?","not_member":"Not a member?","sign_up2":"Sign Up","not_now":"Not now","note":"NOTE:","hometalk_network_note":"You can use this account to sign into any site in the Hometalk Network","whoo":"woohoo! you're in","already_member":"Already a member?","log_in":"Log in","reset_password_text":"We've sent you an email with a code to reset your password.","reset_email_code":"Place Code from Email Here","reset_next":"Next","reset_resend_email":"Click here to send a new email","reset_token_expired":"The token you are using expired.","reset_link_expired":"The link you used expired.","create_password":"Create a New password","create_password_text":"Password must be at least 8 characters","save_password":"Save","password_updated":"Your password has been updated!","forgot_password_text":"Enter the email address that you signed up with and we will send you instructions for resetting your password.","enter_email":"Enter email","send_button":"Send"},"page_404":{"title_reaction":"Oops.","cant_find_text":"We can't find the page you're looking for. It may have expired, or there could be a typo.","cta_home":"Return Home"},"search":{"error_popular":"Oops, we didn't find any matches for your search.","error_popular_all_no_filter":"Showing popular .","error_popular_all":"Showing popular instead.","error_popular_posts":"Showing popular instead.","error_popular_videos":"Showing popular instead.","error_popular_discussions":"Showing popular instead.","error_popular_members":"Showing popular instead.","error_other":"Oops, we didn't seem to find anything, but we did find results for","showing_result":"Showing results for","search_instead":"Search instead for:","answer_count_label_singular":"Answer","answer_count_label_plural":"Answers","discussion_link":"Click here to ask a DIY question about"},"discussions_feed":{"sortby":"Sort by:","all_topics":"All topics","all_discussions":"All discussions","needs_answers":"Needs Answers","newest":"Newest","welcome_to":"Welcome to","diy_forum":"the DIY forum","build":"build","title_build":"Building forum","paint":"paint","title_paint":"Painting forum","upcycle":"upcycle","title_upcycle":"Upcycling forum","craft":"craft","title_craft":"Crafts forum","decorate":"decorate","title_decorate":"Decorating forum","clean":"clean","title_clean":"Cleaning forum","repair":"repair","title_repair":"Repairs forum","tile":"tile","title_tile":"Tiling forum","organize":"organize","title_organize":"Organizing forum","grow":"grow","title_grow":"Growing forum","indepth_guides":"in-depth-guides","title_indepth_guides":"In-depth guides forum","product_reviews":"product-reviews","title_product_reviews":"Product Reviews forum","kitchen_dining":"kitchen-dining","title_kitchen_dining":"Kitchen & Dining forum","living_room":"living-room","title_living_room":"Living Room forum","bedroom":"bedroom","title_bedroom":"Bedroom forum","bathroom":"bathroom","title_bathroom":"Bathroom forum","craft_room":"craft-room","title_craft_room":"Craft Room forum","laundry_room":"laundry-room","title_laundry_room":"Laundry Room forum","home_office":"home-office","title_home_office":"Home Office forum","entryway":"entryway","title_entryway":"Entryway forum","basement":"basement","title_basement":"Basement forum","outdoor":"outdoor","title_outdoor":"Outdoor forum","windows_doors":"windows-doors","title_windows_doors":"forum for Windows & Doors","floors_ceilings":"floors-ceilings","title_floors_ceilings":"forum for Floors & Ceilings","staircases":"staircases","title_staircases":"forum for Staircases","home_tours":"home-tours","title_home_tours":"forum for Home Tours","see_answers":"See Answers"},"sharebox_discussion":{"sharebox_title":"Ask the community for DIY advice!","edit_discussion":"Edit discussion","title_placeholder":"Ask a short question, starting with "How".","title_placeholder_phone":"Ask How do I...","description_placeholder":"Over here, describe your question in detail. You can add photos to get the best answers!","error_no_title":"Please add a question title","success_title":"Woohoo!","success_text":"Your message was posted successfully. View your discussion","here":"here","or":"or","ask_another_question":"Ask another DIY question","choose_topic":"Choose a topic","choose_subtopic":"Choose a subtopic","choose_type":"Choose a type","error_no_topic":"Please select a topic","error_no_subtopic":"Please select a subtopic","error_no_type":"Please select a type"},"all_categories":{"more":"More","post_type_plural":"Projects"},"category":{"read_more":"Read more","watch_video":"Watch video"},"stop_words":{"list":""a", "able", "about", "above", "according", "kill", "accordingly", "across", "actually", "advices", "advice", "after", "afterwards", "again", "against", "aint", "all", "allow", "allows", "almost", "alone", "along", "already", "also", "although", "always", "am", "among", "amongst", "an", "and", "another", "any", "anybody", "anyhow", "anyone", "anything", "anyway", "anyways", "anywhere", "apart", "appear", "appreciate", "appropriate", "are", "arent", "around", "as", "aside", "ask", "asking", "associated", "at", "available", "away", "awfully", "be", "became", "because", "become", "becomes", "becoming", "been", "before", "beforehand", "being", "beside", "besides", "best", "better", "between", "beyond", "both", "brief", "but", "by", "cmon", "cs", "came", "cant", "cannot", "cant", "cause", "causes", "certain", "certainly", "changes", "clearly", "co", "com", "come", "comes", "concerning", "consequently", "consider", "considering", "contain", "containing", "contains", "corresponding", "could", "couldnt", "course", "currently", "definitely", "described", "despite", "did", "didnt", "diy", "diys", "different", "do", "does", "doesnt", "re-do", "doing", "dont", "done", "downwards", "during", "each", "edu", "eg", "eight", "either", "else", "elsewhere", "enough", "entirely", "especially", "et", "etc", "even", "ever", "every", "everybody", "everyone", "everything", "everywhere", "ex", "exactly", "example", "except", "far", "few", "fifth", "first", "five", "followed", "following", "follows", "for", "former", "formerly", "forth", "four", "from", "further", "furthermore", "get", "gets", "getting", "given", "gives", "go", "goes", "going", "gone", "got", "gotten", "had", "hadnt", "happens", "hardly", "has", "hasnt", "have", "havent", "having", "he", "hes", "help", "hence", "her", "here", "heres", "hereafter", "hereby", "herein", "hereupon", "hers", "herself", "hi", "him", "himself", "his", "hither", "hopefully", "how", "howbeit", "however", "i", "id", "idea", "ideas" ,"ill", "im", "ive", "ie", "if", "ignored", "immediate", "in", "inasmuch", "inc", "indeed", "indicate", "indicated", "indicates", "inner", "insofar", "instead", "into", "inward", "is", "isnt", "it", "itd", "item", "items", "itll", "its", "its", "itself", "just", "keep", "keeps", "kept", "know", "known", "knows", "last", "lately", "later", "latter", "latterly", "least", "lest", "let", "lets", "like", "liked", "likely", "little", "look", "looking", "looks", "ltd", "mainly", "many", "may", "maybe", "me", "mean", "meanwhile", "merely", "might", "more", "moreover", "most", "mostly", "much", "must", "my", "myself", "name", "namely", "nd", "near", "nearly", "necessary", "need", "needs", "neither", "never", "nevertheless", "new", "next", "nine", "no", "nobody", "non", "none", "noone", "nor", "normally", "not", "nothing", "novel", "now", "nowhere", "obviously", "of", "off", "often", "oh", "ok", "yr", "okay", "old", "on", "once", "one", "ones", "only", "onto", "or", "other", "others", "otherwise", "ought", "our", "ours", "ourselves", "out", "outside", "overall", "own", "particular", "particularly", "per", "perhaps", "placed", "please", "plus", "possible", "presumably", "probably", "project", "projects", "provides", "que", "quite", "qv", "rather", "rd", "re", "really", "reasonably", "regarding", "regardless", "regards", "relatively", "respectively", "right", "said", "same", "saw", "say", "saying", "says", "second", "secondly", "see", "seeing", "seem", "seemed", "seeming", "seems", "seen", "self", "selves", "sensible", "sent", "serious", "seriously", "seven", "several", "shall", "she", "should", "shouldnt", "since", "six", "so", "some", "somebody", "somehow", "someone", "something", "sometime", "sometimes", "somewhat", "somewhere", "soon", "sorry", "specified", "specify", "specifying", "still", "sub", "such", "sup", "sure", "ts", "take", "taken", "tell", "tends", "th", "than", "thank", "thanks", "thanx", "that", "thats", "thats", "the", "their", "theirs", "them", "themselves", "then", "thence", "there", "theres", "thereafter", "thereby", "therefore", "therein", "theres", "thereupon", "these", "they", "theyd", "theyll", "theyre", "theyve", "think", "third", "this", "thorough", "thoroughly", "those", "though", "three", "through", "throughout", "thru", "thus", "tip", "tips", "to", "together", "too", "took", "toward", "towards", "tried", "tries", "truly", "try", "trying", "tutorial", "tutorials", "twice", "un", "unfortunately", "unless", "unlikely", "until", "unto", "up", "upon", "us", "use", "used", "useful", "uses", "using", "usually", "value", "various", "very", "via", "viz", "vs", "want", "wants", "was", "wasnt", "way", "we", "wed", "were", "weve", "well", "went", "were", "werent", "what", "whats", "whatever", "when", "whence", "whenever", "where", "wheres", "whereafter", "whereas", "whereby", "wherein", "whereupon", "wherever", "whether", "which", "while", "whither", "who", "whos", "whoever", "whole", "whom", "whose", "why", "will", "willing", "with", "within", "without", "wont", "wonder", "would", "wouldnt", "yes", "yet", "you", "youd", "youll", "youre", "youve", "your", "yours", "yourself", "yourselves"","short_list":""a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with""},"email":{"greeting_without_user_name":"Hey There","greeting_with_user_name":"Dear","do_not_reply":"Please do not reply to this automatically-generated email.","explanation_for_email":"You have received this message because you have chosen to receive notifications from","change_email_settings":"You can change your email settings or","unsubscribe_here":"unsubscribe here","privacy_policy":"Privacy Policy","like_us_on":"Like us on","follow_us_on":"Follow us on","subscribe_to_youtube":"Subscribe to our Youtube channel","having_trouble":"Having trouble using ","contact_support_1":"Let","contact_support_2":"support know","follow_link_below":"Follow the link below"},"notifications":{"empty_jar":"Nothing new here yet!","reply_comment_discussion_other":"replied to your comment","reply_comment_discussion_yours":"replied to a comment on your discussion","comment_discussion":"commented on your discussion","comment_project":"commented on your project","reply_comment_project_other":"replied to your comment","reply_comment_project_yours":"replied to a comment on your project","question_project":"asked a question on your project","answer_project":"replied to a question on your project","clip":"saved your project","like_comment":"liked your comment","like_answer":"liked your answer","wowed":"wowed your post","loading":"Loading...","unsubscribe":"Unsubscribe","delete_notification":"Delete Notification"},"history":{"title":"My History","today":"Today","no_history":"No history found"}},"AD_UNITS_VERSION":"64","PREBID_JS_PATH_FULL_NEW":"/resources/combined/js/prebid-new-full.3ac579af871b29c1f864c7d2496d0302.9014.js","PREBID_JS_PATH_FULL_OLD":"/resources/combined/js/prebid-old-full.781b34371a175d8642ffbd1939a01355.9014.js","PREBID_JS_PATH_IDENTITY_OLD":"/resources/combined/js/prebid-old-identity.2265259fececc197242feb910d9e7065.9014.js","PREBID_JS_PATH_IDENTITY_NEW":"/resources/combined/js/prebid-new-identity.6ec24f0fdb6da7cfa26e707012a6760f.9014.js","PREBID_JS_PATH_VIDEO_OLD":"/resources/combined/js/prebid-old-video.9c90e3d70053d4b07509904f3f57ea32.9014.js","PREBID_JS_PATH_VIDEO_NEW":"/resources/combined/js/prebid-new-video.982838653f9038ecd07d4c9319e43e96.9014.js","PREBID_JS_PATH_MINIMAL_OLD":"/resources/combined/js/prebid-old-minimal.4df538bb7bdf27e6793d814bb9b4c5ef.9014.js","PREBID_JS_PATH_MINIMAL_NEW":"/resources/combined/js/prebid-new-minimal.9c568d746e130d6583c1f2fa30d8e50f.9014.js","LIVERAMP_ATS":"/resources/combined/js/liveramp-ats.a27f31f8049c02217dac2a95259a063e.9014.js","BROWSI_SITEKEY":"hometalk","SITE_URL":"https://www.hometalk.com","B_HOST":"https://cdn-fastly.hometalk.com","GOOGLE_ANALYTICS_IDS":["UA-57381913-29","UA-128114464-1"]}, view: {}, page: {"pageType":"search_post"}, queryString: new URLSearchParams(window.location.search), prebidLoad: { prebidLibrarySkipped: false, prebidLibraryLoaded: false, screenPlatformsRequiringPrebid: ["Desktop","Tablet","Phone"], }, shouldUseVsAds: 0, isVsAdsPageType: 0, isGdprLocation: 0, delayLoadAmazonLibrary: 0, }; // Define prebid object so that we can start adding prebid commands to the queue even before the library has finished loading window.pbjs = window.pbjs || {}; window.pbjs.que = window.pbjs.que || []; window.adUnits = function () { return { prebidAdUnits: window.prebidAdUnits, adUnitSlots: window.adUnitSlots, prebidAdUnitsVideo: window.prebidAdUnitsVideo, adUnitSlotsVideo: window.adUnitSlotsVideo }; }; (function() { var timestamp = Date.now(); var QS = window.location.search; if (QS){ QS = '&' + QS.substr(1); } var currentPath = location.pathname; var svgRequest = new XMLHttpRequest(); svgRequest.open('GET', '/resources/dyn-svg-sprite.11.html'); svgRequest.timeout = 10000; svgRequest.send(); svgRequest.onreadystatechange = function() { if (svgRequest.readyState === XMLHttpRequest.DONE) { if (svgRequest.status === 200) { let s = document.createElement('span'); s.innerHTML= svgRequest.responseText; document.body.appendChild(s); } } } let runBootStrap=function(){ const event = document.createEvent('Event'); event.initEvent('bootstrap'); document.dispatchEvent(event); } let req = new XMLHttpRequest(), bootstrap_url ='/api/app/bootstrap', req_qs='?ts='+ timestamp + QS + '&referrer=' + encodeURIComponent(document.referrer) + '&screen_width=' + window.innerWidth + '&current_path=' + encodeURIComponent(currentPath), req_url = bootstrap_url+req_qs, default_url = bootstrap_url+"_default", bot=0 if(navigator.userAgent.match(/bot|Bing|spider/i)) { //bots get default req_url = default_url bot=1 } req.open('GET', req_url); req.timeout = 10000; req.send(); req.onreadystatechange = function() { if (req.readyState === XMLHttpRequest.DONE) { if (req.status === 200) { try { HT.bootstrap = JSON.parse(req.responseText); HT.success=1; HT.bootstrap.IS_BOT=bot runBootStrap() } catch (e) {} } if(!HT.success) { let h_def = new XMLHttpRequest(); h_def.open('GET',default_url) h_def.send(); h_def.onreadystatechange = function() { if (h_def.readyState === XMLHttpRequest.DONE) { HT.bootstrap = JSON.parse(h_def.responseText) HT.bootstrap.IS_BOT=bot //cached version may assume bot runBootStrap() } } } } } }()); ]]>

Source

Leave a Reply

Your email address will not be published.