hyf-javascript2's People
hyf-javascript2's Issues
No HTML or CSS files!
You forgot to put HTML and CSS files in the repository, can you please update the repository with the same?
Book Cover object not created
You were supposed to create an object having 'bookID' as the key and the source of the book cover as the value, then you had to access that object using the 'bookID' and set the source of the img tag to the value in the object. So, if the object having the image sources of book covers was 'bookCoverSource', then this is how you code would differ:
Your version:
hyf-javascript2/hyf-javascript2/Week1/script.js
Lines 27 to 29 in 02793b5
Correct Version:
img.setAttribute("src", bookCoverSource[book]);
img.setAttribute("id", book);
img.setAttribute("alt", info.title + " photo")
Image should not exist in the H1 tag, the title should be in H1
Instead of adding the title directly to the li tag, you should have added it to the h1 tag. Also, the cover image of the book should not be in h1 tag, it should be inside the li tag.
hyf-javascript2/hyf-javascript2/Week1/script.js
Lines 33 to 37 in 02793b5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.