-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (23 loc) · 1.2 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Basic Gallery With VueJS / Galería Básica con VueJS</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/superhero/bootstrap.css">
</head>
<body>
<h1>Basic Gallery With VueJS / Galería Básica con VueJS</h1>
<div id="gallery">
<div class="gallery_list">
<div style="border: 1px solid black;" :class="'g'+n" v-for="n in elementsQuantity" v-on:click="addShowClass($event)" :data-index="n"> </div>
</div>
<hr>
<div v-for="n in elementsQuantity" v-on:click.capture="removeShowClass()" :class=" [ 'gal bg'+n , {show: isActive==n} ] "> {{ n }} </div>
</div>
<!-- Note: This is un basic example from VueJS, your imagine is the limit with this tool ! TRY !
Esto es un ejemplo básico de VueJS, tu imaginación es el limite con esta herramienta ! Intentalo ! -->
<!-- By https://www.linkedin.com/in/hely-rojas-49547a70 -->
<script type="text/javascript" src="gallery-vue.js"></script>
</body>
</html>