Skip to content

Commit

Permalink
update(heart): images
Browse files Browse the repository at this point in the history
  • Loading branch information
CarolineNakazato authored Aug 24, 2023
1 parent 3cd591e commit 137c42e
Show file tree
Hide file tree
Showing 14 changed files with 153 additions and 20 deletions.
Binary file modified health/heart/eletro/prototipo2/1movimento.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified health/heart/eletro/prototipo2/1ondaP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified health/heart/eletro/prototipo2/2movimento.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified health/heart/eletro/prototipo2/2segmentoPR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified health/heart/eletro/prototipo2/3movimento.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified health/heart/eletro/prototipo2/3ondaQRS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added health/heart/eletro/prototipo2/4segmentoST.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added health/heart/eletro/prototipo2/4segmentoSTECG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added health/heart/eletro/prototipo2/5movimento.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added health/heart/eletro/prototipo2/5ondaT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added health/heart/eletro/prototipo2/5ondaTECG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 38 additions & 20 deletions health/heart/eletro/prototipo2/blocks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Blockly.Blocks['imagem_eletro'] = {
init: function () {
this.jsonInit({
message0: '%1 %2',
message0: '%1',
args0: [
{
type: 'field_dropdown',
Expand All @@ -10,13 +10,9 @@ Blockly.Blocks['imagem_eletro'] = {
[{src: '1ondaP.png', width: 200, height: 200, alt: 'heart 1'}, 'heart1'],
[{src: '2segmentoPR.png', width: 200, height: 200, alt: 'heart 2'}, 'heart2'],
[{src: '3ondaQRS.png', width: 200, height: 200, alt: 'heart 3'}, 'heart3'],
[{src: '4ondaT.png', width: 200, height: 200, alt: 'heart 4'}, 'heart4']
[{src: '4segmentoST.png', width: 200, height: 200, alt: 'heart 4'}, 'heart4'],
[{src: '5ondaT.png', width: 200, height: 200, alt: 'heart 4'}, 'heart5']
]
},
{
type: 'input_value',
name: 'mov',
check: 'Mov',
}
],
message1: 'estrutura: %1',
Expand Down Expand Up @@ -45,9 +41,7 @@ Blockly.Blocks['imagem_eletro'] = {
],
colour: 80,
tooltip: 'Coração',
output: 'atvEle',
nextStatement: null,
previousStatement: null
output: 'atvEle'
})
}
}
Expand All @@ -62,9 +56,9 @@ Blockly.Blocks['imagem_mov'] = {
name: 'entity',
options: [
[{src: '1movimento.png', width: 200, height: 200, alt: 'heart_mov 1'}, 'heart_mov1'],
[{src: '2movimento_segmentoPR.png', width: 200, height: 200, alt: 'heart_mov 2'}, 'heart_mov2'],
[{src: '2movimento.png', width: 200, height: 200, alt: 'heart_mov 3'}, 'heart_mov3'],
[{src: '3movimento.png', width: 200, height: 200, alt: 'heart_mov 4'}, 'heart_mov4']
[{src: '2movimento.png', width: 200, height: 200, alt: 'heart_mov 2'}, 'heart_mov2'],
[{src: '3movimento.png', width: 200, height: 200, alt: 'heart_mov 3'}, 'heart_mov3'],
[{src: '5movimento.png', width: 200, height: 200, alt: 'heart_mov 4'}, 'heart_mov4']
]
}
],
Expand Down Expand Up @@ -116,7 +110,7 @@ Blockly.Blocks['imagem_mov'] = {
Blockly.Blocks['imagem_onda'] = {
init: function () {
this.jsonInit({
message0: '%1 %2',
message0: '%1',
args0: [
{
type: 'field_dropdown',
Expand All @@ -125,18 +119,42 @@ Blockly.Blocks['imagem_onda'] = {
[{src: '1ondaPECG.png', width: 200, height: 200, alt: 'ecg 1'}, 'ecg1'],
[{src: '2segmentoPRECG.png', width: 200, height: 200, alt: 'ecg 2'}, 'ecg2'],
[{src: '3ondaQRSECG.png', width: 200, height: 200, alt: 'ecg 3'}, 'ecg3'],
[{src: '5segmentoSTECG.png', width: 200, height: 200, alt: 'ecg 5'}, 'ecg5'],
[{src: '4ondaTECG.png', width: 200, height: 200, alt: 'ecg 4'}, 'ecg4']
[{src: '4segmentoSTECG.png', width: 200, height: 200, alt: 'ecg 4'}, 'ecg4'],
[{src: '5ondaTECG.png', width: 200, height: 200, alt: 'ecg 5'}, 'ecg5']
]
}
],
colour: 20,
tooltip: 'Eletro',
output: 'onda'
})
}
}

Blockly.Blocks['sequence'] = {
init: function () {
this.jsonInit({
message0: '%1 onda %2 elétrico %3 mecânico',
args0: [
{
type: 'input_value',
name: 'VAR',
check: 'onda',
},
{
type: 'input_value',
name: 'atvEle',
name: 'VAR',
check: 'atvEle',
},
{
type: 'input_value',
name: 'VAR',
check: 'Mov',
}
],
colour: 20,
tooltip: 'Eletro'
colour: 500,
nextStatement: null,
previousStatement: null
})
}
}
}
113 changes: 113 additions & 0 deletions health/heart/eletro/prototipo2/dados.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
type: "eletrico";
user: "";
image: 1;
estrutura: "Sino atrial";
eletrico: "Estímulo elétrico DISPARANDO ..."
}

{
type: "mecanico";
user: "";
image: 1;
estrutura: "Átrio";
mecanico: "Contração atrial";
fisio: "Envio de sangue sob pressão do átrio para ventrículos"
}

{
type: "onda";
user: "";
image: 1
}

{
type: "conexao";
user: "";
onda: 1;
eletro: 1;
mec: 1;
anterior: null;
proxima: null;
}

{
type: "exercicio"
id_usuario: "";
time: "";
vez: 1;
conexoes: 5;
conexao1:{
onda: 1;
eletro: 1;
mec: 1
}
conexao2:{
onda: 2;
eletro: 2;
mec: 2
}
conexao3:{
onda: 3;
eletro: 3;
mec: 3
}
conexao4:{
onda: 4;
eletro: 4;
mec: 4
}
conexao5:{
onda: 5;
eletro: 5;
mec: 5
}
}

{
type: "resultado";
id_usuario: "";
time: "";
vez: 1;
acertou: True;
tutor: False;
timeTutor: "";
}

{
type: "video";
id_usuario: "";
time: "";
}
{
type: "preTeste";
id_usuario: "";
time: "";
nota: 10;
q1: "E"
q2: "B"
q3: "A"
q4: "C"
q5: "D"
q6: "E"
q7: "A"
q8: "B"
q9: "C"
q10: "D"
}
{
type: "posTeste";
id_usuario: "";
time: "";
nota: 10;
q1: "E"
q2: "B"
q3: "A"
q4: "C"
q5: "D"
q6: "E"
q7: "A"
q8: "B"
q9: "C"
q10: "D"
}
2 changes: 2 additions & 0 deletions health/heart/eletro/prototipo2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
<body>
<div id="blocklyDiv" style="height: 700px; width: 100%;"></div>
<xml id="toolbox" style="display: none">

<category name="Componentes" colour="20">
<block type="imagem_eletro"></block>
<block type="imagem_mov"></block>
<block type="imagem_onda"></block>
<block type="sequence"></block>
</category>
</xml>
<script>
Expand Down

0 comments on commit 137c42e

Please sign in to comment.