{"id":95254,"date":"2024-08-01T16:22:53","date_gmt":"2024-08-01T16:22:53","guid":{"rendered":"https:\/\/www.getstoryshots.com\/?p=95254"},"modified":"2024-08-01T16:31:05","modified_gmt":"2024-08-01T16:31:05","slug":"the-48-laws-of-power-quiz","status":"publish","type":"post","link":"https:\/\/www.getstoryshots.com\/uk\/books\/the-48-laws-of-power-quiz\/","title":{"rendered":"\u0412\u0456\u043a\u0442\u043e\u0440\u0438\u043d\u0430 \"48 \u0437\u0430\u043a\u043e\u043d\u0456\u0432 \u0432\u043b\u0430\u0434\u0438"},"content":{"rendered":"\n<div id=\"storyshots-quiz\"><\/div>\n<script>\n(function() {\n  document.addEventListener('DOMContentLoaded', function() {\n    const quizData = [\n      {\n        question: \"Which law states 'Never outshine the master'?\",\n        options: [\"Law 1\", \"Law 10\", \"Law 20\", \"Law 30\"],\n        answer: 0,\n        explanation: \"Law 1 advises to make your superiors look good and avoid overshadowing them.\"\n      },\n      {\n        question: \"The law 'Crush your enemy totally' is which number?\",\n        options: [\"Law 5\", \"Law 15\", \"Law 25\", \"Law 35\"],\n        answer: 1,\n        explanation: \"Law 15 suggests that half-hearted measures can be dangerous. If you decide to act, do it with thoroughness.\"\n      },\n      {\n        question: \"'Make your accomplishments seem effortless' is part of which law?\",\n        options: [\"Law 30\", \"Law 40\", \"Law 50\", \"Law 60\"],\n        answer: 0,\n        explanation: \"Law 30 advises to make your successes appear easy and natural, concealing the hard work behind them.\"\n      },\n      {\n        question: \"Which law advises to 'Play to people's fantasies'?\",\n        options: [\"Law 22\", \"Law 32\", \"Law 42\", \"Law 52\"],\n        answer: 1,\n        explanation: \"Law 32 suggests that people often prefer fantasy to reality. Use this to your advantage in persuasion.\"\n      },\n      {\n        question: \"'Avoid stepping into a great man's shoes' is part of which law?\",\n        options: [\"Law 11\", \"Law 21\", \"Law 31\", \"Law 41\"],\n        answer: 3,\n        explanation: \"Law 41 warns against trying to fill the role of a highly successful predecessor, as comparisons are often unfavorable.\"\n      }\n    ];\n\n    const style = document.createElement('style');\n    style.textContent = `\n      #storyshots-quiz {\n        font-family: Arial, sans-serif;\n        max-width: 600px;\n        margin: 0 auto;\n        padding: 20px;\n        background-color: #fff;\n        border-radius: 8px;\n        box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n      }\n      #storyshots-quiz h1 {\n        color: #c2410c;\n        text-align: center;\n        font-size: 24px;\n        margin-bottom: 20px;\n      }\n      #storyshots-quiz .question {\n        font-size: 18px;\n        margin-bottom: 15px;\n      }\n      #storyshots-quiz .options {\n        display: grid;\n        gap: 10px;\n      }\n      #storyshots-quiz button {\n        background-color: #c2410c;\n        color: white;\n        border: none;\n        padding: 10px 15px;\n        border-radius: 4px;\n        cursor: pointer;\n        transition: background-color 0.3s;\n      }\n      #storyshots-quiz button:hover {\n        background-color: #9a3412;\n      }\n      #storyshots-quiz .explanation {\n        background-color: #ffedd5;\n        border: 1px solid #fdba74;\n        border-radius: 4px;\n        padding: 15px;\n        margin-top: 15px;\n      }\n      #storyshots-quiz .result {\n        text-align: center;\n        font-size: 20px;\n        margin-top: 20px;\n      }\n    `;\n    document.head.appendChild(style);\n\n    let currentQuestion = 0;\n    let score = 0;\n\n    function renderQuiz() {\n      const quiz = quizData[currentQuestion];\n      let html = `\n        <h1>StoryShots: The 48 Laws of Power Quiz<\/h1>\n        <div class=\"question\">${quiz.question}<\/div>\n        <div class=\"options\">\n          ${quiz.options.map((option, index) => `\n            <button onclick=\"window.selectAnswer(${index})\">${option}<\/button>\n          `).join('')}\n        <\/div>\n      `;\n      document.getElementById('storyshots-quiz').innerHTML = html;\n    }\n\n    window.selectAnswer = function(selectedIndex) {\n      const quiz = quizData[currentQuestion];\n      const correct = selectedIndex === quiz.answer;\n      if (correct) score++;\n      \n      let html = `\n        <h1>StoryShots: The 48 Laws of Power Quiz<\/h1>\n        <div class=\"question\">${quiz.question}<\/div>\n        <div class=\"options\">\n          ${quiz.options.map((option, index) => `\n            <button \n              ${index === selectedIndex ? (correct ? 'style=\"background-color: #16a34a;\"' : 'style=\"background-color: #dc2626;\"') : ''} \n              disabled\n            >${option}<\/button>\n          `).join('')}\n        <\/div>\n        <div class=\"explanation\">${quiz.explanation}<\/div>\n        <button onclick=\"window.nextQuestion()\">Next Question<\/button>\n      `;\n      document.getElementById('storyshots-quiz').innerHTML = html;\n    }\n\n    window.nextQuestion = function() {\n      currentQuestion++;\n      if (currentQuestion < quizData.length) {\n        renderQuiz();\n      } else {\n        showResults();\n      }\n    }\n\n    function showResults() {\n      let html = `\n        <h1>StoryShots: The 48 Laws of Power Quiz<\/h1>\n        <div class=\"result\">You scored ${score} out of ${quizData.length}<\/div>\n        <button onclick=\"window.restartQuiz()\">Retake Quiz<\/button>\n      `;\n      document.getElementById('storyshots-quiz').innerHTML = html;\n    }\n\n    window.restartQuiz = function() {\n      currentQuestion = 0;\n      score = 0;\n      renderQuiz();\n    }\n\n    renderQuiz();\n  });\n})();\n<\/script>\n\n\n\n<p><a href=\"https:\/\/www.getstoryshots.com\/books\/the-48-laws-of-power-summary\/\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0436\u0435\u0440\u0435\u043b\u043e<\/p>","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[4650],"tags":[],"class_list":["post-95254","post","type-post","status-publish","format-standard","hentry","category-quiz"],"acf":[],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"taxonomy_info":{"category":[{"value":4650,"label":"Quiz"}]},"featured_image_src_large":false,"author_info":{"display_name":"Team StoryShots","author_link":"https:\/\/www.getstoryshots.com\/uk\/books\/author\/fuzr6koxtahlfjcigcjjuadpexy2\/"},"comment_info":0,"category_info":[{"term_id":4650,"name":"Quiz","slug":"quiz","term_group":0,"term_taxonomy_id":4650,"taxonomy":"category","description":"","parent":0,"count":1,"filter":"raw","cat_ID":4650,"category_count":1,"category_description":"","cat_name":"Quiz","category_nicename":"quiz","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/posts\/95254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/comments?post=95254"}],"version-history":[{"count":2,"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/posts\/95254\/revisions"}],"predecessor-version":[{"id":95256,"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/posts\/95254\/revisions\/95256"}],"wp:attachment":[{"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/media?parent=95254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/categories?post=95254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.getstoryshots.com\/uk\/wp-json\/wp\/v2\/tags?post=95254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}