Skip to content

Commit

Permalink
Adds coffescript gem to gemfile and remove old custom coffeescript code
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyadsl committed Jan 12, 2012
1 parent 568a36f commit 3429b88
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 157 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -2,5 +2,6 @@ source 'http://rubygems.org'

gem 'haml'
gem 'sass'
gem 'coffee-script'

gem 'stasis'
8 changes: 8 additions & 0 deletions Gemfile.lock
@@ -1,8 +1,15 @@
GEM
remote: http://rubygems.org/
specs:
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.2.0)
directory_watcher (1.4.1)
execjs (1.2.13)
multi_json (~> 1.0)
haml (3.1.4)
multi_json (1.0.4)
redis (2.2.2)
sass (3.1.12)
slop (2.1.0)
Expand All @@ -19,6 +26,7 @@ PLATFORMS
ruby

DEPENDENCIES
coffee-script
haml
sass
stasis
53 changes: 0 additions & 53 deletions js/script.js.coffee
@@ -1,53 +0,0 @@
# Author: Shaun Robinson

init_nav = ->
domain = 'http://yd.squiid.net/'
url = location.href

url = url.replace(domain, '')
url = url.replace('http://localhost:81/', '');
url = url.replace('http://0.0.0.0:81/', '');

url = url.replace('.html', '')

url = 'home' if url == ''

$('#' + url).addClass('active')


init_tweet = ->
$lt = $('#latest_tweet');
if $lt.size() > 0
$.get('/lib/get_tweets.php', (data) ->
$lt.html(data)
)


init_pp = ->
$('a.modal').prettyPhoto()

init_anim = ->
#$('#nav').hide();
#$('header').animate({
# height: '800px'
#}, 300)

$ ->
init_nav()
init_pp()
init_tweet()
#init_anim()














104 changes: 0 additions & 104 deletions js/script2.js.coffee

This file was deleted.

0 comments on commit 3429b88

Please sign in to comment.