attribution.js 677 B

12345678910111213141516
  1. import $ from 'jquery';
  2. import { Types } from '../types';
  3. import * as Models from '../ivprog_elements';
  4. import { LocalizedStrings } from '../../services/localizedStringsService';
  5. import * as GlobalsManagement from '../globals';
  6. import * as VariablesManagement from '../variables';
  7. export function createFloatingCommand () {
  8. return $('<div class="ui attribution created_element"> <i class="ui icon small arrow left"></i> <span> x = 1 + 1 </span></div>');
  9. }
  10. export function renderCommand (command) {
  11. var el = $('<div class="ui attribution"> <i class="ui icon small arrow left command_drag"></i> <span> x = 1 + 1</span></div>');
  12. $(el).data('command', command);
  13. return el;
  14. }