Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html Example - Update README accordingly #17

Closed
wants to merge 5 commits into from
Closed

Html Example - Update README accordingly #17

wants to merge 5 commits into from

Conversation

Roland1975
Copy link
Contributor

I added an example that demonstrate how to get ID3 for title, artist and picture.
Readme updated accordingly

//see N. Zakas for fallback:
//https://github.com/nzakas/computer-science-in-javascript/tree/master/encodings/base64
var base64 = "data:" + image.format + ";base64," + Base64.encodeBytes(image.data);
$('#title').text(tags.title);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you can get rid of the jQuery dependency by using document.getElementById(id) instead of $('#id').
No need to add jQuery to the project if not really needed :-)

@Roland1975
Copy link
Contributor Author

done :)
add a guard clause as the picture may not be present and/or detected

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<script src="id3-minimized.js" type="text/javascript"></script>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't notice that this was an extra duplicate file, you should just point to ../dist/id3-minimized.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done :)

Roland CIVET
+32(0)497/03 25 80

On 16/07/13 05:17, António Afonso wrote:

In example/index.html:

@@ -0,0 +1,42 @@
+
+
+

  • <title>Javascript ID3 Reader</title>
  • <script src="id3-minimized.js" type="text/javascript"></script>

Didn't notice that this was an extra duplicate file, you should just
point to |../dist/id3-minimized.js|


Reply to this email directly or view it on GitHub
https://github.com/aadsm/JavaScript-ID3-Reader/pull/17/files#r5207765.

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<script src="../dist/id3-minimized.js" type="text/javascript"></script>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks but you still need to remove the example/id3-minized.js file then, so that I can merge the pull request :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, you can merge
Still sorry for that.

Roland CIVET
+32(0)497/03 25 80

On 17/07/13 04:51, António Afonso wrote:

In example/index.html:

@@ -0,0 +1,42 @@
+
+
+

  • <title>Javascript ID3 Reader</title>
  • <script src="../dist/id3-minimized.js" type="text/javascript"></script>

Thanks but you still need to remove the |example/id3-minized.js| file
then, so that I can merge the pull request :-)


Reply to this email directly or view it on GitHub
https://github.com/aadsm/JavaScript-ID3-Reader/pull/17/files#r5233856.

@aadsm
Copy link
Owner

aadsm commented Jul 19, 2013

I squashed this pull request into one commit and added an example with the FileAPI

9d26805

@aadsm aadsm closed this Jul 19, 2013
@aadsm
Copy link
Owner

aadsm commented Jul 19, 2013

Thank you very much for your pull request, it was definitely missing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants