Responsive Ads Here

Wednesday, 26 April 2017

Plugin for Emojis option for input field



Link for emojis in input text field

HTML:

<div class="row">
  <div class="span6">
    <textarea id="emojionearea1">Default :smile:</textarea>
  </div>
  <div class="span6">
    <input type="text" id="emojionearea2" value="inline :+1:"/>
  </div>
</div>
<div class="row">
  <div class="span6">
    <div id="emojionearea3">Support autocompleting, insert ":" </div>
  </div>
  <div class="span6">
    <input type="text" id="emojionearea4" value=":smiley_cat:"/>
  </div>
</div>
<div class="row">
  <div class="span6">
    <textarea id="emojionearea5">Disable tones, disable autocomplete :dog::cat:</textarea>
  </div>
  <div class="span6">
     <div id="standalone" data-emoji-placeholder=":smiley:"></div>
  </div>
</div>

CSS:



* {
  font-family: Arial, Helvetica, san-serif;
}
.row:after, .row:before {
  content: " ";
  display: table;
  clear: both;
}
.span6 {
  float: left;
  width: 48%;
  padding: 1%;
}

.emojionearea-standalone {
  float: right;
}

JS:


$(document).ready(function() {
$("#emojionearea1").emojioneArea({
  pickerPosition: "right",
    tonesStyle: "bullet"
  });
$("#emojionearea2").emojioneArea({
  pickerPosition: "bottom",
    tonesStyle: "radio"
  });
$("#emojionearea3").emojioneArea({
  pickerPosition: "right",
  filtersPosition: "bottom",
    tonesStyle: "square"
  });
$("#emojionearea4").emojioneArea({
  pickerPosition: "bottom",
  filtersPosition: "bottom",
    tonesStyle: "checkbox"
  });
$("#emojionearea5").emojioneArea({
  pickerPosition: "top",
  filtersPosition: "bottom",
    tones: false,
    autocomplete: false,
    inline: true,
    hidePickerOnBlur: false
  });
  $("#standalone").emojioneArea({
    standalone: true,
    autocomplete: false
  });
});


No comments:

Post a Comment

On scroll Sticky footer

HTML5: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sticky Footer | Co...

Contact Form

Name

Email *

Message *