forked from shadowcz007/mixNameCard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (97 loc) · 3.64 KB
/
index.html
File metadata and controls
128 lines (97 loc) · 3.64 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="apple-moblie-web-app-capable" content="yes">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>MIXLAND 无界空间</title>
<link href="https://cdn.bootcss.com/Swiper/4.3.0/css/swiper.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/Swiper/4.3.0/js/swiper.min.js"></script>
<link rel="stylesheet" href="./css/mix.css">
<style>
.swiper-container {
width: 90%;
height: 80%;
}
.swiper-slide {
text-align: center;
}
.swiper-slide img {
width: 80%;
}
</style>
</head>
<body class="mix-contarner">
<p class="mix-title center">无界空间 / MIXLAND</p>
<hr>
<div class="mix-pannel">
<p class="mix-title">团队名片</p>
<ul id="mix-name-cards" class="mix-cards">
</ul>
<br>
<p class="mix-info">更多小伙伴正在前来~</p>
<p class="mix-info">加入联系微信公众号Design-AI-Lab~</p>
<!--
<div class="swiper-container " id="nameCard">
<div class="swiper-wrapper">
<div class="swiper-slide">
<p class="mix-title">MIXLAB</p>
<img src='./img/name_card.svg' />
</div>
<div class="swiper-slide">
<p class="mix-title">COT</p>
<img src='./img/name_card_cot.svg' />
</div>
</div>
<div class="swiper-pagination"></div>
</div>
-->
</div>
<div class="mix-pannel">
<p class="mix-title"><a href="https://shadowcz007.github.io/DYText/index.html">抖音风格文字生成器</a></p>
</div>
<div class="mix-pannel">
<p class="mix-title"><a href="./page/search.html">mix搜索</a></p>
</div>
<div class="mix-pannel">
<p class="mix-title"><a href="./page/addQrcode.html">自动添加二维码</a></p>
</div>
<script src="./js/config.js"></script>
<script>
var cardsEl = document.getElementById('mix-name-cards');
var cards = Object.keys(cardFrom);
for (let i = 0; i < cards.length; i++) {
var card = cards[i];
var cf = cardFrom[card];
var a = document.createElement('a');
a.className = 'mix-card';
a.setAttribute('href', './page/nameCard.html?name=' + cf.name + '&gif=' + cf.gif);
a.innerHTML = '<h4 class="mix-title">' + cf.name.toUpperCase() + '</h4><p>' + cf.vision + '</p>';
cardsEl.appendChild(a);
};
// var index=0;
/*
var nameCardEl=document.getElementById('nameCard');
nameCardEl.addEventListener('click',function(){
// console.log(index)
var cf=cardFrom[index];
window.location.href='./page/nameCard.html?from='+cf.from+'&gif='+cf.gif;
});
var mySwiper = new Swiper('.swiper-container', {
direction: 'horizontal',
loop: false,
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
},
on: {
slideChange: function () {
// console.log(this.activeIndex);
index=this.activeIndex;
}}
});
*/
</script>
</body>
</html>