nutritionix / nutrition-label

Create a FDA-style nutrition label with any nutrition data source (even the Nutritionix API - http://www.nutritionix.com/api)
http://www.nutritionix.com/
MIT License
176 stars 66 forks source link

ReferenceError: x is not defined #58

Closed rigobcastro closed 7 years ago

rigobcastro commented 7 years ago

Hi, I have this problem when I'm trying to use it.

captura de pantalla 2017-01-04 a las 8 27 02 a m

My code

<div id="test"></div> $('#test').nutritionLabel();

Thanks for your support!

majin22 commented 7 years ago

@rigobcastro sorry I missed this as I didn't an email notification of this issue. I'll try and reply asap

majin22 commented 7 years ago

@rigobcastro I can't really be sure of what's the problem as that is really the most basic use of the plugin

did you include the jquery library that is needed by the plugin?

it is best to try the not minified version nutritionLabel.js so I can see on what exact line the error occurred

thanks

here are some samples on how it can be used http://dev2.nutritionix.com/html/label-jquery-plugin/demo/demo.html