-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
42 lines (35 loc) · 1.04 KB
/
index.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
import simple_cursor from './cursor/simple-cursor';
import rim_cursor from './cursor/rim-cursor';
import chrome_cursor from './cursor/chrome-cursor';
import pen_cursor from './cursor/pen-cursor';
import snow_cursor from './cursor/snow-cursor';
const simpleCursor = document.querySelectorAll('.simple_cursor');
const rimCursor = document.querySelectorAll('.rim_cursor');
const chromeCursor = document.querySelectorAll('.chrome_cursor');
const penCursor = document.querySelectorAll('.pen_cursor');
const snowCursor = document.querySelectorAll('.snow_cursor');
if(simpleCursor.length > 0) {
simpleCursor.forEach((item)=>{
simple_cursor(item);
});
}
if(rimCursor.length > 0) {
rimCursor.forEach((item)=>{
rim_cursor(item);
});
}
if(chromeCursor.length > 0) {
chromeCursor.forEach((item)=>{
chrome_cursor(item);
});
}
if(penCursor.length > 0) {
penCursor.forEach((item)=>{
pen_cursor(item);
});
}
if(snowCursor.length > 0) {
snowCursor.forEach((item)=>{
snow_cursor(item);
});
}