Comparing version 0.1.4 to 0.1.5
@@ -44,7 +44,8 @@ window = window || { location: { hostname: "3vot.com", protocol: "http" } }; | ||
var fileToLoad = "index"; | ||
var width = document.documentElement.clientWidth; | ||
var width = _3vot.width = document.documentElement.clientWidth; | ||
var height = _3vot.height = document.documentElement.clientHeight; | ||
for(entry in entries){ | ||
var borders = entry.split("-"); | ||
if(width > parseInt(borders[0]) && width <= parseInt(borders[1]) ){ | ||
fileToLoad = entries[entry]; | ||
fileToLoad = _3vot.device = entries[entry]; | ||
} | ||
@@ -54,2 +55,3 @@ } | ||
if(!fileToLoad) return console.error("Could not determine a file to load from package.json threevot.screens. 3VOT will load index.js please fix package.json of your app."); | ||
_3vot.el.classList.add(fileToLoad); | ||
return fileToLoad; | ||
@@ -56,0 +58,0 @@ } |
{ | ||
"name": "3vot", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
18109
452