Skip to content

Instantly share code, notes, and snippets.

@guizmo
guizmo / index.html
Created March 15, 2012 09:16
HTML5 shell
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Untitled</title>
</head>
<body>
</body>
</html>
@guizmo
guizmo / dabblet.css
Created March 2, 2012 01:58
text indenting
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
display:block;
width:100px;
height:30px;
padding:20px;
background: red;
}
@guizmo
guizmo / dabblet.css
Created January 9, 2012 23:58
Untitled
function revesdo_form_alter(&$form, $form_state, $form_id) {
if($form['#id'] == 'views-exposed-form-spas-presentation-page') {
foreach ($form as $key => $formField) {
if(isset($formField['min']) && is_array($formField['min'])){
$min = $formField['min']['#default_value'];
$max = $formField['max']['#default_value'];
$form[$key]['min']['#title'] = $form[$key]['min']['#default_value'];
//var urlLink = window.location.href;
var urlLink = $('#slash2').attr('href');
var lastIndex = urlLink.substring(urlLink.lastIndexOf("/") + 1, urlLink.length);
var lastIndexSplit = lastIndex.split("+");
if(lastIndexSplit.length == 1){
alert(lastIndexSplit);
}else{
alert('fail');
}