From 5342f628da86773b8055d9e3db538ead29248415 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 9 Mar 2015 19:02:13 +0300 Subject: [PATCH] beautify html --- 1-js/1-getting-started/4-devtools/bug.html | 15 +- .../1-hello-alert/solution.view/index.html | 11 +- .../2-check-standard/ifelse_task2/index.html | 22 +- .../2-check-standardifelse_task2/index.html | 22 +- .../12-ifelse/3-sign/if_sign/index.html | 27 +- .../1-hello-alert-ext/index.html | 7 +- .../debugging.view/index.html | 7 +- .../1-debugging-chrome/error.view/index.html | 7 +- .../4-testing/beforeafter.view/index.html | 20 +- 1-js/3-writing-js/4-testing/index.html | 20 +- .../4-testing/pow-1.view/index.html | 20 +- .../4-testing/pow-2.view/index.html | 20 +- .../4-testing/pow-3.view/index.html | 25 +- .../4-testing/pow-4.view/index.html | 25 +- .../4-testing/pow-full.view/index.html | 26 +- .../4-testing/pow-min.view/index.html | 20 +- .../4-testing/pow-nan-assert.view/index.html | 22 +- .../4-testing/pow-nan.view/index.html | 22 +- .../hello-conflict.view/index.html | 13 +- .../hello-module.view/index.html | 13 +- .../setInterval-anim.view/index.html | 74 +- .../solution.view/index.html | 69 +- .../source.view/index.html | 53 +- .../solution.view/index.html | 83 +- .../3-clock-class/solution.view/index.html | 17 +- .../3-clock-class/source.view/index.html | 17 +- .../solution.view/index.html | 21 +- .../source.view/index.html | 22 +- .../solution.view/index.html | 95 +- .../source.view/index.html | 38 +- .../setImmediate.view/index.html | 64 +- .../domRangeCreate.view/index.html | 57 +- .../domRangeHighlight.view/index.html | 53 +- .../fix-ie.view/index.html | 29 +- .../ieTextRangeHighlight.view/index.html | 49 +- .../setSelection.view/index.html | 51 +- .../dragTree.view/index.html | 107 +- .../solution.view/index.html | 75 +- .../source.view/index.html | 8 +- .../6-create-list/solution.view/index.html | 35 +- .../build-tree-dom.view/index.html | 101 +- .../solution.view/index.html | 69 +- .../source.view/index.html | 47 +- .../8-tree-count/solution.view/index.html | 93 +- .../8-tree-count/source.view/index.html | 79 +- .../9-calendar-table/solution.view/index.html | 122 +- .../9-calendar-table/source.view/index.html | 58 +- .../solution.view/index.html | 291 +- .../12-multi-insert/benchmark.view/index.html | 17 +- .../solution.view/index.html | 57 +- .../source.view/index.html | 23 +- .../solution.view/index.html | 22 +- .../source.view/index.html | 36 +- .../getiecomputedstyle.view/index.html | 30 +- .../solution.view/index.html | 61 +- .../3-div-placeholder/source.view/index.html | 46 +- .../4-put-ball-in-center/ball-half/index.html | 54 +- .../solution.view/index.html | 54 +- .../source.view/index.html | 37 +- .../5-expand-element/solution.view/index.html | 61 +- .../5-expand-element/source.view/index.html | 32 +- .../15-metrics/cssWidthScroll.view/index.html | 34 +- .../15-metrics/metric.view/index.html | 127 +- .../solution.view/index.html | 65 +- .../source.view/index.html | 25 +- .../2-position-at/solution.view/index.html | 69 +- .../2-position-at/source.view/index.html | 39 +- .../solution.view/index.html | 81 +- .../3-position-at-2/solution.view/index.html | 104 +- 2-ui/1-document/3-dom-console/losi.html | 20 +- .../solution.view/index.html | 58 +- .../source.view/index.html | 56 +- .../1-find-elements/table.html | 82 +- .../2-tree/solution.view/index.html | 103 +- .../2-tree/source.view/index.html | 79 +- .../solution.view/index.html | 239 +- .../source.view/index.html | 182 +- .../solution.view/index.html | 4 +- .../solution.view/index.html | 42 +- .../1-hide-other/solution.view/index.html | 23 +- .../1-hide-other/source.view/index.html | 15 +- .../4-sliding-menu/solution.view/index.html | 94 +- .../4-sliding-menu/source.view/index.html | 17 +- .../5-hide-message/solution.view/index.html | 64 +- .../5-hide-message/source.view/index.html | 40 +- .../6-carousel/solution.view/index.html | 108 +- .../6-carousel/source.view/index.html | 66 +- .../solution.view/index.html | 131 +- .../1-move-ball-field/source.view/index.html | 55 +- .../4-event-bubbling/both.view/index.html | 13 +- .../bubble-target.view/index.html | 15 +- .../4-event-bubbling/capture.view/index.html | 14 +- .../solution.view/index.html | 55 +- .../source.view/index.html | 40 +- .../2-sliding-tree/solution.view/index.html | 133 +- .../2-sliding-tree/source.view/index.html | 73 +- .../3-sort-table/solution.view/index.html | 117 +- .../3-sort-table/source.view/index.html | 33 +- .../5-event-delegation/bagua.view/index.html | 136 +- .../solution.view/index.html | 115 +- .../1-behavior-tooltip/source.view/index.html | 40 +- .../solution.view/index.html | 47 +- .../source.view/index.html | 17 +- .../3-image-gallery/solution.view/index.html | 84 +- .../3-image-gallery/source.view/index.html | 22 +- .../menu.view/index.html | 21 +- .../solution.view/index.html | 130 +- .../1-selectable-list/source.view/index.html | 33 +- .../2-tree-coords/solution.view/index.html | 140 +- .../2-tree-coords/source.view/index.html | 104 +- .../window-onbeforeunload.view/index.html | 23 +- .../1-nice-alt/solution.view/index.html | 57 +- .../1-nice-alt/source.view/index.html | 42 +- .../solution.view/index.html | 77 +- .../source.view/index.html | 73 +- .../solution.view/index.html | 55 +- .../3-script-callback/source.view/index.html | 23 +- .../solution.view/index.html | 71 +- .../4-scripts-callback/source.view/index.html | 19 +- .../solution.view/index.html | 288 +- .../source.view/index.html | 72 +- .../2-hoverintent/solution.view/index.html | 41 +- .../2-hoverintent/source.view/index.html | 41 +- .../index.html | 116 +- .../index.html | 116 +- .../mouseleave-table.view/index.html | 116 +- .../mouseleave.view/index.html | 33 +- .../mouseoverout-child.view/index.html | 19 +- .../mouseoverout-fast.view/index.html | 7 +- .../mouseoverout.view/index.html | 31 +- .../1-slider/solution.view/index.html | 95 +- .../1-slider/source.view/index.html | 15 +- .../2-drag-heroes/solution.view/index.html | 17 +- .../2-drag-heroes/source.view/index.html | 17 +- .../4-drag-and-drop/ball.view/index.html | 52 +- .../4-drag-and-drop/ball2.view/index.html | 58 +- .../4-drag-and-drop/ball3.view/index.html | 76 +- .../dragDemo.view/index.html | 29 +- .../solution.view/index.html | 68 +- .../2-no-doc-scroll/solution.view/index.html | 39 +- .../2-no-doc-scroll/source.view/index.html | 41 +- .../6-mousewheel/wheel.view/index.html | 73 +- .../solution.view/index.html | 126 +- .../source.view/index.html | 103 +- .../2-updown-button/solution.view/index.html | 168 +- .../2-updown-button/source.view/index.html | 58 +- .../solution.view/index.html | 217 +- .../3-load-visible-img/source.view/index.html | 145 +- .../1-numeric-input/solution.view/index.html | 61 +- .../1-numeric-input/source.view/index.html | 43 +- .../solution.view/index.html | 79 +- .../keyboard-dump.view/index.html | 32 +- .../solution.view/index.html | 92 +- .../source.view/index.html | 39 +- .../2-keyboard-mouse/solution.view/index.html | 73 +- .../2-keyboard-mouse/source.view/index.html | 31 +- .../3-hotkeys/solution.view/index.html | 69 +- .../3-hotkeys/source.view/index.html | 19 +- .../4-edit-td-click/solution.view/index.html | 102 +- .../4-edit-td-click/source.view/index.html | 102 +- .../solution.view/index.html | 34 +- .../source.view/index.html | 13 +- .../solution.view/index.html | 105 +- .../source.view/index.html | 13 +- .../solution.view/index.html | 253 +- .../source.view/index.html | 157 +- .../1-modal-dialog/solution.view/index.html | 267 +- .../1-modal-dialog/source.view/index.html | 103 +- .../solution.view/index.html | 184 +- .../2-form-validation/source.view/index.html | 111 +- .../1-clock/solution.view/index.html | 54 +- .../1-clock/source.view/index.html | 54 +- .../2-slider-widget/solution.view/index.html | 189 +- .../solution.view/index.html | 38 +- .../4-voter/solution.view/index.html | 91 +- .../4-voter/source.view/index.html | 37 +- .../5-voter-proto/solution.view/index.html | 28 +- .../6-voter-add-step/solution.view/index.html | 33 +- .../menu-dom.view/index.html | 37 +- .../2-widgets-structure/menu.view/index.html | 33 +- .../1-semantic-menu/solution.view/index.html | 35 +- .../1-semantic-menu/source.view/index.html | 25 +- .../1-table-template/solution.view/index.html | 103 +- .../1-table-template/source.view/index.html | 56 +- .../3-menu-template/solution.view/index.html | 59 +- .../3-menu-template/source.view/index.html | 55 +- .../menu-template.view/index.html | 59 +- .../template-error-sourceurl.view/index.html | 12 +- .../1-voter-events/solution.view/index.html | 37 +- .../solution.view/index.html | 44 +- .../3-custom-select/solution.view/index.html | 70 +- .../3-custom-select/source.view/index.html | 68 +- .../4-slider-events/solution.view/index.html | 64 +- .../menu-callback.view/index.html | 67 +- .../menu-event.view/index.html | 66 +- .../6-link-import/import-show.view/index.html | 23 +- .../6-link-import/import-show.view/timer.html | 27 +- .../import-style.view/index.html | 11 +- .../import-style.view/timer.html | 42 +- .../message.view/index.html | 11 +- .../message.view/ui-message.html | 84 +- .../ui-slider.view/index.html | 49 +- .../ui-slider.view/ui-slider.html | 82 +- 4-ajax/1-ajax-intro/tree.html | 37 +- 4-ajax/10-ajax-jsonp/jsonp.view/index.html | 37 +- .../eventsource.view/index.html | 89 +- .../date-activex.view/index.html | 39 +- .../12-ajax-iframe/date-comet.view/index.html | 29 +- 4-ajax/12-ajax-iframe/date.view/index.html | 27 +- 4-ajax/2-ajax-nodejs/example/index.html | 51 +- .../phones-async.view/index.html | 61 +- .../1-phones-list/phones-list.view/index.html | 81 +- .../phones-async.view/index.html | 59 +- .../phones.view/index.html | 39 +- .../readystate.view/index.html | 49 +- .../6-xhr-onprogress/progress.view/index.html | 109 +- .../upload-resume.view/index.html | 73 +- .../8-xhr-longpoll/longpoll.view/index.html | 33 +- .../solution.view/index.html | 39 +- .../1-animate-logo-css/source.view/index.html | 19 +- .../solution.view/index.html | 26 +- .../2-css-transitions/boat.view/index.html | 51 +- .../digits-negative-delay.view/index.html | 7 +- .../2-css-transitions/digits.view/index.html | 7 +- .../step-end.view/index.html | 17 +- .../2-css-transitions/step.view/index.html | 17 +- .../train-linear.view/index.html | 7 +- .../train-over.view/index.html | 7 +- .../2-css-transitions/train.view/index.html | 7 +- .../1-animate-ball/solution.view/index.html | 63 +- .../1-animate-ball/source.view/index.html | 15 +- .../solution.view/index.html | 84 +- .../3-js-animation/back.view/index.html | 37 +- .../bounce-easeinout.view/index.html | 62 +- .../bounce-easeout.view/index.html | 56 +- .../3-js-animation/bounce.view/index.html | 43 +- .../3-js-animation/circ.view/index.html | 37 +- .../3-js-animation/elastic.view/index.html | 37 +- .../3-js-animation/move-raf.view/index.html | 70 +- .../3-js-animation/move.view/index.html | 42 +- .../3-js-animation/quad.view/index.html | 37 +- .../3-js-animation/quint.view/index.html | 37 +- .../3-js-animation/text.view/index.html | 54 +- .../3-js-animation/width.view/index.html | 36 +- .../1-memory-leaks/leak-ie8-2.view/index.html | 37 +- .../leak-ie8-table.view/index.html | 35 +- .../leak-ie8-widget.view/index.html | 44 +- .../leak-ie8-xhr.view/index.html | 39 +- .../1-memory-leaks/leak-ie8.view/index.html | 41 +- .../jquery-leak.view/index.html | 36 +- .../2-iframes/sandbox.view/index.html | 5 +- .../2-iframes/sandbox.view/sandboxed.html | 5 +- .../clickjacking-visible.view/facebook.html | 4 +- .../clickjacking-visible.view/index.html | 46 +- .../clickjacking.view/facebook.html | 4 +- .../clickjacking.view/index.html | 46 +- .../top-location.view/iframe.html | 5 +- .../top-location.view/index.html | 16 +- .../solution.view/index.html | 16 +- .../source.view/index.html | 13 +- .../h2-margin-top-position.view/index.html | 54 +- .../11-margin/h2-margin-top.view/index.html | 53 +- .../hr-margin-left-src.view/index.html | 39 +- .../11-margin/hr-margin-left.view/index.html | 50 +- .../negative-margin-bottom.view/index.html | 23 +- .../12-space-under-img/block.view/index.html | 32 +- .../inline-p.view/index.html | 25 +- .../12-space-under-img/inline.view/index.html | 25 +- .../valign-p.view/index.html | 25 +- .../valign-small-lh.view/index.html | 25 +- .../valign-small.view/index.html | 25 +- .../12-space-under-img/valign.view/index.html | 25 +- .../index.html | 29 +- .../height-percent-float.view/index.html | 26 +- .../height-percent.view/index.html | 27 +- .../1-select-elements-selector/index.html | 103 +- .../source.view/index.html | 121 +- .../solution.view/index.html | 46 +- .../source.view/index.html | 38 +- .../3-margin-between-pairs/index.html | 46 +- .../solution.view/index.html | 46 +- .../source.view/index.html | 38 +- .../nthchild-type.view/index.html | 32 +- .../15-css-selectors/nthchild.view/index.html | 35 +- .../15-css-selectors/relation.view/index.html | 112 +- .../17-css-sprite/height48.view/index.html | 22 +- .../17-css-sprite/sprite-example/index.html | 10 +- .../sprite-tree-1/height48.view/index.html | 22 +- .../17-css-sprite/sprite-tree-1/index.html | 22 +- .../sprite-tree-src.view/index.html | 55 +- .../17-css-sprite/sprite-tree.view/index.html | 55 +- .../gallery-float-diffsize.view/index.html | 88 +- .../gallery-inline-block.view/index.html | 64 +- .../solution.view/index.html | 85 +- .../solution.view/index.html | 55 +- .../source.view/index.html | 52 +- .../3-paginator-css/nav-div-wrong/index.html | 27 +- .../3-paginator-css/solution.view/index.html | 96 +- .../3-paginator-css/source.view/index.html | 38 +- .../4-float/gallery-float.view/index.html | 85 +- .../4-float/two-columns-2.view/index.html | 61 +- .../4-float/two-columns.view/index.html | 57 +- .../4-float/winnie-block-bg.view/index.html | 40 +- .../4-float/winnie-block.view/index.html | 37 +- .../4-float/winnie-clear-1.view/index.html | 39 +- .../4-float/winnie-clear-2.view/index.html | 39 +- .../4-float/winnie-clear-3.view/index.html | 41 +- .../4-float/winnie-clear-4.view/index.html | 53 +- .../winnie-clearfill-clearfix.view/index.html | 80 +- .../winnie-clearfill-div.view/index.html | 57 +- .../winnie-clearfill-float.view/index.html | 57 +- .../winnie-clearfill-overflow.view/index.html | 59 +- .../4-float/winnie-nofloat-1.view/index.html | 17 +- .../4-float/winnie-nofloat-2.view/index.html | 17 +- .../4-float/winnie-nofloat-3.view/index.html | 17 +- .../4-float/winnie-nofloat.view/index.html | 17 +- 8-css-for-js/4-float/winnie.view/index.html | 30 +- .../1-modal-window/solution.view/index.html | 46 +- .../1-modal-window/source.view/index.html | 42 +- .../position-100-wrong.view/index.html | 16 +- .../solution.view/index.html | 45 +- .../1-center-ball-css/source.view/index.html | 37 +- .../2-form-modal/solution.view/index.html | 65 +- .../2-form-modal/source.view/index.html | 13 +- .../vertical-align.view/index.html | 9 +- .../solution.view/index.html | 57 +- .../source.view/index.html | 91 +- archive/3-reflow/reflow.view/index.html | 527 ++- archive/menu.html | 129 +- archive/upload-2way.view/index.html | 67 +- .../1-date-selector/solution.view/index.html | 75 +- .../1-date-selector/source.view/index.html | 41 +- .../solution.view/index.html | 173 +- .../source.view/index.html | 75 +- .../2-draggable-windows/index.html | 70 +- .../solution.view/index.html | 70 +- .../source.view/index.html | 77 +- .../2-moving-tooltip/solution.view/index.html | 234 +- .../2-moving-tooltip/source.view/index.html | 80 +- .../3-resize-img/solution.view/index.html | 193 +- .../3-resize-img/source.view/index.html | 36 +- .../3-window-manager/solution.view/index.html | 77 +- .../solution.view/index.html | 56 +- .../source.view/index.html | 36 +- .../solution.view/index.html | 198 +- .../4-img-select-mouse/source.view/index.html | 42 +- .../5-menu-animated/solution.view/index.html | 202 +- .../5-menu-animated/source.view/index.html | 126 +- .../solution.view/index.html | 120 +- .../5-tree-checkboxes/source.view/index.html | 2883 +++++++++++++++-- .../7-calendar/solution.view/index.html | 32 +- .../7-calendar/source.view/index.html | 32 +- .../8-autocomplete/solution.view/index.html | 31 +- .../solution.view/index.html | 18 +- 354 files changed, 13965 insertions(+), 9486 deletions(-) diff --git a/1-js/1-getting-started/4-devtools/bug.html b/1-js/1-getting-started/4-devtools/bug.html index e922e0d4..b72b78f5 100755 --- a/1-js/1-getting-started/4-devtools/bug.html +++ b/1-js/1-getting-started/4-devtools/bug.html @@ -1,16 +1,17 @@ + + -На этой странице есть скрипт с ошибкой. - + На этой странице есть скрипт с ошибкой. + - + + \ No newline at end of file diff --git a/1-js/2-first-steps/1-hello-world/1-hello-alert/solution.view/index.html b/1-js/2-first-steps/1-hello-world/1-hello-alert/solution.view/index.html index a3b0b7b1..47bb9ca9 100644 --- a/1-js/2-first-steps/1-hello-world/1-hello-alert/solution.view/index.html +++ b/1-js/2-first-steps/1-hello-world/1-hello-alert/solution.view/index.html @@ -1,13 +1,16 @@ + + - + - + + \ No newline at end of file diff --git a/1-js/2-first-steps/12-ifelse/2-check-standard/ifelse_task2/index.html b/1-js/2-first-steps/12-ifelse/2-check-standard/ifelse_task2/index.html index 588be43f..392ead19 100644 --- a/1-js/2-first-steps/12-ifelse/2-check-standard/ifelse_task2/index.html +++ b/1-js/2-first-steps/12-ifelse/2-check-standard/ifelse_task2/index.html @@ -1,18 +1,18 @@ + - + if (value == 'EcmaScript') { + alert('Верно!'); + } else { + alert('Не знаете? "EcmaScript"!'); + } + - + + \ No newline at end of file diff --git a/1-js/2-first-steps/12-ifelse/2-check-standardifelse_task2/index.html b/1-js/2-first-steps/12-ifelse/2-check-standardifelse_task2/index.html index 588be43f..392ead19 100644 --- a/1-js/2-first-steps/12-ifelse/2-check-standardifelse_task2/index.html +++ b/1-js/2-first-steps/12-ifelse/2-check-standardifelse_task2/index.html @@ -1,18 +1,18 @@ + - + if (value == 'EcmaScript') { + alert('Верно!'); + } else { + alert('Не знаете? "EcmaScript"!'); + } + - + + \ No newline at end of file diff --git a/1-js/2-first-steps/12-ifelse/3-sign/if_sign/index.html b/1-js/2-first-steps/12-ifelse/3-sign/if_sign/index.html index cff65b6c..31d37ebc 100644 --- a/1-js/2-first-steps/12-ifelse/3-sign/if_sign/index.html +++ b/1-js/2-first-steps/12-ifelse/3-sign/if_sign/index.html @@ -1,23 +1,24 @@ + + - + if (value > 0) { + alert(1); + } else if (value < 0) { + alert(-1); + } else { + alert(0); + } + - + + \ No newline at end of file diff --git a/1-js/2-first-steps/2-external-script/1-hello-alert-ext/index.html b/1-js/2-first-steps/2-external-script/1-hello-alert-ext/index.html index 7b1dac29..b00b9f8a 100644 --- a/1-js/2-first-steps/2-external-script/1-hello-alert-ext/index.html +++ b/1-js/2-first-steps/2-external-script/1-hello-alert-ext/index.html @@ -1,11 +1,14 @@ + + - + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/1-debugging-chrome/debugging.view/index.html b/1-js/3-writing-js/1-debugging-chrome/debugging.view/index.html index eb0eb6e4..246dd753 100755 --- a/1-js/3-writing-js/1-debugging-chrome/debugging.view/index.html +++ b/1-js/3-writing-js/1-debugging-chrome/debugging.view/index.html @@ -1,8 +1,10 @@ + + @@ -12,8 +14,9 @@ - + + \ No newline at end of file diff --git a/1-js/3-writing-js/1-debugging-chrome/error.view/index.html b/1-js/3-writing-js/1-debugging-chrome/error.view/index.html index eb0eb6e4..246dd753 100755 --- a/1-js/3-writing-js/1-debugging-chrome/error.view/index.html +++ b/1-js/3-writing-js/1-debugging-chrome/error.view/index.html @@ -1,8 +1,10 @@ + + @@ -12,8 +14,9 @@ - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/beforeafter.view/index.html b/1-js/3-writing-js/4-testing/beforeafter.view/index.html index 19d664de..6f09e269 100755 --- a/1-js/3-writing-js/4-testing/beforeafter.view/index.html +++ b/1-js/3-writing-js/4-testing/beforeafter.view/index.html @@ -1,24 +1,32 @@ + - + - + - + - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/index.html b/1-js/3-writing-js/4-testing/index.html index 35405575..dac2c912 100755 --- a/1-js/3-writing-js/4-testing/index.html +++ b/1-js/3-writing-js/4-testing/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -24,13 +29,16 @@ } - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-1.view/index.html b/1-js/3-writing-js/4-testing/pow-1.view/index.html index 35405575..dac2c912 100755 --- a/1-js/3-writing-js/4-testing/pow-1.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-1.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -24,13 +29,16 @@ } - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-2.view/index.html b/1-js/3-writing-js/4-testing/pow-2.view/index.html index a62937e1..57aebaf7 100755 --- a/1-js/3-writing-js/4-testing/pow-2.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-2.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -24,13 +29,16 @@ } - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-3.view/index.html b/1-js/3-writing-js/4-testing/pow-3.view/index.html index a8a023af..68d14a3f 100755 --- a/1-js/3-writing-js/4-testing/pow-3.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-3.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -22,22 +27,24 @@ function pow(x, n) { var result = 1; - for(var i = 0; i < n; i++) { + for (var i = 0; i < n; i++) { result *= x; } - + return result; } - - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-4.view/index.html b/1-js/3-writing-js/4-testing/pow-4.view/index.html index a8a023af..68d14a3f 100755 --- a/1-js/3-writing-js/4-testing/pow-4.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-4.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -22,22 +27,24 @@ function pow(x, n) { var result = 1; - for(var i = 0; i < n; i++) { + for (var i = 0; i < n; i++) { result *= x; } - + return result; } - - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-full.view/index.html b/1-js/3-writing-js/4-testing/pow-full.view/index.html index 74894a9e..a0f4faaf 100755 --- a/1-js/3-writing-js/4-testing/pow-full.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-full.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -22,23 +27,26 @@ function pow(x, n) { if (n < 0) return NaN; if (Math.round(n) != n) return NaN; - if (n == 0 && x ==0) return NaN; - + if (n == 0 && x == 0) return NaN; + var result = 1; - for(var i=0; i - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-min.view/index.html b/1-js/3-writing-js/4-testing/pow-min.view/index.html index a62937e1..57aebaf7 100755 --- a/1-js/3-writing-js/4-testing/pow-min.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-min.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -24,13 +29,16 @@ } - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-nan-assert.view/index.html b/1-js/3-writing-js/4-testing/pow-nan-assert.view/index.html index 5fd30c53..5c0dd157 100755 --- a/1-js/3-writing-js/4-testing/pow-nan-assert.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-nan-assert.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -21,20 +26,23 @@ - +
- + - + + \ No newline at end of file diff --git a/1-js/3-writing-js/4-testing/pow-nan.view/index.html b/1-js/3-writing-js/4-testing/pow-nan.view/index.html index 5fd30c53..5c0dd157 100755 --- a/1-js/3-writing-js/4-testing/pow-nan.view/index.html +++ b/1-js/3-writing-js/4-testing/pow-nan.view/index.html @@ -1,19 +1,24 @@ + - + - + - + @@ -21,20 +26,23 @@ - +
- + - + + \ No newline at end of file diff --git a/1-js/5-functions-closures/5-closures-module/hello-conflict.view/index.html b/1-js/5-functions-closures/5-closures-module/hello-conflict.view/index.html index ed4c93d6..ab1ef1e2 100755 --- a/1-js/5-functions-closures/5-closures-module/hello-conflict.view/index.html +++ b/1-js/5-functions-closures/5-closures-module/hello-conflict.view/index.html @@ -1,5 +1,6 @@ + + - + + + - - + \ No newline at end of file diff --git a/1-js/5-functions-closures/5-closures-module/hello-module.view/index.html b/1-js/5-functions-closures/5-closures-module/hello-module.view/index.html index ed4c93d6..ab1ef1e2 100755 --- a/1-js/5-functions-closures/5-closures-module/hello-module.view/index.html +++ b/1-js/5-functions-closures/5-closures-module/hello-module.view/index.html @@ -1,5 +1,6 @@ + + - + + + - - + \ No newline at end of file diff --git a/1-js/7-js-misc/3-setTimeout-setInterval/setInterval-anim.view/index.html b/1-js/7-js-misc/3-setTimeout-setInterval/setInterval-anim.view/index.html index 8506c73d..caa33217 100755 --- a/1-js/7-js-misc/3-setTimeout-setInterval/setInterval-anim.view/index.html +++ b/1-js/7-js-misc/3-setTimeout-setInterval/setInterval-anim.view/index.html @@ -1,49 +1,59 @@ + - + + - - + + - + function animateDiv(divs, i) { + var div = divs[i], + speed = div.innerHTML; + timers[i] = setInterval(function() { + div.style.width = (parseInt(div.style.width || 0) + 2) % 400 + 'px' + }, speed); + } + - + + \ No newline at end of file diff --git a/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/solution.view/index.html b/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/solution.view/index.html index 5a2be21c..053c8198 100755 --- a/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/solution.view/index.html +++ b/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/solution.view/index.html @@ -1,48 +1,51 @@ + + - - + var waterAmount = 0; + + this.setWaterAmount = function(amount) { + waterAmount = amount; + }; + + function onReady() { + alert('Кофе готов!'); + } + + this.run = function() { + if (!this._enabled) { + throw new Error("Кофеварка выключена"); + } + setTimeout(onReady, 1000); + }; + + } + + var coffeeMachine = new CoffeeMachine(10000); + coffeeMachine.run(); + + \ No newline at end of file diff --git a/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/source.view/index.html b/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/source.view/index.html index d742ef78..6d287989 100755 --- a/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/source.view/index.html +++ b/1-js/8-oop/5-functional-inheritance/1-coffeemachine-fix-run/source.view/index.html @@ -1,42 +1,45 @@ + + - - + this.run = function() { + setTimeout(onReady, 1000); + }; + + } + + \ No newline at end of file diff --git a/1-js/8-oop/5-functional-inheritance/2-coffeemachine-disable-stop/solution.view/index.html b/1-js/8-oop/5-functional-inheritance/2-coffeemachine-disable-stop/solution.view/index.html index 7a6ba8b0..61ce8414 100755 --- a/1-js/8-oop/5-functional-inheritance/2-coffeemachine-disable-stop/solution.view/index.html +++ b/1-js/8-oop/5-functional-inheritance/2-coffeemachine-disable-stop/solution.view/index.html @@ -1,55 +1,58 @@ + + - - + var waterAmount = 0; + var timerId; + + this.setWaterAmount = function(amount) { + waterAmount = amount; + }; + + function onReady() { + alert('Кофе готов!'); + } + + var parentDisable = this.disable; + this.disable = function() { + parentDisable.call(this); + clearTimeout(timerId); + } + + this.run = function() { + if (!this._enabled) { + throw new Error("Кофеварка выключена"); + } + timerId = setTimeout(onReady, 1000); + }; + + } + + var coffeeMachine = new CoffeeMachine(10000); + coffeeMachine.run(); + + \ No newline at end of file diff --git a/1-js/9-prototypes/5-class-inheritance/3-clock-class/solution.view/index.html b/1-js/9-prototypes/5-class-inheritance/3-clock-class/solution.view/index.html index 5b807b0c..ec1acda9 100755 --- a/1-js/9-prototypes/5-class-inheritance/3-clock-class/solution.view/index.html +++ b/1-js/9-prototypes/5-class-inheritance/3-clock-class/solution.view/index.html @@ -1,18 +1,21 @@ + - Часики в консоли - + Часики в консоли + + - - + + - + + \ No newline at end of file diff --git a/1-js/9-prototypes/5-class-inheritance/3-clock-class/source.view/index.html b/1-js/9-prototypes/5-class-inheritance/3-clock-class/source.view/index.html index 5b807b0c..ec1acda9 100755 --- a/1-js/9-prototypes/5-class-inheritance/3-clock-class/source.view/index.html +++ b/1-js/9-prototypes/5-class-inheritance/3-clock-class/source.view/index.html @@ -1,18 +1,21 @@ + - Часики в консоли - + Часики в консоли + + - - + + - + + \ No newline at end of file diff --git a/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/solution.view/index.html b/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/solution.view/index.html index e7b9c984..c226468c 100755 --- a/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/solution.view/index.html +++ b/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/solution.view/index.html @@ -1,23 +1,26 @@ + - Часики в консоли - + Часики в консоли + + - + - + - + - + + \ No newline at end of file diff --git a/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/source.view/index.html b/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/source.view/index.html index 9611fa12..4aac9ceb 100755 --- a/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/source.view/index.html +++ b/1-js/9-prototypes/5-class-inheritance/4-clock-class-extended/source.view/index.html @@ -1,21 +1,23 @@ + - Часики в консоли - + Часики в консоли + + - - - + + - + + \ No newline at end of file diff --git a/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/solution.view/index.html b/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/solution.view/index.html index a3dec85f..705919d8 100755 --- a/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/solution.view/index.html +++ b/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/solution.view/index.html @@ -1,67 +1,64 @@ + - + + - - + + menu.close(); + menu.showState(); // закрыто + }, 1000); + - + + \ No newline at end of file diff --git a/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/source.view/index.html b/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/source.view/index.html index bc17df1f..20de9758 100755 --- a/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/source.view/index.html +++ b/1-js/9-prototypes/5-class-inheritance/5-menu-timer-animated/source.view/index.html @@ -1,33 +1,33 @@ + - + + - - + + menu.close(); + menu.showState(); // закрыто (закрытие без анимации) + }, 1000); + - + + \ No newline at end of file diff --git a/12-extra/5-setImmediate/setImmediate.view/index.html b/12-extra/5-setImmediate/setImmediate.view/index.html index f19e7ebf..a3e38af1 100644 --- a/12-extra/5-setImmediate/setImmediate.view/index.html +++ b/12-extra/5-setImmediate/setImmediate.view/index.html @@ -1,45 +1,45 @@ + + - - - - - - - + + \ No newline at end of file diff --git a/12-extra/8-range-textrange-selection/domRangeCreate.view/index.html b/12-extra/8-range-textrange-selection/domRangeCreate.view/index.html index badac04a..54050cf1 100644 --- a/12-extra/8-range-textrange-selection/domRangeCreate.view/index.html +++ b/12-extra/8-range-textrange-selection/domRangeCreate.view/index.html @@ -1,37 +1,40 @@ + + -
-

