Showcase

  • Tandems

    function updateMarkerAfterDateChosen() {
      updateMarkerWithDate();
      allemagne.setZoom(6);
      france.setZoom(6);
      france.setCenter(new google.maps.LatLng(46.2276380, 2.2137490));
      allemagne.setCenter(new google.maps.LatLng(51.1656910, 10.4515260));
      niveauFr = 'regions';
      niveauDe = 'regions';
      currentDepDe = currentDepFr = 'all';
      displayVilleDe(currentDepDe, '');
  • Like There Is No Tomorrow

    function handleKey($e) {
      switch ($e.keyCode) {
      case 37:
        //left
        $('html, body').stop().animate({
          scrollTop: pos - 1
        }, {
          duration: 100,
          easing: 'easeInOutExpo'
        });
        if (_gaq != undefined) _gaq.push(['_trackEvent', 'nav', 'keyboard', 'left']);
        break;
      case 38:
        //up
        current_screen--;
        if (current_screen < 0) current_screen = 9;
  • Coloud Headphones

    shopping: function() {
    	  // listen for product form submits
    	  $('body').on('submit', '.productform', function(e) {
    	    e.preventDefault();
    
    	    // set ajax boolean to true
    	    $('[name=ajax]', this).val(1);
    
    	    // disable submit button and set text
    	    var $button = $('button', this),
    	      buttonText = $button.text();
  • The Exit Zero Project

    function _showDetailsView() {
    	  var $t = $(this),
    	    $id = $t.attr('id'),
    	    $td = $('#details-' + $id);
    
    	  $row.off('mouseenter', _initRolloverSlideshow).off('click', _showDetailsView);
    
    	  $detailcard.css('left', '-100%').removeClass('active-detail');
    	  $td.addClass('active-detail');
    
    	  $details.fadeIn(666, 'easeInOutExpo');
    	  $panels.fadeOut(666, 'easeInOutExpo');
    	  $td.stop().animate({
    	    left: '0%'
    	  }, 666, 'easeInOutExpo');
    	};
  • Honda Battle of the Bands

    $(".add-comment-button").click(function() {
      var comment = $(".main-comment").val();
      var band_id = $(".band-id").val();
    
      var data = 'type=add_shoutout&id=' + band_id + '&band_id=' + band_id + '&comment=' + comment;
    
      if (comment !== "Type shoutout to <?= $name ?>...") {
        $.ajax({