Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jQuery.ScrollTo</title>
<meta name="keywords" content="javascript, jquery, plugins, scroll, scrollTo, smooth, animation, to, effect, ariel, flesler, window, overflow, element, navigation, customizable" />
<meta name="description" content="Demo of jQuery.ScrollTo. A very light and highly customizable jQuery plugin, to scroll overflowed elements or the window itself, made by Ariel Flesler." />
<meta name="robots" content="index,follow" />
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
body {
background-color: blue;
color: white;
font-size: 72px;
font-weight: bold;
letter-spacing: -2px;
}
@griffiths
griffiths / php2.php
Last active October 13, 2015 14:37
PHP Sample for Core Lab Interaction
<?php
$requestedstat = $_REQUEST["stat"];
// Variable
$stat = "Average salary subjects in a September study offered a fictional woman applying for a U.S. university laboratory position: $26,508";
$stats = Array(
"Average salary subjects in a September study offered a fictional woman applying for a U.S. university laboratory position: $26,508",
"Amount Massachusetts has been ordered to pay for the sex-reassignment surgery of an inmate serving life in prison : $23,000",
<?php
// Setting a variable equal to a string
/* $color = "Blue"; */
// Getting input from the user
$firstname = $_REQUEST["firstname"];
$color = $_REQUEST["color"];
$bgcolor = $_REQUEST["bgcolor"];
.z-contain {
width:600px;
height:600px;
background-color:#eee;
position:relative;
}
.pop {
position: absolute;
.triangle {
border-bottom: none;
border-top: 400px solid blue;
border-right: 240px solid transparent;
border-left: 240px solid transparent;
width:0;
}
.circle {
width: 300px;
height: 300px;
background-color: red;
border-radius: 150px;
}
.container {
width: 200px;
height: 350px;
background-color: yellow;
position: relative;
}
.shape {
width:100px;
height: 220px;
.button {
display: block;
width: 250px;
height: 250px;
background-image: url('sprite.gif');
background-repeat: no-repeat;
overflow:hidden;
text-indent:100%;
white-space: nowrap;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Interaction</title>
</head>
<body>
<div id="content-wrapper">
<div id="header">