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.

grid-start.js 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. "use strict";
  2. function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
  3. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
  4. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  5. var Declaration = require('../declaration');
  6. var GridStart = /*#__PURE__*/function (_Declaration) {
  7. _inheritsLoose(GridStart, _Declaration);
  8. function GridStart() {
  9. return _Declaration.apply(this, arguments) || this;
  10. }
  11. var _proto = GridStart.prototype;
  12. /**
  13. * Do not add prefix for unsupported value in IE
  14. */
  15. _proto.check = function check(decl) {
  16. var value = decl.value;
  17. return !value.includes('/') || value.includes('span');
  18. }
  19. /**
  20. * Return a final spec property
  21. */
  22. ;
  23. _proto.normalize = function normalize(prop) {
  24. return prop.replace('-start', '');
  25. }
  26. /**
  27. * Change property name for IE
  28. */
  29. ;
  30. _proto.prefixed = function prefixed(prop, prefix) {
  31. var result = _Declaration.prototype.prefixed.call(this, prop, prefix);
  32. if (prefix === '-ms-') {
  33. result = result.replace('-start', '');
  34. }
  35. return result;
  36. };
  37. return GridStart;
  38. }(Declaration);
  39. _defineProperty(GridStart, "names", ['grid-row-start', 'grid-column-start']);
  40. module.exports = GridStart;