small fixes
This commit is contained in:
parent
b768f3ec60
commit
0f403c1306
|
@ -78,11 +78,11 @@ function insert_file(fname) {
|
|||
if (t == "image") {
|
||||
var n = prompt("Name", "Wikipedia Logo");
|
||||
var desc = prompt("Describe the Picture for the Blind", "A Globe composed of letters and puzzle pieces");
|
||||
if (desc != null && n != null) {var out = "\n\n![" + n + "](" + x + " \"" + desc + "\"" + ")\n\n";}
|
||||
if (desc != null && n != null) {var out = "\n![" + n + "](" + x + " \"" + desc + "\"" + ")\n";}
|
||||
} else if (t == "other") {
|
||||
var n = prompt("Name", "Textfile");
|
||||
var desc = prompt("Describe the File for the Blind", "A file with content related to the subject");
|
||||
if (desc != null && n != null) {var out = "\n\n[" + n + "](" + x + " \"" + desc + "\"" + ")\n\n";}
|
||||
if (desc != null && n != null) {var out = "\n[" + n + "](" + x + " \"" + desc + "\"" + ")\n";}
|
||||
}
|
||||
if (out != null) {
|
||||
typeInTextarea(out);
|
||||
|
@ -132,14 +132,14 @@ function button(str) {
|
|||
if (url != null) {
|
||||
var n = prompt("Name", "Wikipedia");
|
||||
var desc = prompt("Describe the Link for the Blind", "The free Encyclopedia");
|
||||
if (desc != null && n != null) {var out = "\n\n![" + n + "](" + x + " \"" + desc + "\"" + ")\n\n";}
|
||||
if (desc != null && n != null) {var out = "![" + n + "](" + url + " \"" + desc + "\"" + ") ";}
|
||||
}
|
||||
}
|
||||
if (x == "picurl") {
|
||||
let url = prompt("Please enter Link to an image", "https://de.wikipedia.org/static/images/project-logos/dewiki.png");
|
||||
if (url != null) {
|
||||
var n = prompt("Name", "Wikipedia Logo");
|
||||
var desc = prompt("Describe the Picture for the Blind", "A Globe composed of letters and puzzle pieces"); if (desc != null && n != null) {var out = "\n\n![" + n + "](" + url + " \"" + desc + "\"" + ")\n\n";}
|
||||
var desc = prompt("Describe the Picture for the Blind", "A Globe composed of letters and puzzle pieces"); if (desc != null && n != null) {var out = "\n![" + n + "](" + url + " \"" + desc + "\"" + ")\n";}
|
||||
}
|
||||
}
|
||||
if (x == "headline") {
|
||||
|
|
Loading…
Reference in New Issue