syngod Posted August 13, 2013 Share Posted August 13, 2013 Hey guys, Im kind of a newbie when it comes to javascript and i am trying to use a fill-text jquery plugin Found here https://github.com/jquery-textfill/jquery-textfill what i need to do is have multiple spans on the page expand to a certain size but im not sure how to do this with this plugin or if it is even possible. here is the page i have. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="http://jquery-textfill.github.io/jquery-textfill/jquery.textfill.min.js"></script> <title></title> </head> <div id="visitorNotice" > <div id="text" class="textfill"> <span>Testing</span> <div id="visitors" class="stextfill"> <span>Testing</span> <div> </div> </div> <script> $(function() { $('.textfill').textfill({ maxFontPixels:99}); }); </script> <script> $(funtion() { $('.stextfill').textfill({ maxFontPixels:80}); }); </script> <body> you can see what i tried to do, to get this to work. But this does not work and im not sure exactly how to make it work. Can anyone give me ideas on how to make this work. Quote Link to comment Share on other sites More sharing options...
Solution kicken Posted August 13, 2013 Solution Share Posted August 13, 2013 You misspelled function in the second script block. Quote Link to comment Share on other sites More sharing options...
syngod Posted August 13, 2013 Author Share Posted August 13, 2013 Ha ha um thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.