Соз|даем Range-объект

-

От третье|го символа заголовка до десятого символа это абзаца.

-
+
+

Соз|даем Range-объект

+

От третье|го символа заголовка до десятого символа это абзаца.

+
- + - + - + + \ No newline at end of file diff --git a/12-extra/8-range-textrange-selection/domRangeHighlight.view/index.html b/12-extra/8-range-textrange-selection/domRangeHighlight.view/index.html index e2e00fa5..e7b6d9b5 100644 --- a/12-extra/8-range-textrange-selection/domRangeHighlight.view/index.html +++ b/12-extra/8-range-textrange-selection/domRangeHighlight.view/index.html @@ -1,34 +1,37 @@ + + -
- Найдем в этом тексте слово "бабуля" и подсветим его синим фоном -
-
- -
- +
+ Найдем в этом тексте слово "бабуля" и подсветим его синим фоном +
+
+ +
+ - + + \ No newline at end of file diff --git a/12-extra/8-range-textrange-selection/fix-ie.view/index.html b/12-extra/8-range-textrange-selection/fix-ie.view/index.html index fcc876ae..189ceddf 100644 --- a/12-extra/8-range-textrange-selection/fix-ie.view/index.html +++ b/12-extra/8-range-textrange-selection/fix-ie.view/index.html @@ -1,14 +1,15 @@ - - - - + + - - - Выделите текст: -
The quick brown fox jumped over the lazy dog
- - - + + + + + Выделите текст: +
The quick brown fox jumped over the lazy dog
+ + + + \ No newline at end of file diff --git a/12-extra/8-range-textrange-selection/ieTextRangeHighlight.view/index.html b/12-extra/8-range-textrange-selection/ieTextRangeHighlight.view/index.html index e9f6ab84..8a8fd8df 100644 --- a/12-extra/8-range-textrange-selection/ieTextRangeHighlight.view/index.html +++ b/12-extra/8-range-textrange-selection/ieTextRangeHighlight.view/index.html @@ -1,32 +1,35 @@ + + -
- Найдем в этом тексте слово "бабуля" и подсветим его синим фоном -
-
- -
- +
+ Найдем в этом тексте слово "бабуля" и подсветим его синим фоном +
+
+ +
+ - + + \ No newline at end of file diff --git a/12-extra/8-range-textrange-selection/setSelection.view/index.html b/12-extra/8-range-textrange-selection/setSelection.view/index.html index 11e2d8d4..ef81a498 100644 --- a/12-extra/8-range-textrange-selection/setSelection.view/index.html +++ b/12-extra/8-range-textrange-selection/setSelection.view/index.html @@ -1,34 +1,37 @@ + + -
- Снова будем выделять бабулю, на этот раз без поиска. -
-
- -
- +
+ Снова будем выделять бабулю, на этот раз без поиска. +
+
+ +
+ - + + \ No newline at end of file diff --git a/12-extra/9-drag-and-drop-plus/dragTree.view/index.html b/12-extra/9-drag-and-drop-plus/dragTree.view/index.html index 09dfa6dd..49db15fd 100644 --- a/12-extra/9-drag-and-drop-plus/dragTree.view/index.html +++ b/12-extra/9-drag-and-drop-plus/dragTree.view/index.html @@ -1,70 +1,73 @@ + - - - - - - - - - - + + + + + + + + + + + -Возьмите за любой заголовок и поменяйте ему родителя.
-В собственных детей перенести нельзя.
-Потомки всегда отсортированы по алфавиту. + Возьмите за любой заголовок и поменяйте ему родителя. +
В собственных детей перенести нельзя. +
Потомки всегда отсортированы по алфавиту. - - + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/10-clock-setinterval/solution.view/index.html b/2-ui/1-document/11-modifying-document/10-clock-setinterval/solution.view/index.html index 31cf9adb..55396e63 100644 --- a/2-ui/1-document/11-modifying-document/10-clock-setinterval/solution.view/index.html +++ b/2-ui/1-document/11-modifying-document/10-clock-setinterval/solution.view/index.html @@ -1,48 +1,57 @@ - - + + + + + -
+
hh:mm:ss -
+
- + clockStart(); + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/10-clock-setinterval/source.view/index.html b/2-ui/1-document/11-modifying-document/10-clock-setinterval/source.view/index.html index f921b8fb..9120728f 100644 --- a/2-ui/1-document/11-modifying-document/10-clock-setinterval/source.view/index.html +++ b/2-ui/1-document/11-modifying-document/10-clock-setinterval/source.view/index.html @@ -1,11 +1,13 @@ + - + - + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/6-create-list/solution.view/index.html b/2-ui/1-document/11-modifying-document/6-create-list/solution.view/index.html index f872b42c..254844e3 100755 --- a/2-ui/1-document/11-modifying-document/6-create-list/solution.view/index.html +++ b/2-ui/1-document/11-modifying-document/6-create-list/solution.view/index.html @@ -1,27 +1,30 @@ + - + + -

