-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-vendor2.html
executable file
·74 lines (71 loc) · 3.46 KB
/
index-vendor2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"><!--<![endif]-->
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<title>Script.js not load lib js to pass tool speed</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/slick.css">
<link rel="stylesheet" href="css/slick-theme.css">
<script id="jsvendor" src="js/vendor2.js"
data-jquery="js/jquery.js"
data-slick="js/slick.js"
>
</script>
<script type="text/javascript">
(function(){
var vendor = document.querySelector('#jsvendor'),
vendorSrc = vendor.dataset;
// load jquery and plugin at the same time. name it 'bundle'
// $script([vendorSrc.jquery, vendorSrc.slick], 'bundle');
var dependencyList = {
jquery: vendorSrc.jquery,
bar: vendorSrc.slick,
slider: [vendorSrc.jquery, vendorSrc.slick]
}
$script.ready(['slider'], function () {
console.log('xxx');
$(document).ready(function() {
var carousel = $('.js-carousel');
var carouselSlick = carousel.slick(carousel.data());
});
}, function(depsNotFound) {
depsNotFound.forEach(function(dep) {
$script(dependencyList[dep], dep)
})
});
})();
</script>
<style>img{width:100%}</style>
</head>
<body>
<div class="container">
<ul class="slider js-carousel"
data-infinite="true"
data-speed="300"
data-slides-To-Show="8",
data-slides-To-Scroll="1",
data-space="15"
data-responsive= '[{"breakpoint": "1024", "settings": {"slidesToShow": "6"}}, {"breakpoint": "800", "settings": {"slidesToShow": "3"}}, {"breakpoint": "600", "settings": {"slidesToShow": "2"}}, {"breakpoint": "460", "settings": {"slidesToShow": "1"}}]'
>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image1.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image2.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image3.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image4.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image5.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image6.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image7.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image8.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image9.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image10.jpg"/></li>
<li><img src="http://www.starplugins.com/sites/starplugins/images/jetzoom/large/image11.jpg"/></li>
</ul>
</div>
</body>
</html>