Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out which version of Zurb Foundation I'm running

Is there something I can enter in the command line to find out which version I'm running?

like image 840
Furi Avatar asked Jan 20 '14 10:01

Furi


People also ask

What is Foundation ZURB?

Zurb Foundation is the prototype theme that is used to prototype in the browser. It allows you to rapidly create a website or application while leveraging mobile and responsive technology that is well tested. The front end framework is the collection of HTML, CSS, and Javascript containing design patterns.

Is Foundation by ZURB free?

Why is Foundation free? Foundation had its origins in the ZURB style guide, which we used on every client project. Years ago, we decided we needed a framework that allowed us to rapidly prototype. We took our global CSS, jQuery plugins, common elements and best practices, then whipped them into what became Foundation.


2 Answers

Without knowing more about your exact situation, the easiest way is to add the following JavaSscript after you initialize Foundation ($(document).foundation();).

The final product would look like this:

$(document).foundation(); 
$(document).ready(function(){
    alert('Foundation Core Version: ' + Foundation.version);
    alert('Foundation DropDown Version:' + Foundation.libs.dropdown.version);
});

The first alert gives you the core version of foundation you are running in foundation.js and foundation.min.js.

If you are not using foundation.min.js, which loads Foundation Core and all JavaScript plugins such as: accordion, dropdown, joyride, tab, and so on, you can use the second alert. It will give you the version of the specified plugin.

You can visit the Foundation Docs on JavaScript Setup to learn more about foundation.min.js and the plugins such as: foundation.accordion.js, foundation.dropdown.js, foundation.joyride.js, foundation.tab.js and so on.

I have only tested the JavaScript on Foundation 5.0.3, but I believe it will work on older versions.

I hope that helps.

like image 148
Adam Huffman Avatar answered Jan 03 '23 16:01

Adam Huffman


search in foundation.js for "version"

window.Foundation = { name : 'Foundation',

version : '5.3.1',
like image 32
Anon 5Nov2014 Trafalgar Square Avatar answered Jan 03 '23 15:01

Anon 5Nov2014 Trafalgar Square