@smarthtmlelements/smart-carousel
Advanced tools
Comparing version 2.0.1 to 4.2.1
@@ -1,46 +0,1 @@ | ||
{ | ||
"name": "@smarthtmlelements/smart-carousel", | ||
"version": "2.0.1", | ||
"description": "Smart Carousel", | ||
"scripts": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/HTMLElements/smart-carousel.git" | ||
}, | ||
"author": "Smart HTML Elements", | ||
"license": "SEE LICENSE IN https://www.htmlelements.com/license/", | ||
"bugs": { | ||
"url": "https://github.com/HTMLElements/smart-carousel" | ||
}, | ||
"homepage": "https://github.com/HTMLElements/smart-carousel#readme", | ||
"devDependencies": { | ||
}, | ||
"dependencies": { | ||
"@webcomponents/webcomponentsjs": "^1.0.22", | ||
"@smarthtmlelements/smart-core": "^2.0.1" | ||
}, | ||
"main": "index.js", | ||
"directories": {}, | ||
"keywords": [ | ||
"custom", | ||
"element", | ||
"carousel custom element", | ||
"html carousel", | ||
"carousel", | ||
"web components carousel", | ||
"carousel element", | ||
"banner rotator", | ||
"custom carousel", | ||
"carousel widget", | ||
"carousel ui", | ||
"carousel component", | ||
"carousel control", | ||
"banner", | ||
"banner element", | ||
"banner user interface", | ||
"material banner", | ||
"material carousel" | ||
] | ||
} | ||
{"name":"@smarthtmlelements/smart-carousel","version":"4.2.1","description":"Smart Carousel","scripts":{},"repository":{"type":"git","url":"git+https://github.com/HTMLElements/smart-carousel.git"},"author":"Smart HTML Elements","license":"SEE LICENSE IN https://www.htmlelements.com/license/","bugs":{"url":"https://github.com/HTMLElements/smart-carousel"},"homepage":"https://github.com/HTMLElements/smart-carousel#readme","devDependencies":{},"dependencies":{"@webcomponents/webcomponentsjs":"^1.0.22","@smarthtmlelements/smart-core":"^2.0.0"},"main":"index.js","directories":{},"keywords":["custom","element","carousel custom element","html carousel","carousel","web components carousel","carousel element","banner rotator","custom carousel","carousel widget","carousel ui","carousel component","carousel control","banner","banner element","banner user interface","material banner","material carousel"]} |
@@ -20,17 +20,2 @@ [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/htmlelements/smart-carousel) | ||
<link rel="stylesheet" href="../smart-core/source/styles/smart.default.css" type="text/css" /> | ||
<script> | ||
window.onload = function () { | ||
const basePath = '/images/', | ||
carouselSquare = document.getElementById('carouselSquare'), | ||
carouselSquare.dataSource = generateDataSource(7); | ||
function generateDataSource(items) { | ||
let dataSource = Array(items).fill({}); | ||
dataSource.forEach((element, index) => dataSource[index] = { image: `${basePath}carousel-square-${index + 1}.jpg` }); | ||
return dataSource; | ||
} | ||
} | ||
</script> | ||
<next-code-block></next-code-block> | ||
@@ -37,0 +22,0 @@ </template> |
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
3783522
79