facebook-photo-selector
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -61,6 +61,2 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _DOM = __webpack_require__(1); | ||
@@ -80,6 +76,16 @@ | ||
_createClass(facebookPhotoSelector, [{ | ||
key: 'toString', | ||
value: function toString() { | ||
return 'Hello visitor'; | ||
key: '$', | ||
value: function $() { | ||
return _DOM2.default; | ||
} | ||
}, { | ||
key: 'talk', | ||
value: function talk(message) { | ||
console.log('Saying: ' + message); | ||
} | ||
}, { | ||
key: 'hc', | ||
value: function hc(element) { | ||
console.log(_DOM2.default.hasClass(element, 'class')); | ||
} | ||
}]); | ||
@@ -90,3 +96,5 @@ | ||
exports.default = facebookPhotoSelector; | ||
module.exports = { | ||
facebookPhotoSelector: facebookPhotoSelector | ||
}; | ||
@@ -106,2 +114,10 @@ /***/ }, | ||
function ready(fn) { | ||
if (document.readyState != 'loading') { | ||
fn(); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', fn); | ||
} | ||
} | ||
function addClass(element, className) { | ||
@@ -145,2 +161,3 @@ element = _elize(element); | ||
exports.default = { | ||
ready: ready, | ||
addClass: addClass, | ||
@@ -147,0 +164,0 @@ removeClass: removeClass, |
@@ -1,2 +0,2 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),u=(r(i),function(){function e(){o(this,e)}return s(e,[{key:"toString",value:function(){return"Hello visitor"}}]),e}());t["default"]=u},function(e,t){"use strict";function n(e){return"string"==typeof e?document.querySelector(e):e}function r(e,t){e=n(e),e.classList?e.classList.add(t):e.className+=" "+t}function o(e,t){e=n(e),e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function s(e,t){return e=n(e),e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}function i(e,t,s){e=n(e),s?r(e,t):o(e,t)}function u(e,t){return e=n(e),getComputedStyle(e).getPropertyValue(t)}function a(e,t){e=n(e);var r=e.id,o=e.id=r||"query_children_"+c++,s="#"+o+" > ",i=s+(t+"").replace(",",","+s,"g"),u=e.parentNode.querySelectorAll(i);return r||e.removeAttribute("id"),u}Object.defineProperty(t,"__esModule",{value:!0});var c=0;t["default"]={addClass:r,removeClass:o,hasClass:s,toggleClass:i,css:u,queryChildren:a}}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(1),u=o(a),i=function(){function e(){r(this,e)}return s(e,[{key:"$",value:function(){return u["default"]}},{key:"talk",value:function(e){console.log("Saying: "+e)}},{key:"hc",value:function(e){console.log(u["default"].hasClass(e,"class"))}}]),e}();e.exports={facebookPhotoSelector:i}},function(e,t){"use strict";function n(e){return"string"==typeof e?document.querySelector(e):e}function o(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function r(e,t){e=n(e),e.classList?e.classList.add(t):e.className+=" "+t}function s(e,t){e=n(e),e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function a(e,t){return e=n(e),e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}function u(e,t,o){e=n(e),o?r(e,t):s(e,t)}function i(e,t){return e=n(e),getComputedStyle(e).getPropertyValue(t)}function c(e,t){e=n(e);var o=e.id,r=e.id=o||"query_children_"+l++,s="#"+r+" > ",a=s+(t+"").replace(",",","+s,"g"),u=e.parentNode.querySelectorAll(a);return o||e.removeAttribute("id"),u}Object.defineProperty(t,"__esModule",{value:!0});var l=0;t["default"]={ready:o,addClass:r,removeClass:s,hasClass:a,toggleClass:u,css:i,queryChildren:c}}])}); | ||
//# sourceMappingURL=facebook-photo-selector.min.js.map |
{ | ||
"name": "facebook-photo-selector", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A Vanilla JS plugin to create a Facebook photo selector (based on https://github.com/cshold/jQuery-Facebook-Photo-Selector)", | ||
@@ -5,0 +5,0 @@ "main": "build/facebook-photo-selector.js", |
import DOM from './DOM'; | ||
class facebookPhotoSelector { | ||
init() { | ||
console.log(DOM); | ||
$() { | ||
return DOM; | ||
} | ||
talk(message) { | ||
console.log(`Saying: ${message}`); | ||
} | ||
hc(element) { | ||
console.log(DOM.hasClass(element, 'class')); | ||
} | ||
} | ||
export default facebookPhotoSelector; | ||
module.exports = { | ||
facebookPhotoSelector | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26170
246