docs/app/js/codepen.js
function buildForm(data) {
      var form = angular.element(
        '<form style="display: none;" method="post" target="_blank" action="' +
          CODEPEN_API +
          '"></form>'
      );
      var input = '<input type="hidden" name="data" value="' + escapeJsonQuotes(data) + '" />';
      form.append(input);
      return form;
    }
function buildForm(data) {
      var form = angular.element(
        '<form style="display: none;" method="post" target="_blank" action="' +
          CODEPEN_API +
          '"></form>'
      );
      var input = '<input type="hidden" name="data" value="' + escapeJsonQuotes(data) + '" />';
      form.append(input);
      return form;
    }
function buildForm ( data ) { var form = angular . element ( '<form style="display: none;" method="post" target="_blank" action="' + CODEPEN_API + '"></form>' ) ; var input = '<input type="hidden" name="data" value="' + escapeJsonQuotes ( data ) + '" />' ; form . append ( input ) ; return form ; }
Builds a hidden form with data necessary to create a codepen.
Builds a hidden form with data necessary to create a codepen .