diff --git a/README.md b/README.md index ea283d2..74cbe13 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,32 @@ # Mashup project -This project is open-ended! Requirements: +This project is open-ended! -* Build a site that uses data from at least one external API in an interesting, interactive way. +* [AJAX demos](https://github.com/advanced-js/deck/tree/gh-pages/demos/ajax) +* [inspiration?](http://www.programmableweb.com/mashups) + +## Requirements + +* Build a site that uses data from at least one external API in an interesting, interactive way. (**80%**) +* HTML validation (using the [Nu HTML Checker](https://validator.w3.org/nu/)) must pass. (**10%**) +* JavaScript linting (using the configured [JSHint](http://jshint.com/about/)) must pass. (**10%**) * Replace this README with a description of the project. -* You are welcome to use any 3rd-party libraries/frameworks – just load them from a CDN (e.g. [cdnjs](http://cdnjs.com)), or put them under the [`vendor/`](vendor/) folder. -* **Do not commit the `client_secret` (or anything else from an API that says "token" or "secret")**, as a hacker could use this to make requests on behalf of you. -The JS code should be **non-trivial**. That being said... start simple! (Just get the data to show up on the page.) No server-side coding is required, but feel free to create a backend in whatever language if you like, if you need one. +### Extra credit -* [AJAX demos](https://github.com/advanced-js/deck/tree/gh-pages/demos/ajax) -* [inspiration?](http://www.programmableweb.com/mashups) +Too easy? + +* Build in an [object-oriented](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript) way (**10%**) +* Add fancy interactivity/animations (**10%**) + +If you do either of these, please let Aidan know so he can take a look. + +## Tips + +* The JS code should be **non-trivial**. That being said... start simple! (Just get the data to show up on the page.) +* No server-side coding is required, but feel free to create a backend in whatever language if you like, if you need one. +* You are welcome to use any 3rd-party libraries/frameworks – just load them from a CDN (e.g. [cdnjs](http://cdnjs.com)), or put them under the [`vendor/`](vendor/) folder. +* **Do not commit the `client_secret` (or anything else from an API that says "token" or "secret")**, as a hacker could use this to make requests on behalf of you. ## Finding an API @@ -21,11 +37,6 @@ A couple things to look for in an API (or at least the endpoints you're using) f Here is a [list of API suggestions](https://gist.github.com/afeld/4952991). -## Too easy? - -* build in an object-oriented way -* add fancy interactivity/animations - ## Running tests locally Within this repository directory in your [virtual machine](https://github.com/startup-systems/vm): @@ -42,3 +53,6 @@ Within this repository directory in your [virtual machine](https://github.com/st ```bash npm test -s ``` + + + diff --git a/index.html b/index.html index 6524157..2a5b020 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,135 @@ + - - Mashup - - + + + Mashup + + + + + +
+

An App

+ +

+ + + By Boting Li

+ + +

Change Pic

+ + + +
+ + + + + - + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..e374a93 --- /dev/null +++ b/style.css @@ -0,0 +1,48 @@ +section{ + min-height: 100%; +} + +h1{ + font-size: 2em; + padding: 0 0.3em; + line-height: 1em; +} + +p{ + padding: 0 1em; +} + +a{ + color: #fff; +} + +footer{ + position: absolute; + bottom: 0; + font-size: 0.5em; +} + +#temperature{ + text-decoration: none; + border-bottom: +} + +.change +{ + cursor: pointer + +} + +body{ + height: 100%; + margin: 0; + padding: 0; + font-family: Arial, sans-serif; + font-size: 2em; + text-shadow: 0 0 10px #000; + color: #fff; + background: #888; + background-repeat: no-repeat; + background-attachment: fixed; + background-size: cover; +} \ No newline at end of file