This file contains 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="#" onclick="$('#more-info').toggle(); return false;">Show Details</a> | |
<div id="more-info" style="display:none;">This content will show when the link above is clicked.</div> |
This file contains 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
var events = []; | |
events[0] = ["Display content notification box 1"]; | |
events[1] = ["Display content notification box 2"]; | |
events[2] = ["Display content notification box 3"]; | |
function updateEventDescription(){ | |
for(var i = 0; i < events.length; i++){ | |
if($('#prospect_event option:selected').val() == events[i][0]){ | |
$("#event_description").html(events[i][1]); | |
i = events.length; |
This file contains 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
$(function(){ | |
if($("body.0 form:first").submit(function() { | |
if ( | |
$('#indian_answer0').is(':checked') == false && | |
$('#asian_answer0').is(':checked') == false && | |
$('#hispanic_answer0').is(':checked') == false && | |
$('#black_answer0').is(':checked') == false && | |
$('#white_answer0').is(':checked') == false && | |
$('#hawaiian_answer0').is(':checked') == false | |
) { |
This file contains 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
$(function(){ | |
checkCollege(); | |
$("#prospect_grad_before_2010").change(function(){ | |
checkCollege(); | |
}); | |
}); | |
function checkCollege(){ | |
($("#prospect_grad_before_2010").val() == "yes") ? $(".field_row_college_after_hs:first").show() : $(".field_row_college_after_hs:first").hide(); | |
} |
This file contains 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
$("#site_file_file").change(function(){ | |
file_name = $("#site_file_file").val().split("\\").pop().split("."); | |
file_name.pop(); | |
$("#site_file_label").val(file_name); | |
$("#site_file_label").focus(); | |
}); |
This file contains 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
$(document).ready(function(){ | |
$('#myInput').keyup( function() { | |
var $this = $(this); | |
if($this.val().length > 20) | |
$this.val($this.val().substr(0, 20)); | |
}); | |
}); |
This file contains 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
#! /usr/bin/ruby | |
class ReadablePin | |
def new( len = 8 ) | |
pin = '' | |
chars = ("a".."z").to_a + ("0".."9").to_a | |
remove_each = ["i", "o"] | |
remove_each.each do |each| |
This file contains 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
<div id="schol_result">Please fill in your information and click CALCULATE</div> | |
<input type="text" id="act" /> | |
<input type="text" id="gpa" /> | |
<input type="submit" id="calculate-button" value="CALCULATE" /> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('#calculate-button').click(function() { | |
if (notEmpty($('#act')) && notEmpty($('#gpa'))) { | |
calc(); |
This file contains 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
day = Date.today | |
Date.constants | |
>["MONTHS", "ABBR_DAYS", "DAYNAMES", "ENGLAND", "DATE_FORMATS", "PARSE_DAYPAT", "ABBR_MONTHNAMES", "ABBR_MONTHS", "ITALY", "PARSE_MONTHPAT", "MONTHNAMES", "GREGORIAN", "DAYS", "ZONES", "ABBR_DAYNAMES", "JULIAN"] |
This file contains 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
class Email | |
. | |
. | |
. | |
def get_fractal | |
require 'net/http' | |
require 'uri' | |
api_key = 'yourAPIKey' | |
response = Net::HTTP.post_form(URI.parse('http://getfractal.com/api/v1/validate'), {'api_key'=>"#{api_key}", 'html'=>self.html.html_safe}) |
OlderNewer