{"id":245603,"date":"2026-02-21T08:24:02","date_gmt":"2026-02-21T08:24:02","guid":{"rendered":"https:\/\/prog.learn4fun.at\/?page_id=245603"},"modified":"2026-02-22T10:37:15","modified_gmt":"2026-02-22T10:37:15","slug":"scratch-1b","status":"publish","type":"page","link":"https:\/\/prog.learn4fun.at\/index.php\/scratch-1b\/","title":{"rendered":"Scratch &#8211; (1b) Einf\u00fchrungsvideo"},"content":{"rendered":"<div class=\"et_pb_section_0 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_0 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_0 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_3_5 et_flex_column_3_5_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_module et_pb_button_module_wrapper et_pb_button_0_wrapper preset--module--divi-button--1bffc0fc-42a0-49d1-bd9a-ae3ade2d7206_wrapper\"><a class=\"et_pb_button_0 et_pb_button et_pb_bg_layout_light et_pb_module et_block_module preset--module--divi-button--1bffc0fc-42a0-49d1-bd9a-ae3ade2d7206\" href=\"\/index.php\/scratch-1a\/\">zur\u00fcck<\/a><\/div>\n<\/div>\n\n<div class=\"et_pb_column_1 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_3_5 et_flex_column_3_5_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_heading_0 et_pb_heading et_pb_module et_block_module preset--module--divi-heading--f0c675ea-2574-4d0e-b725-30f8550a8550\"><div class=\"et_pb_heading_container\"><h4 class=\"et_pb_module_header\">(1b) Ich erkl\u00e4re mir die Plattform an einem Beispiel!<\/h4><\/div><\/div>\n\n<div class=\"et_pb_text_0 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><ul>\n<li>Schau dir das Video an und programmiere das nach, was im Video gezeigt wird.<\/li>\n<li>Du kannst das Video nach Belieben stoppen.<\/li>\n<li>Statt der Katze darfst du auch etwas anderes aussuchen.<\/li>\n<li>Zeige das Ergebnis anschlie\u00dfend deinem Lehrer\/deiner Lehrerin.<\/li>\n<\/ul>\n<\/div><\/div>\n<\/div>\n\n<div class=\"et_pb_column_2 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_3_5 et_flex_column_3_5_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_module et_pb_button_module_wrapper et_pb_button_1_wrapper preset--module--divi-button--1bffc0fc-42a0-49d1-bd9a-ae3ade2d7206_wrapper\"><a class=\"et_pb_button_1 et_pb_button et_pb_bg_layout_light et_pb_module et_block_module preset--module--divi-button--1bffc0fc-42a0-49d1-bd9a-ae3ade2d7206\" href=\"index.php\/scratch-1c\">weiter<\/a><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_1 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_3 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_code_0 et_pb_code et_pb_text_align_left et_pb_module\"><div class=\"et_pb_code_inner\">    <style>       \n        #player-container { position: relative; width: 100%; }\n    <\/style>\n    <div id=\"player-container\">\n        <div id=\"player\"><\/div>\n    <\/div>\n\n    <script>\n        \/\/ --- KONFIGURATION ---\n        const videoId = '_z37963Se5g'; \/\/ Deine Video ID\n        const startSekunde = 136;       \/\/ Startpunkt der Schleife\n        const endSekunde = 1086;         \/\/ Endpunkt der Schleife (Sperre & Loop-Punkt)\n        \/\/ ---------------------\n\n        var tag = document.createElement('script');\n        tag.src = \"https:\/\/www.youtube.com\/iframe_api\";\n        var firstScriptTag = document.getElementsByTagName('script')[0];\n        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\n        var player;\n        function onYouTubeIframeAPIReady() {\n            player = new YT.Player('player', {\n                height: '540',\n                width: '960',\n                videoId: videoId,\n                playerVars: {\n                    'start': startSekunde,\n                    'end': endSekunde,\n                    'rel': 0,\n                    'modestbranding': 0,\n                    'fs': 1 \/\/ Vollbild erlaubt\n                },\n                events: {\n                    'onReady': onPlayerReady,\n                    'onStateChange': onPlayerStateChange\n                }\n            });\n        }\n\n        function onPlayerReady(event) {\n            \/\/ Pr\u00fcfung alle 200ms f\u00fcr eine fl\u00fcssigere Erkennung\n            setInterval(checkTime, 200);\n        }\n\n        function checkTime() {\n            if (player && player.getCurrentTime) {\n                var currentTime = player.getCurrentTime();\n\n                \/\/ Falls der Nutzer manuell \u00fcber das Ende hinaus spult:\n                if (currentTime > endSekunde) {\n                    loopVideo();\n                }\n            }\n        }\n\n        function onPlayerStateChange(event) {\n            \/\/ Wenn das Video das Ende des Segments nat\u00fcrlich erreicht\n            if (event.data == YT.PlayerState.ENDED) {\n                loopVideo();\n            }\n        }\n\n        function loopVideo() {\n            player.seekTo(startSekunde);\n            player.playVideo();\n        }\n    <\/script>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"folder":[19],"class_list":["post-245603","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages\/245603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/comments?post=245603"}],"version-history":[{"count":24,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages\/245603\/revisions"}],"predecessor-version":[{"id":245687,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/pages\/245603\/revisions\/245687"}],"wp:attachment":[{"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/media?parent=245603"}],"wp:term":[{"taxonomy":"folder","embeddable":true,"href":"https:\/\/prog.learn4fun.at\/index.php\/wp-json\/wp\/v2\/folder?post=245603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}