Pixie Engine LogoPixel EditorGalleryTune ComposerTunesLog in or sign up

bbhhhhhhhhhhhhhhhhhhhdtyjiorghljehiuh<!DOCTYPE html>



Pixie Engine - Create!










Pixel EditorGalleryTune ComposerTunesLog in or sign up


if(!window.jQuery) {
document.write(unescape('%3Cscript src="/assets/jquery/jquery.min.js"%3E%3C/script%3E'));
}



if(!window.jQuery.ui) {
document.write(unescape('%3Cscript src="/assets/jquery/jquery-ui.min.js"%3E%3C/script%3E'));
}

<!--[if lt IE 9]>

<![endif]-->

(function() {
window.railsEnv = "production";

}).call(this);




(function() {
var Modal, Progress, ajax, parentId, postmaster;

ajax = Ajax();

Modal = UI.Modal, Progress = UI.Progress;

parentId = null;

postmaster = Postmaster({
  remoteTarget: function() {
    return document.getElementById('editor').contentWindow;
  },
  ready: function() {
    editor.focus();
    if (!false) {
      console.log("https://s3.amazonaws.com/images.pixie.strd6.com/data/f868b57f44a2b2a3e7af3121065908984d7a3470f8dc33c02d9cc3f2dc16d9b3");
      return postmaster.invokeRemote("loadFromURL", "https://s3.amazonaws.com/images.pixie.strd6.com/data/f868b57f44a2b2a3e7af3121065908984d7a3470f8dc33c02d9cc3f2dc16d9b3");
    }
  },
  save: function(data) {
    var content, description, formData, title, uploadData;
    title = data.title, description = data.description, content = data.content;
    formData = new FormData();
    uploadData = {
      'tune[parent_id]': parentId,
      'tune[title]': title,
      'tune[description]': description,
      'tune[editor]': "composer",
      'tune[content]': content
    };
    Object.keys(uploadData).forEach(function(key) {
      return formData.append(key, uploadData[key]);
    });
    return ajax({
      url: "/tunes",
      data: formData,
      headers: {
        Accept: "application/json; charset=utf-8"
      },
      method: 'POST',
      responseType: "json"
    }).then(function(data) {
      trackPageview("/event/save_tune");
      if (data.redirect) {
        window.location = data.redirect;
      } else {
        parentId = data.tune.id;
      }
    })["catch"](function(e) {
      console.warn(e);
      if (e.message) {
        Modal.alert("Error: " + e.message);
      } else {
        Modal.alert("Error " + e.status + " - " + e.statusText);
      }
    });
  }
});

}).call(this);


(function() {
$('.log_out').mousedown(function(e) {
$('.user_drop_down').toggleClass('active');
return e.stopPropagation();
});

$(document).mousedown(function(e) {
  var drop_down, target;
  target = e.target;
  drop_down = $('.user_drop_down').get(0);
  if (drop_down) {
    if (!$.contains(drop_down, target)) {
      return $('.user_drop_down').removeClass('active');
    }
  }
});

}).call(this);


(function() {
$(function() {
return $("#feedback").mouseover(function() {
return $(this).animate({
left: -7
}, "fast");
}).mouseout(function() {
return $(this).animate({
left: -15
});
});
});

}).call(this);

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3464282-4']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

Anonymous
⬆️️ Load in Editor

Comments