Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov authored and actions-user committed Feb 23, 2024
1 parent b11fcab commit 94b4a85
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
4 changes: 3 additions & 1 deletion css/css-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
```

Expand Down
33 changes: 15 additions & 18 deletions jquery/jquery-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 94b4a85

Please sign in to comment.