Browse Source

fifty-shades-of-cold: change file naming

content-update
Marie Malarme 3 years ago committed by Clément
parent
commit
97f31358ab
  1. 2
      dom/fifty-shades-of-cold_test.js
  2. 8
      subjects/fifty-shades-of-cold/README.md
  3. 0
      subjects/fifty-shades-of-cold/fifty-shades-of-cold.data.js
  4. 0
      subjects/fifty-shades-of-cold/fifty-shades-of-cold.html

2
dom/fifty-shades-of-cold_test.js

@ -1,4 +1,4 @@
import { colors } from './subjects/fifty-shades-of-cold/data.js'
import { colors } from './subjects/fifty-shades-of-cold/fifty-shades-of-cold.data.js'
colors.sort()

8
subjects/fifty-shades-of-cold/README.md

@ -30,16 +30,16 @@ Check the `colors` array provided in the data file below.
- [`className`](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)
- [`classList`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList): `contains()`, `replace()`
### Provided files
### Files
You have at your disposal the following files that you can download to test locally:
You only need to create & submit the JS file `fifty-shades-of-cold.js` ; we're providing you the following files to download (click right and save link) & test locally:
- the HTML file [index.html](/public/subjects/fifty-shades-of-cold/index.html) to open in the browser, which includes:
- the HTML file [fifty-shades-of-cold.html](/public/subjects/fifty-shades-of-cold/fifty-shades-of-cold.html) to open in the browser, which includes:
- the JS script running some code, and which will also allow to run yours
- some CSS pre-styled classes: feel free to use those as they are, or modify them
- the data file [data.js](/public/subjects/fifty-shades-of-cold/data.js) from which you can import `colors`
- the data file [fifty-shades-of-cold.data.js](/public/subjects/fifty-shades-of-cold/fifty-shades-of-cold.data.js) from which you can import `colors`
### Expected result

0
subjects/fifty-shades-of-cold/data.js → subjects/fifty-shades-of-cold/fifty-shades-of-cold.data.js

0
subjects/fifty-shades-of-cold/index.html → subjects/fifty-shades-of-cold/fifty-shades-of-cold.html

Loading…
Cancel
Save