├── html5 ├── .pub │ └── bin │ │ └── sdk-version ├── web │ ├── webgl │ │ ├── resources │ │ │ ├── photo.jpg │ │ │ └── webgl-tutorials.css │ │ ├── solar3d │ │ │ ├── web │ │ │ │ ├── textures │ │ │ │ │ ├── negativeX.jpg │ │ │ │ │ ├── negativeY.jpg │ │ │ │ │ ├── negativeZ.jpg │ │ │ │ │ ├── positiveX.jpg │ │ │ │ │ ├── positiveY.jpg │ │ │ │ │ ├── positiveZ.jpg │ │ │ │ │ ├── sun_diffuse.jpg │ │ │ │ │ ├── earth_diffuse.jpg │ │ │ │ │ ├── mars_diffuse.jpg │ │ │ │ │ ├── moon_diffuse.jpg │ │ │ │ │ ├── saturn_diffuse.jpg │ │ │ │ │ ├── uranus_diffuse.jpg │ │ │ │ │ ├── venus_diffuse.jpg │ │ │ │ │ ├── jupiter_diffuse.jpg │ │ │ │ │ ├── mercury_diffuse.jpg │ │ │ │ │ └── neptune_diffuse.jpg │ │ │ │ ├── solar.css │ │ │ │ ├── solar.html │ │ │ │ ├── shader.dart │ │ │ │ ├── sphere_controller.dart │ │ │ │ └── camera.dart │ │ │ ├── pubspec.yaml │ │ │ └── README.md │ │ ├── fundamentals │ │ │ ├── index.html │ │ │ └── fundamentals.dart │ │ ├── rectangle │ │ │ ├── index.html │ │ │ └── rectangle.dart │ │ ├── rectangle_top_left │ │ │ ├── index.html │ │ │ └── rectangle_top_left.dart │ │ ├── rectangles │ │ │ ├── index.html │ │ │ └── rectangles.dart │ │ ├── 2d_image │ │ │ ├── index.html │ │ │ └── 2d_image.dart │ │ ├── 2d_image_red_2_blue │ │ │ ├── index.html │ │ │ └── 2d_image_red_2_blue.dart │ │ ├── 2d_image_blend │ │ │ └── index.html │ │ ├── utils │ │ │ └── webgl_utils.dart │ │ └── 2d_image_3x3_convolution │ │ │ └── index.html │ ├── canvas │ │ ├── hidpi │ │ │ ├── images │ │ │ │ └── html5rocks.png │ │ │ ├── hidpi.css │ │ │ ├── hidpi.html │ │ │ └── hidpi.dart │ │ └── imagefilters │ │ │ ├── images │ │ │ └── demo_small.png │ │ │ ├── README.md │ │ │ ├── imagefilters.css │ │ │ └── index.html │ ├── webaudio │ │ └── intro │ │ │ ├── sounds │ │ │ ├── example.mp3 │ │ │ ├── example.ogg │ │ │ └── example.wav │ │ │ ├── README.md │ │ │ └── index.html │ ├── video │ │ └── basics │ │ │ ├── README.md │ │ │ ├── index.html │ │ │ └── video.dart │ ├── geolocation │ │ └── trip_meter │ │ │ ├── trip_meter.css │ │ │ ├── README.md │ │ │ ├── index.html │ │ │ └── trip_meter.dart │ ├── file │ │ ├── filesystem │ │ │ ├── README.md │ │ │ ├── filesystem.css │ │ │ └── index.html │ │ ├── dndfiles │ │ │ ├── README.md │ │ │ ├── monitoring.html │ │ │ ├── index.html │ │ │ ├── dndfiles.html │ │ │ ├── slicing.html │ │ │ ├── dndfiles.css │ │ │ ├── slicing.dart │ │ │ ├── monitoring.dart │ │ │ └── dndfiles.dart │ │ └── terminal │ │ │ ├── README.md │ │ │ ├── index.html │ │ │ ├── terminal_filesystem.dart │ │ │ └── terminal.css │ ├── dnd │ │ └── basics │ │ │ ├── README.md │ │ │ ├── index.html │ │ │ ├── basics.dart │ │ │ └── basics.css │ ├── indexeddb │ │ └── todo │ │ │ ├── todo.css │ │ │ ├── index.html │ │ │ ├── README.md │ │ │ └── todo.dart │ ├── pointerlock │ │ └── fps │ │ │ ├── fps.css │ │ │ ├── index.html │ │ │ └── fps_camera.dart │ ├── speed │ │ └── animations │ │ │ ├── index.html │ │ │ ├── animations.css │ │ │ ├── README.md │ │ │ └── animations.dart │ ├── appcache │ │ └── beginner │ │ │ ├── offline.html │ │ │ ├── appcache.mf │ │ │ ├── appcache.css │ │ │ ├── README.md │ │ │ ├── index.html │ │ │ └── appcache.dart │ ├── websockets │ │ └── basics │ │ │ ├── index.html │ │ │ ├── README.md │ │ │ └── websocket_sample.dart │ └── localstorage │ │ └── basics │ │ ├── README.md │ │ ├── index.html │ │ └── localstorage.dart ├── AUTHORS ├── pubspec.yaml ├── README.md ├── pubspec.lock └── tool │ └── hop_runner.dart ├── dart_io_mini_samples ├── AUTHORS ├── example │ ├── files_directories_and_symlinks │ │ ├── file.txt │ │ ├── files │ │ │ ├── reading_a_file_as_a_string.dart │ │ │ ├── reading_a_file_as_lines.dart │ │ │ ├── handling_errors_when_reading_a_file.dart │ │ │ ├── writing_a_string_to_a_file.dart │ │ │ ├── reading_a_file_as_bytes.dart │ │ │ ├── writing_bytes_to_a_file.dart │ │ │ ├── writing_to_a_file_using_a_stream.dart │ │ │ ├── creating_a_file.dart │ │ │ └── reading_a_file_using_a_stream.dart │ │ ├── symlinks │ │ │ ├── creating_a_symlink.dart │ │ │ ├── checking_if_a_path_represents_a_symlink.dart │ │ │ └── getting_the_target_of_a_link.dart │ │ ├── directories │ │ │ ├── creating_a_temporary_directory.dart │ │ │ ├── creating_a_directory.dart │ │ │ └── listing_the_contents_of_a_directory.dart │ │ ├── deleting_a_file_directory_or_symlink.dart │ │ ├── getting_the_parent_directory.dart │ │ ├── renaming_a_file_directory_or_symlink.dart │ │ └── finding_the_type_of_a_filesystem_object.dart │ ├── http_server │ │ ├── web │ │ │ ├── foo.html │ │ │ └── index.html │ │ ├── implementing_a_Hello_World_http_server.dart │ │ └── routing_requests_based_on_url_patterns.dart │ ├── http │ │ ├── reading_the_response_body.dart │ │ ├── making_a_get_request.dart │ │ ├── making_a_post_request.dart │ │ ├── getting_the_response_content_in_binary_format.dart │ │ ├── handling_an_httprequest_error.dart │ │ ├── getting_redirection_history.dart │ │ ├── adding_custom_headers.dart │ │ ├── getting_the_response_headers.dart │ │ └── making_multiple_requests_to_the_same_server.dart │ ├── platform │ │ ├── getting_environment_variables.dart │ │ ├── getting_information_about_the_script_being_run.dart │ │ └── identifying_the_operating_system.dart │ ├── websockets │ │ ├── using_websockets_client.dart │ │ └── using_websockets_server.dart │ ├── sockets │ │ ├── using_serversockets_client.dart │ │ └── using_serversockets_server.dart │ ├── paths │ │ ├── converting_between_a_uri_and_a_path.dart │ │ ├── joining_paths.dart │ │ ├── parsing_a_path_into_components.dart │ │ ├── getting_the_path_separator_for_the_current_platform.dart │ │ ├── getting_information_about_a_file_path.dart │ │ └── calculating_relative_paths.dart │ ├── interacting_with_processes │ │ ├── running_a_process.dart │ │ └── obtaining_the_exit_code_when_running_a_process.dart │ ├── other_resources.md │ ├── introduction.md │ └── common.css ├── pubspec.yaml ├── pubspec.lock ├── LICENSE ├── runtests.sh └── generate_md_for_dartlang.dart ├── deferred_loading_samples ├── lazyloader │ ├── pubspec.yaml │ ├── lib │ │ ├── lunch.dart │ │ ├── breakfast.dart │ │ └── dinner.dart │ ├── pubspec.lock │ ├── web │ │ ├── styles.css │ │ ├── index.html │ │ └── main.dart │ └── README.md ├── deferred_loading_example │ ├── pubspec.lock │ ├── pubspec.yaml │ ├── lib │ │ └── hello.dart │ ├── bin │ │ └── main.dart │ └── README.md └── README.md ├── polymer_mini_samples ├── web │ ├── binding_data │ │ ├── README.md │ │ ├── my_element.html │ │ ├── my_element.dart │ │ └── index.html │ ├── creating_an_element_using_noscript │ │ ├── README.md │ │ ├── my_element.html │ │ └── index.html │ ├── finding_shadow_dom_nodes_by_id │ │ ├── README.md │ │ ├── my_element.dart │ │ ├── index.html │ │ └── my_element.html │ ├── publishing_properties │ │ ├── README.md │ │ ├── my_element.html │ │ ├── my_element.dart │ │ └── index.html │ ├── binding_with_built_in_elements │ │ ├── README.md │ │ ├── index.html │ │ ├── my_element.dart │ │ └── my_element.html │ ├── waiting_until_an_element_is_ready │ │ ├── README.md │ │ ├── my_element.html │ │ ├── my_element.dart │ │ └── index.html │ ├── binding_to_a_style_value │ │ ├── README.md │ │ ├── my_element.html │ │ ├── my_element.dart │ │ └── index.html │ └── creating_an_element │ │ ├── my_element.html │ │ ├── my_element.dart │ │ ├── README.md │ │ └── index.html ├── README.md ├── pubspec.yaml └── pubspec.lock ├── .gitignore ├── README.md └── LICENSE /html5/.pub/bin/sdk-version: -------------------------------------------------------------------------------- 1 | 1.11.3 2 | -------------------------------------------------------------------------------- /dart_io_mini_samples/AUTHORS: -------------------------------------------------------------------------------- 1 | Mary Campione 2 | Patrice Chalin 3 | Shailen Tuli 4 | Günter Zöchbauer 5 | 6 | -------------------------------------------------------------------------------- /dart_io_mini_samples/example/files_directories_and_symlinks/file.txt: -------------------------------------------------------------------------------- 1 | one banana 2 | two banana 3 | three banana 4 | four -------------------------------------------------------------------------------- /html5/web/webgl/resources/photo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/resources/photo.jpg -------------------------------------------------------------------------------- /deferred_loading_samples/lazyloader/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: lazyloader 2 | description: A sample web application 3 | dependencies: 4 | browser: any 5 | -------------------------------------------------------------------------------- /html5/web/canvas/hidpi/images/html5rocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/canvas/hidpi/images/html5rocks.png -------------------------------------------------------------------------------- /html5/web/webaudio/intro/sounds/example.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webaudio/intro/sounds/example.mp3 -------------------------------------------------------------------------------- /html5/web/webaudio/intro/sounds/example.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webaudio/intro/sounds/example.ogg -------------------------------------------------------------------------------- /html5/web/webaudio/intro/sounds/example.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webaudio/intro/sounds/example.wav -------------------------------------------------------------------------------- /deferred_loading_samples/deferred_loading_example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See http://pub.dartlang.org/doc/glossary.html#lockfile 3 | packages: {} 4 | -------------------------------------------------------------------------------- /deferred_loading_samples/lazyloader/lib/lunch.dart: -------------------------------------------------------------------------------- 1 | library lazyloader.lunch; 2 | 3 | const String menu = "Grilled cheese sandwich, tomato soup, and juice."; 4 | -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/negativeX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/negativeX.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/negativeY.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/negativeY.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/negativeZ.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/negativeZ.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/positiveX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/positiveX.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/positiveY.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/positiveY.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/positiveZ.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/positiveZ.jpg -------------------------------------------------------------------------------- /dart_io_mini_samples/example/http_server/web/foo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

