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
| $(function(){ | |
| $('form').on('submit', function(e){ | |
| e.preventDefault(); | |
| $('#errors').empty(); | |
| //EMAIL VALIDATION | |
| var email = $('input[name="email"]').val(); | |
| if (!(/.+/.test(email))){ | |
| $('#errors').append('<li>Insert an Email</li>'); | |
| } |
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
| <div id="die"> | |
| <% if @roll %> | |
| <img src="/<%= @roll.value %>.png" title="<%= @roll.value %>" alt="the roll"> | |
| <% end %> | |
| </div> |
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
| /* Here is your chance to take over Socrates! | |
| Spend 10 minutes on each of the following hacks to the Socrates website. | |
| Enter them in the console to make sure it works and then save | |
| your results here. | |
| Choose a new pair for each. Add your names to the section you complete. | |
| */ | |
| /*1. Use basic selectors (id, class, element) to choose an element on the page. | |
| Use the .css() method to alter at least two CSS properties of this element. */ |
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
| class CreateWords < ActiveRecord::Migration | |
| def change | |
| create_table :words do |t| | |
| t.string :word | |
| t.string :sorted_letters | |
| t.integer :length | |
| end | |
| end | |
| end |
NewerOlder