selenium-webdriver 3.5.0 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +246 -0
- package/LICENSE +1 -1
- package/NOTICE +1 -1
- package/README.md +40 -40
- package/chrome.js +118 -134
- package/edge.js +43 -117
- package/example/chrome_android.js +8 -9
- package/example/chrome_mobile_emulation.js +8 -9
- package/example/firefox_channels.js +23 -19
- package/example/google_search.js +3 -3
- package/example/google_search_test.js +38 -27
- package/example/{chrome_headless.js → headless.js} +15 -7
- package/example/logging.js +40 -7
- package/firefox.js +789 -0
- package/http/index.js +62 -9
- package/http/util.js +11 -6
- package/ie.js +83 -97
- package/index.js +198 -114
- package/io/exec.js +29 -15
- package/io/index.js +1 -1
- package/io/zip.js +1 -1
- package/lib/actions.js +68 -63
- package/lib/atoms/get-attribute.js +86 -0
- package/lib/atoms/is-displayed.js +76 -76
- package/lib/by.js +7 -4
- package/lib/capabilities.js +310 -210
- package/lib/command.js +27 -51
- package/lib/error.js +100 -41
- package/lib/http.js +161 -120
- package/lib/input.js +1044 -8
- package/lib/logging.js +1 -5
- package/lib/promise.js +222 -3331
- package/lib/proxy.js +134 -39
- package/lib/session.js +2 -2
- package/lib/symbols.js +0 -0
- package/lib/until.js +1 -1
- package/lib/webdriver.js +717 -953
- package/net/index.js +21 -25
- package/net/portprober.js +51 -68
- package/package.json +17 -12
- package/proxy.js +0 -0
- package/remote/index.js +63 -44
- package/safari.js +41 -128
- package/testing/index.js +386 -315
- package/.npmignore +0 -2
- package/example/async_await_test.js +0 -68
- package/example/google_search_generator.js +0 -50
- package/example/parallel_flows.js +0 -54
- package/firefox/binary.js +0 -344
- package/firefox/extension.js +0 -224
- package/firefox/index.js +0 -626
- package/firefox/profile.js +0 -394
- package/lib/README +0 -5
- package/lib/atoms/getAttribute.js +0 -9
- package/lib/devmode.js +0 -34
- package/lib/events.js +0 -210
- package/lib/firefox/webdriver.json +0 -70
- package/lib/test/build.js +0 -151
- package/lib/test/data/ClickTest_testClicksASurroundingStrongTag.html +0 -11
- package/lib/test/data/Page.aspx +0 -17
- package/lib/test/data/Page.aspx.cs +0 -22
- package/lib/test/data/Redirect.aspx +0 -11
- package/lib/test/data/Redirect.aspx.cs +0 -9
- package/lib/test/data/Settings.StyleCop +0 -759
- package/lib/test/data/Web.Config +0 -59
- package/lib/test/data/actualXhtmlPage.xhtml +0 -14
- package/lib/test/data/ajaxy_page.html +0 -81
- package/lib/test/data/alerts.html +0 -85
- package/lib/test/data/banner.gif +0 -0
- package/lib/test/data/beach.jpg +0 -0
- package/lib/test/data/blank.html +0 -1
- package/lib/test/data/bodyTypingTest.html +0 -41
- package/lib/test/data/booleanAttributes.html +0 -19
- package/lib/test/data/child/childPage.html +0 -8
- package/lib/test/data/child/grandchild/grandchildPage.html +0 -8
- package/lib/test/data/clickEventPage.html +0 -26
- package/lib/test/data/click_frames.html +0 -10
- package/lib/test/data/click_jacker.html +0 -38
- package/lib/test/data/click_out_of_bounds.html +0 -23
- package/lib/test/data/click_out_of_bounds_overflow.html +0 -85
- package/lib/test/data/click_rtl.html +0 -19
- package/lib/test/data/click_source.html +0 -18
- package/lib/test/data/click_tests/click_iframe.html +0 -6
- package/lib/test/data/click_tests/click_in_iframe.html +0 -8
- package/lib/test/data/click_tests/disabled_element.html +0 -12
- package/lib/test/data/click_tests/disappearing_element.html +0 -62
- package/lib/test/data/click_tests/google_map.html +0 -15
- package/lib/test/data/click_tests/google_map.png +0 -0
- package/lib/test/data/click_tests/html5_submit_buttons.html +0 -16
- package/lib/test/data/click_tests/issue5237.html +0 -9
- package/lib/test/data/click_tests/issue5237_frame.html +0 -1
- package/lib/test/data/click_tests/issue5237_target.html +0 -10
- package/lib/test/data/click_tests/link_that_wraps.html +0 -11
- package/lib/test/data/click_tests/mapped_page1.html +0 -9
- package/lib/test/data/click_tests/mapped_page2.html +0 -9
- package/lib/test/data/click_tests/mapped_page3.html +0 -9
- package/lib/test/data/click_tests/overlapping_elements.html +0 -70
- package/lib/test/data/click_tests/partially_overlapping_elements.html +0 -124
- package/lib/test/data/click_tests/span_that_wraps.html +0 -11
- package/lib/test/data/click_tests/submitted_page.html +0 -9
- package/lib/test/data/click_tests/wrapped_overlapping_elements.html +0 -13
- package/lib/test/data/click_too_big.html +0 -10
- package/lib/test/data/click_too_big_in_frame.html +0 -11
- package/lib/test/data/clicks.html +0 -35
- package/lib/test/data/closeable_window.html +0 -8
- package/lib/test/data/cn-test.html +0 -156
- package/lib/test/data/colorPage.html +0 -20
- package/lib/test/data/cookies.html +0 -30
- package/lib/test/data/coordinates_tests/element_in_frame.html +0 -9
- package/lib/test/data/coordinates_tests/element_in_nested_frame.html +0 -9
- package/lib/test/data/coordinates_tests/page_with_element_out_of_view.html +0 -11
- package/lib/test/data/coordinates_tests/page_with_empty_element.html +0 -10
- package/lib/test/data/coordinates_tests/page_with_fixed_element.html +0 -12
- package/lib/test/data/coordinates_tests/page_with_hidden_element.html +0 -10
- package/lib/test/data/coordinates_tests/page_with_invisible_element.html +0 -10
- package/lib/test/data/coordinates_tests/page_with_transparent_element.html +0 -10
- package/lib/test/data/coordinates_tests/simple_page.html +0 -10
- package/lib/test/data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/jquery-ui-1.8.10.custom.css +0 -573
- package/lib/test/data/cssTransform.html +0 -61
- package/lib/test/data/cssTransform2.html +0 -20
- package/lib/test/data/document_write_in_onload.html +0 -13
- package/lib/test/data/dragAndDropInsideScrolledDiv.html +0 -67
- package/lib/test/data/dragAndDropTest.html +0 -102
- package/lib/test/data/dragDropOverflow.html +0 -104
- package/lib/test/data/draggableLists.html +0 -67
- package/lib/test/data/droppableItems.html +0 -65
- package/lib/test/data/dynamic.html +0 -39
- package/lib/test/data/dynamicallyModifiedPage.html +0 -42
- package/lib/test/data/errors.html +0 -15
- package/lib/test/data/firefox/jetpack-sample.xpi +0 -0
- package/lib/test/data/firefox/sample.xpi +0 -0
- package/lib/test/data/firefox/webextension.xpi +0 -0
- package/lib/test/data/fixedFooterNoScroll.html +0 -13
- package/lib/test/data/fixedFooterNoScrollQuirksMode.html +0 -12
- package/lib/test/data/formPage.html +0 -175
- package/lib/test/data/formSelectionPage.html +0 -46
- package/lib/test/data/form_handling_js_submit.html +0 -30
- package/lib/test/data/framePage3.html +0 -7
- package/lib/test/data/frameScrollChild.html +0 -26
- package/lib/test/data/frameScrollPage.html +0 -14
- package/lib/test/data/frameScrollParent.html +0 -11
- package/lib/test/data/frameWithAnimals.html +0 -11
- package/lib/test/data/frame_switching_tests/bug4876.html +0 -9
- package/lib/test/data/frame_switching_tests/bug4876_iframe.html +0 -9
- package/lib/test/data/frame_switching_tests/deletingFrame.html +0 -29
- package/lib/test/data/frame_switching_tests/deletingFrame_iframe.html +0 -8
- package/lib/test/data/frame_switching_tests/deletingFrame_iframe2.html +0 -7
- package/lib/test/data/frameset.html +0 -14
- package/lib/test/data/framesetPage2.html +0 -7
- package/lib/test/data/framesetPage3.html +0 -4
- package/lib/test/data/globalscope.html +0 -15
- package/lib/test/data/hidden.html +0 -5
- package/lib/test/data/hidden_partially.html +0 -45
- package/lib/test/data/html5/blue.jpg +0 -0
- package/lib/test/data/html5/database.js +0 -84
- package/lib/test/data/html5/geolocation.js +0 -18
- package/lib/test/data/html5/green.jpg +0 -0
- package/lib/test/data/html5/red.jpg +0 -0
- package/lib/test/data/html5/status.html +0 -1
- package/lib/test/data/html5/test.appcache +0 -11
- package/lib/test/data/html5/yellow.jpg +0 -0
- package/lib/test/data/html5Page.html +0 -32
- package/lib/test/data/icon.gif +0 -0
- package/lib/test/data/idElements.html +0 -2
- package/lib/test/data/iframeAtBottom.html +0 -15
- package/lib/test/data/iframeWithAlert.html +0 -1
- package/lib/test/data/iframeWithIframe.html +0 -1
- package/lib/test/data/iframes.html +0 -11
- package/lib/test/data/injectableContent.html +0 -22
- package/lib/test/data/javascriptEnhancedForm.html +0 -30
- package/lib/test/data/javascriptPage.html +0 -285
- package/lib/test/data/jquery-1.3.2.js +0 -4376
- package/lib/test/data/js/jquery-1.4.4.min.js +0 -167
- package/lib/test/data/js/jquery-ui-1.8.10.custom.min.js +0 -782
- package/lib/test/data/js/skins/lightgray/content.inline.min.css +0 -1
- package/lib/test/data/js/skins/lightgray/content.min.css +0 -1
- package/lib/test/data/js/skins/lightgray/fonts/readme.md +0 -1
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.dev.svg +0 -175
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.eot +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.svg +0 -62
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.woff +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.dev.svg +0 -153
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.eot +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.svg +0 -63
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.ttf +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.woff +0 -0
- package/lib/test/data/js/skins/lightgray/img/anchor.gif +0 -0
- package/lib/test/data/js/skins/lightgray/img/loader.gif +0 -0
- package/lib/test/data/js/skins/lightgray/img/object.gif +0 -0
- package/lib/test/data/js/skins/lightgray/img/trans.gif +0 -0
- package/lib/test/data/js/skins/lightgray/skin.ie7.min.css +0 -1
- package/lib/test/data/js/skins/lightgray/skin.min.css +0 -1
- package/lib/test/data/js/themes/modern/theme.min.js +0 -1
- package/lib/test/data/js/tinymce.min.js +0 -10
- package/lib/test/data/key_logger.html +0 -34
- package/lib/test/data/key_tests/remove_on_keypress.html +0 -36
- package/lib/test/data/keyboard_shortcut.html +0 -36
- package/lib/test/data/linked_image.html +0 -16
- package/lib/test/data/locators_tests/boolean_attribute_selected.html +0 -13
- package/lib/test/data/locators_tests/boolean_attribute_selected_html4.html +0 -13
- package/lib/test/data/longContentPage.html +0 -55
- package/lib/test/data/macbeth.html +0 -5255
- package/lib/test/data/map.png +0 -0
- package/lib/test/data/map_visibility.html +0 -8
- package/lib/test/data/markerTransparent.png +0 -0
- package/lib/test/data/messages.html +0 -15
- package/lib/test/data/meta-redirect.html +0 -11
- package/lib/test/data/missedJsReference.html +0 -11
- package/lib/test/data/modal_dialogs/modal_1.html +0 -21
- package/lib/test/data/modal_dialogs/modal_2.html +0 -21
- package/lib/test/data/modal_dialogs/modal_3.html +0 -15
- package/lib/test/data/modal_dialogs/modalindex.html +0 -21
- package/lib/test/data/mouseOver.html +0 -17
- package/lib/test/data/mousePositionTracker.html +0 -33
- package/lib/test/data/nestedElements.html +0 -164
- package/lib/test/data/overflow/x_auto_y_auto.html +0 -30
- package/lib/test/data/overflow/x_auto_y_hidden.html +0 -30
- package/lib/test/data/overflow/x_auto_y_scroll.html +0 -30
- package/lib/test/data/overflow/x_hidden_y_auto.html +0 -30
- package/lib/test/data/overflow/x_hidden_y_hidden.html +0 -30
- package/lib/test/data/overflow/x_hidden_y_scroll.html +0 -30
- package/lib/test/data/overflow/x_scroll_y_auto.html +0 -30
- package/lib/test/data/overflow/x_scroll_y_hidden.html +0 -30
- package/lib/test/data/overflow/x_scroll_y_scroll.html +0 -30
- package/lib/test/data/overflow-body.html +0 -15
- package/lib/test/data/pageWithOnBeforeUnloadMessage.html +0 -20
- package/lib/test/data/pageWithOnLoad.html +0 -6
- package/lib/test/data/pageWithOnUnload.html +0 -6
- package/lib/test/data/page_with_link_to_slow_loading_page.html +0 -6
- package/lib/test/data/plain.txt +0 -1
- package/lib/test/data/proxy/page1.html +0 -20
- package/lib/test/data/proxy/page2.html +0 -24
- package/lib/test/data/proxy/page3.html +0 -5
- package/lib/test/data/readOnlyPage.html +0 -24
- package/lib/test/data/rectangles.html +0 -40
- package/lib/test/data/resultPage.html +0 -25
- package/lib/test/data/rich_text.html +0 -161
- package/lib/test/data/safari/frames_benchmark.html +0 -31
- package/lib/test/data/screen/screen.css +0 -19
- package/lib/test/data/screen/screen.html +0 -72
- package/lib/test/data/screen/screen.js +0 -7
- package/lib/test/data/screen/screen_frame1.html +0 -72
- package/lib/test/data/screen/screen_frame2.html +0 -72
- package/lib/test/data/screen/screen_frames.html +0 -11
- package/lib/test/data/screen/screen_iframes.html +0 -12
- package/lib/test/data/screen/screen_too_long.html +0 -68
- package/lib/test/data/screen/screen_x_long.html +0 -72
- package/lib/test/data/screen/screen_x_too_long.html +0 -72
- package/lib/test/data/screen/screen_y_long.html +0 -72
- package/lib/test/data/screen/screen_y_too_long.html +0 -72
- package/lib/test/data/scroll.html +0 -27
- package/lib/test/data/scroll2.html +0 -21
- package/lib/test/data/scroll3.html +0 -8
- package/lib/test/data/scroll4.html +0 -7
- package/lib/test/data/scroll5.html +0 -18
- package/lib/test/data/scrolling_tests/frame_with_height_above_200.html +0 -26
- package/lib/test/data/scrolling_tests/frame_with_height_above_2000.html +0 -26
- package/lib/test/data/scrolling_tests/frame_with_nested_scrolling_frame.html +0 -11
- package/lib/test/data/scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/frame_with_small_height.html +0 -10
- package/lib/test/data/scrolling_tests/page_with_double_overflow_auto.html +0 -19
- package/lib/test/data/scrolling_tests/page_with_frame_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/page_with_nested_scrolling_frames.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_nested_scrolling_frames_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/page_with_non_scrolling_frame.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_scrolling_frame.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_scrolling_frame_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/page_with_tall_frame.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_y_overflow_auto.html +0 -14
- package/lib/test/data/scrolling_tests/target_page.html +0 -9
- package/lib/test/data/selectPage.html +0 -58
- package/lib/test/data/selectableItems.html +0 -65
- package/lib/test/data/sessionCookie.html +0 -21
- package/lib/test/data/sessionCookieDest.html +0 -34
- package/lib/test/data/simple.xml +0 -5
- package/lib/test/data/simpleTest.html +0 -98
- package/lib/test/data/single_text_input.html +0 -12
- package/lib/test/data/slowLoadingAlert.html +0 -10
- package/lib/test/data/slowLoadingResourcePage.html +0 -12
- package/lib/test/data/slow_loading_iframes.html +0 -14
- package/lib/test/data/styledPage.html +0 -28
- package/lib/test/data/svgPiechart.xhtml +0 -81
- package/lib/test/data/svgTest.svg +0 -4
- package/lib/test/data/tables.html +0 -36
- package/lib/test/data/tinymce.html +0 -10
- package/lib/test/data/transformable.xml +0 -11
- package/lib/test/data/transformable.xsl +0 -37
- package/lib/test/data/transparentUpload.html +0 -70
- package/lib/test/data/underscore.html +0 -9
- package/lib/test/data/unicode_ltr.html +0 -8
- package/lib/test/data/upload.html +0 -45
- package/lib/test/data/userDefinedProperty.html +0 -8
- package/lib/test/data/veryLargeCanvas.html +0 -81
- package/lib/test/data/visibility-css.html +0 -21
- package/lib/test/data/win32frameset.html +0 -8
- package/lib/test/data/window_switching_tests/page_with_frame.html +0 -12
- package/lib/test/data/window_switching_tests/simple_page.html +0 -9
- package/lib/test/data/xhtmlFormPage.xhtml +0 -17
- package/lib/test/data/xhtmlTest.html +0 -76
- package/lib/test/fileserver.js +0 -321
- package/lib/test/httpserver.js +0 -120
- package/lib/test/index.js +0 -270
- package/lib/test/promise.js +0 -79
- package/lib/test/resources.js +0 -44
- package/opera.js +0 -405
- package/phantomjs.js +0 -282
- package/test/actions_test.js +0 -52
- package/test/chrome/options_test.js +0 -227
- package/test/chrome/service_test.js +0 -45
- package/test/cookie_test.js +0 -214
- package/test/element_finding_test.js +0 -426
- package/test/execute_script_test.js +0 -350
- package/test/fingerprint_test.js +0 -62
- package/test/firefox/extension_test.js +0 -120
- package/test/firefox/firefox_test.js +0 -261
- package/test/firefox/profile_test.js +0 -140
- package/test/http/http_test.js +0 -223
- package/test/http/util_test.js +0 -178
- package/test/io/io_test.js +0 -360
- package/test/io/zip_test.js +0 -128
- package/test/lib/by_test.js +0 -160
- package/test/lib/capabilities_test.js +0 -111
- package/test/lib/error_test.js +0 -305
- package/test/lib/events_test.js +0 -177
- package/test/lib/http_test.js +0 -696
- package/test/lib/logging_test.js +0 -272
- package/test/lib/promise_aplus_test.js +0 -78
- package/test/lib/promise_error_test.js +0 -884
- package/test/lib/promise_flow_test.js +0 -2288
- package/test/lib/promise_generator_test.js +0 -310
- package/test/lib/promise_test.js +0 -1109
- package/test/lib/testutil.js +0 -90
- package/test/lib/until_test.js +0 -478
- package/test/lib/webdriver_test.js +0 -2311
- package/test/logging_test.js +0 -167
- package/test/net/index_test.js +0 -60
- package/test/net/portprober_test.js +0 -128
- package/test/page_loading_test.js +0 -166
- package/test/phantomjs/execute_phantomjs_test.js +0 -59
- package/test/proxy_test.js +0 -180
- package/test/rect_test.js +0 -60
- package/test/remote_test.js +0 -117
- package/test/safari_test.js +0 -108
- package/test/session_test.js +0 -99
- package/test/stale_element_test.js +0 -63
- package/test/tag_name_test.js +0 -36
- package/test/testing/assert_test.js +0 -373
- package/test/testing/index_test.js +0 -224
- package/test/upload_test.js +0 -86
- package/test/window_test.js +0 -161
- package/testing/assert.js +0 -378
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<!--
|
|
5
|
-
This page differs from pageWithOnUnload.html in that it returns a string in the
|
|
6
|
-
event handler, which causes a different type of alert to appear (the "Stay on
|
|
7
|
-
page/Leave current page" alert).
|
|
8
|
-
-->
|
|
9
|
-
<script type="text/javascript">
|
|
10
|
-
function onBeforeUnloadHandler() {
|
|
11
|
-
return "This is for WebDriver with onbeforeunload event handler.";
|
|
12
|
-
}
|
|
13
|
-
window.onbeforeunload = onBeforeUnloadHandler;
|
|
14
|
-
</script>
|
|
15
|
-
<title>Page with OnBeforeUnload handler</title>
|
|
16
|
-
</head>
|
|
17
|
-
<body>
|
|
18
|
-
<p>Page with onbeforeunload event handler. <a id="navigate" href="alerts.html">Click here to navigate to another page.</a></p>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
package/lib/test/data/plain.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Test
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
3
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
4
|
-
<title>Page 1</title>
|
|
5
|
-
<p>The <code>next</code> query param must be the URL for the next page to
|
|
6
|
-
link to.
|
|
7
|
-
<script>
|
|
8
|
-
var match = document.location.search.match(/next=(.*)/);
|
|
9
|
-
if (match && match.length == 2) {
|
|
10
|
-
var next = decodeURIComponent(match[1]);
|
|
11
|
-
var link = document.createElement('a');
|
|
12
|
-
link.innerText = 'Next!';
|
|
13
|
-
link.textContent = 'Next!';
|
|
14
|
-
link.id = 'next';
|
|
15
|
-
link.href = next + '?next=' + encodeURIComponent(
|
|
16
|
-
'http://' + document.location.host +
|
|
17
|
-
document.location.pathname.replace('page1.html', 'page3.html'));
|
|
18
|
-
document.body.appendChild(link);
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
3
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
4
|
-
<title>Page 2</title>
|
|
5
|
-
This page is a middle man for referrer tests.
|
|
6
|
-
This page will include a link to a "next" page if the <code>next</code> query
|
|
7
|
-
parameter, or the <code>document.referrer</code> is set.
|
|
8
|
-
<p><input type="button" id="forward" value="Forward" onclick="history.go(1)"/>
|
|
9
|
-
<script>
|
|
10
|
-
var match = document.location.search.match(/next=(.*)/);
|
|
11
|
-
var next = document.referrer || '';
|
|
12
|
-
if (match && match.length == 2) {
|
|
13
|
-
next = decodeURIComponent(match[1]);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if (next) {
|
|
17
|
-
var link = document.createElement('a');
|
|
18
|
-
link.innerText = 'Next!';
|
|
19
|
-
link.textContent = 'Next!';
|
|
20
|
-
link.id = 'next';
|
|
21
|
-
link.href = next;
|
|
22
|
-
document.body.appendChild(link);
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<body>
|
|
3
|
-
<input id="writableTextInput" type="text" value="Test"/>
|
|
4
|
-
|
|
5
|
-
<input id="readOnlyTextInput" type="text" readonly value="Test"/>
|
|
6
|
-
|
|
7
|
-
<input id="textInputnotenabled" type="text" disabled="true" value="Test"/>
|
|
8
|
-
|
|
9
|
-
<textarea id="writableTextArea" rows="2" cols="20">
|
|
10
|
-
This is a sample text area which is supposed to be cleared
|
|
11
|
-
</textarea>
|
|
12
|
-
|
|
13
|
-
<textarea id="textAreaReadOnly" readonly rows="5" cols="20">
|
|
14
|
-
text area which is not supposed to be cleared</textarea>
|
|
15
|
-
|
|
16
|
-
<textarea rows="5" id="textAreaNotenabled" disabled="true" cols="20">
|
|
17
|
-
text area which is not supposed to be cleared</textarea>
|
|
18
|
-
|
|
19
|
-
<div id="content-editable" contentEditable="true"><h1>This</h1><h2>is a</h2><p>contentEditable area</p></div>
|
|
20
|
-
|
|
21
|
-
<div id="content-editable-blank" contentEditable="true" style="height:50px;"></div>
|
|
22
|
-
</body>
|
|
23
|
-
</html>
|
|
24
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Rectangles</title>
|
|
5
|
-
<style type="text/css">
|
|
6
|
-
div {
|
|
7
|
-
position: absolute;
|
|
8
|
-
margin: 0;
|
|
9
|
-
border: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
}
|
|
12
|
-
#r1 {
|
|
13
|
-
background-color: blue;
|
|
14
|
-
left: 10px;
|
|
15
|
-
top: 10px;
|
|
16
|
-
width: 100px;
|
|
17
|
-
height: 50px;
|
|
18
|
-
}
|
|
19
|
-
#r2 {
|
|
20
|
-
background-color: red;
|
|
21
|
-
left: 10.9px;
|
|
22
|
-
top: 10.1px;
|
|
23
|
-
width: 48.666666667px;
|
|
24
|
-
height: 49.333333333px;
|
|
25
|
-
}
|
|
26
|
-
#r3 {
|
|
27
|
-
background-color: yellow;
|
|
28
|
-
left: 60px;
|
|
29
|
-
top: 10px;
|
|
30
|
-
width: 50px;
|
|
31
|
-
height: 25px;
|
|
32
|
-
}
|
|
33
|
-
</style>
|
|
34
|
-
</head>
|
|
35
|
-
<body>
|
|
36
|
-
<div id="r1">r1</div>
|
|
37
|
-
<div id="r2">r2</div>
|
|
38
|
-
<div id="r3">r3</div>
|
|
39
|
-
</body>
|
|
40
|
-
</html>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>We Arrive Here</title>
|
|
4
|
-
</head>
|
|
5
|
-
<body>
|
|
6
|
-
|
|
7
|
-
<p id="greeting">Success!</p>
|
|
8
|
-
|
|
9
|
-
<div>
|
|
10
|
-
<h1>List of stuff</h1>
|
|
11
|
-
<ol>
|
|
12
|
-
<li class="items">Item 1</li>
|
|
13
|
-
<li>Item 2</li>
|
|
14
|
-
</ol>
|
|
15
|
-
</div>
|
|
16
|
-
<div>
|
|
17
|
-
<h1>Almost empty</h1>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<script language="Javascript">
|
|
21
|
-
document.write("<p>Window name is: " + window.name + "</p>");
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<script type="text/javascript">
|
|
6
|
-
function setKeypressHandler (el, keyHandler) {
|
|
7
|
-
if (el.addEventListener) {
|
|
8
|
-
el.addEventListener('keypress', keyHandler, false);
|
|
9
|
-
el.addEventListener('keydown', keyHandler, false);
|
|
10
|
-
el.addEventListener('keyup', keyHandler, false);
|
|
11
|
-
} else {
|
|
12
|
-
el.attachEvent('onkeypress', keyHandler);
|
|
13
|
-
el.attachEvent('onkeydown', keyHandler);
|
|
14
|
-
el.attachEvent('onkeyup', keyHandler);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function output (text) {
|
|
19
|
-
var div = document.getElementById('debugOutput');
|
|
20
|
-
div.appendChild(document.createTextNode(text));
|
|
21
|
-
div.appendChild(document.createElement('br'));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
window.onload = function () {
|
|
25
|
-
// Super dumb browser detection
|
|
26
|
-
var isIE = window.navigator.userAgent.search('MSIE') != -1
|
|
27
|
-
|| window.navigator.userAgent.search('Trident') != -1;
|
|
28
|
-
|
|
29
|
-
var editFrame = document.getElementById('editFrame').contentWindow;
|
|
30
|
-
setKeypressHandler(editFrame.document, printEventData);
|
|
31
|
-
if (isIE) {
|
|
32
|
-
editFrame.document.body.contentEditable = true;
|
|
33
|
-
} else {
|
|
34
|
-
editFrame.document.designMode = 'On';
|
|
35
|
-
// Attach a name to the containing HTML element
|
|
36
|
-
editFrame.document.getElementsByTagName("html")[0].id = "frameHtml";
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var editDiv = document.getElementById('editDiv');
|
|
40
|
-
setKeypressHandler(editDiv, printEventData);
|
|
41
|
-
editDiv.contentEditable = true;
|
|
42
|
-
|
|
43
|
-
editFrame.document.body.style.margin = 1;
|
|
44
|
-
editFrame.document.body.style.padding = 0;
|
|
45
|
-
editFrame.document.body.id = 'theBody';
|
|
46
|
-
|
|
47
|
-
editDiv.style.margin = 1;
|
|
48
|
-
editDiv.style.padding = 0;
|
|
49
|
-
|
|
50
|
-
window.setTimeout(function() {
|
|
51
|
-
var pre = document.createElement('pre');
|
|
52
|
-
function write(text) {
|
|
53
|
-
pre.appendChild(document.createTextNode(text));
|
|
54
|
-
pre.appendChild(document.createElement('br'));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
write('frame.contentWindow.document.designMode: ' +
|
|
58
|
-
editFrame.document.designMode);
|
|
59
|
-
write('frame.contentWindow.document.body.contentEditable: ' +
|
|
60
|
-
editFrame.document.body.contentEditable);
|
|
61
|
-
document.getElementById('editFrameInfo').appendChild(pre);
|
|
62
|
-
|
|
63
|
-
pre = document.createElement('pre');
|
|
64
|
-
write('div.ownerDocument.designMode: ' +
|
|
65
|
-
editDiv.ownerDocument.designMode);
|
|
66
|
-
write('div.ownerDocument.body.contentEditable: ' +
|
|
67
|
-
editDiv.ownerDocument.body.contentEditable);
|
|
68
|
-
write('div.contentEditable: ' +
|
|
69
|
-
editDiv.contentEditable);
|
|
70
|
-
document.getElementById('editDivInfo').appendChild(pre);
|
|
71
|
-
}, 0);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
function isDef(obj, prop) {
|
|
75
|
-
return typeof obj[prop] != 'undefined';
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function printEventData(e) {
|
|
79
|
-
e = e || window.event;
|
|
80
|
-
|
|
81
|
-
function write(id, text, opt_color) {
|
|
82
|
-
var el = document.getElementById(id);
|
|
83
|
-
el.innerHTML = '[' + text + ']';
|
|
84
|
-
el.style.backgroundColor = opt_color || 'white';
|
|
85
|
-
}
|
|
86
|
-
write('type', e.type);
|
|
87
|
-
write('tagName', isDef(e, 'target') ? e.target.tagName : e.srcElement.tagName);
|
|
88
|
-
write('tagId', isDef(e, 'target') ? e.target.id : e.srcElement.id);
|
|
89
|
-
write('keyidentifier', isDef(e, 'keyIdentifier') ? e.keyIdentifier : 'n/a');
|
|
90
|
-
write('keylocation', isDef(e, 'keyLocation') ? e.keyLocation : 'n/a');
|
|
91
|
-
write('keycode', e.keyCode);
|
|
92
|
-
write('charcode', e.charCode);
|
|
93
|
-
write('which', e.which);
|
|
94
|
-
if (isDef(e, 'isTrusted')) {
|
|
95
|
-
write('istrusted', e.isTrusted, e.isTrusted ? '#afa' : '#faa');
|
|
96
|
-
} else {
|
|
97
|
-
write('istrusted', 'n/a');
|
|
98
|
-
}
|
|
99
|
-
write('alt', e.altKey);
|
|
100
|
-
write('ctrl', e.ctrlKey);
|
|
101
|
-
write('shift', e.shiftKey);
|
|
102
|
-
write('meta', e.metaKey);
|
|
103
|
-
|
|
104
|
-
var s = "";
|
|
105
|
-
for (var i in e) {
|
|
106
|
-
s += i + ": " + e[i] + " ";
|
|
107
|
-
}
|
|
108
|
-
//alert(s);
|
|
109
|
-
}
|
|
110
|
-
</script>
|
|
111
|
-
</head>
|
|
112
|
-
<body>
|
|
113
|
-
<div>
|
|
114
|
-
<div id="butter" style="background-color: #ffa;">
|
|
115
|
-
</div>
|
|
116
|
-
<table width="100%">
|
|
117
|
-
<tr valign="top">
|
|
118
|
-
<td width="50%">
|
|
119
|
-
<div>IFRAME</div>
|
|
120
|
-
<iframe id="editFrame" name="editFrame" src="" height="200px" width="300px" frameborder="0" style="border: 1px solid black;">
|
|
121
|
-
</iframe>
|
|
122
|
-
<div id="editFrameInfo">
|
|
123
|
-
<pre>frame.contentWindow.document.designMode: on<br>frame.contentWindow.document.body.contentEditable: false<br></pre></div>
|
|
124
|
-
</td>
|
|
125
|
-
<td>
|
|
126
|
-
<div>DIV</div>
|
|
127
|
-
<div id="editDiv" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; height: 200px; width: 300px; overflow-x: auto; overflow-y: auto; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " contenteditable="true">
|
|
128
|
-
</div>
|
|
129
|
-
<div id="editDivInfo">
|
|
130
|
-
<pre>div.ownerDocument.designMode: off<br>div.ownerDocument.body.contentEditable: false<br>div.contentEditable: true<br></pre></div>
|
|
131
|
-
</td>
|
|
132
|
-
</tr>
|
|
133
|
-
</table>
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
<HR>
|
|
137
|
-
<DIV style="margin: 0px;padding:0px;padding-left:10px;font-family:Courier;">
|
|
138
|
-
<TABLE cellpadding="0" cellspacing="0" width="200px" style="font-size:9pt;">
|
|
139
|
-
<TBODY>
|
|
140
|
-
<TR><TD width="110px">type:</TD><TD id="type" width="90px">[]</TD></TR>
|
|
141
|
-
<TR><TD>tagName:</TD><TD id="tagName">[]</TD></TR>
|
|
142
|
-
<TR><TD>id:</TD><TD id="tagId">[]</TD></TR>
|
|
143
|
-
<TR><TD>keyIdentifier:</TD><TD id="keyidentifier">[]</TD></TR>
|
|
144
|
-
<TR><TD>keyLocation:</TD><TD id="keylocation">[]</TD></TR>
|
|
145
|
-
<TR><TD>keyCode:</TD><TD id="keycode">[]</TD></TR>
|
|
146
|
-
<TR><TD>charCode:</TD><TD id="charcode">[]</TD></TR>
|
|
147
|
-
<TR><TD>which:</TD><TD id="which">[]</TD></TR>
|
|
148
|
-
<TR><TD>isTrusted:</TD><TD id="istrusted">[]</TD></TR>
|
|
149
|
-
<TR><TD colspan="2">---------------------</TD></TR>
|
|
150
|
-
<TR><TD colspan="2">Modifiers</TD></TR>
|
|
151
|
-
<TR><TD>alt:</TD><TD id="alt">[]</TD></TR>
|
|
152
|
-
<TR><TD>ctrl:</TD><TD id="ctrl">[]</TD></TR>
|
|
153
|
-
<TR><TD>shift:</TD><TD id="shift">[]</TD></TR>
|
|
154
|
-
<TR><TD>meta:</TD><TD id="meta">[]</TD></TR>
|
|
155
|
-
</TBODY>
|
|
156
|
-
</TABLE>
|
|
157
|
-
</DIV>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</BODY></HTML>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<script>
|
|
3
|
-
var start;
|
|
4
|
-
var dom;
|
|
5
|
-
|
|
6
|
-
function run() {
|
|
7
|
-
if (dom) {
|
|
8
|
-
dom.parentNode.removeChild(dom);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
dom = document.createElement('div');
|
|
12
|
-
var result = document.createElement('div');
|
|
13
|
-
dom.appendChild(result);
|
|
14
|
-
document.body.appendChild(dom);
|
|
15
|
-
|
|
16
|
-
start = Date.now();
|
|
17
|
-
|
|
18
|
-
for (var i = 0; i < 100; i++) {
|
|
19
|
-
var iframe = document.createElement('iframe');
|
|
20
|
-
iframe.style.width = '200px';
|
|
21
|
-
iframe.style.height = '30px';
|
|
22
|
-
dom.appendChild(iframe);
|
|
23
|
-
var content = iframe.contentWindow.document.createTextNode('hello, world');
|
|
24
|
-
iframe.contentWindow.document.body.appendChild(content);
|
|
25
|
-
iframe.contentWindow.document.body.style.overflow = 'hidden';
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
result.innerHTML = 'Done! ' + (Date.now() - start) + ' ms';
|
|
29
|
-
}
|
|
30
|
-
</script>
|
|
31
|
-
<input type="button" value="Go!" onclick="run()">
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
* {
|
|
2
|
-
margin: 0;
|
|
3
|
-
}
|
|
4
|
-
html, body, #output {
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
table {
|
|
9
|
-
border: 0px;
|
|
10
|
-
border-collapse: collapse;
|
|
11
|
-
border-spacing: 0px;
|
|
12
|
-
display: table;
|
|
13
|
-
}
|
|
14
|
-
table td {
|
|
15
|
-
padding: 0px;
|
|
16
|
-
}
|
|
17
|
-
.cell {
|
|
18
|
-
color: black;
|
|
19
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html><head>
|
|
3
|
-
<title>screen test</title>
|
|
4
|
-
<script type="text/javascript" src="screen.js"></script>
|
|
5
|
-
<link rel="stylesheet" type="text/css" href="screen.css" />
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
8
|
-
<style>
|
|
9
|
-
#content {
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
.row {
|
|
14
|
-
height: 20px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
.column {
|
|
18
|
-
height: 20%;
|
|
19
|
-
width: 20px;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
<table id="content">
|
|
23
|
-
<tr class="row row1">
|
|
24
|
-
<td class="column column1 cell" id="cell11"> </td>
|
|
25
|
-
<td class="column column2 cell" id="cell12"> </td>
|
|
26
|
-
<td class="column column3 cell" id="cell13"> </td>
|
|
27
|
-
<td class="column column4 cell" id="cell14"> </td>
|
|
28
|
-
<td class="column column5 cell" id="cell15"> </td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr class="row row2">
|
|
31
|
-
<td class="column column1 cell" id="cell21"> </td>
|
|
32
|
-
<td class="column column2 cell" id="cell22"> </td>
|
|
33
|
-
<td class="column column3 cell" id="cell23"> </td>
|
|
34
|
-
<td class="column column4 cell" id="cell24"> </td>
|
|
35
|
-
<td class="column column5 cell" id="cell25"> </td>
|
|
36
|
-
</tr>
|
|
37
|
-
<tr class="row row3">
|
|
38
|
-
<td class="column column1 cell" id="cell31"> </td>
|
|
39
|
-
<td class="column column2 cell" id="cell32"> </td>
|
|
40
|
-
<td class="column column3 cell" id="cell33"> </td>
|
|
41
|
-
<td class="column column4 cell" id="cell34"> </td>
|
|
42
|
-
<td class="column column5 cell" id="cell35"> </td>
|
|
43
|
-
</tr>
|
|
44
|
-
<tr class="row row4">
|
|
45
|
-
<td class="column column1 cell" id="cell41"> </td>
|
|
46
|
-
<td class="column column2 cell" id="cell42"> </td>
|
|
47
|
-
<td class="column column3 cell" id="cell43"> </td>
|
|
48
|
-
<td class="column column4 cell" id="cell44"> </td>
|
|
49
|
-
<td class="column column5 cell" id="cell45"> </td>
|
|
50
|
-
</tr>
|
|
51
|
-
<tr class="row row5">
|
|
52
|
-
<td class="column column1 cell" id="cell51"> </td>
|
|
53
|
-
<td class="column column2 cell" id="cell52"> </td>
|
|
54
|
-
<td class="column column3 cell" id="cell53"> </td>
|
|
55
|
-
<td class="column column4 cell" id="cell54"> </td>
|
|
56
|
-
<td class="column column5 cell" id="cell55"> </td>
|
|
57
|
-
</tr>
|
|
58
|
-
</table>
|
|
59
|
-
<script>
|
|
60
|
-
var initialColor = 0x0F0F0F;
|
|
61
|
-
var stepColor = 1000;
|
|
62
|
-
var cnt = 1;
|
|
63
|
-
for (var i = 1; i < 6; i++) {
|
|
64
|
-
for (var j = 1; j < 6; j++) {
|
|
65
|
-
el = document.getElementById('cell' + i + '' + j);
|
|
66
|
-
el.style.backgroundColor = toColor(initialColor + (cnt * stepColor));
|
|
67
|
-
cnt++;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
</script>
|
|
71
|
-
</body>
|
|
72
|
-
</html>
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html><head>
|
|
3
|
-
<title>screen frame1</title>
|
|
4
|
-
<script type="text/javascript" src="screen.js"></script>
|
|
5
|
-
<link rel="stylesheet" type="text/css" href="screen.css" />
|
|
6
|
-
</head>
|
|
7
|
-
<body style="width: 100px; height: 100px;">
|
|
8
|
-
<style>
|
|
9
|
-
#content {
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
.row {
|
|
14
|
-
height: 20px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
.column {
|
|
18
|
-
height: 20px;
|
|
19
|
-
width: 20px;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
<table id="content">
|
|
23
|
-
<tr class="row row1">
|
|
24
|
-
<td class="column column1 cell" id="cell11"> </td>
|
|
25
|
-
<td class="column column2 cell" id="cell12"> </td>
|
|
26
|
-
<td class="column column3 cell" id="cell13"> </td>
|
|
27
|
-
<td class="column column4 cell" id="cell14"> </td>
|
|
28
|
-
<td class="column column5 cell" id="cell15"> </td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr class="row row2">
|
|
31
|
-
<td class="column column1 cell" id="cell21"> </td>
|
|
32
|
-
<td class="column column2 cell" id="cell22"> </td>
|
|
33
|
-
<td class="column column3 cell" id="cell23"> </td>
|
|
34
|
-
<td class="column column4 cell" id="cell24"> </td>
|
|
35
|
-
<td class="column column5 cell" id="cell25"> </td>
|
|
36
|
-
</tr>
|
|
37
|
-
<tr class="row row3">
|
|
38
|
-
<td class="column column1 cell" id="cell31"> </td>
|
|
39
|
-
<td class="column column2 cell" id="cell32"> </td>
|
|
40
|
-
<td class="column column3 cell" id="cell33"> </td>
|
|
41
|
-
<td class="column column4 cell" id="cell34"> </td>
|
|
42
|
-
<td class="column column5 cell" id="cell35"> </td>
|
|
43
|
-
</tr>
|
|
44
|
-
<tr class="row row4">
|
|
45
|
-
<td class="column column1 cell" id="cell41"> </td>
|
|
46
|
-
<td class="column column2 cell" id="cell42"> </td>
|
|
47
|
-
<td class="column column3 cell" id="cell43"> </td>
|
|
48
|
-
<td class="column column4 cell" id="cell44"> </td>
|
|
49
|
-
<td class="column column5 cell" id="cell45"> </td>
|
|
50
|
-
</tr>
|
|
51
|
-
<tr class="row row5">
|
|
52
|
-
<td class="column column1 cell" id="cell51"> </td>
|
|
53
|
-
<td class="column column2 cell" id="cell52"> </td>
|
|
54
|
-
<td class="column column3 cell" id="cell53"> </td>
|
|
55
|
-
<td class="column column4 cell" id="cell54"> </td>
|
|
56
|
-
<td class="column column5 cell" id="cell55"> </td>
|
|
57
|
-
</tr>
|
|
58
|
-
</table>
|
|
59
|
-
<script>
|
|
60
|
-
var initialColor = 0xDFDFDF;
|
|
61
|
-
var stepColor = 1000;
|
|
62
|
-
var cnt = 1;
|
|
63
|
-
for (var i = 1; i < 6; i++) {
|
|
64
|
-
for (var j = 1; j < 6; j++) {
|
|
65
|
-
el = document.getElementById('cell' + i + '' + j);
|
|
66
|
-
el.style.backgroundColor = toColor(initialColor + (cnt * stepColor));
|
|
67
|
-
cnt++;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
</script>
|
|
71
|
-
</body>
|
|
72
|
-
</html>
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html><head>
|
|
3
|
-
<title>screen frame2</title>
|
|
4
|
-
<script type="text/javascript" src="screen.js"></script>
|
|
5
|
-
<link rel="stylesheet" type="text/css" href="screen.css" />
|
|
6
|
-
</head>
|
|
7
|
-
<body style="width: 100px; height: 100px;">
|
|
8
|
-
<style>
|
|
9
|
-
#content {
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
.row {
|
|
14
|
-
height: 20px;
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
.column {
|
|
18
|
-
height: 20px;
|
|
19
|
-
width: 20px;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
<table id="content">
|
|
23
|
-
<tr class="row row1">
|
|
24
|
-
<td class="column column1 cell" id="cell11"> </td>
|
|
25
|
-
<td class="column column2 cell" id="cell12"> </td>
|
|
26
|
-
<td class="column column3 cell" id="cell13"> </td>
|
|
27
|
-
<td class="column column4 cell" id="cell14"> </td>
|
|
28
|
-
<td class="column column5 cell" id="cell15"> </td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr class="row row2">
|
|
31
|
-
<td class="column column1 cell" id="cell21"> </td>
|
|
32
|
-
<td class="column column2 cell" id="cell22"> </td>
|
|
33
|
-
<td class="column column3 cell" id="cell23"> </td>
|
|
34
|
-
<td class="column column4 cell" id="cell24"> </td>
|
|
35
|
-
<td class="column column5 cell" id="cell25"> </td>
|
|
36
|
-
</tr>
|
|
37
|
-
<tr class="row row3">
|
|
38
|
-
<td class="column column1 cell" id="cell31"> </td>
|
|
39
|
-
<td class="column column2 cell" id="cell32"> </td>
|
|
40
|
-
<td class="column column3 cell" id="cell33"> </td>
|
|
41
|
-
<td class="column column4 cell" id="cell34"> </td>
|
|
42
|
-
<td class="column column5 cell" id="cell35"> </td>
|
|
43
|
-
</tr>
|
|
44
|
-
<tr class="row row4">
|
|
45
|
-
<td class="column column1 cell" id="cell41"> </td>
|
|
46
|
-
<td class="column column2 cell" id="cell42"> </td>
|
|
47
|
-
<td class="column column3 cell" id="cell43"> </td>
|
|
48
|
-
<td class="column column4 cell" id="cell44"> </td>
|
|
49
|
-
<td class="column column5 cell" id="cell45"> </td>
|
|
50
|
-
</tr>
|
|
51
|
-
<tr class="row row5">
|
|
52
|
-
<td class="column column1 cell" id="cell51"> </td>
|
|
53
|
-
<td class="column column2 cell" id="cell52"> </td>
|
|
54
|
-
<td class="column column3 cell" id="cell53"> </td>
|
|
55
|
-
<td class="column column4 cell" id="cell54"> </td>
|
|
56
|
-
<td class="column column5 cell" id="cell55"> </td>
|
|
57
|
-
</tr>
|
|
58
|
-
</table>
|
|
59
|
-
<script>
|
|
60
|
-
var initialColor = 0x0F0F0F;
|
|
61
|
-
var stepColor = 1000;
|
|
62
|
-
var cnt = 1;
|
|
63
|
-
for (var i = 1; i < 6; i++) {
|
|
64
|
-
for (var j = 1; j < 6; j++) {
|
|
65
|
-
el = document.getElementById('cell' + i + '' + j);
|
|
66
|
-
el.style.backgroundColor = toColor(initialColor + (cnt * stepColor));
|
|
67
|
-
cnt++;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
</script>
|
|
71
|
-
</body>
|
|
72
|
-
</html>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>screen test</title>
|
|
4
|
-
</head>
|
|
5
|
-
|
|
6
|
-
<frameset border="0" frameborder="0" framespacing="0" cols="50%, *" rows="*">
|
|
7
|
-
<frame id="frame1" src="screen_frame1.html"/>
|
|
8
|
-
<frame id="frame2" src="screen_frame2.html"/>
|
|
9
|
-
</frameset>
|
|
10
|
-
|
|
11
|
-
</html>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html><head>
|
|
3
|
-
<title>Screen test</title>
|
|
4
|
-
</head>
|
|
5
|
-
<body>
|
|
6
|
-
<table><tr><td>
|
|
7
|
-
<iframe src="screen_frame1.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" frameborder="0" height="500" scrolling="no" width="500" id="iframe1" name="iframe1-name"></iframe>
|
|
8
|
-
</td><td>
|
|
9
|
-
<iframe src="screen_frame2.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" frameborder="0" height="500" scrolling="no" width="500" id="iframe2" name="iframe2-name"></iframe>
|
|
10
|
-
</td></tr></table>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|