]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Scripts in HTML Starter Template linked wrong 9936/head
authorstrainger <strainger@users.noreply.github.com>
Fri, 7 Apr 2017 17:19:57 +0000 (12:19 -0500)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 17:19:57 +0000 (12:19 -0500)
The links in the starter template were linked wrong, jquery.min.js doesn't exist in the CSS only download, but jquery.js does, same with the what-input script, it does not have a min version in the CSS download, only a version without min. The file foundation.min.js exists but it is in the vendor folder, not directly in the js folder. After fixing these three links in the starter template, everything I try is now working as expected.

This starter template should link everything correctly so everything works. I actually was looking at other frameworks because I couldn't get all that I wanted to run working, this was why. I went back to my old Foundation code and everything is working perfectly. This template may just be old code from a previous version of foundation when the file structure was different.

This fix will help new people to this framework learn and stay with Foundation.

docs/pages/installation.md

index f1037cf77263d2b2f375f103712b7d42b4aa728a..e80f699227022963e0083f56853d24c4da2ceb7d 100644 (file)
@@ -101,9 +101,9 @@ Start with this HTML template and adapt it to your needs. Be sure to include the
   <body>
     <h1>Hello, world!</h1>
 
-    <script src="js/vendor/jquery.min.js"></script>
-    <script src="js/vendor/what-input.min.js"></script>
-    <script src="js/foundation.min.js"></script>
+    <script src="js/vendor/jquery.js"></script>
+    <script src="js/vendor/what-input.js"></script>
+    <script src="js/vendor/foundation.min.js"></script>
     <script>
       $(document).foundation();
     </script>