Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Následující verze | Předchozí verze | ||
tematator [2019/11/11 12:52] – vytvořeno Jan Chmela | tematator [2023/10/10 13:02] (aktuální) – Admin | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
- | < | + | ====== Tematator ====== |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | <script language=" | + | Tématator je aplikace pro vytvoření textu pro vložení textu do IS. |
- | function | + | |
+ | ====== Aplikace ====== | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | var txt = [ | ||
+ | ["Typ práce:", | ||
+ | [" | ||
+ | [" | ||
+ | |||
+ | [" | ||
+ | [" | ||
+ | [" | ||
+ | [" | ||
+ | [" práce:", | ||
+ | |||
+ | [" | ||
+ | [" | ||
+ | [" | ||
+ | |||
+ | [" | ||
+ | [" | ||
+ | " | ||
+ | "The aim of the thesis is to evaluate the economic efficiency of selected company. The annual reports of a company PRECHEZA, a.s. will be used. Methods of evaluating the effectiveness of the company will be described within theoretical part of the thesis. They will subsequently be used for practical application to the selected company. Finally, economic efficiency of the selected company will be evaluated." | ||
+ | |||
+ | [" | ||
+ | [" | ||
+ | [" | ||
+ | |||
+ | [" | ||
+ | [" | ||
+ | |||
+ | [" | ||
+ | [" | ||
+ | ]; | ||
+ | |||
+ | var dates = [ | ||
+ | ["28. 2. 2024", "10. 4. 2024" | ||
+ | ["31. 3. 2024", "15. 4. 2024" | ||
+ | ["25. 4. 2024", "6. 5. 2024" | ||
+ | ]; | ||
+ | |||
+ | var iLangID = 0; | ||
+ | var iTypeID = 0; | ||
+ | |||
+ | function setDates() | ||
+ | { | ||
+ | document.getElementById(' | ||
+ | txt[ 8][iLangID] + dates[0][iTypeID] + " | ||
+ | + txt[ 9][iLangID] + dates[1][iTypeID] + " | ||
+ | + txt[10][iLangID] + dates[2][iTypeID]; | ||
+ | } | ||
+ | |||
+ | function setRange() | ||
+ | { | ||
+ | document.getElementById(' | ||
+ | } | ||
+ | |||
+ | function onTypeChanged(obj) | ||
+ | { | ||
+ | iTypeID = obj.selectedIndex; | ||
+ | setDates(); | ||
+ | setRange(); | ||
+ | } | ||
+ | |||
+ | function onLangChange(obj) | ||
+ | { | ||
+ | iLangID = obj.selectedIndex; | ||
+ | setLang(); | ||
+ | } | ||
+ | |||
+ | function onPageLoad() | ||
+ | { | ||
+ | iLangID = document.getElementById(' | ||
+ | iTypeID = document.getElementById(' | ||
+ | setLang(); | ||
+ | } | ||
+ | |||
+ | function | ||
{ | { | ||
- | var strTxt = document.getElementById(' | + | document.getElementById(' |
- | var strRes | + | var type = document.getElementById(' |
- | strRes += strTxt; | + | type.options[0].text |
- | strRes += "</ | + | type.options[1].text |
- | var elTxt2 | + | document.getElementById(' |
- | elTxt2.value = strRes; | + | setDates(); |
- | elTxt2.select(); | + | |
+ | document.getElementById(' | ||
+ | document.getElementById(' | ||
+ | |||
+ | setRange(); | ||
+ | |||
+ | // | ||
+ | // | ||
+ | |||
+ | document.getElementById(' | ||
+ | document.getElementById(' | ||
+ | |||
+ | } | ||
+ | |||
+ | function genText() | ||
+ | { | ||
+ | var strTmp; | ||
+ | var strText = txt[4][iLangID] + txt[5 + iTypeID][iLangID] + txt[7][iLangID] + " | ||
+ | |||
+ | strText += "< | ||
+ | strTmp = document.getElementById(' | ||
+ | for (i=0; i< | ||
+ | strText += "</ | ||
+ | |||
+ | strText += "< | ||
+ | strTmp = document.getElementById(' | ||
+ | for (i=0; i< | ||
+ | strText += "</ | ||
+ | |||
+ | strText += "< | ||
+ | strText += txt[14 + iTypeID][iLangID] + "< | ||
+ | strText += "</ | ||
+ | |||
+ | |||
+ | var elTxt = document.getElementById(' | ||
+ | elTxt.value = strText; | ||
+ | elTxt.select(); | ||
document.execCommand(" | document.execCommand(" | ||
- | return; | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
+ | <body onload=" | ||
+ | < | ||
+ | <label for=" | ||
+ | <select id=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | & | ||
+ | |||
+ | <label for=" | ||
+ | <select id=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
- | <body> | + | <b><p id=" |
- | < | + | < |
- | <p>Ahoj</ | + | < |
- | <button type=" | + | |
- | <p>Něco</ | + | < |
- | < | + | |
- | </ | + | |
- | </ | + | <p>< |
+ | |||
+ | < | ||
+ | < | ||
+ | </ |