polymer-core-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/components/context-free-parser/README.md +4 -0
- data/app/assets/components/context-free-parser/bower.json +5 -0
- data/app/assets/components/context-free-parser/context-free-parser.html +49 -0
- data/app/assets/components/context-free-parser/context-free-parser.js +130 -0
- data/app/assets/components/context-free-parser/demo.html +34 -0
- data/app/assets/components/context-free-parser/index.html +22 -0
- data/app/assets/components/core-ajax/README.md +4 -0
- data/app/assets/components/core-ajax/bower.json +7 -0
- data/app/assets/components/core-ajax/{core-ajax.html.erb → core-ajax.html} +29 -23
- data/app/assets/components/core-ajax/{core-xhr.html.erb → core-xhr.html} +6 -3
- data/app/assets/components/core-ajax/demo.html +43 -0
- data/app/assets/components/core-ajax/index.html +22 -0
- data/app/assets/components/core-ajax/metadata.html +23 -0
- data/app/assets/components/core-animated-pages/README.md +4 -0
- data/app/assets/components/core-animated-pages/bower.json +10 -0
- data/app/assets/components/core-animated-pages/core-animated-pages.css +10 -0
- data/app/assets/components/core-animated-pages/{core-animated-pages.html.erb → core-animated-pages.html} +32 -9
- data/app/assets/components/core-animated-pages/demo.html +23 -0
- data/app/assets/components/core-animated-pages/demos/grid.html +113 -0
- data/app/assets/components/core-animated-pages/demos/list.html +126 -0
- data/app/assets/components/core-animated-pages/demos/music.html +182 -0
- data/app/assets/components/core-animated-pages/demos/nested-animated-pages.html +113 -0
- data/app/assets/components/core-animated-pages/demos/nested.html +112 -0
- data/app/assets/components/core-animated-pages/demos/news.html +255 -0
- data/app/assets/components/core-animated-pages/demos/quiz1-intro.png +0 -0
- data/app/assets/components/core-animated-pages/demos/quiz1.html +263 -0
- data/app/assets/components/core-animated-pages/demos/shadow.html +142 -0
- data/app/assets/components/core-animated-pages/demos/simple.html +98 -0
- data/app/assets/components/core-animated-pages/index.html +22 -0
- data/app/assets/components/core-animated-pages/metadata.html +38 -0
- data/app/assets/components/core-animated-pages/transitions/{core-transition-pages.html.erb → core-transition-pages.html} +5 -3
- data/app/assets/components/core-animated-pages/transitions/{cross-fade.html.erb → cross-fade.html} +1 -1
- data/app/assets/components/core-animated-pages/transitions/hero-transition.css +10 -0
- data/app/assets/components/core-animated-pages/transitions/{hero-transition.html.erb → hero-transition.html} +7 -7
- data/app/assets/components/core-animated-pages/transitions/slide-from-bottom.html +8 -1
- data/app/assets/components/core-animated-pages/transitions/slide-from-right.html +8 -0
- data/app/assets/components/core-animation/README.md +4 -0
- data/app/assets/components/core-animation/bower.json +8 -0
- data/app/assets/components/core-animation/{core-animation-group.html.erb → core-animation-group.html} +2 -1
- data/app/assets/components/core-animation/{core-animation.html.erb → core-animation.html} +4 -3
- data/app/assets/components/core-animation/demo.html +149 -0
- data/app/assets/components/core-animation/index.html +22 -0
- data/app/assets/components/core-animation/web-animations.html +10 -0
- data/app/assets/components/core-collapse/README.md +4 -0
- data/app/assets/components/core-collapse/bower.json +7 -0
- data/app/assets/components/core-collapse/{core-collapse.html.erb → core-collapse.html} +24 -9
- data/app/assets/components/core-collapse/demo.html +93 -0
- data/app/assets/components/core-collapse/index.html +22 -0
- data/app/assets/components/core-component-page/README.md +6 -0
- data/app/assets/components/core-component-page/bowager-logo.png +0 -0
- data/app/assets/components/core-component-page/bower.json +8 -0
- data/app/assets/components/core-component-page/core-component-page.html +37 -0
- data/app/assets/components/core-component-page/demo.html +23 -0
- data/app/assets/components/core-component-page/index.html +22 -0
- data/app/assets/components/core-doc-viewer/README.md +4 -0
- data/app/assets/components/core-doc-viewer/bower.json +16 -0
- data/app/assets/components/core-doc-viewer/core-doc-viewer.html +186 -0
- data/app/assets/components/core-doc-viewer/demo.html +46 -0
- data/app/assets/components/core-doc-viewer/elements/core-doc-page.css +139 -0
- data/app/assets/components/core-doc-viewer/elements/core-doc-page.html +175 -0
- data/app/assets/components/core-doc-viewer/elements/core-doc-toc.css +27 -0
- data/app/assets/components/core-doc-viewer/elements/core-doc-toc.html +67 -0
- data/app/assets/components/core-doc-viewer/index.html +22 -0
- data/app/assets/components/core-docs/README.md +4 -0
- data/app/assets/components/core-docs/bower.json +7 -0
- data/app/assets/components/core-docs/index.html +71 -0
- data/app/assets/components/core-drag-drop/core-drag-drop.html +12 -7
- data/app/assets/components/core-drag-drop/demo.html +102 -0
- data/app/assets/components/core-drag-drop/index.html +22 -0
- data/app/assets/components/core-drawer-panel/README.md +4 -0
- data/app/assets/components/core-drawer-panel/bower.json +8 -0
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +18 -33
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +339 -0
- data/app/assets/components/core-drawer-panel/demo.html +73 -0
- data/app/assets/components/core-drawer-panel/index.html +22 -0
- data/app/assets/components/core-drawer-panel/metadata.html +37 -0
- data/app/assets/components/core-dropdown/README.md +6 -0
- data/app/assets/components/core-dropdown/bower.json +11 -0
- data/app/assets/components/core-dropdown/core-dropdown.css +35 -0
- data/app/assets/components/core-dropdown/core-dropdown.html +182 -0
- data/app/assets/components/core-dropdown/demo.html +349 -0
- data/app/assets/components/core-dropdown/index.html +22 -0
- data/app/assets/components/core-elements/README.md +4 -0
- data/app/assets/components/core-elements/bower.json +47 -0
- data/app/assets/components/core-elements/core-elements.html +56 -0
- data/app/assets/components/core-elements/demo.html +107 -0
- data/app/assets/components/core-elements/index.html +22 -0
- data/app/assets/components/core-elements/metadata.html +30 -0
- data/app/assets/components/core-field/README.md +4 -0
- data/app/assets/components/core-field/bower.json +7 -0
- data/app/assets/components/core-field/{core-field.html.erb → core-field.html} +5 -2
- data/app/assets/components/core-field/demo.html +67 -0
- data/app/assets/components/core-field/index.html +22 -0
- data/app/assets/components/core-field/metadata.html +26 -0
- data/app/assets/components/core-header-panel/README.md +4 -0
- data/app/assets/components/core-header-panel/bower.json +7 -0
- data/app/assets/components/core-header-panel/{core-header-panel.html.erb → core-header-panel.html} +54 -25
- data/app/assets/components/core-header-panel/demo.html +100 -0
- data/app/assets/components/core-header-panel/index.html +23 -0
- data/app/assets/components/core-header-panel/metadata.html +37 -0
- data/app/assets/components/core-icon/README.md +4 -0
- data/app/assets/components/core-icon/bower.json +8 -0
- data/app/assets/components/core-icon/core-icon.css +3 -12
- data/app/assets/components/core-icon/core-icon.html +189 -0
- data/app/assets/components/core-icon/demo.html +44 -0
- data/app/assets/components/core-icon/index.html +22 -0
- data/app/assets/components/core-icon/metadata.html +21 -0
- data/app/assets/components/core-icon-button/README.md +4 -0
- data/app/assets/components/core-icon-button/bower.json +7 -0
- data/app/assets/components/core-icon-button/core-icon-button.css +8 -3
- data/app/assets/components/core-icon-button/{core-icon-button.html.erb → core-icon-button.html} +6 -8
- data/app/assets/components/core-icon-button/demo.html +35 -0
- data/app/assets/components/core-icon-button/index.html +22 -0
- data/app/assets/components/core-icon-button/metadata.html +20 -0
- data/app/assets/components/core-icons/README.md +4 -0
- data/app/assets/components/core-icons/av-icons.html +46 -0
- data/app/assets/components/core-icons/bower.json +9 -0
- data/app/assets/components/core-icons/communication-icons.html +59 -0
- data/app/assets/components/core-icons/core-icons.html +270 -6
- data/app/assets/components/core-icons/demo.html +96 -0
- data/app/assets/components/core-icons/device-icons.html +59 -0
- data/app/assets/components/core-icons/editor-icons.html +67 -0
- data/app/assets/components/core-icons/hardware-icons.html +58 -0
- data/app/assets/components/core-icons/iconsets/av-icons.html +45 -0
- data/app/assets/components/core-icons/iconsets/communication-icons.html +38 -0
- data/app/assets/components/core-icons/iconsets/device-icons.html +54 -0
- data/app/assets/components/core-icons/iconsets/hardware-icons.html +45 -0
- data/app/assets/components/core-icons/iconsets/icons.html +192 -0
- data/app/assets/components/core-icons/iconsets/image-icons.html +51 -0
- data/app/assets/components/core-icons/iconsets/maps-icons.html +33 -0
- data/app/assets/components/core-icons/iconsets/notification-icons.html +53 -0
- data/app/assets/components/core-icons/iconsets/png-icons.html +18 -0
- data/app/assets/components/core-icons/iconsets/social-icons.html +50 -0
- data/app/assets/components/core-icons/image-icons.html +146 -0
- data/app/assets/components/core-icons/index.html +22 -0
- data/app/assets/components/core-icons/maps-icons.html +69 -0
- data/app/assets/components/core-icons/notification-icons.html +50 -0
- data/app/assets/components/core-icons/png-icons.html +19 -0
- data/app/assets/components/core-icons/social-icons.html +52 -0
- data/app/assets/components/core-iconset/README.md +4 -0
- data/app/assets/components/core-iconset/bower.json +9 -0
- data/app/assets/components/core-iconset/{core-iconset.html.erb → core-iconset.html} +29 -24
- data/app/assets/components/core-iconset/demo.html +62 -0
- data/app/assets/components/core-iconset/index.html +22 -0
- data/app/assets/components/core-iconset/my-icons-big.png +0 -0
- data/app/assets/components/core-iconset/my-icons.png +0 -0
- data/app/assets/components/core-iconset-svg/README.md +4 -0
- data/app/assets/components/core-iconset-svg/bower.json +8 -0
- data/app/assets/components/core-iconset-svg/core-iconset-svg.html +14 -16
- data/app/assets/components/core-iconset-svg/demo.html +66 -0
- data/app/assets/components/core-iconset-svg/index.html +22 -0
- data/app/assets/components/core-iconset-svg/svg-sample-icons.html +68 -0
- data/app/assets/components/core-input/README.md +2 -0
- data/app/assets/components/core-input/bower.json +6 -0
- data/app/assets/components/core-input/core-input.css +10 -0
- data/app/assets/components/core-input/core-input.html +454 -0
- data/app/assets/components/core-input/demo.html +142 -0
- data/app/assets/components/core-input/index.html +22 -0
- data/app/assets/components/core-input/metadata.html +20 -0
- data/app/assets/components/core-item/README.md +4 -0
- data/app/assets/components/core-item/bower.json +8 -0
- data/app/assets/components/core-item/core-item.css +13 -0
- data/app/assets/components/core-item/{core-item.html.erb → core-item.html} +10 -16
- data/app/assets/components/core-item/demo.html +92 -0
- data/app/assets/components/core-item/index.html +22 -0
- data/app/assets/components/core-item/metadata.html +24 -0
- data/app/assets/components/core-layout-grid/README.md +4 -0
- data/app/assets/components/core-layout-grid/bower.json +7 -0
- data/app/assets/components/core-layout-grid/core-layout-grid.html +350 -0
- data/app/assets/components/core-layout-grid/demo.html +116 -0
- data/app/assets/components/core-layout-grid/index.html +22 -0
- data/app/assets/components/core-layout-grid/metadata.html +22 -0
- data/app/assets/components/core-layout-trbl/README.md +4 -0
- data/app/assets/components/core-layout-trbl/bower.json +7 -0
- data/app/assets/components/core-layout-trbl/core-layout-trbl.html +269 -0
- data/app/assets/components/core-layout-trbl/core-slide.html +181 -0
- data/app/assets/components/core-layout-trbl/demo.html +58 -0
- data/app/assets/components/core-layout-trbl/index.html +22 -0
- data/app/assets/components/core-list/README.md +4 -0
- data/app/assets/components/core-list/bower.json +8 -0
- data/app/assets/components/core-list/core-list.css +18 -4
- data/app/assets/components/core-list/{core-list.html.erb → core-list.html} +27 -27
- data/app/assets/components/core-list/demo-divider.html +178 -0
- data/app/assets/components/core-list/demo.html +154 -0
- data/app/assets/components/core-list/images/0.png +0 -0
- data/app/assets/components/core-list/images/1.png +0 -0
- data/app/assets/components/core-list/images/2.png +0 -0
- data/app/assets/components/core-list/images/3.png +0 -0
- data/app/assets/components/core-list/index.html +22 -0
- data/app/assets/components/core-localstorage/README.md +4 -0
- data/app/assets/components/core-localstorage/bower.json +7 -0
- data/app/assets/components/core-localstorage/core-localstorage.html +13 -11
- data/app/assets/components/core-localstorage/demo.html +50 -0
- data/app/assets/components/core-localstorage/index.html +22 -0
- data/app/assets/components/core-media-query/README.md +4 -0
- data/app/assets/components/core-media-query/bower.json +7 -0
- data/app/assets/components/core-media-query/core-media-query.html +1 -0
- data/app/assets/components/core-media-query/demo.html +44 -0
- data/app/assets/components/core-media-query/index.html +22 -0
- data/app/assets/components/core-menu/README.md +4 -0
- data/app/assets/components/core-menu/bower.json +9 -0
- data/app/assets/components/core-menu/{core-menu.html.erb → core-menu.html} +3 -3
- data/app/assets/components/core-menu/{core-submenu.html.erb → core-submenu.html} +10 -10
- data/app/assets/components/core-menu/demo.html +101 -0
- data/app/assets/components/core-menu/index.html +22 -0
- data/app/assets/components/core-menu/metadata.html +62 -0
- data/app/assets/components/core-menu-button/README.md +2 -0
- data/app/assets/components/core-menu-button/bower.json +11 -0
- data/app/assets/components/core-menu-button/core-menu-button.html +118 -0
- data/app/assets/components/core-menu-button/demo.html +98 -0
- data/app/assets/components/core-menu-button/index.html +22 -0
- data/app/assets/components/core-menu-button/metadata.html +26 -0
- data/app/assets/components/core-meta/README.md +4 -0
- data/app/assets/components/core-meta/bower.json +7 -0
- data/app/assets/components/core-meta/core-meta.html +24 -22
- data/app/assets/components/core-meta/demo.html +58 -0
- data/app/assets/components/core-meta/index.html +22 -0
- data/app/assets/components/core-overlay/README.md +4 -0
- data/app/assets/components/core-overlay/bower.json +8 -0
- data/app/assets/components/core-overlay/core-key-helper.html +2 -0
- data/app/assets/components/core-overlay/{core-overlay.html.erb → core-overlay.html} +77 -51
- data/app/assets/components/core-overlay/demo.html +155 -0
- data/app/assets/components/core-overlay/index.html +22 -0
- data/app/assets/components/core-pages/README.md +4 -0
- data/app/assets/components/core-pages/bower.json +7 -0
- data/app/assets/components/core-pages/{core-pages.html.erb → core-pages.html} +5 -4
- data/app/assets/components/core-pages/demo.html +136 -0
- data/app/assets/components/core-pages/index.html +22 -0
- data/app/assets/components/core-pages/metadata.html +25 -0
- data/app/assets/components/core-popup-menu/README.md +6 -0
- data/app/assets/components/core-popup-menu/bower.json +13 -0
- data/app/assets/components/core-popup-menu/core-popup-menu.css +28 -0
- data/app/assets/components/core-popup-menu/core-popup-menu.html +198 -0
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +111 -0
- data/app/assets/components/core-popup-menu/demo.html +542 -0
- data/app/assets/components/core-popup-menu/index.html +22 -0
- data/app/assets/components/core-popup-menu/metadata.html +62 -0
- data/app/assets/components/core-range/README.md +2 -0
- data/app/assets/components/core-range/bower.json +7 -0
- data/app/assets/components/core-range/core-range.html +16 -15
- data/app/assets/components/core-range/demo.html +64 -0
- data/app/assets/components/core-range/index.html +22 -0
- data/app/assets/components/core-scaffold/README.md +4 -0
- data/app/assets/components/core-scaffold/bower.json +10 -0
- data/app/assets/components/core-scaffold/{core-scaffold.html.erb → core-scaffold.html} +35 -25
- data/app/assets/components/core-scaffold/demo.html +82 -0
- data/app/assets/components/core-scaffold/index.html +22 -0
- data/app/assets/components/core-scaffold/metadata.html +52 -0
- data/app/assets/components/core-scroll-header-panel/README.md +4 -0
- data/app/assets/components/core-scroll-header-panel/bower.json +11 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.css +1 -0
- data/app/assets/components/core-scroll-header-panel/{core-scroll-header-panel.html.erb → core-scroll-header-panel.html} +132 -76
- data/app/assets/components/core-scroll-header-panel/demo.html +111 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo1.html +80 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo2.html +82 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo3.html +81 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo4.html +109 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo5.html +109 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo6.html +113 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo7.html +120 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo8.html +122 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo9.html +100 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg2.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg3.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg5.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg6.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg9.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/lorem-ipsum.html +42 -0
- data/app/assets/components/core-scroll-header-panel/index.html +22 -0
- data/app/assets/components/core-scroll-header-panel/metadata.html +41 -0
- data/app/assets/components/core-selection/README.md +4 -0
- data/app/assets/components/core-selection/bower.json +7 -0
- data/app/assets/components/core-selection/core-selection.html +6 -5
- data/app/assets/components/core-selection/demo.html +59 -0
- data/app/assets/components/core-selection/index.html +22 -0
- data/app/assets/components/core-selector/README.md +4 -0
- data/app/assets/components/core-selector/bower.json +8 -0
- data/app/assets/components/core-selector/{core-selector.html.erb → core-selector.html} +53 -16
- data/app/assets/components/core-selector/demo.html +106 -0
- data/app/assets/components/core-selector/index.html +22 -0
- data/app/assets/components/core-selector/metadata.html +20 -0
- data/app/assets/components/core-shared-lib/README.md +4 -0
- data/app/assets/components/core-shared-lib/bower.json +7 -0
- data/app/assets/components/core-shared-lib/core-shared-lib.html +21 -20
- data/app/assets/components/core-shared-lib/demo.html +33 -0
- data/app/assets/components/core-shared-lib/index.html +22 -0
- data/app/assets/components/core-signals/README.md +4 -0
- data/app/assets/components/core-signals/bower.json +7 -0
- data/app/assets/components/core-signals/core-signals.html +7 -6
- data/app/assets/components/core-signals/demo.html +53 -0
- data/app/assets/components/core-signals/index.html +22 -0
- data/app/assets/components/core-splitter/README.md +4 -0
- data/app/assets/components/core-splitter/bower.json +7 -0
- data/app/assets/components/core-splitter/{core-splitter.css.erb → core-splitter.css} +2 -2
- data/app/assets/components/core-splitter/{core-splitter.html.erb → core-splitter.html} +13 -25
- data/app/assets/components/core-splitter/demo.html +80 -0
- data/app/assets/components/core-splitter/index.html +22 -0
- data/app/assets/components/core-style/README.md +4 -0
- data/app/assets/components/core-style/bower.json +7 -0
- data/app/assets/components/core-style/core-style.html +19 -17
- data/app/assets/components/core-style/demo.html +58 -0
- data/app/assets/components/core-style/elements.html +55 -0
- data/app/assets/components/core-style/index.html +22 -0
- data/app/assets/components/core-style/my-theme.html +73 -0
- data/app/assets/components/core-tests/README.md +4 -0
- data/app/assets/components/core-tests/bower.json +7 -0
- data/app/assets/components/core-tests/runner.html +29 -0
- data/app/assets/components/core-tests/tests/core-ajax.html +49 -0
- data/app/assets/components/core-tests/tests/core-collapse.html +68 -0
- data/app/assets/components/core-tests/tests/core-localstorage.html +38 -0
- data/app/assets/components/core-tests/tests/core-selection-multi.html +55 -0
- data/app/assets/components/core-tests/tests/core-selection.html +54 -0
- data/app/assets/components/core-tests/tests/core-selector-activate-event.html +50 -0
- data/app/assets/components/core-tests/tests/core-selector-basic.html +105 -0
- data/app/assets/components/core-tests/tests/core-selector-multi.html +86 -0
- data/app/assets/components/core-tests/tests/core-shared-lib.html +48 -0
- data/app/assets/components/core-tests/tests/tests.html +46 -0
- data/app/assets/components/core-toolbar/README.md +4 -0
- data/app/assets/components/core-toolbar/bower.json +7 -0
- data/app/assets/components/core-toolbar/core-toolbar.css +1 -17
- data/app/assets/components/core-toolbar/{core-toolbar.html.erb → core-toolbar.html} +6 -5
- data/app/assets/components/core-toolbar/demo.html +107 -0
- data/app/assets/components/core-toolbar/index.html +22 -0
- data/app/assets/components/core-toolbar/metadata.html +28 -0
- data/app/assets/components/core-tooltip/README.md +4 -0
- data/app/assets/components/core-tooltip/bower.json +7 -0
- data/app/assets/components/core-tooltip/core-tooltip.css +2 -2
- data/app/assets/components/core-tooltip/{core-tooltip.html.erb → core-tooltip.html} +3 -3
- data/app/assets/components/core-tooltip/demo.html +176 -0
- data/app/assets/components/core-tooltip/index.html +23 -0
- data/app/assets/components/core-tooltip/metadata.html +18 -0
- data/app/assets/components/core-transition/README.md +2 -0
- data/app/assets/components/core-transition/bower.json +8 -0
- data/app/assets/components/core-transition/core-transition-css.html +221 -0
- data/app/assets/components/core-transition/core-transition.html +140 -0
- data/app/assets/components/core-transition/demo.html +87 -0
- data/app/assets/components/core-transition/index.html +22 -0
- data/app/assets/components/google-code-prettify/CHANGES.html +172 -0
- data/app/assets/components/google-code-prettify/COPYING +191 -0
- data/app/assets/components/google-code-prettify/README-zh-Hans.html +143 -0
- data/app/assets/components/google-code-prettify/README.html +233 -0
- data/app/assets/components/google-code-prettify/README.md +54 -0
- data/app/assets/components/google-code-prettify/bin/prettify.min.css +1 -0
- data/app/assets/components/google-code-prettify/bin/prettify.min.js +30 -0
- data/app/assets/components/google-code-prettify/bin/run_prettify.min.js +34 -0
- data/app/assets/components/google-code-prettify/bower.json +16 -0
- data/app/assets/components/google-code-prettify/examples/quine.html +55 -0
- data/app/assets/components/google-code-prettify/src/lang-apollo.js +51 -0
- data/app/assets/components/google-code-prettify/src/lang-basic.js +32 -0
- data/app/assets/components/google-code-prettify/src/lang-clj.js +64 -0
- data/app/assets/components/google-code-prettify/src/lang-css.js +159 -0
- data/app/assets/components/google-code-prettify/src/lang-dart.js +88 -0
- data/app/assets/components/google-code-prettify/src/lang-erlang.js +92 -0
- data/app/assets/components/google-code-prettify/src/lang-go.js +58 -0
- data/app/assets/components/google-code-prettify/src/lang-hs.js +101 -0
- data/app/assets/components/google-code-prettify/src/lang-lisp.js +94 -0
- data/app/assets/components/google-code-prettify/src/lang-llvm.js +61 -0
- data/app/assets/components/google-code-prettify/src/lang-lua.js +59 -0
- data/app/assets/components/google-code-prettify/src/lang-matlab.js +180 -0
- data/app/assets/components/google-code-prettify/src/lang-ml.js +56 -0
- data/app/assets/components/google-code-prettify/src/lang-mumps.js +139 -0
- data/app/assets/components/google-code-prettify/src/lang-n.js +65 -0
- data/app/assets/components/google-code-prettify/src/lang-pascal.js +32 -0
- data/app/assets/components/google-code-prettify/src/lang-proto.js +35 -0
- data/app/assets/components/google-code-prettify/src/lang-r.js +57 -0
- data/app/assets/components/google-code-prettify/src/lang-rd.js +47 -0
- data/app/assets/components/google-code-prettify/src/lang-scala.js +54 -0
- data/app/assets/components/google-code-prettify/src/lang-sql.js +58 -0
- data/app/assets/components/google-code-prettify/src/lang-tcl.js +62 -0
- data/app/assets/components/google-code-prettify/src/lang-tex.js +46 -0
- data/app/assets/components/google-code-prettify/src/lang-vb.js +66 -0
- data/app/assets/components/google-code-prettify/src/lang-vhdl.js +34 -0
- data/app/assets/components/google-code-prettify/src/lang-wiki.js +53 -0
- data/app/assets/components/google-code-prettify/src/lang-xq.js +67 -0
- data/app/assets/components/google-code-prettify/src/lang-yaml.js +27 -0
- data/app/assets/components/google-code-prettify/src/prettify.css +52 -0
- data/app/assets/components/google-code-prettify/src/prettify.js +1597 -0
- data/app/assets/components/google-code-prettify/src/run_prettify.js +1905 -0
- data/app/assets/components/google-code-prettify/styles/demo.html +61 -0
- data/app/assets/components/google-code-prettify/styles/desert.css +34 -0
- data/app/assets/components/google-code-prettify/styles/doxy.css +64 -0
- data/app/assets/components/google-code-prettify/styles/index.html +89 -0
- data/app/assets/components/google-code-prettify/styles/sons-of-obsidian.css +118 -0
- data/app/assets/components/google-code-prettify/styles/sunburst.css +51 -0
- data/app/assets/components/marked/LICENSE +19 -0
- data/app/assets/components/marked/Makefile +12 -0
- data/app/assets/components/marked/README.md +386 -0
- data/app/assets/components/marked/bin/marked +187 -0
- data/app/assets/components/marked/component.json +10 -0
- data/app/assets/components/marked/doc/broken.md +426 -0
- data/app/assets/components/marked/doc/todo.md +2 -0
- data/app/assets/components/marked/index.js +1 -0
- data/app/assets/components/marked/lib/marked.js +1266 -0
- data/app/assets/components/marked/man/marked.1 +88 -0
- data/app/assets/components/marked/package.json +22 -0
- data/app/assets/components/marked/test/README +10 -0
- data/app/assets/components/marked/test/browser/index.html +5 -0
- data/app/assets/components/marked/test/browser/index.js +41 -0
- data/app/assets/components/marked/test/browser/test.js +62 -0
- data/app/assets/components/marked/test/index.js +543 -0
- data/app/assets/components/marked/test/new/autolink_lines.html +3 -0
- data/app/assets/components/marked/test/new/autolink_lines.text +2 -0
- data/app/assets/components/marked/test/new/blockquote_list_item.html +3 -0
- data/app/assets/components/marked/test/new/blockquote_list_item.text +4 -0
- data/app/assets/components/marked/test/new/case_insensitive_refs.html +1 -0
- data/app/assets/components/marked/test/new/case_insensitive_refs.text +3 -0
- data/app/assets/components/marked/test/new/def_blocks.html +28 -0
- data/app/assets/components/marked/test/new/def_blocks.text +21 -0
- data/app/assets/components/marked/test/new/double_link.html +5 -0
- data/app/assets/components/marked/test/new/double_link.text +5 -0
- data/app/assets/components/marked/test/new/escaped_angles.html +1 -0
- data/app/assets/components/marked/test/new/escaped_angles.text +1 -0
- data/app/assets/components/marked/test/new/gfm_break.breaks.html +1 -0
- data/app/assets/components/marked/test/new/gfm_break.breaks.text +3 -0
- data/app/assets/components/marked/test/new/gfm_code.html +5 -0
- data/app/assets/components/marked/test/new/gfm_code.text +16 -0
- data/app/assets/components/marked/test/new/gfm_code_hr_list.html +52 -0
- data/app/assets/components/marked/test/new/gfm_code_hr_list.text +53 -0
- data/app/assets/components/marked/test/new/gfm_del.html +1 -0
- data/app/assets/components/marked/test/new/gfm_del.text +1 -0
- data/app/assets/components/marked/test/new/gfm_em.html +1 -0
- data/app/assets/components/marked/test/new/gfm_em.text +1 -0
- data/app/assets/components/marked/test/new/gfm_links.html +2 -0
- data/app/assets/components/marked/test/new/gfm_links.text +1 -0
- data/app/assets/components/marked/test/new/gfm_tables.html +37 -0
- data/app/assets/components/marked/test/new/gfm_tables.text +21 -0
- data/app/assets/components/marked/test/new/hr_list_break.html +10 -0
- data/app/assets/components/marked/test/new/hr_list_break.text +6 -0
- data/app/assets/components/marked/test/new/lazy_blockquotes.html +4 -0
- data/app/assets/components/marked/test/new/lazy_blockquotes.text +2 -0
- data/app/assets/components/marked/test/new/list_item_text.html +1 -0
- data/app/assets/components/marked/test/new/list_item_text.text +5 -0
- data/app/assets/components/marked/test/new/loose_lists.html +62 -0
- data/app/assets/components/marked/test/new/loose_lists.text +59 -0
- data/app/assets/components/marked/test/new/main.html +4 -0
- data/app/assets/components/marked/test/new/main.text +55 -0
- data/app/assets/components/marked/test/new/nested_code.html +1 -0
- data/app/assets/components/marked/test/new/nested_code.text +1 -0
- data/app/assets/components/marked/test/new/nested_em.html +3 -0
- data/app/assets/components/marked/test/new/nested_em.text +3 -0
- data/app/assets/components/marked/test/new/nested_square_link.html +1 -0
- data/app/assets/components/marked/test/new/nested_square_link.text +1 -0
- data/app/assets/components/marked/test/new/not_a_link.html +1 -0
- data/app/assets/components/marked/test/new/not_a_link.text +1 -0
- data/app/assets/components/marked/test/new/ref_paren.html +1 -0
- data/app/assets/components/marked/test/new/ref_paren.text +3 -0
- data/app/assets/components/marked/test/new/same_bullet.html +5 -0
- data/app/assets/components/marked/test/new/same_bullet.text +3 -0
- data/app/assets/components/marked/test/new/text.smartypants.html +6 -0
- data/app/assets/components/marked/test/new/text.smartypants.text +6 -0
- data/app/assets/components/marked/test/new/toplevel_paragraphs.gfm.html +34 -0
- data/app/assets/components/marked/test/new/toplevel_paragraphs.gfm.text +37 -0
- data/app/assets/components/marked/test/new/tricky_list.html +23 -0
- data/app/assets/components/marked/test/new/tricky_list.text +15 -0
- data/app/assets/components/marked/test/original/amps_and_angles_encoding.html +17 -0
- data/app/assets/components/marked/test/original/amps_and_angles_encoding.text +21 -0
- data/app/assets/components/marked/test/original/auto_links.html +18 -0
- data/app/assets/components/marked/test/original/auto_links.text +13 -0
- data/app/assets/components/marked/test/original/backslash_escapes.html +118 -0
- data/app/assets/components/marked/test/original/backslash_escapes.text +120 -0
- data/app/assets/components/marked/test/original/blockquotes_with_code_blocks.html +15 -0
- data/app/assets/components/marked/test/original/blockquotes_with_code_blocks.text +11 -0
- data/app/assets/components/marked/test/original/code_blocks.html +18 -0
- data/app/assets/components/marked/test/original/code_blocks.text +14 -0
- data/app/assets/components/marked/test/original/code_spans.html +6 -0
- data/app/assets/components/marked/test/original/code_spans.text +6 -0
- data/app/assets/components/marked/test/original/hard_wrapped_paragraphs_with_list_like_lines.html +8 -0
- data/app/assets/components/marked/test/original/hard_wrapped_paragraphs_with_list_like_lines.text +8 -0
- data/app/assets/components/marked/test/original/horizontal_rules.html +71 -0
- data/app/assets/components/marked/test/original/horizontal_rules.text +67 -0
- data/app/assets/components/marked/test/original/inline_html_advanced.html +15 -0
- data/app/assets/components/marked/test/original/inline_html_advanced.text +15 -0
- data/app/assets/components/marked/test/original/inline_html_comments.html +13 -0
- data/app/assets/components/marked/test/original/inline_html_comments.text +13 -0
- data/app/assets/components/marked/test/original/inline_html_simple.html +72 -0
- data/app/assets/components/marked/test/original/inline_html_simple.text +69 -0
- data/app/assets/components/marked/test/original/links_inline_style.html +15 -0
- data/app/assets/components/marked/test/original/links_inline_style.text +15 -0
- data/app/assets/components/marked/test/original/links_reference_style.html +52 -0
- data/app/assets/components/marked/test/original/links_reference_style.text +71 -0
- data/app/assets/components/marked/test/original/links_shortcut_references.html +9 -0
- data/app/assets/components/marked/test/original/links_shortcut_references.text +20 -0
- data/app/assets/components/marked/test/original/literal_quotes_in_titles.html +3 -0
- data/app/assets/components/marked/test/original/literal_quotes_in_titles.text +7 -0
- data/app/assets/components/marked/test/original/markdown_documentation_basics.html +314 -0
- data/app/assets/components/marked/test/original/markdown_documentation_basics.text +306 -0
- data/app/assets/components/marked/test/original/markdown_documentation_syntax.html +942 -0
- data/app/assets/components/marked/test/original/markdown_documentation_syntax.text +888 -0
- data/app/assets/components/marked/test/original/nested_blockquotes.html +9 -0
- data/app/assets/components/marked/test/original/nested_blockquotes.text +5 -0
- data/app/assets/components/marked/test/original/ordered_and_unordered_lists.html +148 -0
- data/app/assets/components/marked/test/original/ordered_and_unordered_lists.text +131 -0
- data/app/assets/components/marked/test/original/strong_and_em_together.html +7 -0
- data/app/assets/components/marked/test/original/strong_and_em_together.text +7 -0
- data/app/assets/components/marked/test/original/tabs.html +25 -0
- data/app/assets/components/marked/test/original/tabs.text +21 -0
- data/app/assets/components/marked/test/original/tidyness.html +8 -0
- data/app/assets/components/marked/test/original/tidyness.text +5 -0
- data/app/assets/components/marked/test/tests/amps_and_angles_encoding.html +17 -0
- data/app/assets/components/marked/test/tests/amps_and_angles_encoding.text +21 -0
- data/app/assets/components/marked/test/tests/auto_links.html +18 -0
- data/app/assets/components/marked/test/tests/auto_links.text +13 -0
- data/app/assets/components/marked/test/tests/autolink_lines.html +3 -0
- data/app/assets/components/marked/test/tests/autolink_lines.text +2 -0
- data/app/assets/components/marked/test/tests/backslash_escapes.html +118 -0
- data/app/assets/components/marked/test/tests/backslash_escapes.text +120 -0
- data/app/assets/components/marked/test/tests/blockquote_list_item.html +3 -0
- data/app/assets/components/marked/test/tests/blockquote_list_item.text +4 -0
- data/app/assets/components/marked/test/tests/blockquotes_with_code_blocks.html +15 -0
- data/app/assets/components/marked/test/tests/blockquotes_with_code_blocks.text +11 -0
- data/app/assets/components/marked/test/tests/case_insensitive_refs.html +1 -0
- data/app/assets/components/marked/test/tests/case_insensitive_refs.text +3 -0
- data/app/assets/components/marked/test/tests/code_blocks.html +18 -0
- data/app/assets/components/marked/test/tests/code_blocks.text +14 -0
- data/app/assets/components/marked/test/tests/code_spans.html +6 -0
- data/app/assets/components/marked/test/tests/code_spans.text +6 -0
- data/app/assets/components/marked/test/tests/def_blocks.html +28 -0
- data/app/assets/components/marked/test/tests/def_blocks.text +21 -0
- data/app/assets/components/marked/test/tests/double_link.html +5 -0
- data/app/assets/components/marked/test/tests/double_link.text +5 -0
- data/app/assets/components/marked/test/tests/escaped_angles.html +1 -0
- data/app/assets/components/marked/test/tests/escaped_angles.text +1 -0
- data/app/assets/components/marked/test/tests/gfm_break.breaks.html +1 -0
- data/app/assets/components/marked/test/tests/gfm_break.breaks.text +3 -0
- data/app/assets/components/marked/test/tests/gfm_code.html +5 -0
- data/app/assets/components/marked/test/tests/gfm_code.text +16 -0
- data/app/assets/components/marked/test/tests/gfm_code_hr_list.html +52 -0
- data/app/assets/components/marked/test/tests/gfm_code_hr_list.text +53 -0
- data/app/assets/components/marked/test/tests/gfm_del.html +1 -0
- data/app/assets/components/marked/test/tests/gfm_del.text +1 -0
- data/app/assets/components/marked/test/tests/gfm_em.html +1 -0
- data/app/assets/components/marked/test/tests/gfm_em.text +1 -0
- data/app/assets/components/marked/test/tests/gfm_links.html +2 -0
- data/app/assets/components/marked/test/tests/gfm_links.text +1 -0
- data/app/assets/components/marked/test/tests/gfm_tables.html +37 -0
- data/app/assets/components/marked/test/tests/gfm_tables.text +21 -0
- data/app/assets/components/marked/test/tests/hard_wrapped_paragraphs_with_list_like_lines.nogfm.html +8 -0
- data/app/assets/components/marked/test/tests/hard_wrapped_paragraphs_with_list_like_lines.nogfm.text +8 -0
- data/app/assets/components/marked/test/tests/horizontal_rules.html +71 -0
- data/app/assets/components/marked/test/tests/horizontal_rules.text +67 -0
- data/app/assets/components/marked/test/tests/hr_list_break.html +10 -0
- data/app/assets/components/marked/test/tests/hr_list_break.text +6 -0
- data/app/assets/components/marked/test/tests/inline_html_advanced.html +15 -0
- data/app/assets/components/marked/test/tests/inline_html_advanced.text +15 -0
- data/app/assets/components/marked/test/tests/inline_html_comments.html +13 -0
- data/app/assets/components/marked/test/tests/inline_html_comments.text +13 -0
- data/app/assets/components/marked/test/tests/inline_html_simple.html +72 -0
- data/app/assets/components/marked/test/tests/inline_html_simple.text +69 -0
- data/app/assets/components/marked/test/tests/lazy_blockquotes.html +4 -0
- data/app/assets/components/marked/test/tests/lazy_blockquotes.text +2 -0
- data/app/assets/components/marked/test/tests/links_inline_style.html +15 -0
- data/app/assets/components/marked/test/tests/links_inline_style.text +15 -0
- data/app/assets/components/marked/test/tests/links_reference_style.html +52 -0
- data/app/assets/components/marked/test/tests/links_reference_style.text +71 -0
- data/app/assets/components/marked/test/tests/links_shortcut_references.html +9 -0
- data/app/assets/components/marked/test/tests/links_shortcut_references.text +20 -0
- data/app/assets/components/marked/test/tests/list_item_text.html +1 -0
- data/app/assets/components/marked/test/tests/list_item_text.text +5 -0
- data/app/assets/components/marked/test/tests/literal_quotes_in_titles.html +3 -0
- data/app/assets/components/marked/test/tests/literal_quotes_in_titles.text +7 -0
- data/app/assets/components/marked/test/tests/loose_lists.html +62 -0
- data/app/assets/components/marked/test/tests/loose_lists.text +59 -0
- data/app/assets/components/marked/test/tests/main.html +4 -0
- data/app/assets/components/marked/test/tests/main.text +55 -0
- data/app/assets/components/marked/test/tests/markdown_documentation_basics.html +314 -0
- data/app/assets/components/marked/test/tests/markdown_documentation_basics.text +306 -0
- data/app/assets/components/marked/test/tests/markdown_documentation_syntax.html +942 -0
- data/app/assets/components/marked/test/tests/markdown_documentation_syntax.text +888 -0
- data/app/assets/components/marked/test/tests/nested_blockquotes.html +9 -0
- data/app/assets/components/marked/test/tests/nested_blockquotes.text +5 -0
- data/app/assets/components/marked/test/tests/nested_code.html +1 -0
- data/app/assets/components/marked/test/tests/nested_code.text +1 -0
- data/app/assets/components/marked/test/tests/nested_em.html +3 -0
- data/app/assets/components/marked/test/tests/nested_em.text +3 -0
- data/app/assets/components/marked/test/tests/nested_square_link.html +1 -0
- data/app/assets/components/marked/test/tests/nested_square_link.text +1 -0
- data/app/assets/components/marked/test/tests/not_a_link.html +1 -0
- data/app/assets/components/marked/test/tests/not_a_link.text +1 -0
- data/app/assets/components/marked/test/tests/ordered_and_unordered_lists.html +148 -0
- data/app/assets/components/marked/test/tests/ordered_and_unordered_lists.text +131 -0
- data/app/assets/components/marked/test/tests/ref_paren.html +1 -0
- data/app/assets/components/marked/test/tests/ref_paren.text +3 -0
- data/app/assets/components/marked/test/tests/same_bullet.html +5 -0
- data/app/assets/components/marked/test/tests/same_bullet.text +3 -0
- data/app/assets/components/marked/test/tests/strong_and_em_together.html +7 -0
- data/app/assets/components/marked/test/tests/strong_and_em_together.text +7 -0
- data/app/assets/components/marked/test/tests/tabs.html +25 -0
- data/app/assets/components/marked/test/tests/tabs.text +21 -0
- data/app/assets/components/marked/test/tests/text.smartypants.html +6 -0
- data/app/assets/components/marked/test/tests/text.smartypants.text +6 -0
- data/app/assets/components/marked/test/tests/tidyness.html +8 -0
- data/app/assets/components/marked/test/tests/tidyness.text +5 -0
- data/app/assets/components/marked/test/tests/toplevel_paragraphs.gfm.html +34 -0
- data/app/assets/components/marked/test/tests/toplevel_paragraphs.gfm.text +37 -0
- data/app/assets/components/marked/test/tests/tricky_list.html +23 -0
- data/app/assets/components/marked/test/tests/tricky_list.text +15 -0
- data/app/assets/components/marked-element/README.md +4 -0
- data/app/assets/components/marked-element/bower.json +8 -0
- data/app/assets/components/marked-element/demo.html +51 -0
- data/app/assets/components/marked-element/index.html +22 -0
- data/app/assets/components/marked-element/marked-element.html +50 -0
- data/app/assets/components/marked-element/marked-import.html +10 -0
- data/app/assets/components/platform/README.md +6 -0
- data/app/assets/components/platform/bower.json +16 -0
- data/app/assets/components/platform/build.log +35 -0
- data/app/assets/components/platform/platform.js +16 -0
- data/app/assets/components/platform/platform.js.map +1 -0
- data/app/assets/components/polymer/README.md +17 -0
- data/app/assets/components/polymer/bower.json +8 -0
- data/app/assets/components/polymer/build.log +35 -0
- data/app/assets/components/polymer/layout.html +286 -0
- data/app/assets/components/polymer/polymer.html +13 -0
- data/app/assets/components/polymer/polymer.js +14 -0
- data/app/assets/components/polymer/polymer.js.map +1 -0
- data/app/assets/components/polymer-test-tools/README.md +4 -0
- data/app/assets/components/polymer-test-tools/bower.json +5 -0
- data/app/assets/components/polymer-test-tools/chai/CONTRIBUTING.md +173 -0
- data/app/assets/components/polymer-test-tools/chai/History.md +895 -0
- data/app/assets/components/polymer-test-tools/chai/README.md +99 -0
- data/app/assets/components/polymer-test-tools/chai/ReleaseNotes.md +482 -0
- data/app/assets/components/polymer-test-tools/chai/bower.json +27 -0
- data/app/assets/components/polymer-test-tools/chai/chai.js +4782 -0
- data/app/assets/components/polymer-test-tools/chai/component.json +49 -0
- data/app/assets/components/polymer-test-tools/chai/karma.conf.js +38 -0
- data/app/assets/components/polymer-test-tools/chai/karma.sauce.js +51 -0
- data/app/assets/components/polymer-test-tools/chai/package.json +42 -0
- data/app/assets/components/polymer-test-tools/chai/sauce.browsers.js +138 -0
- data/app/assets/components/polymer-test-tools/htmltest.js +39 -0
- data/app/assets/components/polymer-test-tools/karma-common.conf.js +107 -0
- data/app/assets/components/polymer-test-tools/mocha/History.md +692 -0
- data/app/assets/components/polymer-test-tools/mocha/LICENSE +22 -0
- data/app/assets/components/polymer-test-tools/mocha/Readme.md +172 -0
- data/app/assets/components/polymer-test-tools/mocha/bower.json +23 -0
- data/app/assets/components/polymer-test-tools/mocha/media/logo.svg +8 -0
- data/app/assets/components/polymer-test-tools/mocha/mocha.css +270 -0
- data/app/assets/components/polymer-test-tools/mocha/mocha.js +5842 -0
- data/app/assets/components/polymer-test-tools/mocha-htmltest.js +70 -0
- data/app/assets/components/polymer-test-tools/tools.html +14 -0
- data/app/assets/components/prettify-element/README.md +14 -0
- data/app/assets/components/prettify-element/bower.json +8 -0
- data/app/assets/components/prettify-element/demo.html +85 -0
- data/app/assets/components/prettify-element/index.html +23 -0
- data/app/assets/components/prettify-element/prettify-element.html +120 -0
- data/app/assets/components/prettify-element/prettify-import.html +10 -0
- data/app/assets/components/sampler-scaffold/README.md +4 -0
- data/app/assets/components/sampler-scaffold/bower.json +12 -0
- data/app/assets/components/sampler-scaffold/demo.html +54 -0
- data/app/assets/components/sampler-scaffold/demos/checkbox.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/color.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/radio.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/range.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/string.html +20 -0
- data/app/assets/components/sampler-scaffold/index.html +22 -0
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +157 -0
- data/app/assets/components/sampler-scaffold/sampler-scaffold.html +224 -0
- data/app/assets/components/web-animations-js/COPYING +202 -0
- data/app/assets/components/web-animations-js/README.md +237 -0
- data/app/assets/components/web-animations-js/run-lint.sh +19 -0
- data/app/assets/components/web-animations-js/run-tests-android.sh +25 -0
- data/app/assets/components/web-animations-js/run-tests.sh +15 -0
- data/app/assets/components/web-animations-js/test/bootstrap.js +1266 -0
- data/app/assets/components/web-animations-js/test/img/error.png +0 -0
- data/app/assets/components/web-animations-js/test/img/success.png +0 -0
- data/app/assets/components/web-animations-js/test/img/unknown.png +0 -0
- data/app/assets/components/web-animations-js/test/perf/balls-add-compositing.html +147 -0
- data/app/assets/components/web-animations-js/test/perf/balls-replace-compositing.html +144 -0
- data/app/assets/components/web-animations-js/test/perf/perf.js +158 -0
- data/app/assets/components/web-animations-js/test/perf/updating-inline-style-during-animation.html +165 -0
- data/app/assets/components/web-animations-js/test/test-generator.html +240 -0
- data/app/assets/components/web-animations-js/test/test-results-post.html +3 -0
- data/app/assets/components/web-animations-js/test/test-runner.html +810 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow-checks.js +42 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow.html +40 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc-checks.js +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc.html +156 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-change-playback-rate-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path-checks.js +65 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-checks.js +101 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names-checks.js +431 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names.html +204 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color.html +117 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js +45 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms.html +97 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor.html +68 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay-checks.js +92 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay.html +39 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate-checks.js +8 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate.html +30 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values-checks.js +266 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values.html +114 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial-checks.js +74 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial.html +242 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback.html +78 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods.html +70 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style.html +69 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer-checks.js +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start-checks.js +506 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start.html +160 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-checks.js +44 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes-checks.js +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes.html +48 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate.html +50 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic-checks.js +162 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic.html +116 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill-checks.js +602 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill.html +167 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation-checks.js +67 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation.html +109 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing-checks.js +65 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing.html +64 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units-checks.js +342 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units.html +103 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js +56 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms.html +90 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path-checks.js +110 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path.html +133 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric.html +42 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent-checks.js +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes-checks.js +27 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path.html +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause-checks.js +79 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause.html +82 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-checks.js +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin-checks.js +61 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin.html +94 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective.html +79 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate-checks.js +146 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate.html +128 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-position-list-type-checks.js +73 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle.html +57 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent-checks.js +95 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent.html +60 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed-checks.js +69 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed.html +86 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand-checks.js +197 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand.html +115 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations-checks.js +92 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations.html +107 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time.html +90 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim.html +39 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle.html +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color.html +36 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow.html +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions-checks.js +89 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions.html +77 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d-checks.js +134 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d.html +123 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions-checks.js +160 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions.html +158 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin-checks.js +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives-checks.js +292 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives.html +97 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units-checks.js +202 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units.html +98 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility-checks.js +54 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug.html +60 -0
- data/app/assets/components/web-animations-js/test/testcases/background.png +0 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-change-playback-rate.html +65 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-position-list-type.html +103 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-media.html +439 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-test-compositing-order.html +112 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-deprecation.html +85 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-from-css-value.html +219 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-paced-timing-function.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html +37 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html +256 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html +57 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-preset-timings.html +71 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-step.html +88 -0
- data/app/assets/components/web-animations-js/test/testcases/small.mp4 +0 -0
- data/app/assets/components/web-animations-js/test/testcases/small.webm +0 -0
- data/app/assets/components/web-animations-js/test/testcases/test-bounds.html +69 -0
- data/app/assets/components/web-animations-js/test/testcases/test-document-timeline.html +53 -0
- data/app/assets/components/web-animations-js/test/testcases/test-dynamic-load.html +65 -0
- data/app/assets/components/web-animations-js/test/testcases/test-fill-auto.html +78 -0
- data/app/assets/components/web-animations-js/test/testcases/test-getcurrent.html +324 -0
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-animation-effect.html +248 -0
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-composite-operation.html +182 -0
- data/app/assets/components/web-animations-js/test/testcases/test-null-target.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/test-pause-for-testing.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-addeventlistener.html +161 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-cleanup.html +79 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-finish-event.html +101 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-sort.html +48 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player.html +786 -0
- data/app/assets/components/web-animations-js/test/testcases/test-pseudo-element-reference.html +38 -0
- data/app/assets/components/web-animations-js/test/testcases/test-repeated-pause.html +54 -0
- data/app/assets/components/web-animations-js/test/testcases/test-restart.html +115 -0
- data/app/assets/components/web-animations-js/test/testcases/test-reversed-player-active-phase.html +28 -0
- data/app/assets/components/web-animations-js/test/testcases/test-rotation-not-reversed.html +55 -0
- data/app/assets/components/web-animations-js/test/testcases/test-update-state.html +113 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-clone.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-delay.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-dom-operations.html +164 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-duration.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-get-siblings.html +112 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html +105 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-null-effect.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-set-parent.html +111 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness-failure.html +54 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness.html +248 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-unpause.html +68 -0
- data/app/assets/components/web-animations-js/test/testcases.js +93 -0
- data/app/assets/components/web-animations-js/test/testharness_timing.css +75 -0
- data/app/assets/components/web-animations-js/test/update-testcases.py +63 -0
- data/app/assets/components/web-animations-js/tools/android/config.sh +8 -0
- data/app/assets/components/web-animations-js/tools/android/setup.sh +152 -0
- data/app/assets/components/web-animations-js/tools/android/stop.sh +20 -0
- data/app/assets/components/web-animations-js/tools/python/requirements.txt +12 -0
- data/app/assets/components/web-animations-js/tools/python/run-tests.py +813 -0
- data/app/assets/components/web-animations-js/tools/python/setup.sh +60 -0
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation-exercise-1.html +62 -0
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation.html +120 -0
- data/app/assets/components/web-animations-js/tutorial/iframe-contents.html +29 -0
- data/app/assets/components/web-animations-js/tutorial/jquery.js +9555 -0
- data/app/assets/components/web-animations-js/tutorial/page-load.js +114 -0
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel-exercise-1.html +58 -0
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel.html +101 -0
- data/app/assets/components/web-animations-js/tutorial/sample-tutorial.html +44 -0
- data/app/assets/components/web-animations-js/tutorial/try-it-yourself.js +216 -0
- data/app/assets/components/web-animations-js/tutorial/tutorial-style.css +344 -0
- data/app/assets/components/web-animations-js/tutorial/tutorial-testing.js +84 -0
- data/app/assets/components/web-animations-js/web-animations.js +77 -214
- data/lib/polymer-core-rails/version.rb +1 -1
- metadata +833 -46
- data/app/assets/components/core-animation/web-animations.html.erb +0 -1
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html.erb +0 -150
- data/app/assets/components/core-icon/core-icon.html.erb +0 -126
- data/app/assets/components/core-input/core-input.html.erb +0 -311
- data/app/assets/components/core-menu-button/core-menu-button.html.erb +0 -139
- data/app/assets/components/core-transition/core-transition-css.html.erb +0 -76
- data/app/assets/components/core-transition/core-transition.html.erb +0 -44
@@ -0,0 +1,22 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<!--
|
3
|
+
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
4
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
|
5
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS
|
6
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
|
7
|
+
Code distributed by Google as part of the polymer project is also
|
8
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
|
9
|
+
-->
|
10
|
+
<html>
|
11
|
+
<head>
|
12
|
+
|
13
|
+
<script src="../platform/platform.js"></script>
|
14
|
+
<link rel="import" href="../core-component-page/core-component-page.html">
|
15
|
+
|
16
|
+
</head>
|
17
|
+
<body unresolved>
|
18
|
+
|
19
|
+
<core-component-page sources='["core-transition.html","../core-meta/core-meta.html","core-transition-css.html"]'></core-component-page>
|
20
|
+
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,172 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4
|
+
<title>Change Log</title>
|
5
|
+
</head>
|
6
|
+
<body bgcolor="white">
|
7
|
+
<a style="float:right" href="README.html">README</a>
|
8
|
+
|
9
|
+
<h1>Known Issues</h1>
|
10
|
+
<ul>
|
11
|
+
<li>Perl formatting is really crappy. Partly because the author is lazy and
|
12
|
+
partly because Perl is
|
13
|
+
<a href="http://www.perlmonks.org/?node_id=663393">hard</a> to parse.
|
14
|
+
<li>On some browsers, <code><code></code> elements with newlines in the text
|
15
|
+
which use CSS to specify <code>white-space:pre</code> will have the newlines
|
16
|
+
improperly stripped if the element is not attached to the document at the time
|
17
|
+
the stripping is done. Also, on IE 6, all newlines will be stripped from
|
18
|
+
<code><code></code> elements because of the way IE6 produces
|
19
|
+
<code>innerHTML</code>. Workaround: use <code><pre></code> for code with
|
20
|
+
newlines.
|
21
|
+
</ul>
|
22
|
+
|
23
|
+
<h1>Change Log</h1>
|
24
|
+
<h2>29 March 2007</h2>
|
25
|
+
<ul>
|
26
|
+
<li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support
|
27
|
+
to address
|
28
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3"
|
29
|
+
>issue 3</a>.
|
30
|
+
<li>Fixed
|
31
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=6"
|
32
|
+
>bug</a>: <code>prettyPrintOne</code> was not halting. This was not
|
33
|
+
reachable through the normal entry point.
|
34
|
+
<li>Fixed
|
35
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
|
36
|
+
>bug</a>: recursing into a script block or PHP tag that was not properly
|
37
|
+
closed would not silently drop the content.
|
38
|
+
(<a href="tests/prettify_test.html#issue4">test</a>)
|
39
|
+
<li>Fixed
|
40
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=8"
|
41
|
+
>bug</a>: was eating tabs
|
42
|
+
(<a href="tests/prettify_test.html#issue8">test</a>)
|
43
|
+
<li>Fixed entity handling so that the caveat
|
44
|
+
<blockquote>
|
45
|
+
<p>Caveats: please properly escape less-thans. <tt>x&lt;y</tt>
|
46
|
+
instead of <tt>x<y</tt>, and use <tt>"</tt> instead of
|
47
|
+
<tt>&quot;</tt> for string delimiters.</p>
|
48
|
+
</blockquote>
|
49
|
+
is no longer applicable.
|
50
|
+
<li>Added noisefree's C#
|
51
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
|
52
|
+
>patch</a>
|
53
|
+
<li>Added a <a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">distribution</a> that has comments and
|
54
|
+
whitespace removed to reduce download size from 45.5kB to 12.8kB.
|
55
|
+
</ul>
|
56
|
+
<h2>4 Jul 2008</h2>
|
57
|
+
<ul>
|
58
|
+
<li>Added <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=17">language specific formatters</a> that are triggered by the presence
|
59
|
+
of a <code>lang-<language-file-extension></code></li>
|
60
|
+
<li>Fixed <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=29">bug</a>: python handling of <code>'''string'''</code>
|
61
|
+
<li>Fixed bug: <code>/</code> in regex <code>[charsets] should not end regex</code>
|
62
|
+
</ul>
|
63
|
+
<h2>5 Jul 2008</h2>
|
64
|
+
<ul>
|
65
|
+
<li>Defined language extensions for Lisp and Lua</code>
|
66
|
+
</ul>
|
67
|
+
<h2>14 Jul 2008</h2>
|
68
|
+
<ul>
|
69
|
+
<li>Language handlers for F#, OCAML, SQL</code>
|
70
|
+
<li>Support for <code>nocode</code> spans to allow embedding of line
|
71
|
+
numbers and code annotations which should not be styled or otherwise
|
72
|
+
affect the tokenization of prettified code.
|
73
|
+
See the issue 22
|
74
|
+
<a href="tests/prettify_test.html#issue22">testcase</a>.</code>
|
75
|
+
</ul>
|
76
|
+
<h2>6 Jan 2009</h2>
|
77
|
+
<ul>
|
78
|
+
<li>Language handlers for Visual Basic, Haskell, CSS, and WikiText</li>
|
79
|
+
<li>Added <tt>.mxml</tt> extension to the markup style handler for
|
80
|
+
Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See
|
81
|
+
<a
|
82
|
+
href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
|
83
|
+
>issue 37</a>.
|
84
|
+
<li>Added <tt>.m</tt> extension to the C style handler so that Objective
|
85
|
+
C source files properly highlight. See
|
86
|
+
<a
|
87
|
+
href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
|
88
|
+
>issue 58</a>.
|
89
|
+
<li>Changed HTML lexer to use the same embedded source mechanism as the
|
90
|
+
wiki language handler, and changed to use the registered
|
91
|
+
CSS handler for STYLE element content.
|
92
|
+
</ul>
|
93
|
+
<h2>21 May 2009</h2>
|
94
|
+
<ul>
|
95
|
+
<li>Rewrote to improve performance on large files.
|
96
|
+
See <a href="http://mikesamuel.blogspot.com/2009/05/efficient-parsing-in-javascript.html">benchmarks</a>.</li>
|
97
|
+
<li>Fixed bugs with highlighting of Haskell line comments, Lisp
|
98
|
+
number literals, Lua strings, C preprocessor directives,
|
99
|
+
newlines in Wiki code on Windows, and newlines in IE6.</li>
|
100
|
+
</ul>
|
101
|
+
<h2>14 August 2009</h2>
|
102
|
+
<ul>
|
103
|
+
<li>Fixed prettifying of <code><code></code> blocks with embedded newlines.
|
104
|
+
</ul>
|
105
|
+
<h2>3 October 2009</h2>
|
106
|
+
<ul>
|
107
|
+
<li>Fixed prettifying of XML/HTML tags that contain uppercase letters.
|
108
|
+
</ul>
|
109
|
+
<h2>19 July 2010</h2>
|
110
|
+
<ul>
|
111
|
+
<li>Added support for line numbers. Bug
|
112
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22"
|
113
|
+
>22</a></li>
|
114
|
+
<li>Added YAML support. Bug
|
115
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123"
|
116
|
+
>123</a></li>
|
117
|
+
<li>Added VHDL support courtesy Le Poussin.</li>
|
118
|
+
<li>IE performance improvements. Bug
|
119
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=102"
|
120
|
+
>102</a> courtesy jacobly.</li>
|
121
|
+
<li>A variety of markup formatting fixes courtesy smain and thezbyg.</li>
|
122
|
+
<li>Fixed copy and paste in IE[678].
|
123
|
+
<li>Changed output to use <code>&#160;</code> instead of
|
124
|
+
<code>&nbsp;</code> so that the output works when embedded in XML.
|
125
|
+
Bug
|
126
|
+
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108"
|
127
|
+
>108</a>.</li>
|
128
|
+
</ul>
|
129
|
+
<h2>7 September 2010</h2>
|
130
|
+
<ul>
|
131
|
+
<li>Added support for coffeescript courtesy Cezary Bartoszuk.</li>
|
132
|
+
</ul>
|
133
|
+
<h2>4 March 2011</h2>
|
134
|
+
<ul>
|
135
|
+
<li>Added a <a href="http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html">themes
|
136
|
+
gallery</a> to showcase contributed styles.</li>
|
137
|
+
<li>Added support for XQuery courtesy Patrick Wied, Nemerle
|
138
|
+
courtesy Zimin A.V., and Latex support courtesy Martin S.</li>
|
139
|
+
</ul>
|
140
|
+
<h2>29 March 2011</h2>
|
141
|
+
<ul>
|
142
|
+
<li>Fixed IE newline issues, and copying/pasting of prettified
|
143
|
+
source code from IE. This required significant internal changes
|
144
|
+
but involves no API changes.
|
145
|
+
<b>Caveat:</b> <code>prettyPrintOne</code> injects the HTML
|
146
|
+
passed to it into a <code><pre></code> element.
|
147
|
+
If the HTML comes from a trusted source, this may allow XSS.
|
148
|
+
Do not do this. This should not be a problem for existing apps
|
149
|
+
since the standard usage is to rewrite the HTML and then inject
|
150
|
+
it, so anyone doing that with untrusted HTML already has an XSS
|
151
|
+
vulnerability. If you sanitize and prettify HTML from an
|
152
|
+
untrusted source, sanitize first.
|
153
|
+
</ul>
|
154
|
+
<h2>4 February 2013</h2>
|
155
|
+
<ul>
|
156
|
+
<li>Language handlers for Dart, Erlang, Mumps, TCL, R, S., and others</li>
|
157
|
+
<li>Bug fix: VB REM style comments.</li>
|
158
|
+
<li>Bug fix: CSS color literals / ID selector confusion.</li>
|
159
|
+
<li>Bug fix: IE8 line breaks.</li>
|
160
|
+
</ul>
|
161
|
+
<h2>24 February 2013</h2>
|
162
|
+
<ul>
|
163
|
+
<li>Added a one script autoload&run mechanism and a way to
|
164
|
+
embed hints in processing instructions/comments.
|
165
|
+
See <a href="examples/quine.html">example</a>.
|
166
|
+
</ul>
|
167
|
+
<h2>4 March 2013</h2>
|
168
|
+
<ul>
|
169
|
+
<li>Matlab language handler courtesy Amro³</li>
|
170
|
+
</ul>
|
171
|
+
</body>
|
172
|
+
</html>
|
@@ -0,0 +1,191 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
Copyright 2011 Mike Samuel et al
|
180
|
+
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
182
|
+
you may not use this file except in compliance with the License.
|
183
|
+
You may obtain a copy of the License at
|
184
|
+
|
185
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
186
|
+
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
190
|
+
See the License for the specific language governing permissions and
|
191
|
+
limitations under the License.
|
@@ -0,0 +1,143 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
<html>
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="content-type" value="text/html; charset=UTF-8" />
|
7
|
+
<title>Javascript code prettifier</title>
|
8
|
+
|
9
|
+
<link href="src/prettify.css" type="text/css" rel="stylesheet" />
|
10
|
+
|
11
|
+
<script src="src/prettify.js" type="text/javascript"></script>
|
12
|
+
|
13
|
+
<style type="text/css">
|
14
|
+
body { margin-left: .5in }
|
15
|
+
h1, h2, h3, h4, .footer { margin-left: -.4in; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body onload="prettyPrint()" bgcolor="white">
|
20
|
+
<h1>Javascript code prettifier</h1>
|
21
|
+
<h1>Javascript 代码美容师</h1>
|
22
|
+
<h2>安装使用</h2>
|
23
|
+
<ol>
|
24
|
+
<li><a href="http://google-code-prettify.googlecode.com/files/prettify-small-5-Jul-2008.zip">下载</a> 文件
|
25
|
+
<li>在你的文件中包含这儿的脚本和样式表(你要保证这儿的 css 和 js 文件按在你的服务器上, 并且调整在 <tt>script</tt> 和 <tt>link</tt>标签中的路径)
|
26
|
+
<pre class="prettyprint">
|
27
|
+
<link href="prettify.css" type="text/css" rel="stylesheet" />
|
28
|
+
<script type="text/javascript" src="prettify.js"></script></pre>
|
29
|
+
<li>添加<code class="prettyprint">onload="prettyPrint()"</code> 到你的文件的 body 标签中.
|
30
|
+
<li>修改样式表,使用你自己喜欢的颜色.</li>
|
31
|
+
</ol>
|
32
|
+
|
33
|
+
<h2>使用方法<br></h2>
|
34
|
+
<p>在
|
35
|
+
<tt><pre class="prettyprint">...</pre></tt> 或 <tt><code class="prettyprint">...</code></tt>
|
36
|
+
中间放上代码片段,它就会自动被美化了.
|
37
|
+
|
38
|
+
<table summary="code examples">
|
39
|
+
<tr>
|
40
|
+
<th>The original
|
41
|
+
<th>Prettier
|
42
|
+
<tr>
|
43
|
+
<td><pre style="border: 1px solid #888;padding: 2px"
|
44
|
+
><a name="voila1"></a>class Voila {
|
45
|
+
public:
|
46
|
+
// Voila
|
47
|
+
static const string VOILA = "Voila";
|
48
|
+
|
49
|
+
// will not interfere with embedded <a href="#voila1">tags</a>.
|
50
|
+
}</pre>
|
51
|
+
|
52
|
+
<td><pre class="prettyprint"><a name="voila2"></a>class Voila {
|
53
|
+
public:
|
54
|
+
// Voila
|
55
|
+
static const string VOILA = "Voila";
|
56
|
+
|
57
|
+
// will not interfere with embedded <a href="#voila2">tags</a>.
|
58
|
+
}</pre>
|
59
|
+
</table>
|
60
|
+
|
61
|
+
|
62
|
+
<h2>常见问题</h2>
|
63
|
+
<h3 id="langs">它是为什么语言工作的?</h3>
|
64
|
+
<p><tt>prettify.js中的注释是权威的,但是它的语法分析程序可以在很多语言中使用</tt>,包括 C ,
|
65
|
+
Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, 和 Makefiles.
|
66
|
+
它在 Ruby, PHP, VB, 和 Awk 中还算可以,而且也可以在 Perl 和 Ruby的合适子集中起作用,但是, 因为注释的约定,它对
|
67
|
+
Smalltalk, 或 CAML类似的语言起作用.<br></p>
|
68
|
+
|
69
|
+
|
70
|
+
<p>LISP系列的语言可以使用一个拓展<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lisp.js"><code>lang-lisp.js</code></a>.</p><p>对于 <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-css"><code>CSS</code></a>,
|
71
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs"><code>Haskell</code></a>,
|
72
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js"><code>Lua</code></a>,
|
73
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-ml.js"><code>OCAML, SML, F#</code></a>,
|
74
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vb.js"><code>Visual Basic</code></a>,
|
75
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-sql.js"><code>SQL</code></a>,
|
76
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-proto.js"><code>Protocol Buffers</code></a>, 和
|
77
|
+
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-wiki.js"><code>WikiText</code></a>..也是类似的</p><p>如果你想给你喜欢的语言写个拓展版本, 请参阅<tt>src/lang-lisp.js</tt> ,并写一个包括你的语言的拓展的 <a href="http://code.google.com/p/google-code-prettify/issues/list"
|
78
|
+
>发布</a> 和一个测试用例.</p>
|
79
|
+
|
80
|
+
<h3>如何指定我的代码在哪种语言里?</h3>
|
81
|
+
<p>你不需要指定语言环境,因为 <code>prettyprint()</code>
|
82
|
+
会对此进行猜测. 你可以使用<code> prettyprint </code>这个类通过指定语言的拓展名来指定语言,就像这样:</p>
|
83
|
+
<pre class="prettyprint lang-html"
|
84
|
+
><pre class="prettyprint <b>lang-html</b>">
|
85
|
+
The lang-* class specifies the language file extensions.
|
86
|
+
File extensions supported by default include
|
87
|
+
"bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
|
88
|
+
"java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
|
89
|
+
"xhtml", "xml", "xsl".
|
90
|
+
</pre></pre>
|
91
|
+
|
92
|
+
<h3>它在混淆代码例子上不起作用吗?</h3>
|
93
|
+
<p>是的. 美化混淆代码就像给小猪涂口红,也就是不在这个工具的范围内. <br></p>
|
94
|
+
|
95
|
+
<h3>它可以在那些浏览器上工作?</h3>
|
96
|
+
<p>这个工具已经在 IE 6, Firefox 1.5 & 2, 和 Safari 2.0.4 上测试通过. 打开 <a href="tests/prettify_test.html">测试页面</a> ,看看它能不能在你的浏览器上起作用.</p>
|
97
|
+
|
98
|
+
<h3>有什么改变?</h3>
|
99
|
+
<p>查看 <a href="CHANGES.html">变化日志</a></p>
|
100
|
+
|
101
|
+
<h3> 为什么Prettyprinting 对WordPress中的字符串没用?</h3>
|
102
|
+
<p>很显然,wordpress 在 "smart quoting" 时会改变关闭符号.
|
103
|
+
这使得关闭符号跟开始符号不配套.
|
104
|
+
<p>这和复制粘贴代码一样,破坏了美化作用. 去
|
105
|
+
<a href="http://wordpress.org/support/topic/125038"
|
106
|
+
>WordPress's help center</a> 查看更多关于如何关闭插入代码段时的"smart quoting"的信息.</p>
|
107
|
+
|
108
|
+
<h3>如何在我的代码中加入行号? (Out of date -- see <a href="README.html">English version</a>)</h3>
|
109
|
+
<p>你可以使用 <code>nocode</code> 类来标记 span 标记不是代码.
|
110
|
+
<pre><pre class=prettyprint>
|
111
|
+
<span class="<b>nocode</b>">1:</span> /* This is line 1 of my code
|
112
|
+
<span class="<b>nocode</b>">2:</span> * and here's line 2 */
|
113
|
+
<span class="<b>nocode</b>">3:</span> print("I'm line number 3");
|
114
|
+
</pre></pre>得到
|
115
|
+
<pre class=prettyprint>
|
116
|
+
<span class="nocode">1:</span> /* This is line 1 of my code
|
117
|
+
<span class="nocode">2:</span> * and here's line 2 */
|
118
|
+
<span class="nocode">3:</span> print("I'm line number 3");
|
119
|
+
</pre>
|
120
|
+
|
121
|
+
<p>查看一个更完整的例子: issue22
|
122
|
+
<a href="tests/prettify_test.html#issue22">testcase</a>.</p>
|
123
|
+
|
124
|
+
<h3>我得到了这样一条错误信息 "a is not a function" 或 "opt_whenDone is not a function"</h3>
|
125
|
+
<p>如果你通过事件句柄条用 <code>prettyPrint</code> , 把它隐藏到一个函数中. <br></p><p>不要这么写
|
126
|
+
</p><blockquote>
|
127
|
+
<code class="prettyprint lang-js"
|
128
|
+
>addEventListener('load', prettyPrint, false);</code>
|
129
|
+
</blockquote>而要这么写
|
130
|
+
<blockquote>
|
131
|
+
<code class="prettyprint lang-js"
|
132
|
+
>addEventListener('load', function (event) { prettyPrint() }, false);</code>
|
133
|
+
</blockquote>这样的话,浏览器就不会把时间对象传递给 <code>prettyPrint</code> ,事件对象会让它困惑的.
|
134
|
+
|
135
|
+
<br><br><br>
|
136
|
+
|
137
|
+
<div class="footer">
|
138
|
+
<!-- Created: Tue Oct 3 17:51:56 PDT 2006 -->
|
139
|
+
<!-- hhmts start -->
|
140
|
+
Last modified: Wed Jan 7 13:25:42 PST 2009<br><!-- hhmts end -->
|
141
|
+
</div>
|
142
|
+
</body>
|
143
|
+
</html>
|