This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
import java.io.PrintWriter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Convert a hex value to its decimal value - the inputted hex must be in the | |
// format of a hex triplet - the kind we use for HTML colours. The function | |
// will return an array with three values. | |
function hex2num(hex) { | |
if(hex.charAt(0) == "#") hex = hex.slice(1); //Remove the '#' char - if there is one. | |
hex = hex.toUpperCase(); | |
var hex_alphabets = "0123456789ABCDEF"; | |
var value = new Array(3); | |
var k = 0; | |
var int1,int2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS3 Cool 3-states Buttons | |
*/ | |
ul { list-style: none; } | |
a.button { | |
display: block; | |
float: left; | |
position: relative; | |
height: 25px; | |
width: 80px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a[href^="#"]').bind('click.smoothscroll',function (e) { | |
e.preventDefault(); | |
var target = this.hash, | |
$target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop': $target.offset().top | |
}, 500, 'swing', function () { | |
window.location.hash = target; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Round Link | |
*/ | |
a.round:link, a.round:visited { | |
width: 140px; | |
color: #fff; | |
font: 28px/30px Arial; | |
text-transform: uppercase; | |
text-shadow: #6f0909 0 -1px 1px; | |
border: 1px solid #6F0909; |
NewerOlder