-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linting issues, also started working on example
- Loading branch information
1 parent
a1e74dd
commit 2b484ec
Showing
7 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
console.log(12345); | ||
import EmojiWindow from 'emoji-window'; | ||
|
||
document.getElementById('button-example-1').addEventListener('click', e => { | ||
new EmojiWindow({ | ||
position: { | ||
el: e.target | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
alert(12223); | ||
import emojiData from 'emoji-data/emoji.json'; | ||
|
||
const existingWindowSets = {}; | ||
export default class EmojiWindow { | ||
constructor({ | ||
position: { | ||
el, | ||
x, | ||
y | ||
} = {} | ||
} = {}) { | ||
const left = x !== undefined ? x : (el.offsetLeft + el.clientWidth); | ||
const top = y !== undefined ? y : (el.offsetTop + el.clientHeight); | ||
console.log(emojiData); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters