Comparing version 0.1.5 to 0.1.6
13
index.js
window = window || { location: { hostname: "3vot.com", protocol: "http" } }; | ||
window._3vot = { | ||
window._3vot = window._3vot || {}; | ||
module.exports= init; | ||
var _3vot = { | ||
el: null, | ||
@@ -15,4 +19,2 @@ package: {}, | ||
module.exports= init; | ||
function init(package, options){ | ||
@@ -32,2 +34,3 @@ if(!options) options = {}; | ||
loadFile( fileToLoad() ); | ||
window._3vot[package.name] = _3vot; | ||
} | ||
@@ -46,4 +49,4 @@ | ||
var fileToLoad = "index"; | ||
var width = _3vot.width = document.documentElement.clientWidth; | ||
var height = _3vot.height = document.documentElement.clientHeight; | ||
var width = _3vot.width = _3vot.el.offsetWidth || _3vot.el.clientWidth; | ||
var height = _3vot.height = _3vot.el.offsetHeight || _3vot.el.clientHeight; | ||
for(entry in entries){ | ||
@@ -50,0 +53,0 @@ var borders = entry.split("-"); |
{ | ||
"name": "3vot", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"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
18198
454