From 0ccebc7eb352eda4d26d0b876fea36f24f482eec Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 17 Apr 2021 00:11:36 +0000 Subject: [CRON] sync translated content --- files/pl/_redirects.txt | 5 ++-- files/pl/_wikihistory.json | 18 +++++------ .../creating_and_triggering_events/index.html | 35 ++++++++++++++++++++++ .../creating_and_triggering_events/index.html | 35 ---------------------- 4 files changed, 47 insertions(+), 46 deletions(-) create mode 100644 files/pl/orphaned/web/guide/events/creating_and_triggering_events/index.html delete mode 100644 files/pl/web/guide/events/creating_and_triggering_events/index.html (limited to 'files/pl') diff --git a/files/pl/_redirects.txt b/files/pl/_redirects.txt index 37438cfa54..1353cbcc40 100644 --- a/files/pl/_redirects.txt +++ b/files/pl/_redirects.txt @@ -322,7 +322,7 @@ /pl/docs/DOM/Selection/toString /pl/docs/Web/API/Selection/toString /pl/docs/DOM/Storage /pl/docs/Web/API/Web_Storage_API /pl/docs/DOM/cssRule /pl/docs/Web/API/CSSRule -/pl/docs/DOM/dispatchEvent_-_przykład /pl/docs/Web/Guide/Events/Creating_and_triggering_events +/pl/docs/DOM/dispatchEvent_-_przykład /pl/docs/orphaned/Web/Guide/Events/Creating_and_triggering_events /pl/docs/DOM/document /pl/docs/Web/API/Document /pl/docs/DOM/document.URL /pl/docs/Web/API/Document/URL /pl/docs/DOM/document.activeElement /pl/docs/Web/API/Document/activeElement @@ -570,7 +570,7 @@ /pl/docs/DOM:Selection:toString /pl/docs/Web/API/Selection/toString /pl/docs/DOM:Storage /pl/docs/Web/API/Web_Storage_API /pl/docs/DOM:cssRule /pl/docs/Web/API/CSSRule -/pl/docs/DOM:dispatchEvent_-_przykład /pl/docs/Web/Guide/Events/Creating_and_triggering_events +/pl/docs/DOM:dispatchEvent_-_przykład /pl/docs/orphaned/Web/Guide/Events/Creating_and_triggering_events /pl/docs/DOM:document /pl/docs/Web/API/Document /pl/docs/DOM:document.URL /pl/docs/Web/API/Document/URL /pl/docs/DOM:document.activeElement /pl/docs/Web/API/Document/activeElement @@ -2105,6 +2105,7 @@ /pl/docs/Web/Guide/CSS /pl/docs/Learn/CSS /pl/docs/Web/Guide/CSS/Kolumny_CSS3 /pl/docs/Web/CSS/CSS_Columns/Using_multi-column_layouts /pl/docs/Web/Guide/CSS/Sprawdzanie_media_queries /pl/docs/Web/CSS/Media_Queries/Testing_media_queries +/pl/docs/Web/Guide/Events/Creating_and_triggering_events /pl/docs/orphaned/Web/Guide/Events/Creating_and_triggering_events /pl/docs/Web/Guide/HTML /pl/docs/Learn/HTML /pl/docs/Web/Guide/HTML/Wprowadzenie /pl/docs/Learn/HTML/Introduction_to_HTML /pl/docs/Web/Guide/Liczniki_CSS /pl/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters diff --git a/files/pl/_wikihistory.json b/files/pl/_wikihistory.json index fb9326f5e5..19cdb6c5e6 100644 --- a/files/pl/_wikihistory.json +++ b/files/pl/_wikihistory.json @@ -10655,15 +10655,6 @@ "Akustyk" ] }, - "Web/Guide/Events/Creating_and_triggering_events": { - "modified": "2019-03-23T23:50:28.341Z", - "contributors": [ - "khalid32", - "Mgjbot", - "Ptak82", - "Jan Dudek" - ] - }, "conflicting/Web/API/Document_Object_Model_7d961b8030c6099ee907f4f4b5fe6b3d": { "modified": "2019-03-23T23:54:33.828Z", "contributors": [ @@ -11745,5 +11736,14 @@ "contributors": [ "dk333" ] + }, + "orphaned/Web/Guide/Events/Creating_and_triggering_events": { + "modified": "2019-03-23T23:50:28.341Z", + "contributors": [ + "khalid32", + "Mgjbot", + "Ptak82", + "Jan Dudek" + ] } } \ No newline at end of file diff --git a/files/pl/orphaned/web/guide/events/creating_and_triggering_events/index.html b/files/pl/orphaned/web/guide/events/creating_and_triggering_events/index.html new file mode 100644 index 0000000000..48b07b10ce --- /dev/null +++ b/files/pl/orphaned/web/guide/events/creating_and_triggering_events/index.html @@ -0,0 +1,35 @@ +--- +title: dispatchEvent - przykład +slug: orphaned/Web/Guide/Events/Creating_and_triggering_events +tags: + - DOM + - Dokumentacja_Gecko_DOM + - Gecko + - Wszystkie_kategorie +translation_of: Web/Guide/Events/Creating_and_triggering_events +translation_of_original: Web/Guide/Events/Event_dispatching_example +original_slug: Web/Guide/Events/Creating_and_triggering_events +--- +
+ {{ ApiRef() }}
+

