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
<% remote_form_for [@post, Comment.new] do |f| %> | |
<p> | |
<!-- <%= f.text_field :name, :value => current_user.login %> | |
<%= f.text_field :email, :value => current_user.email %> --> | |
<%= f.label :body, "New Comment" %><br /> | |
<%= f.text_area :body, :cols => 60, :rows => 10 %> | |
</p> | |
<br /> | |
<p><%= f.submit "Add Comment" %></p> | |
<br /> |
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
<% for ticket in @report.tickets %> | |
<% fields_for "report[ticket_attributes][]", ticket do |ticket_form| %> | |
Company: <%= @clients = Client.find(:all, :order => "company_name") | |
collection_select("Company", "client_id", @clients, :id, :company_name ) %> | |
Ticket: <%= ticket_form.text_field :ticket_number %> | |
Status: <%= ticket_form.select :progress, ["Open", "In Progress", "Closed"], :multiple => false %> | |
<br /> | |
<br /> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<title>Snorby</title> | |
<script src="/javascripts/prototype.js?1245319226" type="text/javascript"></script> | |
<script src="/javascripts/effects.js?1245319226" type="text/javascript"></script> | |
<script src="/javascripts/dragdrop.js?1245319226" type="text/javascript"></script> | |
<script src="/javascripts/controls.js?1245319226" type="text/javascript"></script> | |
<script src="/javascripts/application.js?1245891139" type="text/javascript"></script> |
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 class="round more" href="#" id="more" onclick="new Ajax.Request('/events/load_more?page=1', {asynchronous:true, evalScripts:true, parameters:'authenticity_token=' + encodeURIComponent('6m9xo+DNIioXptskyAn0OGF4pKi7eKtJhZhjpZ2pdPw=')}); return false;">more</a> |
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 changeclass() { | |
var NAME = document.getElementById("more") | |
NAME.className="more loading" | |
} |
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 loaded = false; | |
function startLoading() { | |
loaded = false; | |
window.setTimeout('showLoadingImage()', 1000); | |
} | |
function showLoadingImage() { | |
var el = document.getElementById("more"); | |
if (el && !loaded) { |
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 changeclass() { | |
var NAME = document.getElementById("more") | |
NAME.className="more loading" | |
} |
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
def xor(key) | |
if key.kind_of?(String) | |
kenum = key.bytes.cycle | |
else | |
kenum = key.to_s(16).bytes.cycle | |
end | |
self.to_s(16).bytes.map {|b| b ^ kenum.next }.pack("C*") | |
end | |
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
.shadow { | |
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.2); | |
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.2); | |
box-shadow: 0px 1px 2px rgba(0,0,0,0.2); | |
filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=‘gray’); | |
-ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=‘gray’)"; | |
} |
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 class='round'> | |
LookyCode! | |
</div> |
OlderNewer