{"context":"et_builder_layouts","data":{"55":{"ID":55,"post_date":"2023-12-09 23:31:14","post_date_gmt":"2023-12-09 23:31:14","post_content":"[et_pb_section fb_built=\"1\" admin_label=\"section\" _builder_version=\"4.23.1\" hover_enabled=\"0\" global_colors_info=\"{}\" border_width_top=\"2px\" border_width_bottom=\"2px\" border_color_top=\"#E02B20\" border_style_top=\"dashed\" border_style_bottom=\"dashed\" border_color_bottom=\"#E02B20\" sticky_enabled=\"0\" custom_padding=\"0px||0px||false|false\" background_enable_pattern_style=\"on\" background_pattern_style=\"diagonal-stripes\" background_pattern_color=\"rgba(224,160,157,0.19)\" template_type=\"section\"][et_pb_row admin_label=\"row\" _builder_version=\"4.23.1\" background_size=\"initial\" background_position=\"top_left\" background_repeat=\"repeat\" hover_enabled=\"0\" global_colors_info=\"{}\" custom_padding=\"0px||0px||false|false\" sticky_enabled=\"0\"][et_pb_column type=\"4_4\" _builder_version=\"4.16\" custom_padding=\"|||\" global_colors_info=\"{}\" custom_padding__hover=\"|||\"][et_pb_code _builder_version=\"4.23.1\" _module_preset=\"default\" custom_padding=\"30px|30px|30px|30px|false|false\" hover_enabled=\"0\" global_colors_info=\"{}\" sticky_enabled=\"0\" custom_css_free_form=\"selector {||  font-size: 13pt;||}||#question, #answer, #new-joke {||  padding-left: 0.5em;||}\" background_color=\"#FFFFFF\" custom_margin=\"30px||30px||false|false\" border_radii=\"on|4px|4px|4px|4px\"]<p><strong>Christmas Joke:<\/strong><!-- [et_pb_line_break_holder] --><span id=\"joke-container\"><!-- [et_pb_line_break_holder] -->  <span id=\"question\"><\/span><!-- [et_pb_line_break_holder] -->  <span id=\"answer\"><a href=\"#\" id=\"reveal-answer\">Click to reveal<\/a><\/span><!-- [et_pb_line_break_holder] -->  <span><a id=\"new-joke\" style=\"visibility:hidden;cursor:pointer;\">Get another joke<\/a><\/span><!-- [et_pb_line_break_holder] --><\/span><!-- [et_pb_line_break_holder] --><\/p><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->document.addEventListener('DOMContentLoaded', function(event) {<!-- [et_pb_line_break_holder] -->    var christmasJokes = [<!-- [et_pb_line_break_holder] -->        \"What do you call an elf who sings?|A wrapper!\",<!-- [et_pb_line_break_holder] -->        \"Why was the snowman looking through the carrots?|He was picking his nose!\",<!-- [et_pb_line_break_holder] -->        \"What do you get if you cross Santa with a detective?|Santa Clues!\",<!-- [et_pb_line_break_holder] -->        \"What does Santa do when his elves misbehave?|He gives them the sack!\",<!-- [et_pb_line_break_holder] -->        \"What kind of motorbike does Santa ride?|A Holly Davidson!\",<!-- [et_pb_line_break_holder] -->        \"Why did Santa go to therapy?|Because of his 'elf' issues!\",<!-- [et_pb_line_break_holder] -->        \"What do you call a broke Santa?|Saint Nickel-less!\",<!-- [et_pb_line_break_holder] -->        \"How do you know when Santa's around?|You can sense his presents.\",<!-- [et_pb_line_break_holder] -->        \"Who delivers presents to baby sharks at Christmas?|Santa Jaws!\",<!-- [et_pb_line_break_holder] -->        \"Why did the turkey join the band?|Because it had the drumsticks!\",<!-- [et_pb_line_break_holder] -->        \"Why does Santa have three gardens?|So he can 'ho ho ho'!\",<!-- [et_pb_line_break_holder] -->        \"What's red and white and goes up and down?|Santa Claus in an elevator!\",<!-- [et_pb_line_break_holder] -->        \"What do you call Santa living at the South Pole?|A lost Claus.\",<!-- [et_pb_line_break_holder] -->        \"What do you get if you eat Christmas decorations? Tinselitis!\",<!-- [et_pb_line_break_holder] -->        \"What kind of bug hates Christmas?|A humbug!\",<!-- [et_pb_line_break_holder] -->        \"What do you call a cat on the beach at Christmas?|Sandy Claus!\",<!-- [et_pb_line_break_holder] -->        \"How does a snowman lose weight?|He waits for the weather to get warmer!\",<!-- [et_pb_line_break_holder] -->        \"What do you call an obnoxious reindeer?|RUDE-olph.\",<!-- [et_pb_line_break_holder] -->        \"What do sheep say to each other at Christmastime?|Merry Christmas to ewe!\",<!-- [et_pb_line_break_holder] -->        \"What\u2019s the best thing to put into a Christmas cake?|Your teeth!\",<!-- [et_pb_line_break_holder] -->        \"Why do mummies like the holidays?|Because of all the wrapping!\",<!-- [et_pb_line_break_holder] -->        \"What\u2019s green, covered in tinsel and goes ribbit ribbit?|A Mistle-toad!\"<!-- [et_pb_line_break_holder] -->    ];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    var questionElement = document.getElementById('question');<!-- [et_pb_line_break_holder] -->    var answerElement = document.getElementById('answer');<!-- [et_pb_line_break_holder] -->    var revealLink = document.getElementById('reveal-answer');<!-- [et_pb_line_break_holder] -->    var newJokeButton = document.getElementById('new-joke');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    function displayNewJoke() {<!-- [et_pb_line_break_holder] -->        var randomIndex = Math.floor(Math.random() * christmasJokes.length);<!-- [et_pb_line_break_holder] -->        var selectedJoke = christmasJokes[randomIndex].split('|');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->        questionElement.textContent = selectedJoke[0];<!-- [et_pb_line_break_holder] -->        answerElement.innerHTML = '<a href=\"#\" id=\"reveal-answer\">Click to reveal<\/a>';<!-- [et_pb_line_break_holder] -->        revealLink = document.getElementById('reveal-answer'); \/\/ Re-assign after innerHTML change<!-- [et_pb_line_break_holder] -->        revealLink.addEventListener('click', function(e) {<!-- [et_pb_line_break_holder] -->            e.preventDefault();<!-- [et_pb_line_break_holder] -->            answerElement.textContent = selectedJoke[1];<!-- [et_pb_line_break_holder] -->            newJokeButton.style.visibility = 'visible'; \/\/ Show the refresh button<!-- [et_pb_line_break_holder] -->        });<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    displayNewJoke(); \/\/ Display the first joke on load<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    newJokeButton.addEventListener('click', function() {<!-- [et_pb_line_break_holder] -->        displayNewJoke(); \/\/ Load a new joke when clicked<!-- [et_pb_line_break_holder] -->        this.style.visibility = 'hidden'; \/\/ Hide the button until the answer is revealed again<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><\/script>[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section]","post_title":"Christmas joke section","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"closed","post_password":"","post_name":"christmas-joke-section","to_ping":"","pinged":"","post_modified":"2023-12-09 23:31:14","post_modified_gmt":"2023-12-09 23:31:14","post_content_filtered":"","post_parent":0,"menu_order":0,"post_type":"et_pb_layout","post_mime_type":"","comment_count":"0","filter":"raw","post_meta":{"_et_pb_built_for_post_type":["page"]},"terms":{"4":{"name":"not_global","slug":"not_global","taxonomy":"scope","parent":0,"all_parents":[],"description":""},"6":{"name":"regular","slug":"regular","taxonomy":"module_width","parent":0,"all_parents":[],"description":""},"5":{"name":"section","slug":"section","taxonomy":"layout_type","parent":0,"all_parents":[],"description":""}}}},"presets":"","global_colors":"","images":[],"thumbnails":[]}