Sha256: 4a6eca2f48cfacc217d32a576e99b4a32b2fc602c57a00b5d050049877d07844

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

$(document).ready(function() {

  $('#name').focus();

  // Position the areas panel
  $('#areas').show().delay(500).animate({left:'-48em'},250).animate({left:'-51em'},250);
  
  // Allow the areas panel to be opened and closed
  $(".open").toggle(
    function() {
      $(this).text('-');
      $("#areas").animate({
        left : 0
      }, 250);
    },
    function() {
      $(this).text('+');
      $("#areas").animate({
        left : '-51em'
      }, 250);
    }
  );
  
  // Handle the login form
  $('#open').toggle(
    function() {
      $('#login form').slideDown(300);
      $(this).addClass('close');
    },
    function() {
      $('#login form').fadeOut(600);
      $(this).removeClass('close');
    }
  );
    
  // Handle the iframe
	$(".iframe").fancybox({
    width : '90%',
    height : '90%',
    titlePosition: 'outside'
  });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 app/public/js/site.js
symbiont-0.2.0 app/public/js/site.js