-
Notifications
You must be signed in to change notification settings - Fork 0
/
dragdropflex-4.html
50 lines (34 loc) · 1.65 KB
/
dragdropflex-4.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
<!DOCTYPE html>
<html>
<head>
<title>Drag, Drop, Flexbox</title>
<link href="https://fonts.googleapis.com/css?family=Jockey+One|Roboto:400,400i,700,700i" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.10/lodash.min.js" integrity="sha256-VKITM616rVzV+MI3kZMNUDoY5uTsuSl1ZvEeZhNoJVk=" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="dragdropflex-4.css">
</head>
<body>
<div id="drag-drop-flex-app" >
<div class="container mt-4">
<div class="mt-4 card playground">
<div class="card-body">
<div class="sortable-list" id="draggableZone">
<div v-for="item in inventions" is="draggable-box" :item="item"></div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="example-factory.js"></script>
<script type="text/javascript" src="dnd-factory-4.js"></script>
<script type="text/javascript" src="dragdropflex-4.js"></script>
<!-- templates -->
<div id="draggable-box-template" style="display:none;">
<div class="draggable-box" ref="domDraggableRef" draggable :style="[flexOrder]">
<span v-text="item.name"></span>
</div>
</div>
</body>
</html>