2 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
3 <base href="{{$baseurl}}/" />
4 <meta name="generator" content="{{$generator}}" />
5 <link rel="stylesheet" href="view/global.css" type="text/css" media="all" />
6 <link rel="stylesheet" href="vendor/asset/jquery-colorbox/example5/colorbox.css" type="text/css" media="screen" />
7 <link rel="stylesheet" href="library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
8 <link rel="stylesheet" href="vendor/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css" type="text/css" media="screen" />
9 <link rel="stylesheet" href="library/perfect-scrollbar/perfect-scrollbar.min.css" type="text/css" media="screen" />
10 <link rel="stylesheet" href="vendor/pear/text_highlighter/sample.css" type="text/css" media="screen" />
12 <link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
15 <link rel="shortcut icon" href="images/friendica-32.png" />
16 <link rel="apple-touch-icon" href="images/friendica-128.png"/>
18 <link rel="shortcut icon" href="{{$shortcut_icon}}" />
19 <link rel="apple-touch-icon" href="{{$touch_icon}}"/>
21 <meta name="apple-mobile-web-app-capable" content="yes" />
22 <link rel="manifest" href="{{$baseurl}}/manifest" />
24 // Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
25 (function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
29 href="{{$baseurl}}/opensearch"
30 type="application/opensearchdescription+xml"
31 title="Search in Friendica" />
34 <script type="text/javascript" src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
36 <script type="text/javascript" src="js/modernizr.js" ></script>
37 <script type="text/javascript" src="vendor/asset/jquery/dist/jquery.min.js" ></script>
38 <script type="text/javascript" src="js/jquery-migrate.js" ></script>
39 <script type="text/javascript" src="js/jquery.textinputs.js" ></script>
40 <script type="text/javascript" src="library/jquery-textcomplete/jquery.textcomplete.min.js" ></script>
41 <script type="text/javascript" src="js/autocomplete.js" ></script>
42 <script type="text/javascript" src="vendor/asset/jquery-colorbox/jquery.colorbox-min.js"></script>
43 <script type="text/javascript" src="library/jgrowl/jquery.jgrowl_minimized.js"></script>
44 <script type="text/javascript" src="vendor/asset/jquery-datetimepicker/build/jquery.datetimepicker.full.min.js"></script>
45 <script type="text/javascript" src="library/perfect-scrollbar/perfect-scrollbar.jquery.min.js" ></script>
46 <script type="text/javascript" src="js/acl.js" ></script>
47 <script type="text/javascript" src="vendor/asset/base64/base64.min.js" ></script>
48 <script type="text/javascript" src="js/main.js" ></script>
51 var updateInterval = {{$update_interval}};
52 var localUser = {{if $local_user}}{{$local_user}}{{else}}false{{/if}};
54 {{* Create an object with the data which is needed for infinite scroll.
55 For the relevant js part look at function loadContent() in main.js. *}}
56 {{if $infinite_scroll}}
57 var infinite_scroll = {
58 "pageno" : {{$infinite_scroll.pageno}},
59 "reload_uri" : "{{$infinite_scroll.reload_uri}}"
63 function confirmDelete() { return confirm("{{$delitem}}"); }
64 function commentExpand(id) {
65 $("#comment-edit-text-" + id).value = "";
66 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
67 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
68 $("#comment-edit-text-" + id).focus();
69 $("#mod-cmnt-wrap-" + id).show();
70 openMenu("comment-edit-submit-wrapper-" + id);
73 function commentOpen(obj,id) {
74 if (obj.value == "") {
75 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
76 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
77 $("#mod-cmnt-wrap-" + id).show();
78 openMenu("comment-edit-submit-wrapper-" + id);
83 function commentClose(obj,id) {
84 if (obj.value == "") {
85 $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
86 $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
87 $("#mod-cmnt-wrap-" + id).hide();
88 closeMenu("comment-edit-submit-wrapper-" + id);
95 function commentInsert(obj,id) {
96 var tmpStr = $("#comment-edit-text-" + id).val();
98 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
99 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
100 openMenu("comment-edit-submit-wrapper-" + id);
102 var ins = $(obj).html();
103 ins = ins.replace("<","<");
104 ins = ins.replace(">",">");
105 ins = ins.replace("&","&");
106 ins = ins.replace(""","\"");
107 $("#comment-edit-text-" + id).val(tmpStr + ins);
110 function qCommentInsert(obj,id) {
111 var tmpStr = $("#comment-edit-text-" + id).val();
113 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
114 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
115 openMenu("comment-edit-submit-wrapper-" + id);
117 var ins = $(obj).val();
118 ins = ins.replace("<","<");
119 ins = ins.replace(">",">");
120 ins = ins.replace("&","&");
121 ins = ins.replace(""","\"");
122 $("#comment-edit-text-" + id).val(tmpStr + ins);
126 window.showMore = "{{$showmore}}";
127 window.showFewer = "{{$showfewer}}";
129 function showHideCommentBox(id) {
130 if ($("#comment-edit-form-" + id).is(":visible")) {
131 $("#comment-edit-form-" + id).hide();
133 $("#comment-edit-form-" + id).show();