Создание списка

+

Создание списка

- + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/7-create-object-tree/build-tree-dom.view/index.html b/2-ui/1-document/11-modifying-document/7-create-object-tree/build-tree-dom.view/index.html index 7b920d9f..50428719 100755 --- a/2-ui/1-document/11-modifying-document/7-create-object-tree/build-tree-dom.view/index.html +++ b/2-ui/1-document/11-modifying-document/7-create-object-tree/build-tree-dom.view/index.html @@ -1,67 +1,70 @@ + + -
+
- + var container = document.getElementById('container'); + createTree(container, data); + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/7-create-object-tree/solution.view/index.html b/2-ui/1-document/11-modifying-document/7-create-object-tree/solution.view/index.html index fd24ffc4..fc4cae62 100755 --- a/2-ui/1-document/11-modifying-document/7-create-object-tree/solution.view/index.html +++ b/2-ui/1-document/11-modifying-document/7-create-object-tree/solution.view/index.html @@ -1,49 +1,52 @@ + + -
+
- + var container = document.getElementById('container'); + createTree(container, data); + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/7-create-object-tree/source.view/index.html b/2-ui/1-document/11-modifying-document/7-create-object-tree/source.view/index.html index 35067bf8..9a64f587 100755 --- a/2-ui/1-document/11-modifying-document/7-create-object-tree/source.view/index.html +++ b/2-ui/1-document/11-modifying-document/7-create-object-tree/source.view/index.html @@ -1,13 +1,15 @@ + + -
+
- - + createTree(document.getElementById('tree'), data); + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/8-tree-count/solution.view/index.html b/2-ui/1-document/11-modifying-document/8-tree-count/solution.view/index.html index 1adccbb7..736bfa9f 100644 --- a/2-ui/1-document/11-modifying-document/8-tree-count/solution.view/index.html +++ b/2-ui/1-document/11-modifying-document/8-tree-count/solution.view/index.html @@ -1,59 +1,64 @@ - + + + + + - - + } + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/8-tree-count/source.view/index.html b/2-ui/1-document/11-modifying-document/8-tree-count/source.view/index.html index ddf25947..2f45460c 100644 --- a/2-ui/1-document/11-modifying-document/8-tree-count/source.view/index.html +++ b/2-ui/1-document/11-modifying-document/8-tree-count/source.view/index.html @@ -1,49 +1,54 @@ - + + + + + - - + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/9-calendar-table/solution.view/index.html b/2-ui/1-document/11-modifying-document/9-calendar-table/solution.view/index.html index 2adc7474..e0a7443c 100644 --- a/2-ui/1-document/11-modifying-document/9-calendar-table/solution.view/index.html +++ b/2-ui/1-document/11-modifying-document/9-calendar-table/solution.view/index.html @@ -1,80 +1,84 @@ + - - + + + -
+
- + createCalendar("calendar", 2012, 9) + - + + \ No newline at end of file diff --git a/2-ui/1-document/11-modifying-document/9-calendar-table/source.view/index.html b/2-ui/1-document/11-modifying-document/9-calendar-table/source.view/index.html index 38008482..2eedf93e 100644 --- a/2-ui/1-document/11-modifying-document/9-calendar-table/source.view/index.html +++ b/2-ui/1-document/11-modifying-document/9-calendar-table/source.view/index.html @@ -1,39 +1,41 @@ + - - + + + -
+
- + createCalendar('calendar', 2011, 1) + - + + \ No newline at end of file diff --git a/2-ui/1-document/12-multi-insert/2-sort-table-performance/solution.view/index.html b/2-ui/1-document/12-multi-insert/2-sort-table-performance/solution.view/index.html index ee89ce92..9f249c03 100644 --- a/2-ui/1-document/12-multi-insert/2-sort-table-performance/solution.view/index.html +++ b/2-ui/1-document/12-multi-insert/2-sort-table-performance/solution.view/index.html @@ -1,173 +1,202 @@ + -
- Алгоритм 1. -
    -
  1. Все TR удалить из таблицы, при этом собрав их в JavaScript-массив.
  2. -
  3. Отсортировать этот массив, используя свою функцию в sort(...) для сравнения TR
  4. -
  5. Добавить TR из массива в таблицу в нужном порядке
  6. -
