Question

Total noob question: How do you "install"/setup etc slabText on a website? I'm using HTML Boilerplate and I see that there is already a link to jQuery but I'm not quite sure how to set up slabText so I can use it.

slabText

Was it helpful?

Solution

Add a link to the slabText ".js" file (e.g. https://raw.github.com/freqdec/slabText/master/js/jquery.slabtext.js) AFTER the link to jQuery in your HTML page.

Looking at the Index page of Boilerplate, you could do something like:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script>
    <script src="js/plugins.js"></script>
    <script src="js/main.js"></script>
<script src="https://raw.github.com/freqdec/slabText/master/js/jquery.slabtext.js"></script>

NOTE: You should really download the slabText .js file and place it in the "js" directory like the other Boilerplate js files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top