Skip to content

Commit

Permalink
Icons are added to notification panel
Browse files Browse the repository at this point in the history
  • Loading branch information
masnun committed Nov 11, 2011
1 parent dd99450 commit 964db76
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions avro-phonetic.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

function avro_phonetic_notif()
{
echo '<div id="avro-phonetic-notif">E</div>';
echo '<div id="avro-phonetic-notif"><img src="https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-english.png" width="50px" height="50px" alt="E" /></div>';
echo '<div id="avro-phonetic-hidden-div" style="visibility: hidden;"><img src="https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-english.png" width="50px" height="50px" alt="E" /><img src="https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-bangla.png" width="50px" height="50px" alt="B" /></div>';
}

function avro_phonetic()
Expand All @@ -33,13 +34,7 @@ function avro_phonetic()
position: fixed;
top: 200px;
right:0;
width: 50px;
height: 50px;
background-color: #000;
color: #ffff33;
font-weight: bold;
text-align: center;
padding-top: 25px;


}
</style>
Expand Down Expand Up @@ -81,9 +76,9 @@ function avro_js_loader() {
jQuery('textarea, input[type=text]').live('focus', function() {
jQuery(this).avro('destroy').avro({'bn':false}, function(isBangla){
if(isBangla) {
jQuery("#avro-phonetic-notif").html("অ")
jQuery("#avro-phonetic-notif").html('<img src="https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-bangla.png" width="50px" height="50px" alt="অ" />')
} else {
jQuery("#avro-phonetic-notif").html("E")
jQuery("#avro-phonetic-notif").html('<img src="https://github.com/masnun/Avro-Phonetic-WP-Plugin/raw/master/avro-english.png" width="50px" height="50px" alt="E" />')
}
});
}).avro('destroy').avro();
Expand Down

0 comments on commit 964db76

Please sign in to comment.