From 94b4a850fe9701d262f50268e01dd1b2a738e728 Mon Sep 17 00:00:00 2001 From: Ebazhanov Date: Fri, 23 Feb 2024 17:01:47 +0000 Subject: [PATCH] Prettified Code! --- css/css-quiz.md | 4 +++- jquery/jquery-quiz.md | 33 +++++++++++++++------------------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/css/css-quiz.md b/css/css-quiz.md index a419e87701..893c01ae81 100644 --- a/css/css-quiz.md +++ b/css/css-quiz.md @@ -695,7 +695,9 @@ li:nth-child(2n + 3) { ```css @font-face { font-family: 'Avenir', sans-serif; - src: url('avenir.woff2') format('woff2'), url('avenir.woff') format('woff'); + src: + url('avenir.woff2') format('woff2'), + url('avenir.woff') format('woff'); } ``` diff --git a/jquery/jquery-quiz.md b/jquery/jquery-quiz.md index a42c64b69e..c62607d786 100755 --- a/jquery/jquery-quiz.md +++ b/jquery/jquery-quiz.md @@ -1444,34 +1444,31 @@ $(function({ - [ ] B ```js -$($.get('http://httpbin.org/get'), $.get('http://httpbin.org/delay/3')).then(function ( - getData, - delayedData, -) { - //DOM is ready, getData and delayedData are available -}); +$($.get('http://httpbin.org/get'), $.get('http://httpbin.org/delay/3')).then( + function (getData, delayedData) { + //DOM is ready, getData and delayedData are available + }, +); ``` - [ ] C ```js -$.when($.get('http://httpbin.org/get'), $.get('http://httpbin.org/delay/3')).then(function ( - getData, - delayedData, -) { - //DOM is ready, getData and delayedData are available -}); +$.when($.get('http://httpbin.org/get'), $.get('http://httpbin.org/delay/3')).then( + function (getData, delayedData) { + //DOM is ready, getData and delayedData are available + }, +); ``` - [x] D ```js -$.ready($.get('http://httpbin.org/get'), $.get('http://httpbin.org/delay/3')).then(function ( - getData, - delayedData, -) { - //DOM is ready, getData and delayedData are available -}); +$.ready($.get('http://httpbin.org/get'), $.get('http://httpbin.org/delay/3')).then( + function (getData, delayedData) { + //DOM is ready, getData and delayedData are available + }, +); ``` #### Q74. You want to take an element and any event handlers that go with it out of the DOM to do some work—without the changes affecting the rest of the page—and then move it somewhere else in the DOM, like right after the opening tag. What should go on the first line of this code snippet?