From 8870d7bbdd4c627777a35100f78cbeae5be1ae03 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Fri, 20 Mar 2020 11:43:01 +0800 Subject: =?UTF-8?q?=F0=9F=99=82=20Add:=20=E7=94=A8=E7=9F=AD=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=A7=A3=E6=9E=90=20owo=20=E8=A1=A8=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/OwO.json | 1489 +++++++++++++++++++++++++++++--------------------- assets/js/OwO.min.js | 212 ++++++- 2 files changed, 1070 insertions(+), 631 deletions(-) diff --git a/assets/OwO.json b/assets/OwO.json index 35e2e16..75b4a8c 100644 --- a/assets/OwO.json +++ b/assets/OwO.json @@ -1,632 +1,861 @@ { - "颜文字": { - "type": "emoticon", - "container": [ - { - "icon": "OωO", - "text": "Author: DIYgod" - }, - { - "icon": "|´・ω・)ノ", - "text": "Hi" - }, - { - "icon": "ヾ(≧∇≦*)ゝ", - "text": "开心" - }, - { - "icon": "(☆ω☆)", - "text": "星星眼" - }, - { - "icon": "(╯‵□′)╯︵┴─┴", - "text": "掀桌" - }, - { - "icon": " ̄﹃ ̄", - "text": "流口水" - }, - { - "icon": "(/ω\)", - "text": "捂脸" - }, - { - "icon": "∠( ᐛ 」∠)_", - "text": "给跪" - }, - { - "icon": "(๑•̀ㅁ•́ฅ)", - "text": "Hi" - }, - { - "icon": "→_→", - "text": "斜眼" - }, - { - "icon": "୧(๑•̀⌄•́๑)૭", - "text": "加油" - }, - { - "icon": "٩(ˊᗜˋ*)و", - "text": "有木有WiFi" - }, - { - "icon": "(ノ°ο°)ノ", - "text": "前方高能预警" - }, - { - "icon": "(´இ皿இ`)", - "text": "我从未见过如此厚颜无耻之人" - }, - { - "icon": "⌇●﹏●⌇", - "text": "吓死宝宝惹" - }, - { - "icon": "(ฅ´ω`ฅ)", - "text": "已阅留爪" - }, - { - "icon": "(╯°A°)╯︵○○○", - "text": "去吧大师球" - }, - { - "icon": "φ( ̄∇ ̄o)", - "text": "太萌惹" - }, - { - "icon": "ヾ(´・ ・`。)ノ\"", - "text": "咦咦咦" - }, - { - "icon": "( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃", - "text": "气呼呼" - }, - { - "icon": "(ó﹏ò。)", - "text": "我受到了惊吓" - }, - { - "icon": "Σ(っ °Д °;)っ", - "text": "什么鬼" - }, - { - "icon": "( ,,´・ω・)ノ\"(´っω・`。)", - "text": "摸摸头" - }, - { - "icon": "╮(╯▽╰)╭ ", - "text": "无奈" - }, - { - "icon": "o(*////▽////*)q ", - "text": "脸红" - }, - { - "icon": ">﹏<", - "text": "" - }, - { - "icon": "( ๑´•ω•) \"(ㆆᴗㆆ)", - "text": "" - }, - { - "icon": "(。•ˇ‸ˇ•。)", - "text": "" - } - ] - }, - "阿鲁": { - "name": "aru", - "type": "image", - "container": [ - { - "icon": "", - "text": "鄙视" - }, - { - "icon": "", - "text": "插刀" - }, - { - "icon": "", - "text": "亲嘴" - }, - { - "icon": "", - "text": "闭嘴" - }, - { - "icon": "", - "text": "不开心" - }, - { - "icon": "", - "text": "发现真相" - }, - { - "icon": "", - "text": "便便" - }, - { - "icon": "", - "text": "烦恼" - }, - { - "icon": "", - "text": "捂脸" - }, - { - "icon": "", - "text": "无语" - }, - { - "icon": "", - "text": "迷惑" - }, - { - "icon": "", - "text": "皱眉" - }, - { - "icon": "", - "text": "得意" - }, - { - "icon": "", - "text": "欢呼" - }, - { - "icon": "", - "text": "沉思" - }, - { - "icon": "", - "text": "潜水" - }, - { - "icon": "", - "text": "掩面哭泣" - }, - { - "icon": "", - "text": "潜伏" - }, - { - "icon": "", - "text": "大拇指" - }, - { - "icon": "", - "text": "微笑" - }, - { - "icon": "", - "text": "拍掌" - }, - { - "icon": "", - "text": "眼馋" - }, - { - "icon": "", - "text": "投降" - }, - { - "icon": "", - "text": "大眼睛" - }, - { - "icon": "", - "text": "抠鼻" - }, - { - "icon": "", - "text": "流汗" - }, - { - "icon": "", - "text": "小花花" - }, - { - "icon": "", - "text": "流泪" - }, - { - "icon": "", - "text": "吐" - }, - { - "icon": "", - "text": "吃惊" - }, - { - "icon": "", - "text": "一滩血" - }, - { - "icon": "", - "text": "吐血" - }, - { - "icon": "", - "text": "脸红" - }, - { - "icon": "", - "text": "生气" - }, - { - "icon": "", - "text": "无所谓" - }, - { - "icon": "", - "text": "死翘翘" - }, - { - "icon": "", - "text": "阴险" - }, - { - "icon": "", - "text": "吐舌" - } - ] - }, - "推特":{ - "type": "image", - "name": "twemoji", - "container":[ - { - "icon": "", - "text": "微笑" - }, - { - "icon": "", - "text": "吐舌" - }, - { - "icon": "", - "text": "歪头" - }, - { - "icon": "", - "text": "挑眉" - }, - { - "icon": "", - "text": "害羞" - }, - { - "icon": "", - "text": "流汗" - }, - { - "icon": "", - "text": "得意" - },{ - "icon": "", - "text": "难受" - },{ - "icon": "", - "text": "笑哭" - }, - { - "icon": "", - "text": "喜欢" - },{ - "icon": "", - "text": "不说话" - },{ - "icon": "", - "text": "开心" - },{ - "icon": "", - "text": "惊恐" - },{ - "icon": "", - "text": "吐舌" - },{ - "icon": "", - "text": "哭泣" - },{ - "icon": "", - "text": "炫酷" - },{ - "icon": "", - "text": "红脸笑" - },{ - "icon": "", - "text": "可以" - },{ - "icon": "", - "text": "亲亲" - },{ - "icon": "", - "text": "生气" - },{ - "icon": "", - "text": "家庭" - },{ - "icon": "", - "text": "祝贺" - },{ - "icon": "", - "text": "礼物" - },{ - "icon": "", - "text": "祈祷" - },{ - "icon": "", - "text": "星星" - } - ] - }, - "贴吧":{ - "type": "image", - "name": "paopao", - "container":[ - { - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - }, - { - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - },{ - "icon": "", - "text": "泡泡" - } - ] - } + "颜文字": { + "type": "emoticon", + "container": [{ + "icon": "OωO", + "text": "Author: DIYgod" + }, { + "icon": "|´・ω・)ノ", + "text": "Hi" + }, { + "icon": "ヾ(≧∇≦*)ゝ", + "text": "开心" + }, { + "icon": "(☆ω☆)", + "text": "星星眼" + }, { + "icon": "(╯‵□′)╯︵┴─┴", + "text": "掀桌" + }, { + "icon": " ̄﹃ ̄", + "text": "流口水" + }, { + "icon": "(/ω\)", + "text": "捂脸" + }, { + "icon": "∠( ᐛ 」∠)_", + "text": "给跪" + }, { + "icon": "(๑•̀ㅁ•́ฅ)", + "text": "Hi" + }, { + "icon": "→_→", + "text": "斜眼" + }, { + "icon": "୧(๑•̀⌄•́๑)૭", + "text": "加油" + }, { + "icon": "٩(ˊᗜˋ*)و", + "text": "有木有WiFi" + }, { + "icon": "(ノ°ο°)ノ", + "text": "前方高能预警" + }, { + "icon": "(´இ皿இ`)", + "text": "我从未见过如此厚颜无耻之人" + }, { + "icon": "⌇●﹏●⌇", + "text": "吓死宝宝惹" + }, { + "icon": "(ฅ´ω`ฅ)", + "text": "已阅留爪" + }, { + "icon": "(╯°A°)╯︵○○○", + "text": "去吧大师球" + }, { + "icon": "φ( ̄∇ ̄o)", + "text": "太萌惹" + }, { + "icon": "ヾ(´・ ・`。)ノ\"", + "text": "咦咦咦" + }, { + "icon": "( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃", + "text": "气呼呼" + }, { + "icon": "(ó﹏ò。)", + "text": "我受到了惊吓" + }, { + "icon": "Σ(っ °Д °;)っ", + "text": "什么鬼" + }, { + "icon": "( ,,´・ω・)ノ\"(´っω・`。)", + "text": "摸摸头" + }, { + "icon": "╮(╯▽╰)╭ ", + "text": "无奈" + }, { + "icon": "o(*////▽////*)q ", + "text": "脸红" + }, { + "icon": ">﹏<", + "text": "" + }, { + "icon": "( ๑´•ω•) \"(ㆆᴗㆆ)", + "text": "" + }, { + "icon": "(。•ˇ‸ˇ•。)", + "text": "" + }] + }, + "阿鲁": { + "type": "image", + "container": [{ + "icon": "", + "data": ":@(高兴)", + "text": "高兴" + }, { + "icon": "", + "data": ":@(小怒)", + "text": "小怒" + }, { + "icon": "", + "data": ":@(脸红)", + "text": "脸红" + }, { + "icon": "", + "data": ":@(内伤)", + "text": "内伤" + }, { + "icon": "", + "data": ":@(装大款)", + "text": "装大款" + }, { + "icon": "", + "data": ":@(赞一个)", + "text": "赞一个" + }, { + "icon": "", + "data": ":@(害羞)", + "text": "害羞" + }, { + "icon": "", + "data": ":@(汗)", + "text": "汗" + }, { + "icon": "", + "data": ":@(吐血倒地)", + "text": "吐血倒地" + }, { + "icon": "", + "data": ":@(深思)", + "text": "深思" + }, { + "icon": "", + "data": ":@(不高兴)", + "text": "不高兴" + }, { + "icon": "", + "data": ":@(无语)", + "text": "无语" + }, { + "icon": "", + "data": ":@(亲亲)", + "text": "亲亲" + }, { + "icon": "", + "data": ":@(口水)", + "text": "口水" + }, { + "icon": "", + "data": ":@(尴尬)", + "text": "尴尬" + }, { + "icon": "", + "data": ":@(中指)", + "text": "中指" + }, { + "icon": "", + "data": ":@(想一想)", + "text": "想一想" + }, { + "icon": "", + "data": ":@(哭泣)", + "text": "哭泣" + }, { + "icon": "", + "data": ":@(便便)", + "text": "便便" + }, { + "icon": "", + "data": ":@(献花)", + "text": "献花" + }, { + "icon": "", + "data": ":@(皱眉)", + "text": "皱眉" + }, { + "icon": "", + "data": ":@(傻笑)", + "text": "傻笑" + }, { + "icon": "", + "data": ":@(狂汗)", + "text": "狂汗" + }, { + "icon": "", + "data": ":@(吐)", + "text": "吐" + }, { + "icon": "", + "data": ":@(喷水)", + "text": "喷水" + }, { + "icon": "", + "data": ":@(看不见)", + "text": "看不见" + }, { + "icon": "", + "data": ":@(鼓掌)", + "text": "鼓掌" + }, { + "icon": "", + "data": ":@(阴暗)", + "text": "阴暗" + }, { + "icon": "", + "data": ":@(长草)", + "text": "长草" + }, { + "icon": "", + "data": ":@(献黄瓜)", + "text": "献黄瓜" + }, { + "icon": "", + "data": ":@(邪恶)", + "text": "邪恶" + }, { + "icon": "", + "data": ":@(期待)", + "text": "期待" + }, { + "icon": "", + "data": ":@(得意)", + "text": "得意" + }, { + "icon": "", + "data": ":@(吐舌)", + "text": "吐舌" + }, { + "icon": "", + "data": ":@(喷血)", + "text": "喷血" + }, { + "icon": "", + "data": ":@(无所谓)", + "text": "无所谓" + }, { + "icon": "", + "data": ":@(观察)", + "text": "观察" + }, { + "icon": "", + "data": ":@(暗地观察)", + "text": "暗地观察" + }, { + "icon": "", + "data": ":@(肿包)", + "text": "肿包" + }, { + "icon": "", + "data": ":@(中枪)", + "text": "中枪" + }, { + "icon": "", + "data": ":@(大囧)", + "text": "大囧" + }, { + "icon": "", + "data": ":@(呲牙)", + "text": "呲牙" + }, { + "icon": "", + "data": ":@(抠鼻)", + "text": "抠鼻" + }, { + "icon": "", + "data": ":@(不说话)", + "text": "不说话" + }, { + "icon": "", + "data": ":@(咽气)", + "text": "咽气" + }, { + "icon": "", + "data": ":@(欢呼)", + "text": "欢呼" + }, { + "icon": "", + "data": ":@(锁眉)", + "text": "锁眉" + }, { + "icon": "", + "data": ":@(蜡烛)", + "text": "蜡烛" + }, { + "icon": "", + "data": ":@(坐等)", + "text": "坐等" + }, { + "icon": "", + "data": ":@(击掌)", + "text": "击掌" + }, { + "icon": "", + "data": ":@(惊喜)", + "text": "惊喜" + }, { + "icon": "", + "data": ":@(喜极而泣)", + "text": "喜极而泣" + }, { + "icon": "", + "data": ":@(抽烟)", + "text": "抽烟" + }, { + "icon": "", + "data": ":@(不出所料)", + "text": "不出所料" + }, { + "icon": "", + "data": ":@(愤怒)", + "text": "愤怒" + }, { + "icon": "", + "data": ":@(无奈)", + "text": "无奈" + }, { + "icon": "", + "data": ":@(黑线)", + "text": "黑线" + }, { + "icon": "", + "data": ":@(投降)", + "text": "投降" + }, { + "icon": "", + "data": ":@(看热闹)", + "text": "看热闹" + }, { + "icon": "", + "data": ":@(扇耳光)", + "text": "扇耳光" + }, { + "icon": "", + "data": ":@(小眼睛)", + "text": "小眼睛" + }, { + "icon": "", + "data": ":@(中刀)", + "text": "中刀" + }] + }, + "泡泡": { + "type": "image", + "container": [{ + "icon": "", + "data": "::(呵呵)", + "text": "呵呵" + }, { + "icon": "", + "data": "::(哈哈)", + "text": "哈哈" + }, { + "icon": "", + "data": "::(吐舌)", + "text": "吐舌" + }, { + "icon": "", + "data": "::(太开心)", + "text": "太开心" + }, { + "icon": "", + "data": "::(笑眼)", + "text": "笑眼" + }, { + "icon": "", + "data": "::(花心)", + "text": "花心" + }, { + "icon": "", + "data": "::(小乖)", + "text": "小乖" + }, { + "icon": "", + "data": "::(乖)", + "text": "乖" + }, { + "icon": "", + "data": "::(捂嘴笑)", + "text": "捂嘴笑" + }, { + "icon": "", + "data": "::(滑稽)", + "text": "滑稽" + }, { + "icon": "", + "data": "::(你懂的)", + "text": "你懂的" + }, { + "icon": "", + "data": "::(不高兴)", + "text": "不高兴" + }, { + "icon": "", + "data": "::(怒)", + "text": "怒" + }, { + "icon": "", + "data": "::(汗)", + "text": "汗" + }, { + "icon": "", + "data": "::(黑线)", + "text": "黑线" + }, { + "icon": "", + "data": "::(泪)", + "text": "泪" + }, { + "icon": "", + "data": "::(真棒)", + "text": "真棒" + }, { + "icon": "", + "data": "::(喷)", + "text": "喷" + }, { + "icon": "", + "data": "::(惊哭)", + "text": "惊哭" + }, { + "icon": "", + "data": "::(阴险)", + "text": "阴险" + }, { + "icon": "", + "data": "::(鄙视)", + "text": "鄙视" + }, { + "icon": "", + "data": "::(酷)", + "text": "酷" + }, { + "icon": "", + "data": "::(啊)", + "text": "啊" + }, { + "icon": "", + "data": "::(狂汗)", + "text": "狂汗" + }, { + "icon": "", + "data": "::(what)", + "text": "what" + }, { + "icon": "", + "data": "::(疑问)", + "text": "疑问" + }, { + "icon": "", + "data": "::(酸爽)", + "text": "酸爽" + }, { + "icon": "", + "data": "::(呀咩爹)", + "text": "呀咩爹" + }, { + "icon": "", + "data": "::(委屈)", + "text": "委屈" + }, { + "icon": "", + "data": "::(惊讶)", + "text": "惊讶" + }, { + "icon": "", + "data": "::(睡觉)", + "text": "睡觉" + }, { + "icon": "", + "data": "::(笑尿)", + "text": "笑尿" + }, { + "icon": "", + "data": "::(挖鼻)", + "text": "挖鼻" + }, { + "icon": "", + "data": "::(吐)", + "text": "吐" + }, { + "icon": "", + "data": "::(犀利)", + "text": "犀利" + }, { + "icon": "", + "data": "::(小红脸)", + "text": "小红脸" + }, { + "icon": "", + "data": "::(懒得理)", + "text": "懒得理" + }, { + "icon": "", + "data": "::(勉强)", + "text": "勉强" + }, { + "icon": "", + "data": "::(爱心)", + "text": "爱心" + }, { + "icon": "", + "data": "::(心碎)", + "text": "心碎" + }, { + "icon": "", + "data": "::(玫瑰)", + "text": "玫瑰" + }, { + "icon": "", + "data": "::(礼物)", + "text": "礼物" + }, { + "icon": "", + "data": "::(彩虹)", + "text": "彩虹" + }, { + "icon": "", + "data": "::(太阳)", + "text": "太阳" + }, { + "icon": "", + "data": "::(星星月亮)", + "text": "星星月亮" + }, { + "icon": "", + "data": "::(钱币)", + "text": "钱币" + }, { + "icon": "", + "data": "::(茶杯)", + "text": "茶杯" + }, { + "icon": "", + "data": "::(蛋糕)", + "text": "蛋糕" + }, { + "icon": "", + "data": "::(大拇指)", + "text": "大拇指" + }, { + "icon": "", + "data": "::(胜利)", + "text": "胜利" + }, { + "icon": "", + "data": "::(haha)", + "text": "haha" + }, { + "icon": "", + "data": "::(OK)", + "text": "OK" + }, { + "icon": "", + "data": "::(沙发)", + "text": "沙发" + }, { + "icon": "", + "data": "::(手纸)", + "text": "手纸" + }, { + "icon": "", + "data": "::(香蕉)", + "text": "香蕉" + }, { + "icon": "", + "data": "::(便便)", + "text": "便便" + }, { + "icon": "", + "data": "::(药丸)", + "text": "药丸" + }, { + "icon": "", + "data": "::(红领巾)", + "text": "红领巾" + }, { + "icon": "", + "data": "::(蜡烛)", + "text": "蜡烛" + }, { + "icon": "", + "data": "::(音乐)", + "text": "音乐" + }, { + "icon": "", + "data": "::(灯泡)", + "text": "灯泡" + }, { + "icon": "", + "data": "::(开心)", + "text": "开心" + }, { + "icon": "", + "data": "::(钱)", + "text": "钱" + }, { + "icon": "", + "data": "::(咦)", + "text": "咦" + }, { + "icon": "", + "data": "::(呼)", + "text": "呼" + }, { + "icon": "", + "data": "::(冷)", + "text": "冷" + }, { + "icon": "", + "data": "::(生气)", + "text": "生气" + }, { + "icon": "", + "data": "::(弱)", + "text": "弱" + }] + }, + "推特": { + "type": "image", + "container": [{ + "icon": "", + "data": ":&(angry)", + "text": "生气" + }, + { + "icon": "", + "data": ":&(bigsmile)", + "text": "大大的微笑" + }, + { + "icon": "", + "data": ":&(congratulate)", + "text": "庆祝" + }, + { + "icon": "", + "data": ":&(cool)", + "text": "酷" + }, + { + "icon": "", + "data": ":&(cry)", + "text": "哭泣" + }, + { + "icon": "", + "data": ":&(dtongue)", + "text": "吐舌" + }, + { + "icon": "", + "data": ":&(family)", + "text": "一家人" + }, + { + "icon": "", + "data": ":&(frightened)", + "text": "受到惊吓" + }, + { + "icon": "", + "data": ":&(gift)", + "text": "礼物" + }, + { + "icon": "", + "data": ":&(happy)", + "text": "开森" + }, + { + "icon": "", + "data": ":&(kiss)", + "text": "kiss" + }, + { + "icon": "", + "data": ":&(notalk)", + "text": "无 fuck 说" + }, + { + "icon": "", + "data": ":&(ok)", + "text": "欧了" + }, + { + "icon": "", + "data": ":&(love)", + "text": "爱了爱了" + }, + { + "icon": "", + "data": ":&(prayer)", + "text": "祈祷" + }, + { + "icon": "", + "data": ":&(proud)", + "text": "骄傲" + }, + { + "icon": "", + "data": ":&(shy)", + "text": "羞涩" + }, + { + "icon": "", + "data": ":&(smile)", + "text": "微笑" + }, + { + "icon": "", + "data": ":&(smilecry)", + "text": "笑哭" + }, + { + "icon": "", + "data": ":&(star)", + "text": "星" + }, + { + "icon": "", + "data": ":&(sweat)", + "text": "汗" + }, + { + "icon": "", + "data": ":&(tiaomei)", + "text": "挑眉" + }, + { + "icon": "", + "data": ":&(tilted)", + "text": "鬼脸" + }, + { + "icon": "", + "data": ":&(tongue)", + "text": "调皮" + }, + { + "icon": "", + "data": ":&(uncomfort)", + "text": "不爽" + }] + }, + "Emoji": { + "type": "emoji", + "container": [{ + "icon": "😂", + "text": "" + }, { + "icon": "😀", + "text": "" + }, { + "icon": "😅", + "text": "" + }, { + "icon": "😊", + "text": "" + }, { + "icon": "🙂", + "text": "" + }, { + "icon": "🙃", + "text": "" + }, { + "icon": "😌", + "text": "" + }, { + "icon": "😍", + "text": "" + }, { + "icon": "😘 ", + "text": "" + }, { + "icon": "😜", + "text": "" + }, { + "icon": "😝", + "text": "" + }, { + "icon": "😏", + "text": "" + }, { + "icon": "😒", + "text": "" + }, { + "icon": "🙄", + "text": "" + }, { + "icon": "😳 ", + "text": "" + }, { + "icon": "😡", + "text": "" + }, { + "icon": "😔", + "text": "" + }, { + "icon": "😫", + "text": "" + }, { + "icon": "😱", + "text": "" + }, { + "icon": "😭", + "text": "" + }, { + "icon": "💩", + "text": "" + }, { + "icon": "👻", + "text": "" + }, { + "icon": "🙌", + "text": "" + }, { + "icon": "🖕", + "text": "" + }, { + "icon": "👍", + "text": "" + }, { + "icon": "👫", + "text": "" + }, { + "icon": "👬", + "text": "" + }, { + "icon": "👭", + "text": "" + }, { + "icon": "🌚", + "text": "" + }, { + "icon": "🌝", + "text": "" + }, { + "icon": "🙈", + "text": "" + }, { + "icon": "💊", + "text": "" + }, { + "icon": "😶", + "text": "" + }, { + "icon": "🙏", + "text": "" + }, { + "icon": "🍦", + "text": "" + }, { + "icon": "🍉", + "text": "" + }, { + "icon": "😣", + "text": "" + }] + } } \ No newline at end of file diff --git a/assets/js/OwO.min.js b/assets/js/OwO.min.js index bcc9238..159f975 100644 --- a/assets/js/OwO.min.js +++ b/assets/js/OwO.min.js @@ -1 +1,211 @@ -"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,t){for(var a=0;a=200&&i.status<300||304===i.status?(a.odata=JSON.parse(i.responseText),a.init(t)):console.log("OwO data request was unsuccessful: "+i.status))},i.open("get",t.api,!0),i.send(null)}return _createClass(e,[{key:"init",value:function(e){var t=this;this.area=e.target,this.packages=Object.keys(this.odata);for(var a='\n \n
',s=0;s';for(var n=this.odata[this.packages[s]].container,i=0;i'+n[i].icon+"";a+="\n "}a+='\n
\n
    ';for(var o=0;o"+this.packages[o]+"";a+="\n
\n
\n
\n ",this.container.innerHTML=a,this.logo=this.container.getElementsByClassName("OwO-logo")[0],this.logo.addEventListener("click",function(){t.toggle()}),this.container.getElementsByClassName("OwO-body")[0].addEventListener("click",function(e){var a=null;if(e.target.classList.contains("OwO-item")?a=e.target:e.target.parentNode.classList.contains("OwO-item")&&(a=e.target.parentNode),a){var s=t.area.selectionEnd,n=t.area.value;t.area.value=n.slice(0,s)+a.innerHTML+n.slice(s),t.area.focus(),t.toggle()}}),this.packagesEle=this.container.getElementsByClassName("OwO-packages")[0];for(var c=function(e){!function(a){t.packagesEle.children[e].addEventListener("click",function(){t.tab(a)})}(e)},l=0;l= 200 && xhr.status < 300 || xhr.status === 304) { + _this.odata = JSON.parse(xhr.responseText); + _this.init(option); + } else { + console.log('OwO data request was unsuccessful: ' + xhr.status); + } + } + }; + xhr.open('get', option.api, true); + xhr.send(null); + } + + _createClass(OwO, [{ + key: 'init', + value: function init(option) { + var _this2 = this; + + this.area = option.target; + this.packages = Object.keys(this.odata); + + // fill in HTML + var html = '\n \n
'; + + for (var i = 0; i < this.packages.length; i++) { + + html += '\n
    '; + var type = this.odata[this.packages[i]].type; + var opackage = this.odata[this.packages[i]].container; + for (var _i = 0; _i < opackage.length; _i++) { + if (type == "image") { + html += '\n
  • ' + opackage[_i].icon + '
  • '; + } else { + html += '\n
  • ' + opackage[_i].icon + '
  • '; + } + } + + html += '\n
'; + } + + html += '\n
\n
    '; + + for (var _i2 = 0; _i2 < this.packages.length; _i2++) { + + html += '\n
  • ' + this.packages[_i2] + '
  • '; + } + + html += '\n
\n
\n
\n '; + this.container.innerHTML = html; + + // bind event + this.logo = this.container.getElementsByClassName('OwO-logo')[0]; + this.logo.addEventListener('click', function () { + _this2.toggle(); + }); + + this.container.getElementsByClassName('OwO-body')[0].addEventListener('click', function (e) { + var target = null; + if (e.target.classList.contains('OwO-item')) { + target = e.target; + } else if (e.target.parentNode.classList.contains('OwO-item')) { + target = e.target.parentNode; + } + if (target) { + var cursorPos = _this2.area.selectionEnd; + var areaValue = _this2.area.value; + if (target.dataset.id == "not-given") { + insertAtCursor(_this2.area, ' ' + target.innerHTML + ' '); + //_this2.area.value = areaValue.slice(0, cursorPos) + target.innerHTML + areaValue.slice(cursorPos) + ' '; + } else { + insertAtCursor(_this2.area, ' ' + target.dataset.id + ' '); + //_this2.area.value = areaValue.slice(0, cursorPos) + target.dataset.id + areaValue.slice(cursorPos) + ' '; + } + _this2.area.focus(); + _this2.toggle(); + } + }); + + this.packagesEle = this.container.getElementsByClassName('OwO-packages')[0]; + + var _loop = function _loop(_i3) { + (function (index) { + _this2.packagesEle.children[_i3].addEventListener('click', function () { + _this2.tab(index); + }); + })(_i3); + }; + + for (var _i3 = 0; _i3 < this.packagesEle.children.length; _i3++) { + _loop(_i3); + } + + this.tab(0); + } + }, { + key: 'toggle', + value: function toggle() { + if (this.container.classList.contains('OwO-open')) { + this.container.classList.remove('OwO-open'); + } else { + this.container.classList.add('OwO-open'); + } + } + }, { + key: 'tab', + value: function tab(index) { + var itemsShow = this.container.getElementsByClassName('OwO-items-show')[0]; + if (itemsShow) { + itemsShow.classList.remove('OwO-items-show'); + } + this.container.getElementsByClassName('OwO-items')[index].classList.add('OwO-items-show'); + + if(!this.container.getElementsByClassName('OwO-items')[index].classList.contains('OwO-image-items-load') + &&this.container.getElementsByClassName('OwO-items')[index].classList.contains('OwO-items-image')) + { + this.container.getElementsByClassName('OwO-items')[index].classList.add('OwO-image-items-load'); + var imgs = this.container.getElementsByClassName('OwO-items')[index].getElementsByTagName('img'); + for (var i = 0; i < imgs.length; i++) { + imgs[i].setAttribute('src',imgs[i].dataset.src); + } + } + + var packageActive = this.container.getElementsByClassName('OwO-package-active')[0]; + if (packageActive) { + packageActive.classList.remove('OwO-package-active'); + } + this.packagesEle.getElementsByTagName('li')[index].classList.add('OwO-package-active'); + } + }]); + + return OwO; + }(); + + if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { + module.exports = OwO; + } else { + window.OwO = OwO; + } +})(); \ No newline at end of file -- cgit v1.2.3