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.

placeholder.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Selector = require('../selector');
  6. var Placeholder = /*#__PURE__*/function (_Selector) {
  7. _inheritsLoose(Placeholder, _Selector);
  8. function Placeholder() {
  9. return _Selector.apply(this, arguments) || this;
  10. }
  11. var _proto = Placeholder.prototype;
  12. /**
  13. * Add old mozilla to possible prefixes
  14. */
  15. _proto.possible = function possible() {
  16. return _Selector.prototype.possible.call(this).concat(['-moz- old', '-ms- old']);
  17. }
  18. /**
  19. * Return different selectors depend on prefix
  20. */
  21. ;
  22. _proto.prefixed = function prefixed(prefix) {
  23. if (prefix === '-webkit-') {
  24. return '::-webkit-input-placeholder';
  25. }
  26. if (prefix === '-ms-') {
  27. return '::-ms-input-placeholder';
  28. }
  29. if (prefix === '-ms- old') {
  30. return ':-ms-input-placeholder';
  31. }
  32. if (prefix === '-moz- old') {
  33. return ':-moz-placeholder';
  34. }
  35. return "::" + prefix + "placeholder";
  36. };
  37. return Placeholder;
  38. }(Selector);
  39. _defineProperty(Placeholder, "names", ['::placeholder']);
  40. module.exports = Placeholder;