Loading [MathJax]/extensions/tex2jax.js
Benützer: Keine Benutzer angemeldet.


Programm

Storyboard

>Modell

ID:(1956, 0)


// cnt_storyboard function show_div(num) { for (i = 0; i < num; i++) { $("#fld_" + i.toString()).show(); } } function one_div(idx, num) { for (i = 0; i < num; i++) { if (idx == i) { $("#fld_" + i.toString()).show(); } else { $("#fld_" + i.toString()).hide(); } } } function sound(txt) { const synth = window.speechSynthesis; slang = "de"; slang = slang + "-" + slang.toUpperCase(); sentences = txt.replace(/\$/g, '').replace(/<[^>]*>?/gm, '').split(/[\\.!?]/); for (i = 0; i < sentences.length; i++) { var utterThis = new SpeechSynthesisUtterance(sentences[i]); utterThis.lang = slang; synth.speak(utterThis); } } // adapt function content_adapt() { // getWorkStoryboard - content_adapt // keys var code = getCookie('druyd1'); if(code == '' || code == '[]'){ code = '{}'; setCookie('druyd1',code,365); } var obj = JSON.parse(code); // base var cookie = getCookie('druyd0'); if(cookie != '' && cookie.length > 0){ url_structure = window.location.href.split('/'); structure_arr = url_structure[url_structure.length-2].split('-'); slang = url_structure[url_structure.length-1]; nlang = language.indexOf(slang); if(nlang == undefined){ nlang = 1; } var code = getCookie('druyd1'); var obj = JSON.parse(code); student = obj.student; if(student == ''){ student = user_data[0]; } if(structure_arr.length == 2){ ref = url_structure[url_structure.length-2].split('-')[1]; $('body').css('cursor', 'progress'); $.ajax({ type: 'POST', url: '/getProgram', data: JSON.stringify([ref,nlang]), contentType:'application/json', dataType: 'json', success: function(data){ var txt = ''; txt = "

Programm " + data[0][1] + "


"; txt = txt + data[0][0]; txt = txt + "
"; txt = txt + "

KALENDER

"; txt = txt + "
"; txt = txt + ""; for(var i = 0;i < data[1].length;i++){ txt = txt + ""; for(var j = 0;j < data[2].length;j++){ if(data[2][j][6] == data[1][i][0]){ txt = txt + ""; } } } txt = txt + "
CodeThemaDatumUhrzeit
" + data[1][i][1] + "
" + data[2][j][3] + " " + data[2][j][1] + "" + data[2][j][4] + "" + data[2][j][5] + "

"; txt = txt + "

PARAMETER

"; txt = txt + ""; txt = txt + ""; txt = txt + ""; txt = txt + ""; txt = txt + ""; txt = txt + ""; txt = txt + ""; txt = txt + ""; txt = txt + ""; if(data[0][11] == 1){ txt = txt + ""; } else { txt = txt + ""; } txt = txt + ""; if(data[0][12] > 1){ if(data[0][13] == 1){ txt = txt + ""; } else { txt = txt + ""; } } txt = txt + "
ItemDatum
Kurs Schlusstermin" + data[0][2] + "
Klausur ab" + data[0][3] + "
Klausur bis" + data[0][4] + "
Note zum bestehen"+ data[0][7] + "
Anteil der Fälle" + data[0][8] + "%
Klausur Anteil an Gesamtnote" + data[0][9] + "%
Mindestnote für die Klausur" + data[0][10] + "
SoziogrammJa
SoziogrammNein
Schichten" + data[0][12] + "
RotationJa
RotationNein
"; txt = txt + "

\n"; $('#program').html(txt); } }); $('body').css('cursor', 'default'); } } } // actions $(document).ready(function () { content_adapt() // content_action in cnt_storyboard // getWorkStoryboard - content_action var idx = 0; var num = "1"; $("#lr").hide() $("#content").css({ 'height': (window.innerHeight - $('#head').height() - 16) + 'px' }); $('#select input[type=radio]').change(function () { $("#content").css({ 'height': (window.innerHeight - $('#head').height() - 16) + 'px' }); if ($(this).val() == 2) { $("#lr").show(num); cnt = idx + 1 $('#cnt').text(cnt.toString() + ' of ' + num.toString()); one_div(idx, num); $("#fld_video").hide(); } else { $("#lr").hide(); if ($(this).val() == 3) { one_div(-1, num); $("#fld_video").show(); } else { show_div(num); $("#fld_video").hide(); } } }); $('#select input[type=label]').click(function () { }); $("#left").click(function () { idx--; if (idx < 0) { idx = num - 1; } cnt = idx + 1 $('#cnt').text(cnt.toString() + ' of ' + num.toString()); one_div(idx, num); }); $("#right").click(function () { idx++; if (idx > num - 1) { idx = 0; } cnt = idx + 1 $('#cnt').text(cnt.toString() + ' of ' + num.toString()); one_div(idx, num); }); $("#ctrl").click(function () { if ($("#index-panel").is(":visible") == true) { $("#index-panel").hide(); $('#mainSplitter').jqxSplitter({ panels: [{ size: '0%' }, { size: '100%' }] }); $("#arrow").attr("src", "/static/icons/chevronright32b.png"); } else { $("#index-panel").show(); $('#mainSplitter').jqxSplitter({ panels: [{ size: '25%' }, { size: '75%' }] }); $("#arrow").attr("src", "/static/icons/chevronleft32b.png"); } }); // radiobuttons of Model $('#networkEquation').on("click", function () { setNetworkEquation(vgraph_network); }); $('#networkNumber').on("click", function () { setNetworkNumber(vgraph_network); }); });