Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

document.js 741B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. const PostCssRoot = require("postcss/lib/root");
  3. class Document extends PostCssRoot {
  4. toString (stringifier) {
  5. return super.toString(stringifier || {
  6. stringify: require("./stringify"),
  7. });
  8. }
  9. each (callback) {
  10. const result = this.nodes.map(node => node.each(callback));
  11. return result.every(result => result !== false) && result.pop();
  12. }
  13. append () {
  14. this.last.append.apply(
  15. this.last,
  16. Array.from(arguments)
  17. );
  18. return this;
  19. }
  20. prepend () {
  21. this.first.prepend.apply(
  22. this.first,
  23. Array.from(arguments)
  24. );
  25. return this;
  26. }
  27. insertBefore (exist, add) {
  28. exist.prepend(add);
  29. return this;
  30. }
  31. insertAfter (exist, add) {
  32. exist.append(add);
  33. return this;
  34. }
  35. }
  36. module.exports = Document;