MediaWiki:Lage.js: Unterschied zwischen den Versionen
Aus Dornheim Anatomy
Becher (Diskussion | Beiträge) K |
Becher (Diskussion | Beiträge) K |
||
Zeile 61: | Zeile 61: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// Lösung anzeigen | // Lösung anzeigen | ||
− | $( '# | + | $( '#Check' ).click( function ( event ) { |
event.preventDefault(); | event.preventDefault(); | ||
− | |||
loesung (); | loesung (); | ||
− | + | } ); //Ende Click Check | |
− | } ); //Ende Click | ||
function loesung () { | function loesung () { | ||
− | var wort1 = document.getElementById(' | + | var wort1 = document.getElementById('ausgabeL1').innerHTML; |
− | var wort2 = document.getElementById(' | + | var wort2 = document.getElementById('ausgabeL2').innerHTML; |
− | var wort3 = document.getElementById(' | + | var wort3 = document.getElementById('ausgabeL3').innerHTML; |
− | var wort4 = document.getElementById(' | + | var wort4 = document.getElementById('ausgabeL4').innerHTML; |
− | var wort5 = document.getElementById(' | + | var wort5 = document.getElementById('ausgabeL5').innerHTML; |
− | var wort6 = document.getElementById(' | + | var wort6 = document.getElementById('ausgabeL6').innerHTML; |
− | var wort7 = document.getElementById(' | + | var wort7 = document.getElementById('ausgabeL7').innerHTML; |
− | var wort8 = document.getElementById(' | + | var wort8 = document.getElementById('ausgabeL8').innerHTML; |
− | var wort9 = document.getElementById(' | + | var wort9 = document.getElementById('ausgabeL9').innerHTML; |
− | var wort10 = document.getElementById(' | + | var wort10 = document.getElementById('ausgabeL10').innerHTML; |
− | var wort11 = document.getElementById(' | + | var wort11 = document.getElementById('ausgabeL11').innerHTML; |
− | var wort12 = document.getElementById(' | + | var wort12 = document.getElementById('ausgabeL12').innerHTML; |
− | var wort13 = document.getElementById(' | + | var wort13 = document.getElementById('ausgabeL13').innerHTML; |
− | var wort14 = document.getElementById(' | + | var wort14 = document.getElementById('ausgabeL14').innerHTML; |
− | var wort15 = document.getElementById(' | + | var wort15 = document.getElementById('ausgabeL15').innerHTML; |
− | var wort16 = document.getElementById(' | + | var wort16 = document.getElementById('ausgabeL16').innerHTML; |
var Wort = [wort1, wort2, wort3, wort4, wort5, wort6, wort7, wort8, wort9, wort10, wort11, wort12, wort13, wort14, wort15, wort16]; | var Wort = [wort1, wort2, wort3, wort4, wort5, wort6, wort7, wort8, wort9, wort10, wort11, wort12, wort13, wort14, wort15, wort16]; | ||
Zeile 382: | Zeile 110: | ||
var out = [out1, out2, out3, out4, out5, out6, out7, out8, out9, out10, out11, out12, out13, out14, out15, out16]; | var out = [out1, out2, out3, out4, out5, out6, out7, out8, out9, out10, out11, out12, out13, out14, out15, out16]; | ||
− | var loesung1 = ' | + | var loesung1 = 'distal'; |
− | var loesung2 = ' | + | var loesung2 = 'proximal'; |
− | var loesung3 = ' | + | var loesung3 = 'radial'; |
− | var loesung4 = ' | + | var loesung4 = 'ulnar'; |
− | var loesung5 = ' | + | var loesung5 = 'tibial'; |
− | var loesung6 = ' | + | var loesung6 = 'fibular'; |
− | var loesung7 = ' | + | var loesung7 = 'palmar'; |
− | var loesung8 = ' | + | var loesung8 = 'plantar'; |
− | var loesung9 = ' | + | var loesung9 = 'dorsal'; |
− | var loesung10 = ' | + | |
− | var loesung11 = ' | + | var loesung10 = 'cranial'; |
− | var loesung12 = ' | + | var loesung11 = 'caudal'; |
− | var loesung13 = ' | + | var loesung12 = 'ventral'; |
− | var loesung14 = ' | + | var loesung13 = 'dorsal'; |
− | var loesung15 = ' | + | var loesung14 = 'superior'; |
− | var loesung16 = ' | + | var loesung15 = 'inferior'; |
− | var loesung17 = ' | + | var loesung16 = 'anterior'; |
− | var loesung18 = ' | + | var loesung17 = 'posterior'; |
− | var loesung19 = ' | + | var loesung18 = 'medius'; |
− | var loesung20 = ' | + | var loesung19 = 'transverus'; |
− | var loesung21 = ' | + | var loesung20 = 'flexor'; |
+ | var loesung21 = 'extensor'; | ||
+ | |||
var loesung22 = 'auricula dextra'; | var loesung22 = 'auricula dextra'; | ||
var loesung23 = 'V. cava superior'; | var loesung23 = 'V. cava superior'; |
Version vom 3. April 2020, 12:56 Uhr
/* Skript für Aufgabe Lage- und Richtungsbezeichnungen */ mw.loader.using( 'mediawiki.util', function () { // Wait for the page to be parsed $( document ).ready( function () { // Aufgabe 1 $( '#eingabeL1' ).click( function ( event ) { event.preventDefault(); var aendern1 = document.getElementById('eingabeL1'); var ausgabe1 = document.getElementById('ausgabeL1'); clickFunction(aendern1, ausgabe1); } ); //Ende A1 // Aufgabe 2 $( '#eingabeL2' ).click( function ( event ) { event.preventDefault(); var aendern2 = document.getElementById('eingabeL2'); var ausgabe2 = document.getElementById('ausgabeL2'); clickFunction(aendern2, ausgabe2); } ); //Ende A2 // Aufgabe 3 $( '#eingabeL3' ).click( function ( event ) { event.preventDefault(); var aendern3 = document.getElementById('eingabeL3'); var ausgabe3 = document.getElementById('ausgabeL3'); clickFunction(aendern3, ausgabe3); } ); //Ende A3 // Aufgabe 4 $( '#eingabeL4' ).click( function ( event ) { event.preventDefault(); var aendern4 = document.getElementById('eingabeL4'); var ausgabe4 = document.getElementById('ausgabeL4'); clickFunction(aendern4, ausgabe4); } ); //Ende A4 function clickFunction (ein, aus) { var eingabe = ''; eingabe = prompt('Bitte geben Sie die Lösung ein!',''); aus.innerText = eingabe; ein.innerText = 'ändern'; return eingabe; } // Lösung anzeigen $( '#Check' ).click( function ( event ) { event.preventDefault(); loesung (); } ); //Ende Click Check function loesung () { var wort1 = document.getElementById('ausgabeL1').innerHTML; var wort2 = document.getElementById('ausgabeL2').innerHTML; var wort3 = document.getElementById('ausgabeL3').innerHTML; var wort4 = document.getElementById('ausgabeL4').innerHTML; var wort5 = document.getElementById('ausgabeL5').innerHTML; var wort6 = document.getElementById('ausgabeL6').innerHTML; var wort7 = document.getElementById('ausgabeL7').innerHTML; var wort8 = document.getElementById('ausgabeL8').innerHTML; var wort9 = document.getElementById('ausgabeL9').innerHTML; var wort10 = document.getElementById('ausgabeL10').innerHTML; var wort11 = document.getElementById('ausgabeL11').innerHTML; var wort12 = document.getElementById('ausgabeL12').innerHTML; var wort13 = document.getElementById('ausgabeL13').innerHTML; var wort14 = document.getElementById('ausgabeL14').innerHTML; var wort15 = document.getElementById('ausgabeL15').innerHTML; var wort16 = document.getElementById('ausgabeL16').innerHTML; var Wort = [wort1, wort2, wort3, wort4, wort5, wort6, wort7, wort8, wort9, wort10, wort11, wort12, wort13, wort14, wort15, wort16]; var out1 = document.getElementById('output1'); var out2 = document.getElementById('output2'); var out3 = document.getElementById('output3'); var out4 = document.getElementById('output4'); var out5 = document.getElementById('output5'); var out6 = document.getElementById('output6'); var out7 = document.getElementById('output7'); var out8 = document.getElementById('output8'); var out9 = document.getElementById('output9'); var out10 = document.getElementById('output10'); var out11 = document.getElementById('output11'); var out12 = document.getElementById('output12'); var out13 = document.getElementById('output13'); var out14 = document.getElementById('output14'); var out15 = document.getElementById('output15'); var out16 = document.getElementById('output16'); var out = [out1, out2, out3, out4, out5, out6, out7, out8, out9, out10, out11, out12, out13, out14, out15, out16]; var loesung1 = 'distal'; var loesung2 = 'proximal'; var loesung3 = 'radial'; var loesung4 = 'ulnar'; var loesung5 = 'tibial'; var loesung6 = 'fibular'; var loesung7 = 'palmar'; var loesung8 = 'plantar'; var loesung9 = 'dorsal'; var loesung10 = 'cranial'; var loesung11 = 'caudal'; var loesung12 = 'ventral'; var loesung13 = 'dorsal'; var loesung14 = 'superior'; var loesung15 = 'inferior'; var loesung16 = 'anterior'; var loesung17 = 'posterior'; var loesung18 = 'medius'; var loesung19 = 'transverus'; var loesung20 = 'flexor'; var loesung21 = 'extensor'; var loesung22 = 'auricula dextra'; var loesung23 = 'V. cava superior'; var loesung24 = 'v. cava superior'; var loesung25 = 'Auricula sinistra'; var loesung26 = 'auricula sinistra'; var loesung27 = 'Truncus pulmonalis'; var loesung28 = 'truncus pulmonalis'; var loesung29 = 'V. cava inferior'; var loesung30 = 'v. cava inferior'; var loesung31 = 'Truncus brachio-cephalicus'; var loesung32 = 'truncus brachio-cephalicus'; var loesung = [loesung1, loesung2, loesung3, loesung4, loesung5, loesung6, loesung7, loesung8, loesung9, loesung10, loesung11, loesung12, loesung13, loesung14, loesung15, loesung16, loesung17, loesung18, loesung19, loesung20, loesung21, loesung22, loesung23, loesung24, loesung25, loesung26, loesung27, loesung28, loesung29, loesung30, loesung31, loesung32]; for (var j=0;j<=15;j++){ if (Wort[j] == loesung[2*j] || Wort[j] == loesung[2*j+1]) { out[j].innerText = 'Richtig!'; out[j].style.color = "green"; } else { out[j].innerText = 'Falsch!'; out[j].style.color = "red"; } } }// Ende Funktion loesung } ); } );