From 713d47bf78074cc4703bcb17632993f0495a8c4b Mon Sep 17 00:00:00 2001 From: Rolando Granadino Date: Thu, 22 Mar 2012 16:03:36 -0700 Subject: [PATCH] added entity chars as data- attributes, unicode checkbox and js handler methods --- public/index.html | 966 +++++++++++++++++++++++----------------------- 1 file changed, 493 insertions(+), 473 deletions(-) diff --git a/public/index.html b/public/index.html index a38329bd..6e9962b9 100644 --- a/public/index.html +++ b/public/index.html @@ -30,127 +30,128 @@

Emoji cheat sheet

Basecamp Next and Turntable.fm.
However some of the emoji codes are not super easy to remember, so here is a little cheat sheet.
- ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

+ ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
+

People

Nature

Objects

Places

Symbols

@@ -590,7 +591,8 @@

Campfire also supports a few sounds

kuinak, mathias, bryanveloso, - joeljunstrom.

+ joeljunstrom, + rgranadino.

✔ Emoji-cheat-sheet.com is not affiliated with 37signals, LLC. or GitHub Inc. in any way.

♺ Built using bits from zClip, SubtlePatterns and @@ -614,11 +616,29 @@

Campfire also supports a few sounds

$.jnotify('Copied ' + text + ''); _gaq.push(['_trackEvent', 'Emojis', 'Copy', text]); }); - - $('.button').mouseover( function() { + + function handleUnicodeBox() { + if ($('#copy-unicode').attr('checked') == 'checked') { + $('.button:not(.button[data-entity-char])').parent().hide(); + } else { + $('.button').parent().show(); + } + } + if ($('#copy-unicode').attr('checked') == 'checked') { + handleUnicodeBox(); + } + + $('#copy-unicode').click(function() { + handleUnicodeBox(); + }); + $('#content').delegate('.button','mouseover', function(e) { try { - if (clip_flash_block_detect.movie.PercentLoaded()){ - clip.setText($(this).text().trim()); + if (clip_flash_block_detect.movie && clip_flash_block_detect.movie.PercentLoaded()){ + var text = $(this).text().trim(); + if ($('#copy-unicode').attr('checked') == 'checked' && $(this).attr('data-entity-char')) { + text = $(this).attr('data-entity-char'); + } + clip.setText(text); if (clip.div && !reglue) { clip.receiveEvent('mouseout', null); clip.reposition(this);