").appendTo("body");
-
- var left = jq("#" + id).offset().left + jq("#" + id).outerWidth();
-
- var topElement = jq("#" + id).offset().top;
- var halfHeightElement = jq("#" + id).outerHeight() / 2;
-
- var heightToFooter = jq("footer").offset().top - (topElement + halfHeightElement);
- var halfHeightTooltip = jq("div.tooltip").outerHeight() / 2;
- if (heightToFooter > (halfHeightTooltip + 10)) {
- var top = topElement + halfHeightElement - halfHeightTooltip;
- } else {
- var top = jq("footer").offset().top - jq("div.tooltip").outerHeight() - 10;
+ function showUserTooltip (isMobile) {
+ if ( jq("div#portal-info").is(":hidden") ) {
+ jq("div#portal-info").show();
+ jq("div.stored-list").hide();
+ } else if (isMobile && jq("div#portal-info").is(":visible")) {
+ jq("div#portal-info").hide();
+ jq("div.stored-list").show();
}
+ };
- jq("div.tooltip").css({ "top": top, "left": left + 10 });
- jq("div.arrow").css({ "top": topElement + halfHeightElement, "left": left + 6 });
- }).mouseout(function () {
- jq("div.tooltip").remove();
- jq("div.arrow").remove();
- });
+ var fileList = jq("tr.tableRow");
+ if (fileList.length > 0) {
+ console.log(jq("div#portal-info").is(":visible"));
+ jq("div#portal-info").hide();
+ }
+
+ var mouseIsOverTooltip = false;
+ var hideTooltipTimeout = null;
+ if (/android|avantgo|playbook|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i
+ .test(navigator.userAgent)) {
+ if (fileList.length > 0) {
+ if (hideTooltipTimeout != null) {
+ clearTimeout(hideTooltipTimeout);
+ }
+ jq(".info").on("touchend", function () {
+ showUserTooltip(true);
+ });
+ }
+ } else {
+ jq(".info").mouseover(function (event) {
+ if (fileList.length > 0) {
+ if (hideTooltipTimeout != null) {
+ clearTimeout(hideTooltipTimeout);
+ }
+ showUserTooltip(false);
+
+ jq("div#portal-info").mouseenter(function () {
+ mouseIsOverTooltip = true;
+ }).mouseleave(function () {
+ mouseIsOverTooltip = false;
+ jq("div.stored-list").show();
+ jq("div#portal-info").hide();
+ })
+ }
+ }).mouseleave(function () {
+ hideTooltipTimeout = setTimeout(function () {
+ if (mouseIsOverTooltip == false && fileList.length > 0) {
+ jq("div.stored-list").show();
+ jq("div#portal-info").hide();
+ }
+ }, 500);
+ });
+ }
+}
}
\ No newline at end of file
diff --git a/web/documentserver-example/csharp-mvc/Views/Home/Index.aspx b/web/documentserver-example/csharp-mvc/Views/Home/Index.aspx
index 3355fc83..4611c57d 100644
--- a/web/documentserver-example/csharp-mvc/Views/Home/Index.aspx
+++ b/web/documentserver-example/csharp-mvc/Views/Home/Index.aspx
@@ -82,31 +82,18 @@
Username
-
+
- Language
-
+ Language editors interface
@@ -148,39 +135,50 @@
- <% var storedFiles = DocManagerHelper.GetStoredFiles();
- if (!storedFiles.Any())
+
+ ONLYOFFICE Document Editors – Welcome!
+
+ Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.
+ You may upload your own documents for testing using the "Upload file" button and selecting the necessary files on your PC.
+
+ You can open the same document using different users in different Web browser sessions, so you can check out multi-user editing functions.
+ <% foreach (User user in Users.getAllUsers())
+ { %>
+
+ <% var storedFiles = GetStoredFiles();
+ if storedFiles.Any())
{ %>
- ONLYOFFICE Document Editors – Welcome!
-
- Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.
- You may upload your own documents for testing using the "Upload file" button and selecting the necessary files on your PC.
-
- <% }
- else
- { %>
-
- Your documents
-
-
-
-
Filename
-
Editors
-
Viewers
-
Download
-
Remove
-
-
-
-
-
-
- <% foreach (var storedFile in storedFiles)
- {
- var editUrl = "doceditor.aspx?fileID=" + HttpUtility.UrlEncode(storedFile.Name);
- var docType = FileUtility.GetFileType(storedFile.Name).ToString().ToLower();
- var canEdir = DocManagerHelper.EditedExts.Contains(Path.GetExtension(storedFile.Name).ToLower());
- %>
+
+ Your documents
+
+
+
+
Filename
+
Editors
+
Viewers
+
Download
+
Remove
+
+
+
+
+
+
+ <% foreach (var storedFile in storedFiles)
+ {
+ var editUrl = "doceditor.aspx?fileID=" + HttpUtility.UrlEncode(storedFile.Name);
+ var docType = DocumentType(storedFile.Name);
+ var canEdit = EditedExts.Contains(Path.GetExtension(storedFile.Name).ToLower());