Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
user:hof:pyeditor [2025-06-06 08:24] – [Bottom.ch with direct component] hofuser:hof:pyeditor [2025-06-06 08:25] (aktuell) – [Bottom.ch with direct component] hof
Zeile 9: Zeile 9:
 <!-- Include a custom component in HTML. Use height, min-height, max-height to control the size. --> <!-- Include a custom component in HTML. Use height, min-height, max-height to control the size. -->
 <!-- Leading empty lines will be dropped. --> <!-- Leading empty lines will be dropped. -->
-<html><bottom-editor style="min-height: 10lh;">+<html><bottom-editor style="min-height: 10lh;" autorun>
 print(42) print(42)
 </bottom-editor></html> </bottom-editor></html>
Zeile 16: Zeile 16:
 <html><script type="module" src="https://bottom.ch/ksr/ed/bottom-editor.js"></script></html> <html><script type="module" src="https://bottom.ch/ksr/ed/bottom-editor.js"></script></html>
  
-<html><bottom-editor style="min-height: 10lh;">print(42)</bottom-editor></html>+<html><bottom-editor style="min-height: 10lh;" autorun>print(42)</bottom-editor></html>
  
 You can install files from an URL (with CORS headers if from a different domain!): You can install files from an URL (with CORS headers if from a different domain!):
  
 <code html> <code html>
-<html><bottom-editor zip='https://bottom.ch/ksr/py/files/2m.zip' autorun>+<html><bottom-editor zip='https://bottom.ch/ksr/py/files/2m.zip'>
 with open('gemeinden.csv', 'r') as infile: with open('gemeinden.csv', 'r') as infile:
     for line in infile:     for line in infile:
Zeile 27: Zeile 27:
         town = tokens[0]         town = tokens[0]
         if town == 'Romanshorn':         if town == 'Romanshorn':
-            print(f'Romanshorn hat {tokens[1]} Einwohner')+            print(f'Romanshorn hat {tokens[2]} Einwohner')
 </bottom-editor></html> </bottom-editor></html>
 </code> </code>
  
-<html><bottom-editor zip='https://bottom.ch/ksr/py/files/2m.zip' autorun>+<html><bottom-editor zip='https://bottom.ch/ksr/py/files/2m.zip'>
 with open('gemeinden.csv', 'r') as infile: with open('gemeinden.csv', 'r') as infile:
     for line in infile:     for line in infile:
Zeile 37: Zeile 37:
         town = tokens[0]         town = tokens[0]
         if town == 'Romanshorn':         if town == 'Romanshorn':
-            print(f'Romanshorn hat {tokens[1]} Einwohner')+            print(f'Romanshorn hat {tokens[2]} Einwohner')
 </bottom-editor></html> </bottom-editor></html>
  
  • user/hof/pyeditor.1749198290.txt.gz
  • Zuletzt geändert: 2025-06-06 08:24
  • von hof