{"id":1593,"date":"2026-06-09T19:25:30","date_gmt":"2026-06-09T19:25:30","guid":{"rendered":"https:\/\/cuentoskecuentan.com\/?page_id=1593"},"modified":"2026-06-09T19:29:49","modified_gmt":"2026-06-09T19:29:49","slug":"1061-2","status":"publish","type":"page","link":"https:\/\/cuentoskecuentan.com\/?page_id=1593","title":{"rendered":"1061"},"content":{"rendered":"\n<iframe loading=\"lazy\" src=\"https:\/\/drive.google.com\/file\/d\/1ruyCpH0J3LzxcO7iTsT0D-x7cA_H8X12\/preview\" width=\"640\" height=\"480\"><\/iframe>\n\n\n\n<div class=\"vocabBoxLeft793d7a\">\n  <div class=\"vocabCardLeft793d7a\">\n\n    <div id=\"wordLeft793d7a\" class=\"wordLeft793d7a\"><\/div>\n    <div id=\"meaningLeft793d7a\" class=\"meaningLeft793d7a\"><\/div>\n\n    <div class=\"navLeft793d7a\">\n      <button onclick=\"prevLeft793d7a()\">&#x25c0; Anterior<\/button>\n      <button onclick=\"nextLeft793d7a()\">Siguiente &#x25b6;<\/button>\n    <\/div>\n\n  <\/div>\n<\/div>\n\n<style>\n.vocabBoxLeft793d7a{\n  max-width: 320px;\n  margin: 20px 0;\n}\n\n.vocabCardLeft793d7a{\n  border: 2px solid #793d7a;\n  border-radius: 10px;\n  padding: 18px;\n  background: #fff;\n  text-align: center;\n}\n\n.wordLeft793d7a{\n  font-size: 26px;\n  font-weight: bold;\n  color: #793d7a;\n  margin-bottom: 10px;\n}\n\n.meaningLeft793d7a{\n  font-size: 18px;\n  color: #333;\n  margin-bottom: 18px;\n}\n\n.navLeft793d7a{\n  display: flex;\n  justify-content: space-between;\n}\n\n.navLeft793d7a button{\n  background: #793d7a;\n  color: #fff;\n  border: none;\n  padding: 6px 12px;\n  border-radius: 6px;\n  font-size: 14px;\n  cursor: pointer;\n}\n<\/style>\n\n<script>\n(function(){\n\n  var vocabLeft793d7a = [\n    {w:\"age\", m:\"edad\"},\n    {w:\"fame\", m:\"fama\"},\n    {w:\"gate\", m:\"puerta \/ port\u00f3n\"},\n    {w:\"base\", m:\"base\"},\n    {w:\"game\", m:\"juego\"},\n    {w:\"wage\", m:\"salario\"},\n    {w:\"wake\", m:\"despertar\"},\n    {w:\"May\", m:\"mayo\"},\n    {w:\"prey\", m:\"presa\"},\n    {w:\"aid\", m:\"ayuda\"},\n    {w:\"gain\", m:\"ganar \/ obtener\"},\n    {w:\"pail\", m:\"balde\"},\n    {w:\"laid\", m:\"coloc\u00f3\"},\n    {w:\"raid\", m:\"redada \/ incursi\u00f3n\"},\n    {w:\"seek\", m:\"buscar\"},\n    {w:\"meet\", m:\"conocer \/ reunirse\"},\n    {w:\"jeep\", m:\"jeep\"},\n    {w:\"weave\", m:\"tejer\"},\n    {w:\"tea\", m:\"t\u00e9\"},\n    {w:\"weak\", m:\"d\u00e9bil\"},\n    {w:\"seal\", m:\"foca \/ sello\"},\n    {w:\"piece\", m:\"pieza\"},\n    {w:\"blade\", m:\"hoja \/ cuchilla\"},\n    {w:\"flame\", m:\"llama\"},\n    {w:\"plate\", m:\"plato\"},\n    {w:\"slate\", m:\"pizarra\"},\n    {w:\"slave\", m:\"esclavo\"},\n    {w:\"brave\", m:\"valiente\"},\n    {w:\"frame\", m:\"marco\"},\n    {w:\"grain\", m:\"grano\"},\n    {w:\"trace\", m:\"rastro\"},\n    {w:\"breeze\", m:\"brisa\"},\n    {w:\"freeze\", m:\"congelar\"},\n    {w:\"greed\", m:\"avaricia\"},\n    {w:\"priest\", m:\"sacerdote\"},\n    {w:\"trait\", m:\"rasgo\"},\n    {w:\"trail\", m:\"sendero\"},\n    {w:\"train\", m:\"tren\"},\n    {w:\"claim\", m:\"afirmar \/ reclamar\"},\n    {w:\"skate\", m:\"patinar\"},\n    {w:\"state\", m:\"estado\"},\n    {w:\"steel\", m:\"acero\"},\n    {w:\"steep\", m:\"empinado\"},\n    {w:\"sweet\", m:\"dulce\"},\n    {w:\"canopy\", m:\"dosel \/ copa de \u00e1rbol\"},\n    {w:\"daily\", m:\"diario\"},\n    {w:\"clumsy\", m:\"torpe\"},\n    {w:\"duty\", m:\"deber\"},\n    {w:\"entry\", m:\"entrada\"},\n    {w:\"envy\", m:\"envidia\"},\n    {w:\"factory\", m:\"f\u00e1brica\"},\n    {w:\"glory\", m:\"gloria\"},\n    {w:\"jelly\", m:\"gelatina\"},\n    {w:\"jolly\", m:\"alegre\"},\n    {w:\"plenty\", m:\"abundancia\"},\n    {w:\"property\", m:\"propiedad\"},\n    {w:\"rivalry\", m:\"rivalidad\"},\n    {w:\"slavery\", m:\"esclavitud\"},\n    {w:\"sorry\", m:\"lo siento\"},\n    {w:\"treaty\", m:\"tratado\"},\n    {w:\"wavy\", m:\"ondulado\"},\n    {w:\"weary\", m:\"cansado\"},\n    {w:\"holy\", m:\"santo\"},\n    {w:\"ability\", m:\"habilidad\"},\n    {w:\"balcony\", m:\"balc\u00f3n\"}\n  ];\n\n  var posLeft793d7a = 0;\n\n  function renderLeft793d7a(){\n    document.getElementById(\"wordLeft793d7a\").innerHTML = vocabLeft793d7a[posLeft793d7a].w;\n    document.getElementById(\"meaningLeft793d7a\").innerHTML = vocabLeft793d7a[posLeft793d7a].m;\n  }\n\n  window.nextLeft793d7a = function(){\n    posLeft793d7a++;\n    if(posLeft793d7a >= vocabLeft793d7a.length){\n      posLeft793d7a = 0;\n    }\n    renderLeft793d7a();\n  };\n\n  window.prevLeft793d7a = function(){\n    posLeft793d7a--;\n    if(posLeft793d7a < 0){\n      posLeft793d7a = vocabLeft793d7a.length - 1;\n    }\n    renderLeft793d7a();\n  };\n\n  renderLeft793d7a();\n\n})();\n<\/script>\n\n\n\n<div class=\"vocabBox793d7a\">\n  <div class=\"vocabCard793d7a\">\n\n    <div class=\"meaning793d7a\" id=\"meaning793d7a\"><\/div>\n\n    <input\n      type=\"text\"\n      id=\"input793d7a\"\n      class=\"input793d7a\"\n      placeholder=\"Escribe la palabra en ingl\u00e9s\"\n    >\n\n    <div class=\"buttons793d7a\">\n      <button onclick=\"check793d7a()\">Revisar<\/button>\n      <button onclick=\"next793d7a()\">Siguiente<\/button>\n    <\/div>\n\n    <div id=\"feedback793d7a\" class=\"feedback793d7a\"><\/div>\n\n  <\/div>\n<\/div>\n\n<style>\n.vocabBox793d7a{\n  max-width: 300px;\n  margin: 20px 0;\n}\n\n.vocabCard793d7a{\n  border: 2px solid #793d7a;\n  border-radius: 10px;\n  padding: 16px;\n  background: #fff;\n  text-align: center;\n}\n\n.meaning793d7a{\n  font-size: 18px;\n  margin-bottom: 12px;\n}\n\n.input793d7a{\n  width: 100%;\n  padding: 8px;\n  font-size: 16px;\n  border: 1.5px solid #793d7a;\n  border-radius: 6px;\n  margin-bottom: 10px;\n}\n\n.buttons793d7a{\n  display: flex;\n  justify-content: space-between;\n  margin-bottom: 8px;\n}\n\n.buttons793d7a button{\n  background: #793d7a;\n  color: white;\n  border: none;\n  border-radius: 6px;\n  padding: 6px 10px;\n  font-size: 14px;\n  cursor: pointer;\n}\n\n.feedback793d7a{\n  min-height: 18px;\n  font-size: 14px;\n}\n\n.ok793d7a{ color: #2e7d32; }\n.no793d7a{ color: #c62828; }\n<\/style>\n\n<script>\n(function(){\n\n  var vocab793d7a = [\n    {w:\"age\", m:\"edad\"},\n    {w:\"fame\", m:\"fama\"},\n    {w:\"gate\", m:\"puerta \/ port\u00f3n\"},\n    {w:\"base\", m:\"base\"},\n    {w:\"game\", m:\"juego\"},\n    {w:\"wage\", m:\"salario\"},\n    {w:\"wake\", m:\"despertar\"},\n    {w:\"May\", m:\"mayo\"},\n    {w:\"prey\", m:\"presa\"},\n    {w:\"aid\", m:\"ayuda\"},\n    {w:\"gain\", m:\"ganar \/ obtener\"},\n    {w:\"pail\", m:\"balde\"},\n    {w:\"laid\", m:\"coloc\u00f3\"},\n    {w:\"raid\", m:\"redada \/ incursi\u00f3n\"},\n    {w:\"seek\", m:\"buscar\"},\n    {w:\"meet\", m:\"conocer \/ reunirse\"},\n    {w:\"jeep\", m:\"jeep\"},\n    {w:\"weave\", m:\"tejer\"},\n    {w:\"tea\", m:\"t\u00e9\"},\n    {w:\"weak\", m:\"d\u00e9bil\"},\n    {w:\"seal\", m:\"foca \/ sello\"},\n    {w:\"piece\", m:\"pieza\"},\n    {w:\"blade\", m:\"hoja \/ cuchilla\"},\n    {w:\"flame\", m:\"llama\"},\n    {w:\"plate\", m:\"plato\"},\n    {w:\"slate\", m:\"pizarra\"},\n    {w:\"slave\", m:\"esclavo\"},\n    {w:\"brave\", m:\"valiente\"},\n    {w:\"frame\", m:\"marco\"},\n    {w:\"grain\", m:\"grano\"},\n    {w:\"trace\", m:\"rastro\"},\n    {w:\"breeze\", m:\"brisa\"},\n    {w:\"freeze\", m:\"congelar\"},\n    {w:\"greed\", m:\"avaricia\"},\n    {w:\"priest\", m:\"sacerdote\"},\n    {w:\"trait\", m:\"rasgo\"},\n    {w:\"trail\", m:\"sendero\"},\n    {w:\"train\", m:\"tren\"},\n    {w:\"claim\", m:\"afirmar \/ reclamar\"},\n    {w:\"skate\", m:\"patinar\"},\n    {w:\"state\", m:\"estado\"},\n    {w:\"steel\", m:\"acero\"},\n    {w:\"steep\", m:\"empinado\"},\n    {w:\"sweet\", m:\"dulce\"},\n    {w:\"canopy\", m:\"dosel \/ copa de \u00e1rbol\"},\n    {w:\"daily\", m:\"diario\"},\n    {w:\"clumsy\", m:\"torpe\"},\n    {w:\"duty\", m:\"deber\"},\n    {w:\"entry\", m:\"entrada\"},\n    {w:\"envy\", m:\"envidia\"},\n    {w:\"factory\", m:\"f\u00e1brica\"},\n    {w:\"glory\", m:\"gloria\"},\n    {w:\"jelly\", m:\"gelatina\"},\n    {w:\"jolly\", m:\"alegre\"},\n    {w:\"plenty\", m:\"abundancia\"},\n    {w:\"property\", m:\"propiedad\"},\n    {w:\"rivalry\", m:\"rivalidad\"},\n    {w:\"slavery\", m:\"esclavitud\"},\n    {w:\"sorry\", m:\"lo siento\"},\n    {w:\"treaty\", m:\"tratado\"},\n    {w:\"wavy\", m:\"ondulado\"},\n    {w:\"weary\", m:\"cansado\"},\n    {w:\"holy\", m:\"santo\"},\n    {w:\"ability\", m:\"habilidad\"},\n    {w:\"balcony\", m:\"balc\u00f3n\"}\n  ];\n\n  var pos793d7a = 0;\n\n  function render793d7a(){\n    document.getElementById(\"meaning793d7a\").innerHTML = vocab793d7a[pos793d7a].m;\n  }\n\n  window.check793d7a = function(){\n    var user = document.getElementById(\"input793d7a\").value.toLowerCase().trim();\n    var correct = vocab793d7a[pos793d7a].w.toLowerCase();\n    var fb = document.getElementById(\"feedback793d7a\");\n\n    if(user === correct){\n      fb.innerHTML = \"\u00a1Correcto!\";\n      fb.className = \"feedback793d7a ok793d7a\";\n    } else {\n      fb.innerHTML = \"Intenta otra vez\";\n      fb.className = \"feedback793d7a no793d7a\";\n    }\n  };\n\n  window.next793d7a = function(){\n    pos793d7a++;\n    if(pos793d7a >= vocab793d7a.length){\n      pos793d7a = 0;\n    }\n\n    render793d7a();\n    document.getElementById(\"input793d7a\").value = \"\";\n    document.getElementById(\"feedback793d7a\").innerHTML = \"\";\n    document.getElementById(\"feedback793d7a\").className = \"feedback793d7a\";\n  };\n\n  render793d7a();\n\n})();\n<\/script>\n\n\n\n<div class=\"listenBox793d7a\">\n  <div class=\"listenCard793d7a\">\n\n    <h3>Escucha y selecciona la palabra correcta<\/h3>\n\n    <button class=\"playBtn793d7a\" onclick=\"playWord793d7a()\">\n      &#x25b6; Escuchar\n    <\/button>\n\n    <div id=\"options793d7a\" class=\"options793d7a\"><\/div>\n\n    <div id=\"feedback793d7a\" class=\"feedback793d7a\"><\/div>\n\n    <button class=\"nextBtn793d7a\" onclick=\"next793d7a()\">\n      Siguiente\n    <\/button>\n\n  <\/div>\n<\/div>\n\n<style>\n.listenBox793d7a{\n  max-width:520px;\n  margin:20px 0;\n  font-family:Arial;\n}\n\n.listenCard793d7a{\n  border:2px solid #793d7a;\n  border-radius:14px;\n  padding:20px;\n  background:white;\n  text-align:left;\n}\n\n.listenCard793d7a h3{\n  color:#793d7a;\n  margin-bottom:18px;\n  text-align:left;\n}\n\n.playBtn793d7a,\n.nextBtn793d7a{\n  background:#793d7a;\n  color:white;\n  border:none;\n  border-radius:10px;\n  padding:10px 18px;\n  font-size:16px;\n  cursor:pointer;\n  margin:8px 8px 8px 0;\n  transition:.2s;\n}\n\n.playBtn793d7a:hover,\n.nextBtn793d7a:hover{\n  transform:scale(1.03);\n}\n\n.options793d7a{\n  display:grid;\n  grid-template-columns:1fr 1fr;\n  gap:12px;\n  margin-top:20px;\n}\n\n.option793d7a{\n  border:2px solid #793d7a;\n  border-radius:10px;\n  padding:12px;\n  cursor:pointer;\n  background:#faf5fb;\n  font-size:18px;\n  transition:.2s;\n  text-align:left;\n}\n\n.option793d7a:hover{\n  transform:scale(1.03);\n}\n\n.correct793d7a{\n  background:#dcedc8;\n  border-color:#4caf50;\n}\n\n.wrong793d7a{\n  background:#ffcdd2;\n  border-color:#e53935;\n}\n\n.feedback793d7a{\n  margin-top:18px;\n  min-height:24px;\n  font-size:18px;\n  font-weight:bold;\n  color:#793d7a;\n  text-align:left;\n}\n\n@media(max-width:600px){\n\n  .options793d7a{\n    grid-template-columns:1fr;\n  }\n\n}\n<\/style>\n\n<script>\n(function(){\n\nconst vocab793d7a = [\n\"age\",\n\"fame\",\n\"gate\",\n\"base\",\n\"game\",\n\"wage\",\n\"wake\",\n\"May\",\n\"prey\",\n\"aid\",\n\"gain\",\n\"pail\",\n\"laid\",\n\"raid\",\n\"seek\",\n\"meet\",\n\"jeep\",\n\"weave\",\n\"tea\",\n\"weak\",\n\"seal\",\n\"piece\",\n\"blade\",\n\"flame\",\n\"plate\",\n\"slate\",\n\"slave\",\n\"brave\",\n\"frame\",\n\"grain\",\n\"trace\",\n\"breeze\",\n\"freeze\",\n\"greed\",\n\"priest\",\n\"trait\",\n\"trail\",\n\"train\",\n\"claim\",\n\"skate\",\n\"state\",\n\"steel\",\n\"steep\",\n\"sweet\",\n\"canopy\",\n\"daily\",\n\"clumsy\",\n\"duty\",\n\"entry\",\n\"envy\",\n\"factory\",\n\"glory\",\n\"jelly\",\n\"jolly\",\n\"plenty\",\n\"property\",\n\"rivalry\",\n\"slavery\",\n\"sorry\",\n\"treaty\",\n\"wavy\",\n\"weary\",\n\"holy\",\n\"ability\",\n\"balcony\"\n];\n\nlet currentWord = \"\";\nlet answered = false;\n\nfunction shuffle(arr){\n  return arr.sort(()=>Math.random()-0.5);\n}\n\nfunction generateQuestion(){\n\n  answered = false;\n\n  currentWord =\n    vocab793d7a[\n      Math.floor(Math.random()*vocab793d7a.length)\n    ];\n\n  let options = [currentWord];\n\n  while(options.length < 4){\n\n    let random =\n      vocab793d7a[\n        Math.floor(Math.random()*vocab793d7a.length)\n      ];\n\n    if(!options.includes(random)){\n      options.push(random);\n    }\n  }\n\n  options = shuffle(options);\n\n  let html = \"\";\n\n  options.forEach(word=>{\n\n    html += `\n      <div class=\"option793d7a\"\n           onclick=\"choose793d7a(this,'${word}')\">\n           ${word}\n      <\/div>\n    `;\n  });\n\n  document.getElementById(\"options793d7a\").innerHTML = html;\n\n  document.getElementById(\"feedback793d7a\").innerHTML = \"\";\n}\n\nwindow.playWord793d7a = function(){\n\n  let utter =\n    new SpeechSynthesisUtterance(currentWord);\n\n  utter.lang = \"en-US\";\n  utter.rate = 0.85;\n\n  speechSynthesis.cancel();\n  speechSynthesis.speak(utter);\n}\n\nwindow.choose793d7a = function(el,word){\n\n  if(answered) return;\n\n  answered = true;\n\n  if(word === currentWord){\n\n    el.classList.add(\"correct793d7a\");\n\n    document.getElementById(\"feedback793d7a\").innerHTML =\n      \"\u00a1Correcto!\";\n\n  } else {\n\n    el.classList.add(\"wrong793d7a\");\n\n    document.getElementById(\"feedback793d7a\").innerHTML =\n      \"Intenta otra vez\";\n\n    document.querySelectorAll(\".option793d7a\").forEach(btn=>{\n\n      if(btn.innerText === currentWord){\n        btn.classList.add(\"correct793d7a\");\n      }\n\n    });\n  }\n}\n\nwindow.next793d7a = function(){\n  generateQuestion();\n}\n\ngenerateQuestion();\n\n})();\n<\/script>\n\n\n\n<div class=\"matchBox793d7a\">\n  <div class=\"matchCard793d7a\">\n\n    <h3>Relaciona cada palabra con su significado<\/h3>\n\n    <div class=\"gameArea793d7a\">\n\n      <svg id=\"lines793d7a\"><\/svg>\n\n      <div class=\"column793d7a\" id=\"words793d7a\"><\/div>\n\n      <div class=\"column793d7a\" id=\"meanings793d7a\"><\/div>\n\n    <\/div>\n\n    <div id=\"feedback793d7a\" class=\"feedback793d7a\"><\/div>\n\n  <\/div>\n<\/div>\n\n<style>\n.matchBox793d7a{\n  max-width:850px;\n  margin:20px 0;\n}\n\n.matchCard793d7a{\n  border:2px solid #793d7a;\n  border-radius:16px;\n  padding:20px;\n  background:white;\n  font-family:Arial;\n  position:relative;\n}\n\n.matchCard793d7a h3{\n  color:#793d7a;\n  margin-bottom:20px;\n}\n\n.gameArea793d7a{\n  position:relative;\n  display:flex;\n  justify-content:space-between;\n  gap:50px;\n}\n\n.column793d7a{\n  width:45%;\n  z-index:2;\n}\n\n.item793d7a{\n  background:#faf5fb;\n  border:2px solid #793d7a;\n  border-radius:12px;\n  padding:12px;\n  margin:12px 0;\n  font-size:17px;\n  cursor:pointer;\n  transition:.2s;\n  user-select:none;\n}\n\n.item793d7a:hover{\n  transform:scale(1.02);\n}\n\n.selected793d7a{\n  background:#ead7ea;\n  border-color:#5d245e;\n}\n\n.correct793d7a{\n  background:#dcedc8;\n  border-color:#4caf50;\n}\n\n.wrong793d7a{\n  background:#ffd6d6;\n  border-color:#e53935;\n}\n\n.feedback793d7a{\n  margin-top:20px;\n  font-size:18px;\n  color:#793d7a;\n  font-weight:bold;\n}\n\n#lines793d7a{\n  position:absolute;\n  top:0;\n  left:0;\n  width:100%;\n  height:100%;\n  pointer-events:none;\n  z-index:1;\n}\n\n.line793d7a{\n  stroke:#793d7a;\n  stroke-width:3;\n}\n\n@media(max-width:700px){\n\n  .gameArea793d7a{\n    gap:20px;\n  }\n\n  .item793d7a{\n    font-size:15px;\n    padding:10px;\n  }\n\n}\n<\/style>\n\n<script>\n(function(){\n\nconst vocab793d7a = [\n{w:\"age\",m:\"edad\"},\n{w:\"fame\",m:\"fama\"},\n{w:\"gate\",m:\"puerta \/ port\u00f3n\"},\n{w:\"base\",m:\"base\"},\n{w:\"game\",m:\"juego\"},\n{w:\"wage\",m:\"salario\"},\n{w:\"wake\",m:\"despertar\"},\n{w:\"May\",m:\"mayo\"},\n{w:\"prey\",m:\"presa\"},\n{w:\"aid\",m:\"ayuda\"},\n{w:\"gain\",m:\"ganar \/ obtener\"},\n{w:\"pail\",m:\"balde\"},\n{w:\"laid\",m:\"coloc\u00f3\"},\n{w:\"raid\",m:\"redada \/ incursi\u00f3n\"},\n{w:\"seek\",m:\"buscar\"},\n{w:\"meet\",m:\"conocer \/ reunirse\"},\n{w:\"jeep\",m:\"jeep\"},\n{w:\"weave\",m:\"tejer\"},\n{w:\"tea\",m:\"t\u00e9\"},\n{w:\"weak\",m:\"d\u00e9bil\"},\n{w:\"seal\",m:\"foca \/ sello\"},\n{w:\"piece\",m:\"pieza\"},\n{w:\"blade\",m:\"hoja \/ cuchilla\"},\n{w:\"flame\",m:\"llama\"},\n{w:\"plate\",m:\"plato\"},\n{w:\"slate\",m:\"pizarra\"},\n{w:\"slave\",m:\"esclavo\"},\n{w:\"brave\",m:\"valiente\"},\n{w:\"frame\",m:\"marco\"},\n{w:\"grain\",m:\"grano\"},\n{w:\"trace\",m:\"rastro\"},\n{w:\"breeze\",m:\"brisa\"},\n{w:\"freeze\",m:\"congelar\"},\n{w:\"greed\",m:\"avaricia\"},\n{w:\"priest\",m:\"sacerdote\"},\n{w:\"trait\",m:\"rasgo\"},\n{w:\"trail\",m:\"sendero\"},\n{w:\"train\",m:\"tren\"},\n{w:\"claim\",m:\"afirmar \/ reclamar\"},\n{w:\"skate\",m:\"patinar\"},\n{w:\"state\",m:\"estado\"},\n{w:\"steel\",m:\"acero\"},\n{w:\"steep\",m:\"empinado\"},\n{w:\"sweet\",m:\"dulce\"},\n{w:\"canopy\",m:\"dosel \/ copa de \u00e1rbol\"},\n{w:\"daily\",m:\"diario\"},\n{w:\"clumsy\",m:\"torpe\"},\n{w:\"duty\",m:\"deber\"},\n{w:\"entry\",m:\"entrada\"},\n{w:\"envy\",m:\"envidia\"},\n{w:\"factory\",m:\"f\u00e1brica\"},\n{w:\"glory\",m:\"gloria\"},\n{w:\"jelly\",m:\"gelatina\"},\n{w:\"jolly\",m:\"alegre\"},\n{w:\"plenty\",m:\"abundancia\"},\n{w:\"property\",m:\"propiedad\"},\n{w:\"rivalry\",m:\"rivalidad\"},\n{w:\"slavery\",m:\"esclavitud\"},\n{w:\"sorry\",m:\"lo siento\"},\n{w:\"treaty\",m:\"tratado\"},\n{w:\"wavy\",m:\"ondulado\"},\n{w:\"weary\",m:\"cansado\"},\n{w:\"holy\",m:\"santo\"},\n{w:\"ability\",m:\"habilidad\"},\n{w:\"balcony\",m:\"balc\u00f3n\"}\n];\n\nlet block = 0;\nlet correct = 0;\nlet selectedWord = null;\n\nfunction shuffle(arr){\n  return [...arr].sort(()=>Math.random()-0.5);\n}\n\nfunction render(){\n\n  correct = 0;\n  selectedWord = null;\n\n  const start = block * 6;\n\n  let chunk = vocab793d7a.slice(start,start+6);\n\n  if(chunk.length < 6){\n    block = 0;\n    chunk = vocab793d7a.slice(0,6);\n  }\n\n  let words = shuffle([...chunk]);\n  let meanings = shuffle([...chunk]);\n\n  const wordsHTML = words.map(item=>`\n    <div class=\"item793d7a word793d7a\"\n         data-word=\"${item.w}\">\n      ${item.w}\n    <\/div>\n  `).join(\"\");\n\n  const meaningsHTML = meanings.map(item=>`\n    <div class=\"item793d7a meaning793d7a\"\n         data-match=\"${item.w}\">\n      ${item.m}\n    <\/div>\n  `).join(\"\");\n\n  document.getElementById(\"words793d7a\").innerHTML = wordsHTML;\n  document.getElementById(\"meanings793d7a\").innerHTML = meaningsHTML;\n  document.getElementById(\"feedback793d7a\").innerHTML = \"\";\n  document.getElementById(\"lines793d7a\").innerHTML = \"\";\n\n  addEvents();\n}\n\nfunction addEvents(){\n\n  const words = document.querySelectorAll(\".word793d7a\");\n  const meanings = document.querySelectorAll(\".meaning793d7a\");\n\n  words.forEach(word=>{\n\n    word.addEventListener(\"click\",()=>{\n\n      if(word.classList.contains(\"correct793d7a\")) return;\n\n      words.forEach(w=>w.classList.remove(\"selected793d7a\"));\n\n      word.classList.add(\"selected793d7a\");\n      selectedWord = word;\n\n    });\n\n  });\n\n  meanings.forEach(meaning=>{\n\n    meaning.addEventListener(\"click\",()=>{\n\n      if(!selectedWord) return;\n\n      if(meaning.classList.contains(\"correct793d7a\")) return;\n\n      const selected = selectedWord.dataset.word;\n      const match = meaning.dataset.match;\n\n      if(selected === match){\n\n        selectedWord.classList.remove(\"selected793d7a\");\n\n        selectedWord.classList.add(\"correct793d7a\");\n        meaning.classList.add(\"correct793d7a\");\n\n        drawLine(selectedWord, meaning);\n\n        selectedWord.style.pointerEvents = \"none\";\n        meaning.style.pointerEvents = \"none\";\n\n        correct++;\n\n        selectedWord = null;\n\n        if(correct === 6){\n\n          document.getElementById(\"feedback793d7a\").innerHTML =\n          \"\u00a1Excelente! Siguiente bloque...\";\n\n          setTimeout(()=>{\n\n            block++;\n            render();\n\n          },1500);\n        }\n\n      }else{\n\n        meaning.classList.add(\"wrong793d7a\");\n        selectedWord.classList.add(\"wrong793d7a\");\n\n        setTimeout(()=>{\n\n          meaning.classList.remove(\"wrong793d7a\");\n          selectedWord.classList.remove(\"wrong793d7a\");\n          selectedWord.classList.remove(\"selected793d7a\");\n\n          selectedWord = null;\n\n        },600);\n      }\n\n    });\n\n  });\n\n}\n\nfunction drawLine(el1, el2){\n\n  const svg = document.getElementById(\"lines793d7a\");\n  const container = document.querySelector(\".gameArea793d7a\");\n\n  const rect1 = el1.getBoundingClientRect();\n  const rect2 = el2.getBoundingClientRect();\n  const parentRect = container.getBoundingClientRect();\n\n  const x1 = rect1.right - parentRect.left;\n  const y1 = rect1.top + rect1.height\/2 - parentRect.top;\n\n  const x2 = rect2.left - parentRect.left;\n  const y2 = rect2.top + rect2.height\/2 - parentRect.top;\n\n  const line = document.createElementNS(\n    \"http:\/\/www.w3.org\/2000\/svg\",\n    \"line\"\n  );\n\n  line.setAttribute(\"x1\", x1);\n  line.setAttribute(\"y1\", y1);\n  line.setAttribute(\"x2\", x2);\n  line.setAttribute(\"y2\", y2);\n  line.setAttribute(\"class\", \"line793d7a\");\n\n  svg.appendChild(line);\n}\n\nrender();\n\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>&#x25c0; Anterior Siguiente &#x25b6; Revisar Siguiente Escucha y selecciona la palabra correcta &#x25b6; Escuchar Siguiente Relaciona cada palabra con su significado<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1593","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages\/1593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1593"}],"version-history":[{"count":3,"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages\/1593\/revisions"}],"predecessor-version":[{"id":1599,"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages\/1593\/revisions\/1599"}],"wp:attachment":[{"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}