-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
124 lines (104 loc) · 3.21 KB
/
main.js
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
// IMPORTS START
import "./css/styles.css";
// or "import SimpleBar from 'simplebar';" if you want to use it manually.
import "simplebar/dist/simplebar.css";
import "simplebar";
import {
selectedEmoji,
emojiEvent,
} from "./js/behavior";
import carita1 from "./images-svgs/carita-1.png";
import carita2 from "./images-svgs/carita-2.png";
import chatIcon1 from "./images-svgs/chat-icon-alegre-1.png";
import chatIconSad from "./images-svgs/chat-icon-triste-2.png";
import chatIconAngry from "./images-svgs/chat-icon-4-angry.png";
import { capturandoEsferasAnimadas } from "./js/animation";
import anime from "animejs";
// IMPORTS ENDS
// 👇🏻necessary lines para //html/emmet effects 👇🏻
// eslint-disable-next-line
// prettier-ignore
document.querySelector(
"#app"
).innerHTML =
//html
`<div class="container">
<div class="top_section">
<div class="content">
<h3>Siete de Marzo</h3>
<p>¡Hoy tambien es un buen dia</p>
</div>
<div class="exit_container">
<div class="rectangle"></div>
<div class="rectangle"></div>
<div class="rectangle"></div>
<div class="rectangle"></div>
<div class="circle_inside_x"></div>
</div>
</div>
<div
data-simplebar
data-simplebar-auto-hide="false"
class="chat_container">
<!-- PERSON 1 -->
<div class="one_message_container-one">
<div class="text_inside_msg-right_icon">Hoy tiene que ser un buen dia!
<div class="circleContainer">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
</div>
<div class="icon_from_msg_container">
<img src="${carita1}" alt="carita-1" />
</div>
</div>
<!-- PERSON 2 -->
<div class="one_message_container-two">
<img src="${carita2}" alt="carita2">
<div class="text_inside_msg-left_icon">tiene que ser así</div>
</div>
<!-- PERSON 1 -->
<div class="one_message_container-one">
<div class="text_inside_msg-right_icon">Hoy tiene que ser un buen dia</div>
<div class="icon_from_msg_container">
<img src="${carita1}" alt="carita-1" />
</div>
</div>
<!-- PERSON 2 -->
<div class="one_message_container-two">
<img src="${carita2}" alt="carita2">
<div class="text_inside_msg-left_icon">tiene que ser así</div>
</div>
<!-- PERSON 1 -->
<div class="one_message_container-one">
<div class="text_inside_msg-right_icon">Hoy tiene que ser un buen dia</div>
<div class="icon_from_msg_container">
<img src="${carita1}" alt="carita-1" />
</div>
</div>
<!-- PERSON 2 -->
<div class="one_message_container-two">
<img src="${carita2}" alt="carita2">
<div class="text_inside_msg-left_icon">tiene que ser así</div>
</div>
</div>
<!-- emoji container start-->
<div class="containerEmoji">
<img class="emojisChildren" src="${chatIcon1}" alt="chat-icon-2">
<img class="emojisChildren" src="${chatIconSad}" alt="chat-icon-sad">
<img class="emojisChildren" src="${chatIconAngry}" alt="angry"
id="emojiOne" >
<div class="containerOfInput">
<label for="input"> entrada
<input class="input" type="text">
</label>
<button>send</button>
</div>
</div>
<!-- end of chat container -->
</div>
`;
capturandoEsferasAnimadas(anime, document.querySelectorAll(".circleContainer > .circle"));
selectedEmoji(document.querySelector("#emojiOne"));
emojiEvent();