- -
+
+ Алгоритм 1. +
    +
  1. Все TR удалить из таблицы, при этом собрав их в JavaScript-массив.
  2. +
  3. Отсортировать этот массив, используя свою функцию в sort(...) для сравнения TR
  4. +
  5. Добавить TR из массива в таблицу в нужном порядке
  6. +
+ +
-
- Алгоритм 2. -
    -
  1. Скопировать TR в JavaScript-массив.
  2. -
  3. Отсортировать этот массив, используя свою функцию в sort(...) для сравнения TR
  4. -
  5. Добавить TR из массива в таблицу в нужном порядке. При добавлении каждый TR сам удалится с предыдущего места.
  6. -
- -
+
+ Алгоритм 2. +
    +
  1. Скопировать TR в JavaScript-массив.
  2. +
  3. Отсортировать этот массив, используя свою функцию в sort(...) для сравнения TR
  4. +
  5. Добавить TR из массива в таблицу в нужном порядке. При добавлении каждый TR сам удалится с предыдущего места.
  6. +
+ +
-
- Алгоритм 3. -
    -
  1. Создать массив из объектов вида {elem: ссылка на TR, value: содержимое TR}.
  2. -
  3. Отсортировать массив по value. Функция сравнения во время сортировки теперь будет обращаться не к innerHTML, а к свойству объекта, это быстрее. Сортировка может потребовать многократных сравнений одного и того же элемента, отсюда выигрыш.
  4. -
  5. Добавить TR в таблицу в нужном порядке (автоудалятся с предыдущего места).
  6. -
