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
rgba(255,255,255,0.2); | |
} | |
#header { | |
background:#333; | |
background: -webkit-linear-gradient(#595959, #1D1D1D); | |
border:none; | |
box-shadow: 0 0 5px #000; |
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
#sr-header-area { | |
background: none; | |
border-bottom:1px solid rgba(0,0,0,0.2); | |
box-shadow: 0 1px 0 rgba(255,255,255,0.1); | |
color: #666; | |
} | |
#sr-header-area a { | |
color: #999; | |
} |
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
/* ===== Crest Links in Header ===== */ | |
.usertext { | |
position:static; | |
} | |
.usertext-body a[href="/r/chicagofire"], | |
.usertext-body a[href="/r/chivasusa"], | |
.usertext-body a[href="/r/coloradorapids"], | |
.usertext-body a[href="/r/TheMassive"], |
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
# resources :recommendations, :has_many => :approvals | |
resources :recommendations, :shallow => true do | |
resources :approvals | |
end |
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
<%= form_for @recommendation, :html => { :multipart => true} do |f| %> | |
<% if @recommendation.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@recommendation.errors.count, "error") %> prohibited this recommendation from being saved:</h2> | |
<ul> | |
<% @recommendation.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#next_approver_email_field').toggle(); | |
$('#approval_checked').click(function() { | |
$('#next_approver_email_field').show(); | |
}); | |
}); | |
</script> |
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
// FADEOUT THE LOADING GRAPHIC AFTER WAITING 1 SEC | |
function fadeSpinner(complete){ | |
$('.delay-spinner').delay(1000).fadeToggle(500, 'easeOutQuart', complete); | |
} | |
// FADEIN THE CONTENT | |
function fadeInContent(type){ | |
$('.ps-item-content .'+type+'').fadeToggle(700, 'easeInQuart'); | |
} | |
var fadeSpinnerType = function(){ |
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
/** | |
* Copyright (C) 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
public class Md5Util { | |
public static String hex(byte[] array) { | |
StringBuffer sb = new StringBuffer(); | |
for (int i = 0; i < array.length; ++i) { | |
sb.append(Integer.toHexString((array[i] | |
& 0xFF) | 0x100).substring(1,3)); |