Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
boikom committed Dec 10, 2018
1 parent 874d0fe commit add6c53
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 48 deletions.
8 changes: 4 additions & 4 deletions demos/smart-carousel-overview.htm
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<script type="text/javascript" src="../../smart-core/source/smart.core.js"></script>
<script>
window.onload = function () {
const basePath = '../images/',
carouselSquare = document.getElementById('carouselSquare'),
var
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` });
dataSource.forEach((element, index) => dataSource[index] = { image: '../images/carousel-square-' + (1+index) + '.jpg' });
return dataSource;
}
}
Expand Down
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 41 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
{
"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": "2.0.2",
"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"
]
}

0 comments on commit add6c53

Please sign in to comment.