Stay Up to date
I've got plans to add lots of neat stuff to s12.in if you want to know the who, what, when, where, and why... Follow @s12in on twitter.
I've got plans to add lots of neat stuff to s12.in if you want to know the who, what, when, where, and why... Follow @s12in on twitter.
Simple it's a repository for code mostly jQuery the purpose of which is to provide quick and easy access to the things you use often. For example you use jQuery in all your projects, so to add it to your projects just add a script tag with the "src" attribute set to "http://s12.in/jquery/core.js" and now you're ready to rock -n- roll with jQuery... read more »
There is a simple explanation to why I made a code repository, I use a lot of resources in my projects, rather than trying to track down everything everytime I start a new project, I can just include the files from here, and if I plan on using something often or across more than a few projects, I upload it here. The goal is simplicity so the file naming convention is as semantic as possible. There's more than just jQuery here. Keep reading for a list of what is available.
Starting at the site root...
<!--/*Google Chrome Frame*/--> <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <script src="/cfinstall.js"></script><![endif]-->
Naming convention is simple: font_name-variant_name-variant_name as shown in the previews above. The exception is 2dumb/3dumb you would expect the file name to be dumb and the fonts to be dumb-2 and dumb-3 however there is no "dumb" font.
Also note that there is no "neoretro" font only variants: -draw, -fill and -shadow
If you include the entire library, "/fonts.css" note that fonts and variants will be added regularly and at my discretion. Despite Google's recent font library release, I will only be using fonts from the fontsquirrel.com font library, to keep this framework consistent. I am not taking requests to add new fonts. If you want to make use of fonts not included in this library, please use fontsquirrel.com's services or the Google font library.
Makes using html5 a breeze see: HTML5 Tutorial [Bulletproof] for an extended how to.
<!--/*Google Chrome Frame*/--> <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <script src="/cfinstall.js"></script><![endif]--> <!--/*GCF Fallback*/--> <!--[if lt IE 9]> <script src="/html5/shiv.js"></script><![endif]--> <!--[if lt IE 8]> <script src="/ie.js"></script><![endif]-->
Make IE < 8 behave like IE8
<!--[if lt IE 8]> <script src="/ie.js"></script><![endif]-->
jQuery.tools v. 1.2.2 [latest - STABLE - minified] All of the trimmings included
You need to fetch your own images and write your own stylesheet(s)
See: jQuery Tools - Documentation for instructions.
jQuery UI v. 1.8.1 [latest - STABLE - minified]
Use a script tag to get the files you need, if you don't have a theme from jQuery UI Theme Roller you can use /jquery/ui/smoothness.css this file uses the default jQuery UI images.
See: jQuery UI for instructions.
Adds syntax highlighting to code snippets.
<link rel="stylesheet" href="http://s12.in/sh/styles.css" /> <!--Load local styles here--> <script src="http://s12.in/sh/core.js"></script> <script src="http://s12.in/sh/xml.js"></script> <script src="http://s12.in/sh/css.js"></script> <script src="http://s12.in/sh/js.js"></script> <script src="http://s12.in/sh/php.js"></script> <script src="http://s12.in/sh/sql.js"></script>
<pre name="code" class="xml|css|js|php|sql:option(s)"> <!--Your Code Here--> </pre>
Example options are:
Options can be chained to the class name. eg:
<pre name="code" class="xml:nocontrols:showcolumns:firstline[12]"> <!--Your Code Here--> </pre>
/* <![CDATA[ */
$(function(){
dp.SyntaxHighlighter.ClipboardSwf = 'http://s12.in/sh/copy.swf';
dp.SyntaxHighlighter.HighlightAll('code');
});
/* ]]> */
*Note I've added custom styles to my local css slighty altering the default look and feel. You should do the same.
I've got plans to add lots of neat stuff to s12.in if you want to know the who, what, when, where, and why... Follow @s12in on twitter.