- -
+
+ Алгоритм 3. +
    +
  1. Создать массив из объектов вида {elem: ссылка на TR, value: содержимое TR}.
  2. +
  3. Отсортировать массив по value. Функция сравнения во время сортировки теперь будет обращаться не к innerHTML, а к свойству объекта, это быстрее. Сортировка может потребовать многократных сравнений одного и того же элемента, + отсюда выигрыш.
  4. +
  5. Добавить TR в таблицу в нужном порядке (автоудалятся с предыдущего места).
  6. +
+ +
-
- Алгоритм 4. -
    -
  1. Выполнить алгоритм 3, но перед этим удалить таблицу из документа, а после - вставить обратно.
  2. -
- -
+
+ Алгоритм 4. +
    +
  1. Выполнить алгоритм 3, но перед этим удалить таблицу из документа, а после - вставить обратно.
  2. +
+ +
-
- Алгоритм 5. -
    -
  1. Замерить время генерации таблицы (создаётся строка и пишется в innerHTML).
  2. -
- -
+
+ Алгоритм 5. +
    +
  1. Замерить время генерации таблицы (создаётся строка и пишется в innerHTML).
  2. +
+ +
-
+
- + function benchMake(elem) { + var sum = 0; + for (var i = 0; i < 100; i++) { + var d = new Date; + makeTable(); + sum += new Date - d; + } + elem.innerHTML = sum + 'мс'; + } + -

