diff options
| author | Teddy Wing | 2013-04-28 11:36:48 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2013-04-28 11:36:48 -0400 | 
| commit | cf5c3a783a25a5a094be82b41cd66988c073df80 (patch) | |
| tree | ab19e322b5bd701a504ebc30dedfd7a391944f23 /public/javascripts/main.js | |
| parent | 1f763cbf0959c5722736a75e30fcc2c76637cd64 (diff) | |
| download | Who-am-I-cf5c3a783a25a5a094be82b41cd66988c073df80.tar.bz2 | |
Reorganise JS and get characters from lasest video
* Reorganise frontend JavaScript to make it more compartmentalised
* Grab characters from the latest video
Diffstat (limited to 'public/javascripts/main.js')
| -rw-r--r-- | public/javascripts/main.js | 42 | 
1 files changed, 2 insertions, 40 deletions
| diff --git a/public/javascripts/main.js b/public/javascripts/main.js index b76912e..0c1ba4e 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -1,41 +1,3 @@ -// CoverFlow  (function() { -	var initialise_js_cover_flow = function(playlist) { -		coverflow('character-select-container').setup({ -			width: '100%', -			playlist: playlist, -			coverheight: 130, -			textoffset: 68 -		}).on('ready', function() { -			this.on('click', function() { -				alert('chosen'); -			}); -		}); -	}; - -	// Populate characters -	 -	// Change template settings to use {{}} delimiters -	_.templateSettings = { -		interpolate: /\{\{(.+?)\}\}/g -	}; -	 -	var $character_container = $('#character-select .flow'); -	$.get( -		'/character-images/8680539', -		function(response) { -			var r = JSON.parse(response); -			 -			$character_container.empty() -			 -			var playlist = [] -			for (var i = 0; i < r.characters.length; i++) { -				playlist.push({ -					image: r.characters[i].image, -					title: r.characters[i].name -				}); -			} -			initialise_js_cover_flow(playlist); -		} -	); -})();
\ No newline at end of file +	ParseInterface.get_last_charade(); +})(); | 
