HTML Code:
Copy Code
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Byron's 'Don Juan'_Title</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Raleway:wght@300;400;600&display=swap');
body {
font-family: 'Raleway', sans-serif;
background-color: #f8f5f0;
}
h1, h2, h3 {
font-family: 'Playfair Display', serif;
}
.highlight {
position: relative;
cursor: pointer;
background-color: rgba(255, 222, 173, 0.4);
padding: 0 2px;
border-radius: 3px;
transition: background-color 0.3s;
}
.highlight:hover {
background-color: rgba(255, 222, 173, 0.8);
}
.tooltip {
visibility: hidden;
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
background-color: #4b3f72;
color: white;
text-align: center;
border-radius: 6px;
padding: 8px 12px;
z-index: 1;
opacity: 0;
transition: opacity 0.3s;
width: max-content;
max-width: 250px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
font-size: 0.9rem;
}
.highlight:hover .tooltip {
visibility: visible;
opacity: 1;
}
.quiz-card {
display: none;
}
.active-card {
display: block;
}
.btn {
transition: all 0.3s;
}
.btn:hover {
transform: translateY(-2px);
}
.btn:active {
transform: translateY(0);
}
/* Mind Map Builder Styles */
.mind-map-container {
border: 2px solid #4b3f72;
border-radius: 8px;
padding: 20px;
background-color: #fff;
}
.mind-map-section {
margin-bottom: 20px;
}
.mind-map-title {
background-color: #4b3f72;
color: white;
padding: 10px 15px;
border-radius: 8px;
font-weight: bold;
text-align: center;
margin-bottom: 15px;
}
.mind-map-box {
border: 1px solid #4b3f72;
border-radius: 6px;
padding: 10px;
margin-bottom: 10px;
background-color: #f8f5f0;
}
.mind-map-box h4 {
font-weight: bold;
margin-bottom: 5px;
color: #4b3f72;
}
.bullet-list {
list-style: none;
padding-left: 0;
}
.bullet-list li {
position: relative;
padding-left: 20px;
margin-bottom: 8px;
}
.bullet-list li:before {
content: "•";
position: absolute;
left: 0;
color: #4b3f72;
font-weight: bold;
}
.mind-map-input {
width: 100%;
padding: 8px;
border: 1px dashed #4b3f72;
border-radius: 4px;
background-color: rgba(75, 63, 114, 0.05);
margin-top: 5px;
font-size: 0.9rem;
}
.mind-map-input:focus {
outline: none;
border: 1px solid #4b3f72;
background-color: white;
}
.hint-button {
background-color: #eae6f2;
border: 1px solid #4b3f72;
color: #4b3f72;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.3s;
}
.hint-button:hover {
background-color: #d5cee9;
}
.hint-content {
display: none;
margin-top: 8px;
padding: 8px;
background-color: #eae6f2;
border-radius: 4px;
font-size: 0.9rem;
}
.action-btn {
background-color: #4b3f72;
color: white;
border: none;
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s;
display: inline-flex;
align-items: center;
justify-content: center;
}
.action-btn:hover {
background-color: #3a3056;
}
.action-btn svg {
margin-right: 6px;
}
/* Share modal styles */
.modal {
display: none;
position: fixed;
z-index: 100;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: white;
margin: 15% auto;
padding: 20px;
border-radius: 8px;
width: 80%;
max-width: 500px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.close-modal {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close-modal:hover {
color: #000;
}
.share-option {
display: flex;
align-items: center;
padding: 10px;
border-radius: 4px;
margin-bottom: 10px;
cursor: pointer;
transition: background-color 0.3s;
}
.share-option:hover {
background-color: #f0f0f0;
}
.share-option svg {
margin-right: 15px;
flex-shrink: 0;
}
/* Toast notification */
.toast-notification {
position: fixed;
top: 20px;
right: 20px;
padding: 12px 20px;
background-color: #4CAF50;
color: white;
border-radius: 4px;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
display: flex;
align-items: center;
animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
}
@keyframes slideIn {
from {transform: translateX(100%);}
to {transform: translateX(0);}
}
@keyframes fadeOut {
from {opacity: 1;}
to {opacity: 0;}
}
.toast-notification svg {
margin-right: 10px;
}
/* Code export modal */
.code-export-container {
background-color: #f5f5f5;
border-radius: 4px;
padding: 10px;
margin-top: 15px;
position: relative;
}
.code-export-container pre {
max-height: 200px;
overflow-y: auto;
background-color: #f8f8f8;
padding: 10px;
border-radius: 4px;
border: 1px solid #ddd;
font-family: monospace;
font-size: 12px;
white-space: pre-wrap;
word-wrap: break-word;
}
.copy-btn {
position: absolute;
top: 15px;
right: 15px;
background-color: #4b3f72;
color: white;
border: none;
border-radius: 4px;
padding: 5px 10px;
font-size: 12px;
cursor: pointer;
}
.copy-btn:hover {
background-color: #3a3056;
}
.sharing-instructions {
background-color: #eaf4ff;
border-left: 4px solid #4b3f72;
padding: 15px;
margin-top: 20px;
border-radius: 0 4px 4px 0;
}
.sharing-instructions h3 {
margin-top: 0;
color: #4b3f72;
}
.sharing-instructions ol {
padding-left: 20px;
}
.sharing-instructions li {
margin-bottom: 8px;
}
</style>
<style>*, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* ! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:0.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-2{margin-right:0.5rem}.mt-2{margin-top:0.5rem}.mt-3{margin-top:0.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}.max-w-4xl{max-width:56rem}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.space-x-3 > :not([hidden]) ~ :not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.75rem * var(--tw-space-x-reverse));margin-left:calc(0.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1 > :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.25rem * var(--tw-space-y-reverse))}.space-y-2 > :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-3 > :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.75rem * var(--tw-space-y-reverse))}.rounded-lg{border-radius:0.5rem}.bg-\[\#4b3f72\]{--tw-bg-opacity:1;background-color:rgb(75 63 114 / var(--tw-bg-opacity, 1))}.bg-\[\#eae6f2\]{--tw-bg-opacity:1;background-color:rgb(234 230 242 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.italic{font-style:italic}.text-\[\#4b3f72\]{--tw-text-opacity:1;color:rgb(75 63 114 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.hover\:bg-\[\#3a3056\]:hover{--tw-bg-opacity:1;background-color:rgb(58 48 86 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}</style></head>
<body>
<div class="container mx-auto px-4 py-8 max-w-4xl">
<!-- Header -->
<header class="mb-8 text-center no-print">
<h1 class="text-4xl font-bold text-[#4b3f72] mb-2">Byron's 'Don Juan'_Title</h1>
<p class="text-xl text-gray-600 italic">Exploring Literature Through Vocabulary</p>
</header>
<!-- Main content -->
<div class="bg-white rounded-lg shadow-lg p-6 mb-8 no-print">
<p class="mb-4 text-lg">
Can a title reveal the <span class="highlight">scandalous<span class="tooltip">Causing public outrage or shock due to breaking moral or social rules</span></span> nature of a book even before you read a single word? It might surprise you to learn that Lord Byron's poem, 'Don Juan,' was considered <span class="highlight">shocking<span class="tooltip">Causing surprise or disgust; offensive or improper</span></span> simply because of its title in the 19th century.
</p>
<p class="mb-6 text-lg">
Hello lovely learners, welcome back to LnT.
</p>
<p class="mb-4 text-lg">
Today, we are going to <span class="highlight">analyze<span class="tooltip">To examine in detail to discover meaning or essential features</span></span> the title of Lord Byron's <span class="highlight">epic<span class="tooltip">A long poem narrating the deeds and adventures of heroic or legendary figures</span></span> poem, 'Don Juan'.
</p>
<p class="mb-4 text-lg">
In the early 19th century, the figure of 'Don Juan' was already a well-established and <span class="highlight">controversial<span class="tooltip">Causing disagreement or discussion; something people have strong opposing opinions about</span></span> character in European literature. Even before Byron's epic poem, 'Don Juan' was often associated with a life of <span class="highlight">temptation<span class="tooltip">The desire to do something, especially something wrong or unwise</span></span>, a <span class="highlight">disregard<span class="tooltip">To pay no attention to; to treat as unworthy of consideration</span></span> for social norms, and a spirit of <span class="highlight">rebellion<span class="tooltip">An act of violent or open resistance to an established government or ruler</span></span> against authority. This pre-existing image of Don Juan carried significant weight and likely contributed to the initial shock and <span class="highlight">intrigue<span class="tooltip">To arouse the curiosity or interest of; fascinate</span></span> surrounding Byron's work.
</p>
<p class="mb-4 text-lg">
Therefore, Byron's choice of 'Don Juan' as a title strongly <span class="highlight">hints at<span class="tooltip">To suggest or indicate something indirectly</span></span> the main character's complex character and the societal norms that he challenges throughout the poem.
</p>
<p class="mb-4 text-lg">
Building on this context, this title connects Byron's work to a long and rich <span class="highlight">legacy<span class="tooltip">Something transmitted by or received from an ancestor or predecessor</span></span> of the 'Don Juan' <span class="highlight">archetype<span class="tooltip">A very typical example of a certain person or thing; a recurrent symbol or motif in literature</span></span> in European literature. This archetype, a figure often symbolizing defiance and charm, has appeared in various forms across different countries and centuries. Some notable examples include:
</p>
<ul class="list-disc pl-8 mb-4 space-y-2">
<li><span class="font-semibold">'El Burlador de Sevilla y Convidado de Piedra'</span> (The Trickster of Seville and the Stone Guest) by Tirso de Molina (Spain, early 17th century): This is considered the <span class="highlight">foundational<span class="tooltip">Serving as a base or foundation; essential as a starting point</span></span> work that introduced the Don Juan character.</li>
<li><span class="font-semibold">'Dom Juan ou le Festin de Pierre'</span> (Don Juan or the Stone Feast) by Molière (France, 17th century): Molière's play explores the religious and social <span class="highlight">consequences<span class="tooltip">The effect, result, or outcome of something occurring earlier</span></span> of Don Juan's <span class="highlight">libertine<span class="tooltip">A person who lives freely without moral restraint, especially regarding sexual matters</span></span> lifestyle.</li>
<li><span class="font-semibold">'Don Giovanni'</span> by Wolfgang Amadeus Mozart (Austria, 18th century): This famous opera further <span class="highlight">solidified<span class="tooltip">Made stronger or more secure; confirmed or reinforced</span></span> Don Juan's image as a <span class="highlight">charismatic<span class="tooltip">Having a compelling attractiveness that inspires devotion</span></span> seducer facing divine <span class="highlight">retribution<span class="tooltip">Punishment inflicted on someone as vengeance for a wrong or criminal act</span></span>.</li>
</ul>
<p class="mb-4 text-lg">
Byron was consciously engaging with this established literary tradition when he chose the title 'Don Juan' for his poem, adding his own unique and <span class="highlight">satirical<span class="tooltip">Using humor, irony, exaggeration, or ridicule to expose and criticize people's stupidity or vices</span></span> perspective to the enduring myth. However, it's crucial to understand that Byron deliberately chose a completely different way of telling Don Juan's story, <span class="highlight">subverting<span class="tooltip">Undermining the power and authority of an established system or institution</span></span> many of the traditional portrayals.
</p>
<p class="mb-4 text-lg">
These differences in character, plot, and tone will be explored in our upcoming shorts, such as 'Byron's 'Don Juan': Structure and Plot' and 'Byron's 'Don Juan': Characters'.
</p>
</div>
<!-- Vocabulary List -->
<div class="bg-white rounded-lg shadow-lg p-6 mb-8 no-print">
<h2 class="text-2xl font-bold text-[#4b3f72] mb-4">Vocabulary List</h2>
<p class="mb-4">Study these key vocabulary words from the text. Test your knowledge using the Interactive Word List.</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
<ul class="list-disc pl-6">
<li>scandalous</li>
<li>shocking</li>
<li>analyze</li>
<li>epic</li>
<li>controversial</li>
<li>temptation</li>
<li>disregard</li>
<li>rebellion</li>
<li>intrigue</li>
<li>hint at</li>
</ul>
<ul class="list-disc pl-6">
<li>legacy</li>
<li>archetype</li>
<li>foundational</li>
<li>consequences</li>
<li>libertine</li>
<li>solidified</li>
<li>charismatic</li>
<li>retribution</li>
<li>satirical</li>
<li>subverting</li>
</ul>
</div>
<div class="bg-[#eae6f2] p-4 rounded-lg text-center">
<p class="font-semibold mb-2">Ready to test your vocabulary knowledge?</p>
<p class="mb-3">Use our Interactive Word List to practice and learn these terms.</p>
<a href="https://www.literature-no-trouble.com/interactive-word-list2/" target="_blank" class="inline-block px-6 py-3 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] transition-all btn">
Go to Interactive Word List
</a>
</div>
</div>
<!-- Comprehension Quiz -->
<div class="bg-white rounded-lg shadow-lg p-6 mb-8 no-print">
<h2 class="text-2xl font-bold text-[#4b3f72] mb-4">Comprehension Quiz</h2>
<div id="quiz-container">
<!-- Question 1 -->
<div class="quiz-card active-card" id="question-1">
<h3 class="text-xl font-semibold mb-3">Question 1 of 5</h3>
<p class="mb-4">Why was Lord Byron's poem title "Don Juan" considered shocking in the 19th century?</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q1-a" name="q1" class="mr-2">
<label for="q1-a">Because it was written in a foreign language</label>
</div>
<div class="flex items-center">
<input type="radio" id="q1-b" name="q1" class="mr-2">
<label for="q1-b">Because Don Juan was already associated with seduction and rebellion</label>
</div>
<div class="flex items-center">
<input type="radio" id="q1-c" name="q1" class="mr-2">
<label for="q1-c">Because it was too short for an epic poem</label>
</div>
<div class="flex items-center">
<input type="radio" id="q1-d" name="q1" class="mr-2">
<label for="q1-d">Because it was named after a real person who was still alive</label>
</div>
</div>
<button class="mt-6 px-6 py-2 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] btn next-question">Next Question</button>
</div>
<!-- Question 2 -->
<div class="quiz-card" id="question-2">
<h3 class="text-xl font-semibold mb-3">Question 2 of 5</h3>
<p class="mb-4">What is an "archetype" in literature?</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q2-a" name="q2" class="mr-2">
<label for="q2-a">A type of poem with specific rhyme patterns</label>
</div>
<div class="flex items-center">
<input type="radio" id="q2-b" name="q2" class="mr-2">
<label for="q2-b">The main character in a story</label>
</div>
<div class="flex items-center">
<input type="radio" id="q2-c" name="q2" class="mr-2">
<label for="q2-c">A typical example or recurrent symbol in literature</label>
</div>
<div class="flex items-center">
<input type="radio" id="q2-d" name="q2" class="mr-2">
<label for="q2-d">The author's writing style</label>
</div>
</div>
<button class="mt-6 px-6 py-2 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] btn next-question">Next Question</button>
</div>
<!-- Question 3 -->
<div class="quiz-card" id="question-3">
<h3 class="text-xl font-semibold mb-3">Question 3 of 5</h3>
<p class="mb-4">Which work is considered the foundational text that introduced the Don Juan character?</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q3-a" name="q3" class="mr-2">
<label for="q3-a">'Don Giovanni' by Mozart</label>
</div>
<div class="flex items-center">
<input type="radio" id="q3-b" name="q3" class="mr-2">
<label for="q3-b">'El Burlador de Sevilla y Convidado de Piedra' by Tirso de Molina</label>
</div>
<div class="flex items-center">
<input type="radio" id="q3-c" name="q3" class="mr-2">
<label for="q3-c">'Dom Juan ou le Festin de Pierre' by Molière</label>
</div>
<div class="flex items-center">
<input type="radio" id="q3-d" name="q3" class="mr-2">
<label for="q3-d">'Don Juan' by Lord Byron</label>
</div>
</div>
<button class="mt-6 px-6 py-2 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] btn next-question">Next Question</button>
</div>
<!-- Question 4 -->
<div class="quiz-card" id="question-4">
<h3 class="text-xl font-semibold mb-3">Question 4 of 5</h3>
<p class="mb-4">What does it mean when the text says Byron was "subverting" traditional portrayals?</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q4-a" name="q4" class="mr-2">
<label for="q4-a">He was copying traditional portrayals exactly</label>
</div>
<div class="flex items-center">
<input type="radio" id="q4-b" name="q4" class="mr-2">
<label for="q4-b">He was undermining or challenging the established portrayals</label>
</div>
<div class="flex items-center">
<input type="radio" id="q4-c" name="q4" class="mr-2">
<label for="q4-c">He was translating the story into English</label>
</div>
<div class="flex items-center">
<input type="radio" id="q4-d" name="q4" class="mr-2">
<label for="q4-d">He was making the character more religious</label>
</div>
</div>
<button class="mt-6 px-6 py-2 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] btn next-question">Next Question</button>
</div>
<!-- Question 5 -->
<div class="quiz-card" id="question-5">
<h3 class="text-xl font-semibold mb-3">Question 5 of 5</h3>
<p class="mb-4">What literary approach did Byron add to his version of the Don Juan story?</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q5-a" name="q5" class="mr-2">
<label for="q5-a">Horror elements</label>
</div>
<div class="flex items-center">
<input type="radio" id="q5-b" name="q5" class="mr-2">
<label for="q5-b">Science fiction</label>
</div>
<div class="flex items-center">
<input type="radio" id="q5-c" name="q5" class="mr-2">
<label for="q5-c">Satirical perspective</label>
</div>
<div class="flex items-center">
<input type="radio" id="q5-d" name="q5" class="mr-2">
<label for="q5-d">Romantic love story</label>
</div>
</div>
<button class="mt-6 px-6 py-2 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] btn check-answers">Check Answers</button>
</div>
<!-- Results -->
<div class="quiz-card" id="quiz-results">
<h3 class="text-xl font-semibold mb-3">Quiz Results</h3>
<p class="mb-4">You scored: <span id="quiz-score">0</span>/5</p>
<div id="answers-review" class="mb-4 space-y-3">
<!-- Answers will be inserted here by JavaScript -->
</div>
<button class="mt-4 px-6 py-2 bg-[#4b3f72] text-white rounded-lg hover:bg-[#3a3056] btn" id="retake-quiz">Retake Quiz</button>
</div>
</div>
</div>
<!-- Concept Map Builder Section -->
<div class="bg-white rounded-lg shadow-lg p-6 mb-8 concept-map-section">
<h2 class="text-2xl font-bold text-[#4b3f72] mb-4">Concept Map Builder: Byron's "Don Juan" Title</h2>
<p class="mb-4 no-print">Complete this concept map with key ideas from the text. Add brief concepts (not full sentences) to organize your understanding.</p>
<div class="mind-map-container">
<!-- Central Title -->
<div class="mind-map-title mb-6">
Byron's "Don Juan" Title
</div>
<!-- Section 1: Traditional Don Juan Character -->
<div class="mind-map-section">
<h3 class="font-bold text-lg mb-3">1. Traditional Don Juan Character</h3>
<p class="mb-2 text-sm">What characteristics were associated with Don Juan before Byron's poem?</p>
<div class="mind-map-box">
<h4>Associated with:</h4>
<ul class="bullet-list">
<li><input type="text" class="mind-map-input" placeholder="Concept 1"></li>
<li><input type="text" class="mind-map-input" placeholder="Concept 2"></li>
<li><input type="text" class="mind-map-input" placeholder="Concept 3"></li>
</ul>
<button class="hint-button mt-2 no-print">Show hint</button>
<div class="hint-content no-print">
<p>Consider: temptation, social norms, rebellion against authority</p>
</div>
</div>
</div>
<!-- Section 2: Literary Legacy -->
<div class="mind-map-section">
<h3 class="font-bold text-lg mb-3">2. Literary Legacy of Don Juan</h3>
<p class="mb-2 text-sm">What works featured Don Juan before Byron's poem?</p>
<div class="mind-map-box">
<h4>Key Works:</h4>
<ul class="bullet-list">
<li><input type="text" class="mind-map-input" placeholder="Work 1"></li>
<li><input type="text" class="mind-map-input" placeholder="Work 2"></li>
<li><input type="text" class="mind-map-input" placeholder="Work 3"></li>
</ul>
<button class="hint-button mt-2 no-print">Show hint</button>
<div class="hint-content no-print">
<p>Consider: El Burlador de Sevilla (Spain), Dom Juan (France), Don Giovanni (Austria)</p>
</div>
</div>
</div>
<!-- Section 3: Public Perception -->
<div class="mind-map-section">
<h3 class="font-bold text-lg mb-3">3. Public Perception in 19th Century</h3>
<p class="mb-2 text-sm">How was the title received when Byron published his poem?</p>
<div class="mind-map-box">
<h4>Reactions:</h4>
<ul class="bullet-list">
<li><input type="text" class="mind-map-input" placeholder="Reaction 1"></li>
<li><input type="text" class="mind-map-input" placeholder="Reaction 2"></li>
<li><input type="text" class="mind-map-input" placeholder="Reaction 3"></li>
</ul>
<button class="hint-button mt-2 no-print">Show hint</button>
<div class="hint-content no-print">
<p>Consider: shocking, intrigue, significant impact</p>
</div>
</div>
</div>
<!-- Section 4: Byron's Innovation -->
<div class="mind-map-section">
<h3 class="font-bold text-lg mb-3">4. Byron's Innovation</h3>
<p class="mb-2 text-sm">How did Byron change the Don Juan story?</p>
<div class="mind-map-box">
<h4>Byron's Approach:</h4>
<ul class="bullet-list">
<li><input type="text" class="mind-map-input" placeholder="Innovation 1"></li>
<li><input type="text" class="mind-map-input" placeholder="Innovation 2"></li>
<li><input type="text" class="mind-map-input" placeholder="Innovation 3"></li>
</ul>
<button class="hint-button mt-2 no-print">Show hint</button>
<div class="hint-content no-print">
<p>Consider: satirical perspective, subversion, different storytelling approach</p>
</div>
</div>
</div>
<!-- Section 5: Connections & Conclusions -->
<div class="mind-map-section">
<h3 class="font-bold text-lg mb-3">5. Significance of Title</h3>
<p class="mb-2 text-sm">What can we conclude about Byron's title choice?</p>
<div class="mind-map-box">
<h4>The Title Suggests:</h4>
<ul class="bullet-list">
<li><input type="text" class="mind-map-input" placeholder="Significance 1"></li>
<li><input type="text" class="mind-map-input" placeholder="Significance 2"></li>
<li><input type="text" class="mind-map-input" placeholder="Significance 3"></li>
</ul>
<button class="hint-button mt-2 no-print">Show hint</button>
<div class="hint-content no-print">
<p>Consider: character complexity, challenges to social norms, literary tradition connection</p>
</div>
</div>
</div>
</div>
<div class="flex justify-between mt-6 no-print action-buttons">
<button id="clear-map" class="px-4 py-2 bg-red-500 text-white rounded-lg hover:bg-red-600 btn">Clear All Entries</button>
<div class="flex space-x-3">
<button id="share-map" class="action-btn">
<svg xmlns="https://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.499 2.499 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5zm-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z"></path>
</svg>
Share
</button>
</div>
</div>
<div class="mt-6 bg-[#eae6f2] p-4 rounded-lg no-print">
<h3 class="font-semibold mb-2">How to Use This Concept Map Builder:</h3>
<ul class="list-disc pl-6 space-y-1 text-sm">
<li>Fill each bullet point with a <strong>key concept</strong> (not full sentences)</li>
<li>Use the hint buttons if you need help remembering key ideas from the text</li>
<li>Focus on organizing the main concepts about Byron's "Don Juan" title</li>
<li>Share your concept map with classmates or teachers</li>
<li>Use this organized structure to help with essays or discussions</li>
</ul>
</div>
</div>
<!-- Share Modal -->
<div id="share-modal" class="modal" style="display: block;">
<div class="modal-content">
<span class="close-modal">×</span>
<h2 class="text-xl font-bold mb-4">Share Your Concept Map</h2>
<p class="mb-4">Choose how you'd like to share your concept map:</p>
<div class="share-option" id="share-email">
<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="#4b3f72" viewBox="0 0 16 16">
<path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z"></path>
</svg>
<div>
<h3 class="font-semibold">Email</h3>
<p class="text-sm text-gray-600">Send your concept map via email</p>
</div>
</div>
<div class="share-option" id="share-classroom">
<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="#4b3f72" viewBox="0 0 16 16">
<path d="M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"></path>
</svg>
<div>
<h3 class="font-semibold">Google Classroom</h3>
<p class="text-sm text-gray-600">Share with your class</p>
</div>
</div>
<div class="share-option" id="share-download">
<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="#4b3f72" viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"></path>
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"></path>
</svg>
<div>
<h3 class="font-semibold">Download PDF</h3>
<p class="text-sm text-gray-600">Save as PDF to your device</p>
</div>
</div>
<div class="share-option" id="share-code">
<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="#4b3f72" viewBox="0 0 16 16">
<path d="M10.478 1.647a.5.5 0 1 0-.956-.294l-4 13a.5.5 0 0 0 .956.294l4-13zM4.854 4.146a.5.5 0 0 1 0 .708L1.707 8l3.147 3.146a.5.5 0 0 1-.708.708l-3.5-3.5a.5.5 0 0 1 0-.708l3.5-3.5a.5.5 0 0 1 .708 0zm6.292 0a.5.5 0 0 0 0 .708L14.293 8l-3.147 3.146a.5.5 0 0 0 .708.708l3.5-3.5a.5.5 0 0 0 0-.708l-3.5-3.5a.5.5 0 0 0-.708 0z"></path>
</svg>
<div>
<h3 class="font-semibold">Get HTML Code</h3>
<p class="text-sm text-gray-600">Copy the HTML code to use on your website</p>
</div>
</div>
<!-- Code Export Container (initially hidden) -->
<div id="code-export-container" class="code-export-container" style="display: block;">
<h3 class="font-semibold mb-2">HTML Code:</h3>
<button id="copy-code-btn" class="copy-btn">Copy Code</button>
<pre id="export-code"><!-- Code will be inserted here --></pre>
</div>
<!-- Website Integration Instructions -->
<div id="sharing-instructions" class="sharing-instructions" style="display: block;">
<h3 class="font-semibold mb-2">How to Add This to Your Website:</h3>
<ol class="list-decimal pl-5">
<li>Copy the entire HTML code above</li>
<li>Open your website's HTML editor or file</li>
<li>Paste the code where you want this content to appear</li>
<li>Save your changes and publish your website</li>
</ol>
<p class="mt-3 text-sm">Note: You may need to adjust some styling to match your website's design.</p>
</div>
<div class="mt-6 text-center">
<button class="px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition-all" id="close-modal-btn">Cancel</button>
</div>
</div>
</div>
</div>
<script>
// Quiz functionality
const questions = document.querySelectorAll('.quiz-card');
const nextButtons = document.querySelectorAll('.next-question');
const checkAnswersButton = document.querySelector('.check-answers');
const retakeQuizButton = document.getElementById('retake-quiz');
// Correct answers
const correctAnswers = {
'q1': 'q1-b',
'q2': 'q2-c',
'q3': 'q3-b',
'q4': 'q4-b',
'q5': 'q5-c'
};
// Navigate through questions
nextButtons.forEach((button, index) => {
button.addEventListener('click', () => {
questions[index].classList.remove('active-card');
questions[index + 1].classList.add('active-card');
});
});
// Check answers
checkAnswersButton.addEventListener('click', () => {
let score = 0;
const answersReview = document.getElementById('answers-review');
answersReview.innerHTML = '';
// Check each question
for (let i = 1; i <= 5; i++) {
const selectedAnswer = document.querySelector(`input[name="q${i}"]:checked`);
const questionText = document.querySelector(`#question-${i} > p`).textContent;
const reviewItem = document.createElement('div');
reviewItem.classList.add('p-3', 'border', 'rounded');
if (selectedAnswer && selectedAnswer.id === correctAnswers[`q${i}`]) {
score++;
reviewItem.classList.add('border-green-500', 'bg-green-50');
reviewItem.innerHTML = `<p class="font-semibold">Question ${i}: ✓ Correct</p><p class="text-sm">${questionText}</p>`;
} else {
reviewItem.classList.add('border-red-500', 'bg-red-50');
const correctLabel = document.querySelector(`label[for="${correctAnswers[`q${i}`]}"]`).textContent;
reviewItem.innerHTML = `<p class="font-semibold">Question ${i}: ✗ Incorrect</p><p class="text-sm">${questionText}</p><p class="text-sm font-medium mt-1">Correct answer: ${correctLabel}</p>`;
}
answersReview.appendChild(reviewItem);
}
document.getElementById('quiz-score').textContent = score;
questions[5].classList.remove('active-card');
document.getElementById('quiz-results').classList.add('active-card');
});
// Retake quiz
retakeQuizButton.addEventListener('click', () => {
// Reset all radio buttons
const radioButtons = document.querySelectorAll('input[type="radio"]');
radioButtons.forEach(radio => {
radio.checked = false;
});
// Show first question
document.getElementById('quiz-results').classList.remove('active-card');
document.getElementById('question-1').classList.add('active-card');
});
// Concept Map Builder functionality
const clearMapButton = document.getElementById('clear-map');
const shareMapButton = document.getElementById('share-map');
const mindMapInputs = document.querySelectorAll('.mind-map-input');
const hintButtons = document.querySelectorAll('.hint-button');
const shareModal = document.getElementById('share-modal');
const closeModalBtn = document.querySelector('.close-modal');
const closeModalButton = document.getElementById('close-modal-btn');
const shareOptions = document.querySelectorAll('.share-option');
const codeExportContainer = document.getElementById('code-export-container');
const sharingInstructions = document.getElementById('sharing-instructions');
const exportCodeElement = document.getElementById('export-code');
const copyCodeBtn = document.getElementById('copy-code-btn');
// Toggle hints
hintButtons.forEach(button => {
button.addEventListener('click', () => {
const hintContent = button.nextElementSibling;
if (hintContent.style.display === 'block') {
hintContent.style.display = 'none';
button.textContent = 'Show hint';
} else {
hintContent.style.display = 'block';
button.textContent = 'Hide hint';
}
});
});
// Save inputs to localStorage
function saveInputs() {
const inputValues = {};
mindMapInputs.forEach((input, index) => {
inputValues[`input-${index}`] = input.value;
});
localStorage.setItem('byronConceptMap', JSON.stringify(inputValues));
}
// Load saved inputs if any
if (localStorage.getItem('byronConceptMap')) {
try {
const savedInputs = JSON.parse(localStorage.getItem('byronConceptMap'));
mindMapInputs.forEach((input, index) => {
if (savedInputs[`input-${index}`]) {
input.value = savedInputs[`input-${index}`];
}
});
} catch (e) {
console.error("Error loading concept map data:", e);
}
}
// Save inputs when they change
mindMapInputs.forEach(input => {
input.addEventListener('change', saveInputs);
input.addEventListener('blur', saveInputs);
});
// Clear all inputs
clearMapButton.addEventListener('click', () => {
if (confirm('Are you sure you want to clear all entries? This cannot be undone.')) {
mindMapInputs.forEach(input => {
input.value = '';
});
localStorage.removeItem('byronConceptMap');
showToast('Concept map cleared successfully!');
}
});
// Share modal functionality
shareMapButton.addEventListener('click', () => {
shareModal.style.display = 'block';
// Hide code export container when modal first opens
codeExportContainer.style.display = 'none';
sharingInstructions.style.display = 'none';
});
closeModalBtn.addEventListener('click', () => {
shareModal.style.display = 'none';
});
closeModalButton.addEventListener('click', () => {
shareModal.style.display = 'none';
});
// Close modal when clicking outside
window.addEventListener('click', (event) => {
if (event.target === shareModal) {
shareModal.style.display = 'none';
}
});
// Function to show toast notification
function showToast(message) {
// Remove any existing toasts
const existingToasts = document.querySelectorAll('.toast-notification');
existingToasts.forEach(toast => toast.remove());
// Create new toast
const toast = document.createElement('div');
toast.className = 'toast-notification';
toast.innerHTML = `
<svg xmlns="https://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
<span>${message}</span>
`;
document.body.appendChild(toast);
// Remove toast after animation completes
setTimeout(() => {
toast.remove();
}, 3000);
}
// Share options functionality
shareOptions.forEach(option => {
option.addEventListener('click', () => {
const shareType = option.id;
// Show feedback to user
const originalContent = option.innerHTML;
option.innerHTML = `<div class="flex items-center justify-center w-full">
<svg class="animate-spin h-5 w-5 text-[#4b3f72]" xmlns="https://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
</div>`;
setTimeout(() => {
option.innerHTML = originalContent;
// Handle different share options
if (shareType === 'share-code') {
// Show code export container
codeExportContainer.style.display = 'block';
sharingInstructions.style.display = 'block';
// Get the entire HTML document
const htmlCode = document.documentElement.outerHTML;
// Display the code in the pre element
exportCodeElement.textContent = htmlCode;
} else {
// Close modal for other options
shareModal.style.display = 'none';
// Show success message
let message = '';
if (shareType === 'share-email') {
message = 'Concept map shared via email!';
} else if (shareType === 'share-classroom') {
message = 'Concept map shared to Google Classroom!';
} else if (shareType === 'share-download') {
message = 'Concept map downloaded as PDF!';
}
showToast(message);
}
}, 1500);
});
});
// Copy code button functionality
copyCodeBtn.addEventListener('click', () => {
const codeToCopy = exportCodeElement.textContent;
// Copy to clipboard
navigator.clipboard.writeText(codeToCopy).then(() => {
// Change button text temporarily
const originalText = copyCodeBtn.textContent;
copyCodeBtn.textContent = 'Copied!';
setTimeout(() => {
copyCodeBtn.textContent = originalText;
}, 2000);
showToast('HTML code copied to clipboard!');
}).catch(err => {
console.error('Failed to copy: ', err);
showToast('Failed to copy code. Please try again.');
});
});
</script>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'944c16c10423ea54',t:'MTc0ODA4MjMyNC4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script><iframe height="1" width="1" style="position: absolute; top: 0px; left: 0px; border: medium; visibility: hidden;"></iframe>
</body></html>