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

Script not working #17

Open
DoctorSubtilis opened this issue Oct 29, 2020 · 0 comments
Open

Script not working #17

DoctorSubtilis opened this issue Oct 29, 2020 · 0 comments

Comments

@DoctorSubtilis
Copy link

DoctorSubtilis commented Oct 29, 2020

Today I tried to use your script, but unsuccessfully. Could you explain what steps I should do?

  1. linked your js file (from local) and jquery (from the Net),

  2. added the script (in html head):

    $(function() {
    $("img.scale").imageScale();
    });
    
  3. added the html code -> class="scale" data-scale="best-fit-down" data-align="center" in the child element (an image)

But the child img element didn't fit to the parent element...

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

No branches or pull requests

1 participant