Poniższy przykład przedstawia symulację kliknięcia w pole wyboru opartą o metody DOM. Możesz zobaczyć przykład w działaniu.

+
function simulateClick() {
+  var evt = document.createEvent("MouseEvents");
+  evt.initMouseEvent("click", true, true, window,
+    0, 0, 0, 0, 0, false, false, false, false, 0, null);
+  var cb = document.getElementById("checkbox");
+  var canceled = !cb.dispatchEvent(evt);
+  if(canceled) {
+    // metoda obsługi zdarzenia wywołała preventDefault
+    alert("canceled");
+  } else {
+    // nie wywołano preventDefault
+    alert("not canceled");
+  }
+}
+
+

 

+

 

+
+  
+

{{ languages( { "en": "en/DOM/dispatchEvent_example", "es": "es/DOM/dispatchEvent_example", "fr": "fr/DOM/dispatchEvent_exemple" } ) }}

diff --git a/files/pl/web/guide/events/creating_and_triggering_events/index.html b/files/pl/web/guide/events/creating_and_triggering_events/index.html deleted file mode 100644 index bc359ede78..0000000000 --- a/files/pl/web/guide/events/creating_and_triggering_events/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: dispatchEvent - przykład -slug: Web/Guide/Events/Creating_and_triggering_events -tags: - - DOM - - Dokumentacja_Gecko_DOM - - Gecko - - Wszystkie_kategorie -translation_of: Web/Guide/Events/Creating_and_triggering_events -translation_of_original: Web/Guide/Events/Event_dispatching_example -original_slug: DOM/dispatchEvent_-_przykład ---- -
- {{ ApiRef() }}
-

Poniższy przykład przedstawia symulację kliknięcia w pole wyboru opartą o metody DOM. Możesz zobaczyć przykład w działaniu.

-
function simulateClick() {
-  var evt = document.createEvent("MouseEvents");
-  evt.initMouseEvent("click", true, true, window,
-    0, 0, 0, 0, 0, false, false, false, false, 0, null);
-  var cb = document.getElementById("checkbox");
-  var canceled = !cb.dispatchEvent(evt);
-  if(canceled) {
-    // metoda obsługi zdarzenia wywołała preventDefault
-    alert("canceled");
-  } else {
-    // nie wywołano preventDefault
-    alert("not canceled");
-  }
-}
-
-

 

-

 

-
-  
-

{{ languages( { "en": "en/DOM/dispatchEvent_example", "es": "es/DOM/dispatchEvent_example", "fr": "fr/DOM/dispatchEvent_exemple" } ) }}

-- cgit v1.2.3-54-g00ecf