You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

macros.js 393B

5 vuotta sitten
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. };