Comparing version 0.0.2 to 0.1.0
@@ -6,2 +6,3 @@ /** | ||
var objects = require('../utils/objects'); | ||
var ui = require('../utils/ui'); | ||
var uri = require('../utils/uri'); | ||
@@ -44,6 +45,7 @@ | ||
var attrName = config.attributeName; | ||
var styleEl = document.createElement('style'); | ||
styleEl.textContent = '[' + attrName + ']:not([' + attrName + | ||
'="' + enabledVariation + '"]) { display: none !important }'; | ||
document.getElementsByTagName('head')[0].appendChild(styleEl); | ||
var selector = '[' + attrName + ']:not([' + attrName + | ||
'="' + enabledVariation + '"])'; | ||
var rules = {}; | ||
rules[selector] = {'display': 'none !important'}; | ||
ui.createStyle(rules); | ||
} | ||
@@ -50,0 +52,0 @@ |
{ | ||
"name": "airkit", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Open-source JS modules", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -6,2 +6,7 @@ /** | ||
function isMobile() { | ||
return isIOS() || isAndroid(); | ||
} | ||
function isIOS() { | ||
@@ -33,3 +38,4 @@ return /iPhone|iPad|iPod/i.test(navigator.userAgent); | ||
isIE: isIE, | ||
isIEorEdge: isIEorEdge | ||
isIEorEdge: isIEorEdge, | ||
isMobile: isMobile | ||
}; |
@@ -121,4 +121,8 @@ /** | ||
if (player) { | ||
if (player && videoId == this.activeVideoId_) { | ||
return; | ||
} else if (player && videoId != this.activeVideoId_) { | ||
player.loadVideoById(videoId, 0, 'large'); | ||
this.activeVideoId_ = videoId; | ||
return; | ||
} | ||
@@ -131,2 +135,3 @@ var playerEl = document.querySelector('.' + this.config.className + '-player'); | ||
player = new YT.Player(playerEl, options); | ||
this.activeVideoId_ = videoId; | ||
} | ||
@@ -133,0 +138,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
29067
23
715
1