]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/head.tpl
Merge pull request #13374 from friendica/update-htaccess
[friendica.git] / view / templates / head.tpl
index 2ef1bfe08fdd27ea30f5a3c493301bed5f0ef3d3..9087cea82e2a9416d4d427325d6b60b663729e31 100644 (file)
@@ -1,4 +1,3 @@
-
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 <base href="{{$baseurl}}/" />
 <meta name="generator" content="{{$generator}}" />
@@ -7,6 +6,7 @@
 <link rel="stylesheet" href="view/asset/jgrowl/jquery.jgrowl.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" />
 <link rel="stylesheet" href="view/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" />
 <link rel="stylesheet" href="view/asset/perfect-scrollbar/dist/css/perfect-scrollbar.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" />
+<link rel="stylesheet" href="view/js/fancybox/jquery.fancybox.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" />
 
 {{foreach $stylesheets as $stylesheetUrl => $media}}
        <link rel="stylesheet" href="{{$stylesheetUrl}}" type="text/css" media="{{$media}}" />
 <script type="text/javascript" src="view/asset/imagesloaded/imagesloaded.pkgd.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
 <script type="text/javascript" src="view/asset/base64/base64.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
 <script type="text/javascript" src="view/asset/dompurify/dist/purify.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+<script type="text/javascript" src="view/js/fancybox/jquery.fancybox.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+<script type="text/javascript" src="view/js/fancybox/fancybox.config.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+<script type="text/javascript" src="view/js/vanillaEmojiPicker/vanillaEmojiPicker.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
+<script>
+window.onload = function(){
+       new EmojiPicker({
+               trigger: [
+                       {
+                               selector: '.emojis-post',
+                               insertInto: ['#comment-edit-text-0', '#profile-jot-text']
+                       },
+                       {
+                               selector: '.emojis',
+                               insertInto: ['.comment-edit-text-full']
+                       }
+               ],
+               closeButton: true
+       });
+};
+</script>
+<script type="text/javascript">
+       const updateInterval = {{$update_interval}};
+       const localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
+</script>
 <script type="text/javascript" src="view/js/main.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
 <script>
-
        // Lifted from https://css-tricks.com/snippets/jquery/move-cursor-to-end-of-textarea-or-input/
     jQuery.fn.putCursorAtEnd = function() {
         return this.each(function() {
         });
     };
 
-    var updateInterval = {{$update_interval}};
-       var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
-
        function confirmDelete() { return confirm("{{$delitem}}"); }
        function commentExpand(id) {
                $("#comment-edit-text-" + id).putCursorAtEnd();
                return false;
        }
 
-
        function commentInsert(obj,id) {
                var tmpStr = $("#comment-edit-text-" + id).val();
                if (tmpStr == "") {
                        $("#comment-edit-form-" + id).show();
                }
        }
-
-
-</script>
-
-
+</script>
\ No newline at end of file