Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Update README: How/where the init URL is taken
Browse files Browse the repository at this point in the history
  • Loading branch information
nghuuphuoc committed Oct 19, 2013
1 parent fced4bb commit e4e1e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@ $ bower install responsivetest
```

* Point your web server to the ResponsiveTest directory.
You can python to simplify this step by running the following command:
You can use python to simplify this step by running the following command:

```bash
$ python -m SimpleHTTPServer <port>
```

Then access the browser at ```http://localhost:<port>```
Then, access the browser at ```http://localhost:<port>```

> ResponsiveTest is written in CSS, Javascript, and HTML entirely.
> The tool uses an Ajax request to retrieve the devices data which is stored in an external file (```data/devices.json```).
>
> As you know, the browser doesn't allow to do it if the file is served locally due to security concern
> ```Origin null is not allowed by Access-Control-Allow-Origin```
>
> That's why we need to run it with a HTTP server.
## Add more devices
Expand All @@ -39,6 +41,8 @@ If you want it to support more devices and screen resolutions, please fork the p

You don't have to rebuild if you only change the ```data/devices.json``` file.

> By default, the tool will randomly load an URL found in ```randomUrls``` section from ```data/devices.json```.
## Build

The build process finds the CSS, JS files in the ```src``` and compresses them, places compressed files in the ```dist``` directory.
Expand Down

0 comments on commit e4e1e73

Please sign in to comment.