{"id":97,"date":"2015-11-12T16:44:04","date_gmt":"2015-11-12T16:44:04","guid":{"rendered":"https:\/\/mitchellhamline.edu\/library\/?page_id=97"},"modified":"2020-04-29T08:18:59","modified_gmt":"2020-04-29T13:18:59","slug":"chat-with-a-librarian","status":"publish","type":"page","link":"https:\/\/mitchellhamline.edu\/library\/chat-with-a-librarian\/","title":{"rendered":"Chat with a Librarian"},"content":{"rendered":"<p>Library chat is available during regular reference <a href=\"https:\/\/libcal.mitchellhamline.edu\/hours\/\">hours<\/a>.<br \/>\n<!-- This div handles when your queue is online. Swap in your own queue name in lower-case letters and your widget ID number (from the Widgets tab in the admin site).-->\r\n<div id=\"online\" jid=\"wmclrefs-queue@chat.libraryh3lp.com\">\r\n  <iframe src=\"https:\/\/us.libraryh3lp.com\/chat\/wmclrefs-queue@chat.libraryh3lp.com?skin=24112\" frameBorder=\"0\" style=\"width: 360px; height: 500px; border: 0px inset black;\"><\/iframe>\r\n<\/div>\r\n<!-- This div handles when the queue is busy or away. -->\r\n<div class=\"libraryh3lp\" style=\"display: none;\" id=\"not-available\"> Sorry, we&rsquo;re busy helping someone else or stepped away for a moment.  We will be back soon. <br \/>\r\n<\/div>\r\n<!-- This div handles when the queue is offline. -->\r\n<div class=\"libraryh3lp\" style=\"display: none;\" id=\"offline\"> Chat is currently unavailable. If you need assistance, please email <a href=\"mailto:you@you.edu\">customize this<\/a> or call us at 111-222-3333. <\/div>\r\n<!-- This is the javascript that handles the showing\/hiding of the chat status divs --> \r\n<script type=\"text\/javascript\">\r\n      function show_presence() {\r\n        for (var i = 0; i < jabber_resources.length; ++i) {\r\n          var resource = jabber_resources[i];\r\n          if (resource.show === \"available\" || resource.show === \"chat\") {\r\n            document.getElementById(\"online\").style.display = \"\";\r\n            document.getElementById(\"not-available\").style.display = \"none\";\r\n            document.getElementById(\"offline\").style.display = \"none\";\r\n          } else if (resource.show !== \"unavailable\") {\r\n            document.getElementById(\"online\").style.display = \"none\";\r\n            document.getElementById(\"not-available\").style.display = \"\";\r\n            document.getElementById(\"offline\").style.display = \"none\";\r\n          } else {\r\n            document.getElementById(\"online\").style.display = \"none\";\r\n            document.getElementById(\"not-available\").style.display = \"none\";\r\n            document.getElementById(\"offline\").style.display = \"\";\r\n          }\r\n        }\r\n      }\r\n     function check_presence() {\r\n        var attr = document.getElementById(\"online\").getAttribute(\"jid\");\r\n        var jid  = attr.split(\"@\");\r\n        var url  = [\"https:\/\/us.libraryh3lp.com\/presence\/jid\", jid[0], jid[1], \"js\"].join(\"\/\");\r\n        document.write(\"<script type=\"text\/javascript\" src=\"\" + url + \"?cb=show_presence\">< \\\/script>\");\r\n      }\r\n      check_presence();\r\n    <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Library chat is available during regular reference hours.<\/p>\n<p><a href=\"https:\/\/mitchellhamline.edu\/library\/chat-with-a-librarian\/\" class=\"more-link\">Chat with a Librarian<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"0":"post-97","1":"page","2":"type-page","3":"status-publish","5":"entry"},"acf":[],"_links":{"self":[{"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/pages\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":0,"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/pages\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/mitchellhamline.edu\/library\/wp-json\/wp\/v2\/media?parent=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}