5 лет назад
123456789
  1. remark.macros['abs'] = function(width="30%", left="85%", top="15%", cl="") {
  2. var url = this;
  3. return '<img src="' + url + '" style="position:absolute;left:' + left + ';top:' + top + ';width:' + width + '" class="' + cl + '" />';
  4. };
  5. remark.macros['scale'] = function(width="30%", left="85%", top="15%", cl="") {
  6. var url = this;
  7. return '<img src="' + url + '" style="width:' + width + '" />';
  8. };