Содержимое документа для придания "реалистичности"

+

Содержимое документа для придания "реалистичности"

-
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
+
01234567890123456789012345678901234567890123456789
- + + \ No newline at end of file diff --git a/2-ui/1-document/12-multi-insert/benchmark.view/index.html b/2-ui/1-document/12-multi-insert/benchmark.view/index.html index 2034a31c..12fecd91 100644 --- a/2-ui/1-document/12-multi-insert/benchmark.view/index.html +++ b/2-ui/1-document/12-multi-insert/benchmark.view/index.html @@ -1,20 +1,23 @@ + + - -Вставляются 100 элементов LI в пустой UL. - + Вставляются 100 элементов LI в пустой UL. - + - + - - + + + + + \ No newline at end of file diff --git a/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/solution.view/index.html b/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/solution.view/index.html index 906df785..bf487e59 100755 --- a/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/solution.view/index.html +++ b/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/solution.view/index.html @@ -1,37 +1,40 @@ - + + + + + -
- Кнопка: - -
+
+ Кнопка: + +
- + var div = document.body.children[0]; + div.appendChild(a); + - + + \ No newline at end of file diff --git a/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/source.view/index.html b/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/source.view/index.html index be378ff0..3492198b 100755 --- a/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/source.view/index.html +++ b/2-ui/1-document/14-styles-and-classes/1-round-button-javascript/source.view/index.html @@ -1,17 +1,22 @@ - + + + + + -
- Кнопка: - -
+
+ Кнопка: + +
- + - + + \ No newline at end of file diff --git a/2-ui/1-document/14-styles-and-classes/2-create-notification/solution.view/index.html b/2-ui/1-document/14-styles-and-classes/2-create-notification/solution.view/index.html index 94dc16d3..07ba7a03 100755 --- a/2-ui/1-document/14-styles-and-classes/2-create-notification/solution.view/index.html +++ b/2-ui/1-document/14-styles-and-classes/2-create-notification/solution.view/index.html @@ -1,17 +1,21 @@ + + - +

Уведомление

- +

- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum magnam consequatur sit laboriosam velit excepturi laborum sequi eos placeat et quia deleniti? Corrupti velit impedit autem et obcaecati fuga debitis nemo ratione iste veniam amet dicta hic ipsam unde cupiditate incidunt aut iure ipsum officiis soluta temporibus. Tempore dicta ullam delectus numquam consectetur quisquam explicabo culpa excepturi placeat quo sequi molestias reprehenderit hic at nemo cumque voluptates quidem repellendus maiores unde earum molestiae ad. -

- + Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum + magnam consequatur sit laboriosam velit excepturi laborum sequi eos placeat et quia deleniti? Corrupti velit impedit autem et obcaecati fuga debitis nemo ratione iste veniam amet dicta hic ipsam unde cupiditate incidunt aut iure ipsum officiis soluta + temporibus. Tempore dicta ullam delectus numquam consectetur quisquam explicabo culpa excepturi placeat quo sequi molestias reprehenderit hic at nemo cumque voluptates quidem repellendus maiores unde earum molestiae ad. +

+ - + + \ No newline at end of file diff --git a/2-ui/1-document/14-styles-and-classes/2-create-notification/source.view/index.html b/2-ui/1-document/14-styles-and-classes/2-create-notification/source.view/index.html index 752e22cc..dd184fce 100755 --- a/2-ui/1-document/14-styles-and-classes/2-create-notification/source.view/index.html +++ b/2-ui/1-document/14-styles-and-classes/2-create-notification/source.view/index.html @@ -1,29 +1,33 @@ + + - +

Уведомление

- +

- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum magnam consequatur sit laboriosam velit excepturi laborum sequi eos placeat et quia deleniti? Corrupti velit impedit autem et obcaecati fuga debitis nemo ratione iste veniam amet dicta hic ipsam unde cupiditate incidunt aut iure ipsum officiis soluta temporibus. Tempore dicta ullam delectus numquam consectetur quisquam explicabo culpa excepturi placeat quo sequi molestias reprehenderit hic at nemo cumque voluptates quidem repellendus maiores unde earum molestiae ad. -

- + Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum aspernatur quam ex eaque inventore quod voluptatem adipisci omnis nemo nulla fugit iste numquam ducimus cumque minima porro ea quidem maxime necessitatibus beatae labore soluta voluptatum + magnam consequatur sit laboriosam velit excepturi laborum sequi eos placeat et quia deleniti? Corrupti velit impedit autem et obcaecati fuga debitis nemo ratione iste veniam amet dicta hic ipsam unde cupiditate incidunt aut iure ipsum officiis soluta + temporibus. Tempore dicta ullam delectus numquam consectetur quisquam explicabo culpa excepturi placeat quo sequi molestias reprehenderit hic at nemo cumque voluptates quidem repellendus maiores unde earum molestiae ad. +

+

В CSS есть готовый класс notification, который можно ставить уведомлению.

- + + \ No newline at end of file diff --git a/2-ui/1-document/14-styles-and-classes/getiecomputedstyle.view/index.html b/2-ui/1-document/14-styles-and-classes/getiecomputedstyle.view/index.html index da281cf4..a757f39f 100644 --- a/2-ui/1-document/14-styles-and-classes/getiecomputedstyle.view/index.html +++ b/2-ui/1-document/14-styles-and-classes/getiecomputedstyle.view/index.html @@ -1,24 +1,30 @@ + + - + -
Тестовый элемент с margin 1%
+
Тестовый элемент с margin 1%
- + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/3-div-placeholder/solution.view/index.html b/2-ui/1-document/15-metrics/3-div-placeholder/solution.view/index.html index be9ce325..fd8f91f0 100755 --- a/2-ui/1-document/15-metrics/3-div-placeholder/solution.view/index.html +++ b/2-ui/1-document/15-metrics/3-div-placeholder/solution.view/index.html @@ -1,47 +1,50 @@ + - + + -Before Before Before + Before Before Before -
-Text Text Text
-Text Text Text
-
+
+ Text Text Text +
Text Text Text +
+
-After After After + After After After - + div.style.position = 'absolute' + div.style.right = div.style.top = 0 + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/3-div-placeholder/source.view/index.html b/2-ui/1-document/15-metrics/3-div-placeholder/source.view/index.html index de20a8c1..69e3e504 100755 --- a/2-ui/1-document/15-metrics/3-div-placeholder/source.view/index.html +++ b/2-ui/1-document/15-metrics/3-div-placeholder/source.view/index.html @@ -1,33 +1,37 @@ + - + + -Before Before Before + Before Before Before -
-Text Text Text
-Text Text Text
-
+
+ Text Text Text +
Text Text Text +
+
-After After After + After After After - + var div = document.getElementById('moving-div') + div.style.position = 'absolute' + div.style.right = div.style.top = 0 + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/4-put-ball-in-center/ball-half/index.html b/2-ui/1-document/15-metrics/4-put-ball-in-center/ball-half/index.html index 218ca511..23b8d7b2 100755 --- a/2-ui/1-document/15-metrics/4-put-ball-in-center/ball-half/index.html +++ b/2-ui/1-document/15-metrics/4-put-ball-in-center/ball-half/index.html @@ -1,39 +1,41 @@ - - + + + -
- -. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -
+
+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +
- + // ball.offsetWidth=0 before image loaded! + // to fix: set width + ball.style.left = Math.round(field.clientWidth / 2) + 'px' + ball.style.top = Math.round(field.clientHeight / 2) + 'px' + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/4-put-ball-in-center/solution.view/index.html b/2-ui/1-document/15-metrics/4-put-ball-in-center/solution.view/index.html index f82d6168..47694b5a 100755 --- a/2-ui/1-document/15-metrics/4-put-ball-in-center/solution.view/index.html +++ b/2-ui/1-document/15-metrics/4-put-ball-in-center/solution.view/index.html @@ -1,39 +1,41 @@ + - + + -
- -. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -
+
+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +
- + // ball.offsetWidth=0 before image loaded! + // to fix: set width + ball.style.left = Math.round(field.clientWidth / 2 - ball.offsetWidth / 2) + 'px' + ball.style.top = Math.round(field.clientHeight / 2 - ball.offsetHeight / 2) + 'px' + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/4-put-ball-in-center/source.view/index.html b/2-ui/1-document/15-metrics/4-put-ball-in-center/source.view/index.html index 6a5ff40b..8b54beed 100755 --- a/2-ui/1-document/15-metrics/4-put-ball-in-center/source.view/index.html +++ b/2-ui/1-document/15-metrics/4-put-ball-in-center/source.view/index.html @@ -1,27 +1,30 @@ + - + + -
- -. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -
+
+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +
- + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/5-expand-element/solution.view/index.html b/2-ui/1-document/15-metrics/5-expand-element/solution.view/index.html index e665b88d..6c51d6ad 100755 --- a/2-ui/1-document/15-metrics/5-expand-element/solution.view/index.html +++ b/2-ui/1-document/15-metrics/5-expand-element/solution.view/index.html @@ -1,56 +1,53 @@ + + -
-текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -
+
+ текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст +
- + elem.style.width = bodyInnerWidth + 'px'; + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/5-expand-element/source.view/index.html b/2-ui/1-document/15-metrics/5-expand-element/source.view/index.html index a33552bd..4bfe7fee 100755 --- a/2-ui/1-document/15-metrics/5-expand-element/source.view/index.html +++ b/2-ui/1-document/15-metrics/5-expand-element/source.view/index.html @@ -1,5 +1,6 @@ + + -
-текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст -
+
+ текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст +
- + // ... ваш код + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/cssWidthScroll.view/index.html b/2-ui/1-document/15-metrics/cssWidthScroll.view/index.html index bf4f7925..22943c54 100755 --- a/2-ui/1-document/15-metrics/cssWidthScroll.view/index.html +++ b/2-ui/1-document/15-metrics/cssWidthScroll.view/index.html @@ -1,24 +1,26 @@ - + + + + + -
-текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст -текст текст текст текст текст текст текст текст текст текст текст текст текст текст -
+
+ текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст текст + текст текст текст текст текст текст текст текст текст текст текст текст текст текст +
- + -У элемента стоит style="width:300px"
+ У элемента стоит style="width:300px" +
- + - + + \ No newline at end of file diff --git a/2-ui/1-document/15-metrics/metric.view/index.html b/2-ui/1-document/15-metrics/metric.view/index.html index 246fa64e..88392ce7 100755 --- a/2-ui/1-document/15-metrics/metric.view/index.html +++ b/2-ui/1-document/15-metrics/metric.view/index.html @@ -1,91 +1,94 @@ - - - + + + + -
-

