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

How does it work? #37

Open
shanewmurphy opened this issue Aug 22, 2014 · 4 comments
Open

How does it work? #37

shanewmurphy opened this issue Aug 22, 2014 · 4 comments

Comments

@shanewmurphy
Copy link

I really don't understand how this flowtype js works. I've followed your 4 steps (demo site) to the letter and nothing. I've looked at the source code on the demo site and there's no reference to the flowtype.js file on the demo site. As I say I've followed your instructions from your demo site & it doesn't work for me only utter frustration. This script would be amazing if I would get to work for responsive website & amazing time saving also.

@VR51
Copy link

VR51 commented Sep 1, 2014

Same here. Checked the demo site and found no reference to the FlowType.js file in the source code. Have tried to get FlowType to work in WordPress for the past couple of hours but without any success. Would love a little help.

Edit:

Got it!

This worked for me. Change the element tag and/or add class/ID as needed. The fontRatio setting made a big difference to font resizing:

  $j = jQuery.noConflict();
  $j(document).ready(function($) {
      $('p').flowtype({
      minimum   : 100,
      maximum   : 1400,
      minFont   : 12,
      maxFont   : 18,
      fontRatio : 15
      });
    });
</script>

@shanewmurphy
Copy link
Author

Glad it worked for you! Its worked for me also. My issue was that a copied a URL query lib from some part of the site the github page or demo site as //ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js which didn't have the http: the correct url path for that lib is http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js

@ApolloCreed84
Copy link

I was having issues with the text scaling on mobile, I was targeting the body element but looking at this I just tried targeting the 'p' and it works, weird

@arshadr
Copy link

arshadr commented Nov 24, 2016

@shanewmurphy using // in the URL allows the browser to determine correctly whether to use HTTP or HTTPS.

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

4 participants