xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Windows 10 Emoji shortcuts All In One

Windows 10 Emoji shortcuts All In One

Windows 10 Emoji 快捷键

https://support.microsoft.com/en-us/windows/windows-10-keyboard-tips-and-tricks-588e0b72-0fff-6d3f-aeee-6e5116097942

keyboard shortcut / 键盘快捷键

Win + . / Win + ;

Press Win + period (.) or Win + semicolon (;) to make the menu pop up.

https://www.techrepublic.com/article/how-to-add-emoji-to-your-documents-using-the-built-in-windows-10-emoji-panel/

https://thenextweb.com/microsoft/2017/06/09/windows-10-now-emoji-shorcut-time/

emoji in js

https://github.com/xgqfrms/learning/issues/94

JavaScript stars generator

// emoji length bug

`★★★★★☆☆☆☆☆`.length
// 10

`👍👍👍👍👍👎👎👎👎👎`.length
// 20
`💩💩💩💩💩👎👎👎👎👎`.length
// 20
`🍅🍅🍅🍅🍅💩💩💩💩💩`.length
// 20

`👨‍👩‍👦 👨‍👩‍👧‍👧 👩‍👦👨🏻‍💻`.length
// 33


const getShitRank = (strings, ...values) => {
   const rate = values[0] || 0;
   let str = `★★★★★☆☆☆☆☆`;
   let start = 5 - rate;
   let end = 10 - rate;
   if(strings[0]) {
     str = strings[0].trim();
     start = (5 - rate) * (Math.ceil(str.length/10));
     end = (10 - rate) * (Math.ceil(str.length/10));
   }
   return str.slice(start, end);;
}


getShitRank`👍👍👍👍👍👎👎👎👎👎${1}`;
// "👍👎👎👎👎"
getShitRank`💩💩💩💩💩👎👎👎👎👎 ${1}`;
// "💩👎👎👎👎"
getShitRank`🍅🍅🍅🍅🍅💩💩💩💩💩 ${1}`;
// "🍅💩💩💩💩

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

Pure JavaScript Stars Generator All In One

纯 JavaScript 实现星星( 评分 / 评级 / 等级)生成器

https://www.cnblogs.com/xgqfrms/p/17060238.html



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2020-12-29 22:52  xgqfrms  阅读(113)  评论(4编辑  收藏  举报