简体   繁体   中英

slabText and jQuery on a HTML boilerplate site

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

Add a link to the slabText ".js" file (eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM