{"id":1353,"date":"2026-05-04T17:23:58","date_gmt":"2026-05-04T17:23:58","guid":{"rendered":"https:\/\/cuentoskecuentan.com\/?page_id=1353"},"modified":"2026-05-27T14:23:17","modified_gmt":"2026-05-27T14:23:17","slug":"1041-2","status":"publish","type":"page","link":"https:\/\/cuentoskecuentan.com\/?page_id=1353","title":{"rendered":"1041"},"content":{"rendered":"\n<iframe loading=\"lazy\" src=\"https:\/\/drive.google.com\/file\/d\/1Aja93x5zHZkAzpJnNsROqbwMLjzP7D6K\/preview\" width=\"640\" height=\"480\"><\/iframe>\n\n\n\n<div class=\"vocabBoxLeft793d7a\">\n  <div class=\"vocabCardLeft793d7a\">\n\n    <div id=\"emojiLeft793d7a\" class=\"emojiLeft793d7a\"><\/div>\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: 14px;\n  padding: 20px;\n  background: #fff;\n  text-align: center;\n  box-shadow: 0 4px 10px rgba(0,0,0,.08);\n}\n\n.emojiLeft793d7a{\n  font-size: 64px;\n  margin-bottom: 12px;\n}\n\n.wordLeft793d7a{\n  font-size: 28px;\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: 20px;\n  line-height: 1.4;\n}\n\n.navLeft793d7a{\n  display: flex;\n  justify-content: space-between;\n  gap: 10px;\n}\n\n.navLeft793d7a button{\n  flex: 1;\n  background: #793d7a;\n  color: #fff;\n  border: none;\n  padding: 10px;\n  border-radius: 8px;\n  font-size: 14px;\n  cursor: pointer;\n  transition: .2s;\n}\n\n.navLeft793d7a button:hover{\n  opacity: .9;\n  transform: scale(1.03);\n}\n<\/style>\n\n<script>\n(function(){\n\n  var vocabLeft793d7a = [\n    {w:\"tail\", m:\"cola\", e:\"&#x1f415;\"},\n    {w:\"wait\", m:\"esperar\", e:\"&#x23f3;\"},\n    {w:\"grain\", m:\"grano\", e:\"&#x1f33e;\"},\n    {w:\"brain\", m:\"cerebro\", e:\"&#x1f9e0;\"},\n    {w:\"faith\", m:\"fe\", e:\"&#x1f64f;\"},\n    {w:\"sail\", m:\"vela \/ navegar\", e:\"&#x26f5;\"},\n    {w:\"floor\", m:\"piso\", e:\"&#x1f3e0;\"},\n    {w:\"globe\", m:\"globo terr\u00e1queo\", e:\"&#x1f30e;\"},\n    {w:\"glide\", m:\"deslizarse\", e:\"&#x1f6fc;\"},\n    {w:\"trade\", m:\"comercio \/ intercambiar\", e:\"&#x1f4b1;\"},\n    {w:\"train\", m:\"tren\", e:\"&#x1f682;\"},\n    {w:\"tribe\", m:\"tribu\", e:\"&#x1fab6;\"},\n    {w:\"waste\", m:\"desperdiciar\", e:\"&#x1f5d1;&#xfe0f;\"},\n    {w:\"space\", m:\"espacio\", e:\"&#x1f680;\"},\n    {w:\"knife\", m:\"cuchillo\", e:\"&#x1f52a;\"},\n    {w:\"stone\", m:\"piedra\", e:\"&#x1faa8;\"},\n    {w:\"tithe\", m:\"diezmo\", e:\"&#x1f4b0;\"},\n    {w:\"field\", m:\"campo\", e:\"&#x1f333;\"},\n    {w:\"aunt\", m:\"t\u00eda\", e:\"&#x1f469;\"},\n    {w:\"none\", m:\"ninguno\", e:\"&#x274c;\"},\n    {w:\"cloud\", m:\"nube\", e:\"&#x2601;&#xfe0f;\"},\n    {w:\"count\", m:\"contar\", e:\"&#x1f522;\"},\n    {w:\"flour\", m:\"harina\", e:\"&#x1f956;\"},\n    {w:\"hour\", m:\"hora\", e:\"&#x1f552;\"},\n    {w:\"crown\", m:\"corona\", e:\"&#x1f451;\"},\n    {w:\"fowl\", m:\"ave\", e:\"&#x1f414;\"},\n    {w:\"owl\", m:\"b\u00faho\", e:\"&#x1f989;\"},\n    {w:\"plow\", m:\"arar\", e:\"&#x1f69c;\"},\n    {w:\"brown\", m:\"marr\u00f3n\", e:\"&#x1f7e4;\"},\n    {w:\"owlet\", m:\"lechucita\", e:\"&#x1f989;\"},\n    {w:\"thousand\", m:\"mil\", e:\"&#x1f4af;\"},\n    {w:\"mountain\", m:\"monta\u00f1a\", e:\"&#x26f0;&#xfe0f;\"},\n    {w:\"roof\", m:\"techo\", e:\"&#x1f3e1;\"},\n    {w:\"tool\", m:\"herramienta\", e:\"&#x1f6e0;&#xfe0f;\"},\n    {w:\"cool\", m:\"fr\u00edo \/ genial\", e:\"&#x1f60e;\"},\n    {w:\"zoo\", m:\"zool\u00f3gico\", e:\"&#x1f992;\"},\n    {w:\"kangaroo\", m:\"canguro\", e:\"&#x1f998;\"},\n    {w:\"smooth\", m:\"suave\", e:\"&#x1f9f4;\"},\n    {w:\"loose\", m:\"suelto\", e:\"&#x1faa2;\"},\n    {w:\"juice\", m:\"jugo\", e:\"&#x1f9c3;\"},\n    {w:\"music\", m:\"m\u00fasica\", e:\"&#x1f3b5;\"},\n    {w:\"suit\", m:\"traje\", e:\"&#x1f935;\"},\n    {w:\"truth\", m:\"verdad\", e:\"&#x2705;\"},\n    {w:\"few\", m:\"pocos\", e:\"&#x1f44c;\"},\n    {w:\"whom\", m:\"a quien\", e:\"&#x1f464;\"},\n    {w:\"through\", m:\"a trav\u00e9s de\", e:\"&#x27a1;&#xfe0f;\"},\n    {w:\"lose\", m:\"perder\", e:\"&#x1f622;\"},\n    {w:\"supervisor\", m:\"supervisor\", e:\"&#x1f9d1;&#x200d;&#x1f4bc;\"}\n  ];\n\n  var posLeft793d7a = 0;\n\n  function renderLeft793d7a(){\n\n    document.getElementById(\"emojiLeft793d7a\").innerHTML =\n      vocabLeft793d7a[posLeft793d7a].e;\n\n    document.getElementById(\"wordLeft793d7a\").innerHTML =\n      vocabLeft793d7a[posLeft793d7a].w;\n\n    document.getElementById(\"meaningLeft793d7a\").innerHTML =\n      vocabLeft793d7a[posLeft793d7a].m;\n  }\n\n  window.nextLeft793d7a = function(){\n    posLeft793d7a++;\n\n    if(posLeft793d7a >= vocabLeft793d7a.length){\n      posLeft793d7a = 0;\n    }\n\n    renderLeft793d7a();\n  };\n\n  window.prevLeft793d7a = function(){\n    posLeft793d7a--;\n\n    if(posLeft793d7a < 0){\n      posLeft793d7a = vocabLeft793d7a.length - 1;\n    }\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:\"tail\", m:\"cola\"},\n    {w:\"wait\", m:\"esperar\"},\n    {w:\"grain\", m:\"grano\"},\n    {w:\"brain\", m:\"cerebro\"},\n    {w:\"faith\", m:\"fe\"},\n    {w:\"sail\", m:\"vela \/ navegar\"},\n    {w:\"floor\", m:\"piso\"},\n    {w:\"globe\", m:\"globo terr\u00e1queo\"},\n    {w:\"glide\", m:\"deslizarse\"},\n    {w:\"trade\", m:\"comercio \/ intercambiar\"},\n    {w:\"train\", m:\"tren\"},\n    {w:\"tribe\", m:\"tribu\"},\n    {w:\"waste\", m:\"desperdiciar\"},\n    {w:\"space\", m:\"espacio\"},\n    {w:\"knife\", m:\"cuchillo\"},\n    {w:\"stone\", m:\"piedra\"},\n    {w:\"tithe\", m:\"diezmo\"},\n    {w:\"field\", m:\"campo\"},\n    {w:\"aunt\", m:\"t\u00eda\"},\n    {w:\"none\", m:\"ninguno\"},\n    {w:\"cloud\", m:\"nube\"},\n    {w:\"count\", m:\"contar\"},\n    {w:\"flour\", m:\"harina\"},\n    {w:\"hour\", m:\"hora\"},\n    {w:\"crown\", m:\"corona\"},\n    {w:\"fowl\", m:\"ave\"},\n    {w:\"owl\", m:\"b\u00faho\"},\n    {w:\"plow\", m:\"arar\"},\n    {w:\"brown\", m:\"marr\u00f3n\"},\n    {w:\"owlet\", m:\"lechucita\"},\n    {w:\"thousand\", m:\"mil\"},\n    {w:\"mountain\", m:\"monta\u00f1a\"},\n    {w:\"roof\", m:\"techo\"},\n    {w:\"tool\", m:\"herramienta\"},\n    {w:\"cool\", m:\"fr\u00edo \/ genial\"},\n    {w:\"zoo\", m:\"zool\u00f3gico\"},\n    {w:\"kangaroo\", m:\"canguro\"},\n    {w:\"smooth\", m:\"suave\"},\n    {w:\"loose\", m:\"suelto\"},\n    {w:\"juice\", m:\"jugo\"},\n    {w:\"music\", m:\"m\u00fasica\"},\n    {w:\"suit\", m:\"traje\"},\n    {w:\"truth\", m:\"verdad\"},\n    {w:\"few\", m:\"pocos\"},\n    {w:\"whom\", m:\"a quien\"},\n    {w:\"through\", m:\"a trav\u00e9s de\"},\n    {w:\"lose\", m:\"perder\"},\n    {w:\"supervisor\", m:\"supervisor\"}\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\"tail\",\n\"wait\",\n\"grain\",\n\"brain\",\n\"faith\",\n\"sail\",\n\"floor\",\n\"globe\",\n\"glide\",\n\"trade\",\n\"train\",\n\"tribe\",\n\"waste\",\n\"space\",\n\"knife\",\n\"stone\",\n\"tithe\",\n\"field\",\n\"aunt\",\n\"none\",\n\"cloud\",\n\"count\",\n\"flour\",\n\"hour\",\n\"crown\",\n\"fowl\",\n\"owl\",\n\"plow\",\n\"brown\",\n\"owlet\",\n\"thousand\",\n\"mountain\",\n\"roof\",\n\"tool\",\n\"cool\",\n\"zoo\",\n\"kangaroo\",\n\"smooth\",\n\"loose\",\n\"juice\",\n\"music\",\n\"suit\",\n\"truth\",\n\"few\",\n\"whom\",\n\"through\",\n\"lose\",\n\"supervisor\"\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#line793d7a,\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:\"tail\", m:\"cola\"},\n{w:\"wait\", m:\"esperar\"},\n{w:\"grain\", m:\"grano\"},\n{w:\"brain\", m:\"cerebro\"},\n{w:\"faith\", m:\"fe\"},\n{w:\"sail\", m:\"vela \/ navegar\"},\n{w:\"floor\", m:\"piso\"},\n{w:\"globe\", m:\"globo terr\u00e1queo\"},\n{w:\"glide\", m:\"deslizarse\"},\n{w:\"trade\", m:\"comercio \/ intercambiar\"},\n{w:\"train\", m:\"tren\"},\n{w:\"tribe\", m:\"tribu\"},\n{w:\"waste\", m:\"desperdiciar\"},\n{w:\"space\", m:\"espacio\"},\n{w:\"knife\", m:\"cuchillo\"},\n{w:\"stone\", m:\"piedra\"},\n{w:\"tithe\", m:\"diezmo\"},\n{w:\"field\", m:\"campo\"},\n{w:\"aunt\", m:\"t\u00eda\"},\n{w:\"none\", m:\"ninguno\"},\n{w:\"cloud\", m:\"nube\"},\n{w:\"count\", m:\"contar\"},\n{w:\"flour\", m:\"harina\"},\n{w:\"hour\", m:\"hora\"},\n{w:\"crown\", m:\"corona\"},\n{w:\"fowl\", m:\"ave\"},\n{w:\"owl\", m:\"b\u00faho\"},\n{w:\"plow\", m:\"arar\"},\n{w:\"brown\", m:\"marr\u00f3n\"},\n{w:\"owlet\", m:\"lechucita\"},\n{w:\"thousand\", m:\"mil\"},\n{w:\"mountain\", m:\"monta\u00f1a\"},\n{w:\"roof\", m:\"techo\"},\n{w:\"tool\", m:\"herramienta\"},\n{w:\"cool\", m:\"fr\u00edo \/ genial\"},\n{w:\"zoo\", m:\"zool\u00f3gico\"},\n{w:\"kangaroo\", m:\"canguro\"},\n{w:\"smooth\", m:\"suave\"},\n{w:\"loose\", m:\"suelto\"},\n{w:\"juice\", m:\"jugo\"},\n{w:\"music\", m:\"m\u00fasica\"},\n{w:\"suit\", m:\"traje\"},\n{w:\"truth\", m:\"verdad\"},\n{w:\"few\", m:\"pocos\"},\n{w:\"whom\", m:\"a quien\"},\n{w:\"through\", m:\"a trav\u00e9s de\"},\n{w:\"lose\", m:\"perder\"},\n{w:\"supervisor\", m:\"supervisor\"}\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 * 5;\n\n  let chunk = vocab793d7a.slice(start,start+5);\n\n  if(chunk.length < 5){\n    block = 0;\n    chunk = vocab793d7a.slice(0,5);\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\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 === 5){\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-1353","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages\/1353","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=1353"}],"version-history":[{"count":8,"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages\/1353\/revisions"}],"predecessor-version":[{"id":1534,"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=\/wp\/v2\/pages\/1353\/revisions\/1534"}],"wp:attachment":[{"href":"https:\/\/cuentoskecuentan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}