Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Feedback tab

  • Loading branch information...
commit 0a5b1402d997fd70ec782f679af649dc974e5765 1 parent 182cfc4
Marc Peabody authored
View
25 divide-by-zero-test.js
@@ -0,0 +1,25 @@
+var vows = require('vows'),
+ assert = require('assert');
+
+// Create a Test Suite
+vows.describe('Division by Zero').addBatch({
+ 'when dividing a number by zero': {
+ topic: function () { return 42 / 0 },
+
+ 'we get Infinity': function (topic) {
+ assert.equal (topic, Infinity);
+ }
+ },
+ 'but when dividing zero by zero': {
+ topic: function () { return 0 / 0 },
+
+ 'we get a value which': {
+ 'is not a number': function (topic) {
+ assert.isNaN (topic);
+ },
+ 'is not equal to itself': function (topic) {
+ assert.notEqual (topic, topic);
+ }
+ }
+ }
+}).run();
View
BIN  public/images/contact_tab.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
35 views/layout.haml
@@ -7,7 +7,24 @@
- if @end
%script{:src => "http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"}
%script{:src => '/javascripts/koans.js'}
+ %script{:src => "http://tab-slide-out.googlecode.com/files/jquery.tabSlideOut.v1.3.js"}
+
:javascript
+ $(function(){
+ $('.slide-out-div').tabSlideOut({
+ tabHandle: '.handle', //class of the element that will become your tab
+ pathToTabImage: '/images/contact_tab.gif', //path to the image for the tab //Optionally can be set using css
+ imageHeight: '122px', //height of tab image //Optionally can be set using css
+ imageWidth: '40px', //width of tab image //Optionally can be set using css
+ tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
+ speed: 300, //speed of animation
+ action: 'click', //options: 'click' or 'hover', action to trigger animation
+ topPos: '200px', //position from the top/ use if tabLocation is left or right
+ leftPos: '20px', //position from left/ use if tabLocation is bottom or top
+ fixedPosition: false //options: true makes it stick(fixed position) on scroll
+ });
+ });
+
var _gaq = [];
_gaq.push(['_setAccount', 'UA-25906115-1']);
_gaq.push(['_trackPageview']);
@@ -28,3 +45,21 @@
%h2= current_koan_name
= yield
+ .slide-out-div{:style => "padding: 20px; width: 250px; background: #ccc; border: 1px solid #29216d;"}
+ %a.handle{:href => "http://link-for-non-js-users.html"} Content
+ %p Thanks for trying the Ruby Koans Online. We hope you're having fun.
+ %h3 Issues
+ %p
+ Submit issues to the
+ %a{:href => 'https://github.com/edgecase/ruby_koans_online/issues', :target => '_blank'}Github project.
+ %hr
+ %h3 Cheers
+ %p
+ Blog about it or
+ %a{:href => 'http://edgecase.com/contact', :target => '_blank'}send us an email.
+ %hr
+ %h3 Get More
+ %p
+ Download the
+ %a{:href => 'http://rubykoans.com/', :target => '_blank'}official Ruby Koans
+ and get the full experience.
Please sign in to comment.
Something went wrong with that request. Please try again.