Introduction

-

This Ecma Standard is based on several originating technologies, the most well known being JavaScript (Netscape) and JScript (Microsoft). The language was invented by Brendan Eich at Netscape and first appeared in that company's Navigator 2.0 browser. It has appeared in all subsequent browsers from Netscape and in all browsers from Microsoft starting with Internet Explorer 3.0. The development of this Standard started in November 1996. The first edition of this Ecma Standard was adopted by the Ecma General Assembly of June 1997.

+
+

Introduction

+

This Ecma Standard is based on several originating technologies, the most well known being JavaScript (Netscape) and JScript (Microsoft). The language was invented by Brendan Eich at Netscape and first appeared in that company's Navigator 2.0 browser. + It has appeared in all subsequent browsers from Netscape and in all browsers from Microsoft starting with Internet Explorer 3.0. The development of this Standard started in November 1996. The first edition of this Ecma Standard was adopted by the + Ecma General Assembly of June 1997.

-

That Ecma Standard was submitted to ISO/IEC JTC 1 for adoption under the fast-track procedure, and approved as international standard ISO/IEC 16262, in April 1998. The Ecma General Assembly of June 1998 approved the second edition of ECMA-262 to keep it fully aligned with ISO/IEC 16262. Changes between the first and the second edition are editorial in nature.

+

That Ecma Standard was submitted to ISO/IEC JTC 1 for adoption under the fast-track procedure, and approved as international standard ISO/IEC 16262, in April 1998. The Ecma General Assembly of June 1998 approved the second edition of ECMA-262 to keep + it fully aligned with ISO/IEC 16262. Changes between the first and the second edition are editorial in nature.

-

The third edition of the Standard introduced powerful regular expressions, better string handling, new control statements, try/catch exception handling, tighter definition of errors, formatting for numeric output and minor changes in anticipation of forthcoming internationalisation facilities and future language growth. The third edition of the ECMAScript standard was adopted by the Ecma General Assembly of December 1999 and published as ISO/IEC 16262:2002 in June 2002.

+

The third edition of the Standard introduced powerful regular expressions, better string handling, new control statements, try/catch exception handling, tighter definition of errors, formatting for numeric output and minor changes in anticipation + of forthcoming internationalisation facilities and future language growth. The third edition of the ECMAScript standard was adopted by the Ecma General Assembly of December 1999 and published as ISO/IEC 16262:2002 in June 2002.

-
+
-
Координаты мыши: ...
-
+
Координаты мыши: ...
+
- + document.onmousemove = function(e) { + document.getElementById('mouse').innerHTML = Math.round(e.clientX) + ':' + Math.round(e.clientY); + }; + - + + \ No newline at end of file diff --git a/2-ui/1-document/17-coordinates/1-find-point-coordinates/solution.view/index.html b/2-ui/1-document/17-coordinates/1-find-point-coordinates/solution.view/index.html index f4c46101..b0daa0ef 100755 --- a/2-ui/1-document/17-coordinates/1-find-point-coordinates/solution.view/index.html +++ b/2-ui/1-document/17-coordinates/1-find-point-coordinates/solution.view/index.html @@ -1,23 +1,27 @@ + + - Кликните на любое место, чтобы получить координаты относительно окна.
- Это для удобства тестирования, чтобы проверить результат, который вы получите из DOM.
+ Кликните на любое место, чтобы получить координаты относительно окна. +
Это для удобства тестирования, чтобы проверить результат, который вы получите из DOM. +
(координаты появятся тут)
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@@ -28,35 +32,34 @@ - + + \ No newline at end of file diff --git a/2-ui/1-document/17-coordinates/1-find-point-coordinates/source.view/index.html b/2-ui/1-document/17-coordinates/1-find-point-coordinates/source.view/index.html index cd09f1f8..bcd35954 100755 --- a/2-ui/1-document/17-coordinates/1-find-point-coordinates/source.view/index.html +++ b/2-ui/1-document/17-coordinates/1-find-point-coordinates/source.view/index.html @@ -1,23 +1,27 @@ + + - Кликните на любое место, чтобы получить координаты относительно окна.
- Это для удобства тестирования, чтобы проверить результат, который вы получите из DOM.
+ Кликните на любое место, чтобы получить координаты относительно окна. +
Это для удобства тестирования, чтобы проверить результат, который вы получите из DOM. +
(координаты появятся тут)
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@@ -28,12 +32,11 @@ - + + \ No newline at end of file diff --git a/2-ui/1-document/17-coordinates/2-position-at/solution.view/index.html b/2-ui/1-document/17-coordinates/2-position-at/solution.view/index.html index 4726fcc2..82d38dde 100755 --- a/2-ui/1-document/17-coordinates/2-position-at/solution.view/index.html +++ b/2-ui/1-document/17-coordinates/2-position-at/solution.view/index.html @@ -1,30 +1,26 @@ + - - -

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reprehenderit sint atque dolorum fuga ad incidunt voluptatum error fugiat animi amet! Odio temporibus nulla id unde quaerat dignissimos enim nisi rem provident molestias sit tempore omnis recusandae esse sequi officia sapiente.

- - -
-- Что на завтрак, Бэрримор? -- Овсянка, сэр. -- А на обед? -- Овсянка, сэр. -- Ну а на ужин? -- Котлеты, сэр. -- Уррра!!! -- Из овсянки, сэр!!! -
- -

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reprehenderit sint atque dolorum fuga ad incidunt voluptatum error fugiat animi amet! Odio temporibus nulla id unde quaerat dignissimos enim nisi rem provident molestias sit tempore omnis recusandae esse sequi officia sapiente.

- - - - + + \ No newline at end of file diff --git a/2-ui/1-document/3-dom-console/losi.html b/2-ui/1-document/3-dom-console/losi.html index 59a9bf6b..06f8da0d 100644 --- a/2-ui/1-document/3-dom-console/losi.html +++ b/2-ui/1-document/3-dom-console/losi.html @@ -1,11 +1,13 @@ - - Правда о лосях -
    -
  1. Лось — животное хитрое
  2. - -
  3. ..И коварное!
  4. -
- - + + + Правда о лосях +
    +
  1. Лось — животное хитрое
  2. + +
  3. ..И коварное!
  4. +