This is foo.html

6 | 7 | 8 | -------------------------------------------------------------------------------- /dart_io_mini_samples/example/http_server/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

This is index.html

6 | 7 | 8 | -------------------------------------------------------------------------------- /deferred_loading_samples/deferred_loading_example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: deferred_loading_example 2 | description: A sample web application that loads a library lazily. 3 | -------------------------------------------------------------------------------- /deferred_loading_samples/lazyloader/lib/breakfast.dart: -------------------------------------------------------------------------------- 1 | library lazyloader.breakfast; 2 | 3 | const String menu = "Scrambled eggs, toast, berries, and coffee."; 4 | -------------------------------------------------------------------------------- /deferred_loading_samples/lazyloader/lib/dinner.dart: -------------------------------------------------------------------------------- 1 | library lazyloader.dinner; 2 | 3 | const String menu = "Lasagna, green salad, garlic bread, and red wine."; 4 | -------------------------------------------------------------------------------- /html5/web/canvas/imagefilters/images/demo_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/canvas/imagefilters/images/demo_small.png -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/sun_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/sun_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/earth_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/earth_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/mars_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/mars_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/moon_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/moon_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/saturn_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/saturn_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/uranus_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/uranus_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/venus_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/venus_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: solar3d 2 | description: 3D Solar System visualization using WebGL. 3 | dependencies: 4 | browser: any 5 | vector_math: '>=0.9.5' -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/jupiter_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/jupiter_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/mercury_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/mercury_diffuse.jpg -------------------------------------------------------------------------------- /html5/web/webgl/solar3d/web/textures/neptune_diffuse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dart-archive/dart-samples/master/html5/web/webgl/solar3d/web/textures/neptune_diffuse.jpg -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_data/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/45e09c8a6499d788438667b6564df64a9f86527c/samples/components/tk-element-databinding.html 3 | -------------------------------------------------------------------------------- /html5/AUTHORS: -------------------------------------------------------------------------------- 1 | Shannon -jj Behrens 2 | Matthew Butler 3 | Jason Brooks 4 | Richard Griffith 5 | Seth Ladd 6 | Andrei Mouravski 7 | John McCutchan 8 | Adam Singer 9 | Shailen Tuli 10 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/creating_an_element_using_noscript/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/45e09c8a6499d788438667b6564df64a9f86527c/samples/components/tk-element.html -------------------------------------------------------------------------------- /deferred_loading_samples/deferred_loading_example/lib/hello.dart: -------------------------------------------------------------------------------- 1 | library deferred_loading_example.hello; 2 | 3 | printGreeting() { 4 | print('Hello World, from the deferred library!'); 5 | } 6 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/finding_shadow_dom_nodes_by_id/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/45e09c8a6499d788438667b6564df64a9f86527c/samples/components/tk-node-finding.html -------------------------------------------------------------------------------- /polymer_mini_samples/web/publishing_properties/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/45e09c8a6499d788438667b6564df64a9f86527c/samples/components/tk-element-databinding.html 3 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_with_built_in_elements/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/45e09c8a6499d788438667b6564df64a9f86527c/samples/components/tk-binding-to-elements.html -------------------------------------------------------------------------------- /polymer_mini_samples/web/waiting_until_an_element_is_ready/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/2fd88b259f20bccf873158c1407175b5014991ed/samples/components/tk-element-created.html -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_to_a_style_value/README.md: -------------------------------------------------------------------------------- 1 | Port of 2 | https://github.com/Polymer/docs/blob/45e09c8a6499d788438667b6564df64a9f86527c/samples/components/tk-element-databinding-color.html 3 | -------------------------------------------------------------------------------- /deferred_loading_samples/deferred_loading_example/bin/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:deferred_loading_example/hello.dart' deferred as hello; 2 | 3 | main() async { 4 | await hello.loadLibrary(); 5 | hello.printGreeting(); 6 | } 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # JetBrains 2 | .idea/ 3 | # Dart Editor 4 | *.dart.js 5 | *.dart.js.map 6 | *.dart.js.deps 7 | 8 | # pub 9 | .pub 10 | packages 11 | .packages 12 | build 13 | 14 | #other 15 | .settings 16 | .buildlog 17 | .DS_Store 18 | -------------------------------------------------------------------------------- /deferred_loading_samples/lazyloader/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See http://pub.dartlang.org/doc/glossary.html#lockfile 3 | packages: 4 | browser: 5 | description: browser 6 | source: hosted 7 | version: "0.10.0+2" 8 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/creating_an_element_using_noscript/my_element.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | -------------------------------------------------------------------------------- /dart_io_mini_samples/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: dart_by_example 2 | description: Examples that teach the use of Dart through short, directed code snippets. 3 | dependencies: 4 | crypto: any 5 | http: any 6 | http_server: any 7 | path: any 8 | route: any 9 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/creating_an_element/my_element.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_data/my_element.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /html5/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: dart_samples 2 | version: 0.0.1-dev 3 | description: Samples for Dart 4 | homepage: https://github.com/dart-lang/dart-samples 5 | environment: 6 | sdk: '>=0.6.17' 7 | dependencies: 8 | browser: any 9 | vector_math: any 10 | hop: any 11 | path: any 12 | html5lib: any 13 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_data/my_element.dart: -------------------------------------------------------------------------------- 1 | library binding_data.my_element; 2 | 3 | import 'package:polymer/polymer.dart'; 4 | 5 | @CustomTag('my-element') 6 | class MyElement extends PolymerElement { 7 | @observable String owner = 'Daniel'; 8 | MyElement.created() : super.created(); 9 | } 10 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/waiting_until_an_element_is_ready/my_element.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/creating_an_element/my_element.dart: -------------------------------------------------------------------------------- 1 | library creating_an_element.my_element; 2 | 3 | import 'package:polymer/polymer.dart'; 4 | 5 | @CustomTag('my-element') 6 | class MyElement extends PolymerElement { 7 | @observable String name = 'John'; 8 | MyElement.created() : super.created(); 9 | } 10 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/publishing_properties/my_element.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_to_a_style_value/my_element.html: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/publishing_properties/my_element.dart: -------------------------------------------------------------------------------- 1 | library publishing_properties.my_element; 2 | 3 | import 'package:polymer/polymer.dart'; 4 | 5 | @CustomTag('my-element') 6 | class MyElement extends PolymerElement { 7 | @published String color = 'red'; 8 | @published String owner = 'Daniel'; 9 | MyElement.created() : super.created(); 10 | } 11 | -------------------------------------------------------------------------------- /polymer_mini_samples/web/binding_to_a_style_value/my_element.dart: -------------------------------------------------------------------------------- 1 | library binding_to_a_style_value.my_element; 2 | 3 | import 'package:polymer/polymer.dart'; 4 | 5 | @CustomTag('my-element') 6 | class MyElement extends PolymerElement { 7 | @observable String owner = 'Daniel'; 8 | @observable String color = 'red'; 9 | MyElement.created() : super.created(); 10 | } 11 | -------------------------------------------------------------------------------- /html5/web/video/basics/README.md: -------------------------------------------------------------------------------- 1 | ## HTML5 Video 2 | 3 | A port of an example used in the 4 | [HTML5 Video](http://www.html5rocks.com/en/tutorials/video/basics/) 5 | article by Ernest Delgado, originally published on HTML5Rocks. 6 | 7 | The example shows how to use the `