aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js42
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();
+})();