+ + + \ No newline at end of file diff --git a/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/solution.view/index.html b/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/solution.view/index.html index 8b548755..fc03772e 100644 --- a/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/solution.view/index.html +++ b/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/solution.view/index.html @@ -1,28 +1,66 @@ + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
1:12:13:14:15:1
1:22:23:24:25:2
1:32:33:34:35:3
1:42:43:44:45:4
1:52:53:54:55:5
1:12:13:14:15:1
1:22:23:24:25:2
1:32:33:34:35:3
1:42:43:44:45:4
1:52:53:54:55:5
- + + \ No newline at end of file diff --git a/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/source.view/index.html b/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/source.view/index.html index b1fa9345..d9b40920 100644 --- a/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/source.view/index.html +++ b/2-ui/1-document/4-traversing-dom/4-select-diagonal-cells/source.view/index.html @@ -1,25 +1,63 @@ + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
1:12:13:14:15:1
1:22:23:24:25:2
1:32:33:34:35:3
1:42:43:44:45:4
1:52:53:54:55:5
1:12:13:14:15:1
1:22:23:24:25:2
1:32:33:34:35:3
1:42:43:44:45:4
1:52:53:54:55:5
- + + \ No newline at end of file diff --git a/2-ui/1-document/5-searching-elements-dom/1-find-elements/table.html b/2-ui/1-document/5-searching-elements-dom/1-find-elements/table.html index 54eb67e4..3484bc0c 100644 --- a/2-ui/1-document/5-searching-elements-dom/1-find-elements/table.html +++ b/2-ui/1-document/5-searching-elements-dom/1-find-elements/table.html @@ -1,42 +1,48 @@ - - - - - -
- - -
- -
- -
- Поиск по посетителям: - - - - - - - - - - - -
Возраст: - - - -
Дополнительно: - - - -
- - -
- + + + + + + +
+ + +
+ +
+ +
+ Поиск по посетителям: + + + + + + + + + + + +
Возраст: + + + +
Дополнительно: + + + +
+ + +
+ \ No newline at end of file diff --git a/2-ui/1-document/5-searching-elements-dom/2-tree/solution.view/index.html b/2-ui/1-document/5-searching-elements-dom/2-tree/solution.view/index.html index f4e91356..e9b5d644 100644 --- a/2-ui/1-document/5-searching-elements-dom/2-tree/solution.view/index.html +++ b/2-ui/1-document/5-searching-elements-dom/2-tree/solution.view/index.html @@ -1,61 +1,66 @@ - + + + + + - - + alert(title + ': ' + childCount); + } + - + + \ No newline at end of file diff --git a/2-ui/1-document/5-searching-elements-dom/2-tree/source.view/index.html b/2-ui/1-document/5-searching-elements-dom/2-tree/source.view/index.html index ddf25947..2f45460c 100644 --- a/2-ui/1-document/5-searching-elements-dom/2-tree/source.view/index.html +++ b/2-ui/1-document/5-searching-elements-dom/2-tree/source.view/index.html @@ -1,49 +1,54 @@ - + + + + + - - + - + + \ No newline at end of file diff --git a/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/solution.view/index.html b/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/solution.view/index.html index 817e736e..ca1cfb81 100644 --- a/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/solution.view/index.html +++ b/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/solution.view/index.html @@ -1,70 +1,207 @@ + - - + -

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

- + log('getElementsByTagName: ' + bench(runGetList, 10000)); + log('querySelectorAll: ' + bench(runQueryList, 10000)); + - + \ No newline at end of file diff --git a/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/source.view/index.html b/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/source.view/index.html index 3e989571..4275fa0b 100644 --- a/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/source.view/index.html +++ b/2-ui/1-document/6-searching-elements-internals/3-benchmark-search-dom/source.view/index.html @@ -1,32 +1,170 @@ + - + + -

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

-

1

2

3

4

5

6

7

8

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

- + - + \ No newline at end of file diff --git a/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html b/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html index 943ade17..47a95f5b 100644 --- a/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html +++ b/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html @@ -1,5 +1,6 @@ +
Выберите жанр
@@ -9,4 +10,5 @@ - + + \ No newline at end of file diff --git a/2-ui/1-document/9-attributes-and-custom-properties/2-set-class-links/solution.view/index.html b/2-ui/1-document/9-attributes-and-custom-properties/2-set-class-links/solution.view/index.html index 4beb6d72..28f0790f 100644 --- a/2-ui/1-document/9-attributes-and-custom-properties/2-set-class-links/solution.view/index.html +++ b/2-ui/1-document/9-attributes-and-custom-properties/2-set-class-links/solution.view/index.html @@ -1,36 +1,38 @@ + + -список - + список + - + for (var i = 0; i < links.length; i++) { + links[i].classList.add('external'); + } + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/solution.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/solution.view/index.html index f3cd221f..6e44472b 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/solution.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/solution.view/index.html @@ -1,20 +1,23 @@ + + - + -
Текст
+
Текст
- + - + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/source.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/source.view/index.html index 2ed0953e..1c50e998 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/source.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/1-hide-other/source.view/index.html @@ -1,16 +1,19 @@ + + - + -
Текст
+
Текст
- + - + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/solution.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/solution.view/index.html index f9a4399c..1585fbd2 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/solution.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/solution.view/index.html @@ -1,58 +1,58 @@ + - - + + + - - + titleElem.onclick = function() { + menuElem.classList.toggle('open'); + }; + - + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/source.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/source.view/index.html index 9aebcbfb..a868d472 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/source.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/4-sliding-menu/source.view/index.html @@ -1,17 +1,20 @@ + - + + -▶ ▼ Сладости (нажми меня)! - + ▶ ▼ Сладости (нажми меня)! + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/solution.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/solution.view/index.html index 0dc0abe4..52c1ef3b 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/solution.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/solution.view/index.html @@ -1,46 +1,46 @@ + - - + + -
-
-

Лошадь

-

Домашняя лошадь — животное семейства непарнокопытных, одомашненный и единственный сохранившийся подвид дикой лошади, вымершей в дикой природе, за исключением небольшой популяции лошади Пржевальского.

- +
+
+

Лошадь

+

Домашняя лошадь — животное семейства непарнокопытных, одомашненный и единственный сохранившийся подвид дикой лошади, вымершей в дикой природе, за исключением небольшой популяции лошади Пржевальского.

+ +
+
+

Осёл

+

Домашний осёл или ишак — одомашненный подвид дикого осла, сыгравший важную историческую роль в развитии хозяйства и культуры человека. Все одомашненные ослы относятся к африканским ослам.

+ +
+
+

Корова, а также пара слов о диком быке, о волах и о тёлках.

+

Коро́ва — самка домашнего быка, одомашненного подвида дикого быка, парнокопытного жвачного животного семейства полорогих. Самцы вида называются быками, молодняк — телятами, кастрированные самцы — волами. Молодых (до первой стельности) самок называют + тёлками.

+ +
-
-

Осёл

-

Домашний осёл или ишак — одомашненный подвид дикого осла, сыгравший важную историческую роль в развитии хозяйства и культуры человека. Все одомашненные ослы относятся к африканским ослам.

- -
-
-

Корова, а также пара слов о диком быке, о волах и о тёлках.

-

Коро́ва — самка домашнего быка, одомашненного подвида дикого быка, парнокопытного жвачного животного семейства полорогих. Самцы вида называются быками, молодняк — телятами, кастрированные самцы — волами. Молодых (до первой стельности) самок называют тёлками.

- -
-
- + button.onclick = function() { + var el = this.parentNode; + el.parentNode.removeChild(el); + }; + } + - + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/source.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/source.view/index.html index 9a3b1364..9dab0ed2 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/source.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/5-hide-message/source.view/index.html @@ -1,28 +1,32 @@ + - - + + -Кнопка для удаления: + Кнопка для удаления: + -
-
-

Лошадь

-

Домашняя лошадь — животное семейства непарнокопытных, одомашненный и единственный сохранившийся подвид дикой лошади, вымершей в дикой природе, за исключением небольшой популяции лошади Пржевальского.

-
-
-

Осёл

-

Домашний осёл или ишак — одомашненный подвид дикого осла, сыгравший важную историческую роль в развитии хозяйства и культуры человека. Все одомашненные ослы относятся к африканским ослам.

-
-
-

Корова, а также пара слов о диком быке, о волах и о тёлках.

-

Коро́ва — самка домашнего быка, одомашненного подвида дикого быка, парнокопытного жвачного животного семейства полорогих. Самцы вида называются быками, молодняк — телятами, кастрированные самцы — волами. Молодых (до первой стельности) самок называют тёлками.

-
-
+
+
+

Лошадь

+

Домашняя лошадь — животное семейства непарнокопытных, одомашненный и единственный сохранившийся подвид дикой лошади, вымершей в дикой природе, за исключением небольшой популяции лошади Пржевальского.

+
+
+

Осёл

+

Домашний осёл или ишак — одомашненный подвид дикого осла, сыгравший важную историческую роль в развитии хозяйства и культуры человека. Все одомашненные ослы относятся к африканским ослам.

+
+
+

Корова, а также пара слов о диком быке, о волах и о тёлках.

+

Коро́ва — самка домашнего быка, одомашненного подвида дикого быка, парнокопытного жвачного животного семейства полорогих. Самцы вида называются быками, молодняк — телятами, кастрированные самцы — волами. Молодых (до первой стельности) самок называют + тёлками.

+
+
- + + \ No newline at end of file diff --git a/2-ui/2-events-and-interfaces/1-introduction-browser-events/6-carousel/solution.view/index.html b/2-ui/2-events-and-interfaces/1-introduction-browser-events/6-carousel/solution.view/index.html index 35481b9c..4da04229 100755 --- a/2-ui/2-events-and-interfaces/1-introduction-browser-events/6-carousel/solution.view/index.html +++ b/2-ui/2-events-and-interfaces/1-introduction-browser-events/6-carousel/solution.view/index.html @@ -1,4 +1,5 @@ + @@ -6,67 +7,66 @@ -