{"id":3548,"date":"2021-08-26T20:03:03","date_gmt":"2021-08-26T20:03:03","guid":{"rendered":"https:\/\/ahornblatt.ch\/simonboller\/?p=3548"},"modified":"2021-08-26T20:03:03","modified_gmt":"2021-08-26T20:03:03","slug":"eingabedarstellung-beim-plugin-formulas-anpassen","status":"publish","type":"post","link":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/2021\/08\/26\/eingabedarstellung-beim-plugin-formulas-anpassen\/","title":{"rendered":"Eingabedarstellung beim Plugin Formulas anpassen"},"content":{"rendered":"\n<p>In Moodle k\u00f6nnen mit dem Plugin Formulas einfach zuf\u00e4llige Zahlen generiert. Daraus lassen sich in einem Test unterschiedlichste Werte f\u00fcr alle erzeugen. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"127\" src=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas.png\" alt=\"\" class=\"wp-image-3555\"\/><figcaption>Logo von Moodle Formulas<\/figcaption><\/figure><\/div>\n\n\n\n<p>Ein konkretes Anwendungsbeispiel ist das Runden von Zahlen auf eine bestimmte Anzahl Stellen. Das Eingabefeld ist standardm\u00e4ssig beschr\u00e4nkt Lang und die Zahl ist linksb\u00fcndig beim beenden der Eingabe, siehe folgendes Bild.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-kurz-1-1024x265.jpg\" alt=\"\" class=\"wp-image-3559\" width=\"770\" height=\"199\" srcset=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-kurz-1-1024x265.jpg 1024w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-kurz-1-300x78.jpg 300w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-kurz-1-768x198.jpg 768w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-kurz-1-1100x284.jpg 1100w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-kurz-1.jpg 1227w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><figcaption>Fragetyp Formulas bei der zu sehen ist, dass das Eingabefeld zu wenig Breit ist.<\/figcaption><\/figure>\n\n\n\n<p>Wie so vieles kann auch dies eingestellt werden, so dass das Feld breiter ist und die Zahl rechtsb\u00fcndig ist..<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-lang-2-1024x260.jpg\" alt=\"\" class=\"wp-image-3561\" srcset=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-lang-2-1024x260.jpg 1024w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-lang-2-300x76.jpg 300w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-lang-2-768x195.jpg 768w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-lang-2-1100x280.jpg 1100w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-lang-2.jpg 1227w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Fragetyp Formulas bei dem zu sehen ist, dass die Breite grossz\u00fcgig ist.<\/figcaption><\/figure>\n\n\n\n<p>Dies kann mit ein paar Zeilen HTML Anpassung werden. Bei der Frageeingabe sind folgende Zeilen zu erg\u00e4nzen. Siehe Bild, weiter unten befindet sich dann auch der Quellcode der herauskopiert werden kann. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"425\" src=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1-1024x425.jpg\" alt=\"\" class=\"wp-image-3562\" srcset=\"https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1-1024x425.jpg 1024w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1-300x124.jpg 300w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1-768x318.jpg 768w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1-1536x637.jpg 1536w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1-1100x456.jpg 1100w, https:\/\/ahornblatt.ch\/simonboller\/wp-content\/uploads\/2021\/08\/moodle-formulas-feld-fragetext-1.jpg 1717w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Fragetyp Formulas bei der zu sehen ist, dass die Breit und Textausrichtung angepasst werden kann.<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.6.0\/jquery.min.js\">&lt;\/script>\n\n&lt;script>\r\n$(document).ready(function() {\r\n    $(\".formulas_number\").css(\"width\",\"120px\");\r\n    $(\".formulas_number\").css(\"text-align\",\"right\");\r\n});\r\n&lt;\/script><\/pre>\n\n\n\n<p>Inspirieren f\u00fcr die L\u00f6sung von einem breiten Eingabefeld und anderer Textausrichtung befindet sich auf der Webseite <a href=\"https:\/\/moodleformulas.org\/course\/view.php?id=102&amp;section=5\">https:\/\/moodleformulas.org\/course\/view.php?id=102&amp;section=5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Moodle k\u00f6nnen mit dem Plugin Formulas einfach zuf\u00e4llige Zahlen generiert. Daraus lassen sich in einem Test unterschiedlichste Werte f\u00fcr alle erzeugen. Ein konkretes Anwendungsbeispiel ist das Runden von Zahlen auf eine bestimmte Anzahl Stellen. Das Eingabefeld ist standardm\u00e4ssig beschr\u00e4nkt Lang und die Zahl ist linksb\u00fcndig beim beenden der Eingabe, siehe folgendes Bild. Wie so &hellip; <a href=\"https:\/\/ahornblatt.ch\/simonboller\/index.php\/2021\/08\/26\/eingabedarstellung-beim-plugin-formulas-anpassen\/\" class=\"more-link\">Weiterlesen <span class=\"screen-reader-text\">Eingabedarstellung beim Plugin Formulas anpassen<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[46],"class_list":["post-3548","post","type-post","status-publish","format-standard","hentry","category-technik","tag-moodle"],"_links":{"self":[{"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/posts\/3548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/comments?post=3548"}],"version-history":[{"count":3,"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/posts\/3548\/revisions"}],"predecessor-version":[{"id":3563,"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/posts\/3548\/revisions\/3563"}],"wp:attachment":[{"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/media?parent=3548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/categories?post=3548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahornblatt.ch\/simonboller\/index.php\/wp-json\/wp\/v2\/tags?post=3548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}