Skip to content

Commit 1fcbc5b

Browse files
committed
18.7
[GTI] - nuevas preguntas del examen y otras fuentes - clasificar preguntas que salieron en el examen - nuevo botón para seleccionar bloque de examen - keywords, css y otros cambios menores [404] - revertir cambios recientes [general] - apuntar enlace de versión al último commit - optimizaciones y cambios menores
1 parent 625710b commit 1fcbc5b

11 files changed

Lines changed: 359 additions & 46 deletions

File tree

.eleventy.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,34 +59,39 @@ module.exports = function (eleventyConfig) {
5959
let json = require('./package.json');
6060
let version = json.version;
6161
let channel = json.channel && json.channel !== 'RTW' ? ` (${json.channel})` : '';
62-
return `${version}${channel}`;
62+
let versionString = `${version}${channel}`;
63+
return `<a id="version-tag" href="https://github.com/miermontoto/miermontoto/commit/${json.channel === "RTW" ? 'main' : 'beta'}" target="_blank">${versionString}</span>`;
6364
});
6465

6566
eleventyConfig.addShortcode("top", function() {
6667
return `<span id="top" class="button topbtn">top ↑</span>`;
6768
});
6869

6970
eleventyConfig.addShortcode("questions", function(json) {
70-
let blocks = ['socrative', 'backup'];
71+
let blocks = ['socrative', 'otros'];
7172
let template = `<div id="block-selection"> <h3>preguntas.</h3> <ul>`;
7273
blocks.forEach(b => {
7374
template += `<li><code>${b}</code>: ${json[b]['info']}</li>`;
7475
});
76+
template += '<li><code>examen:</code> selección de preguntas que aparecieron en el examen de 23-24</li>'
7577
template += '<li><code>todas</code>: todas las preguntas</li></ul>';
7678

7779
blocks.forEach((b) => {
7880
template += `<span class="button select-block" id="${b}">${b}</span>`
7981
});
8082

83+
template += '<span class="button select-block" id="exam">examen</span>'
8184
template += '<span class="button select-block" id="all">todas</span>';
8285
template += '</div> <hr> <div id="questions">';
8386

8487
blocks.forEach((block) => {
8588
let questions = json[block]['questions'];
8689

8790
questions.forEach((q) => {
91+
let exam = q.exam == "true";
92+
8893
template += `
89-
<div class="question-block" block="${block}">
94+
<div class="question-block" block="${block}" exam="${exam}">
9095
<h2 class="question">
9196
${q.title}
9297
</h2>
@@ -102,7 +107,7 @@ module.exports = function (eleventyConfig) {
102107
template += `</div>`;
103108
}
104109

105-
let shuffle = q.shuffle || true;
110+
let shuffle = q.shuffle != "false";
106111

107112
template += `<div class="answer-block" shuffle="${shuffle}">`;
108113
q.answers.forEach((a, j) => {
@@ -112,11 +117,14 @@ module.exports = function (eleventyConfig) {
112117
</span> <br>`;
113118
});
114119

115-
template += `
116-
</div>
117-
${shuffle == "false" ? '<i>* orden de respuestas fijado</i>' : ''}
118-
</div>
119-
`;
120+
template += '</div>';
121+
if (exam || !shuffle) {
122+
template += `<ul class="asterisks">
123+
${exam ? '<li class="exam">pregunta de examen reciente</span>' : ''}
124+
${!shuffle ? '<li class="shuffle">orden de respuestas fijado</li>' : ''}
125+
</ul>`;
126+
}
127+
template += '</div>';
120128
});
121129
});
122130

assets/files/mondeo.jpg

154 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/404.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ permalink: /404.html
55
---
66

77
# 404
8-
you are in violation. thEy mustn't know you were here. no one should ever find out About this. you can never tell anyone about thiS -- for The sake of the others' survIval, you muSt keep this silent. we mUst keeP silent. no one can know. no one can know. no o ne c an kn ow_
9-
10-
(Violation Code. 15398642_14)
8+
couldn't find this page. are you sure it exists?
119

1210
[back to index](/)
1311

1412
![](/assets/media/daft.gif)
13+
14+
<p class="easter">
15+
you are in violation. thEy mustn't know you were here. no one should ever find out About this. you can never tell anyone about thiS -- for The sake of the others' survIval, you muSt keep this silent. we mUst keeP silent. no one can know. no one can know. no o ne c an kn ow_
16+
<br>(Violation Code. 15398642_14)
17+
</p>

0 commit comments

Comments
 (0)