Browse Source

removing npm, correcting subject

pull/667/head
OGordoo 4 years ago
parent
commit
f6f4dbe63a
  1. 2
      subjects/mini-framework/README.md
  2. 6
      subjects/mini-framework/audit/README.md
  3. 10
      subjects/mini-framework/routing/README.md

2
subjects/mini-framework/README.md

@ -17,7 +17,7 @@ Your framework should implement:
You must create documentation for your framework, so that users (auditers) are able to understand and know how to use your framework without experiencing any awkwardness. By documentation we mean, the explaining of how does the framework works and how to work with it, for example: how to create a div, how to add an event to a button, etc.
Your framework will be tested by using it, like you previously have used one, in the social network project. So the user has to be presented to a folder structure that when executed `npm start` at the root of the folder, it runs the app. The user testing your framework will have to implement some simple code in order to test the features described bellow.
Your framework will be tested by using it, like you previously have used one, in the social network project. So the user has to be presented to a folder structure that allows him to run the app from the root of that folder structure. The user testing your framework will have to implement some simple code in order to test the features described bellow.
#### Abstracting the DOM

6
subjects/mini-framework/audit/README.md

@ -1,10 +1,6 @@
#### Functional
###### Does the project contain documentation? (If so, you will need it)
##### Create a project and use the mini-framework in it and try to run `npm start` at the root folder of the project.
###### Did the website start without errors from the framework?
###### Are all the framework API correctly documented? (If so, you will need it for the next questions)
##### First take a look at the behavior of the code presented in the [_dom/README.md_](https://public.01-edu.org/subjects/mini-framework/dom) file. Then try to replicate the behavior of the example with the corresponding template of the framework and run the app.

10
subjects/mini-framework/routing/README.md

@ -8,7 +8,7 @@ index.html:
```html
<!DOCTYPE html>
<html class="no-js">
<html>
<head>
<meta charset="utf-8" />
<title></title>
@ -25,7 +25,7 @@ active.html:
```html
<!DOCTYPE html>
<html class="no-js">
<html>
<head>
<meta charset="utf-8" />
<title>Active</title>
@ -41,7 +41,7 @@ active.html:
script.js:
```js
const readTextFile = (file, allText = '') => {
const getTextFile = (file, allText = '') => {
let rawFile = new XMLHttpRequest()
rawFile.open('GET', file, false)
rawFile.onreadystatechange = () => {
@ -57,6 +57,6 @@ const readTextFile = (file, allText = '') => {
document.body.innerHTML =
location.pathname === '/'
? readTextFile('./index.html')
: readTextFile('./active.html')
? getTextFile('./index.html')
: getTextFile('./active.html')
```

Loading…
Cancel
Save