Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I like to seperate each section reset/typograpy/forms/tables, this way I dont get lost. Dont be afraid to use as many different files as you need ( for development purposes ).</p> <p>Once your ready to go into production/live mode, grab the "build tool" from "html5boilerplate" and compress all your css into one file, same for js. This will also minify your code and cache your files. just keep your un-compressed files handy incase you need to do a major edit</p> <pre><code>&lt;!-- CSS --&gt; &lt;link rel=stylesheet href="assets/css/reset.css" &gt; &lt;link rel=stylesheet href="assets/css/typography.css" &gt; &lt;link rel=stylesheet href="assets/css/tools.css" &gt; &lt;link rel=stylesheet href="assets/css/tables.css" &gt; &lt;link rel=stylesheet href="assets/css/forms.css" &gt; &lt;link rel=stylesheet href="assets/css/plugins.css" &gt; &lt;!-- Script --&gt; &lt;script src="assets/js/modernizr2.0.js"&gt;&lt;/script&gt; &lt;script src=https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&gt;&lt;/script&gt; &lt;script src="assets/js/plugins.js"&gt;&lt;/script&gt; &lt;script src="assets/js/tools.js"&gt;&lt;/script&gt; &lt;script src="assets/js/tables.js"&gt;&lt;/script&gt; &lt;script src="assets/js/forms.js"&gt;&lt;/script&gt; &lt;script src="assets/js/functions.js"&gt;&lt;/script&gt; </code></pre> <p>I then like to wrap each (js) file as an object, again this helps with readability.</p> <p><strong>example:</strong></p> <pre><code>(function($){ var ToolsObj = { init : function(){ this.tooltip(); this.tabs(); this.pagination(); this.alerts(); this.dropdowns(); this.lightbox(); }, tooltip : function(){ //tooltip code }, tabs : function(){ //tabs code }, pagination : function(){ }, alerts : function(){ //alert messages code }, dropdowns : function(){ //dropdown-menu code }, lightbox : function(){ //lightbox code } } $(function(){ ToolsObj.init(); }); })(jQuery.noConflict()); </code></pre> <p>Hope this gives you some insight into my workflow. You may also want to check if each element exists in the document before running the objects. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload