text: (function($){'use strict';var getBaseURL=function(){var url=document.URL;return url.substr(0,url.lastIndexOf('/'));}
  $(document).ready(function(){$("#multi").val(["Jim","Lucy"]).select2();$('#datepicker-range, #datepicker-component, #datepicker-component2').datepicker();$('#datepicker-embeded').datepicker({daysOfWeekDisabled:"0,1"});var nowTemp=new Date();var now=new Date(nowTemp.getFullYear(),nowTemp.getMonth(),nowTemp.getDate(),0,0,0,0);$(function($){$("#date").mask("99/99/9999");$("#phone").mask("(999) 999-9999");$("#tin").mask("99-9999999");$("#ssn").mask("999-99-9999");});$('.autonumeric').autoNumeric('init');$("div#myId").dropzone({url:"/file/post"});$('.custom-tag-input').tagsinput({});var myCustomTemplates={"font-styles":function(locale){return'<li class="dropdown">'+'<a data-toggle="dropdown" class="btn btn-default dropdown-toggle ">'+'<span class="editor-icon editor-icon-headline"></span>'+'<span class="current-font">Normal</span>'+'<b class="caret"></b>'+'</a>'+'<ul class="dropdown-menu">'+'<li><a tabindex="-1" data-wysihtml5-command-value="p" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">Normal</a></li>'+'<li><a tabindex="-1" data-wysihtml5-command-value="h1" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">1</a></li>'+'<li><a tabindex="-1" data-wysihtml5-command-value="h2" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">2</a></li>'+'<li><a tabindex="-1" data-wysihtml5-command-value="h3" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">3</a></li>'+'<li><a tabindex="-1" data-wysihtml5-command-value="h4" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">4</a></li>'+'<li><a tabindex="-1" data-wysihtml5-command-value="h5" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">5</a></li>'+'<li><a tabindex="-1" data-wysihtml5-command-value="h6" data-wysihtml5-command="formatBlock" href="javascript:;" unselectable="on">6</a></li>'+'</ul>'+'</li>';},emphasis:function(locale){return'<li>'+'<div class="btn-group">'+'<a tabindex="-1" title="CTRL+B" data-wysihtml5-command="bold" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-bold"></i></a>'+'<a tabindex="-1" title="CTRL+I" data-wysihtml5-command="italic" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-italic"></i></a>'+'<a tabindex="-1" title="CTRL+U" data-wysihtml5-command="underline" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-underline"></i></a>'+'</div>'+'</li>';},blockquote:function(locale){return'<li>'+'<a tabindex="-1" data-wysihtml5-display-format-name="false" data-wysihtml5-command-value="blockquote" data-wysihtml5-command="formatBlock" class="btn  btn-default" href="javascript:;" unselectable="on">'+'<i class="editor-icon editor-icon-quote"></i>'+'</a>'+'</li>'},lists:function(locale){return'<li>'+'<div class="btn-group">'+'<a tabindex="-1" title="Unordered list" data-wysihtml5-command="insertUnorderedList" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-ul"></i></a>'+'<a tabindex="-1" title="Ordered list" data-wysihtml5-command="insertOrderedList" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-ol"></i></a>'+'<a tabindex="-1" title="Outdent" data-wysihtml5-command="Outdent" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-outdent"></i></a>'+'<a tabindex="-1" title="Indent" data-wysihtml5-command="Indent" class="btn  btn-default" href="javascript:;" unselectable="on"><i class="editor-icon editor-icon-indent"></i></a>'+'</div>'+'</li>'},image:function(locale){return'<li>'+'<div class="bootstrap-wysihtml5-insert-image-modal modal fade">'+'<div class="modal-dialog ">'+'<div class="modal-content">'+'<div class="modal-header">'+'<a data-dismiss="modal" class="close">×</a>'+'<h3>Insert image</h3>'+'</div>'+'<div class="modal-body">'+'<input class="bootstrap-wysihtml5-insert-image-url form-control" value="http://">'+'</div>'+'<div class="modal-footer">'+'<a data-dismiss="modal" class="btn btn-default">Cancel</a>'+'<a data-dismiss="modal" class="btn btn-primary">Insert image</a>'+'</div>'+'</div>'+'</div>'+'</div>'+'<a tabindex="-1" title="Insert image" data-wysihtml5-command="insertImage" class="btn  btn-default" href="javascript:;" unselectable="on">'+'<i class="editor-icon editor-icon-image"></i>'+'</a>'+'</li>'},link:function(locale){return'<li>'+'<div class="bootstrap-wysihtml5-insert-link-modal modal fade">'+'<div class="modal-dialog ">'+'<div class="modal-content">'+'<div class="modal-header">'+'<a data-dismiss="modal" class="close">×</a>'+'<h3>Insert link</h3>'+'</div>'+'<div class="modal-body">'+'<input class="bootstrap-wysihtml5-insert-link-url form-control" value="http://">'+'<label class="checkbox"> <input type="checkbox" checked="" class="bootstrap-wysihtml5-insert-link-target">Open link in new window</label>'+'</div>'+'<div class="modal-footer">'+'<a data-dismiss="modal" class="btn btn-default">Cancel</a>'+'<a data-dismiss="modal" class="btn btn-primary" href="#">Insert link</a>'+'</div>'+'</div>'+'</div>'+'</div>'+'<a tabindex="-1" title="Insert link" data-wysihtml5-command="createLink" class="btn  btn-default" href="javascript:;" unselectable="on">'+'<i class="editor-icon editor-icon-link"></i>'+'</a>'+'</li>'},html:function(locale){return'<li>'+'<div class="btn-group">'+'<a tabindex="-1" title="Edit HTML" data-wysihtml5-action="change_view" class="btn  btn-default" href="javascript:;" unselectable="on">'+'<i class="editor-icon editor-icon-html"></i>'+'</a>'+'</div>'+'</li>'}}
  setTimeout(function(){$('#wysiwyg5').wysihtml5({html:true,stylesheets:[getBaseURL()+"/pages/css/editor.css"],customTemplates:myCustomTemplates});},500);$('#summernote').summernote({height:200,onfocus:function(e){$('body').addClass('overlay-disabled');},onblur:function(e){$('body').removeClass('overlay-disabled');}});});})(window.jQuery);