src/pyams_skin/resources/js/myams-browser.min.js
changeset 557 bca7a7e058a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_skin/resources/js/myams-browser.min.js	Thu Feb 13 11:43:31 2020 +0100
@@ -0,0 +1,1 @@
+!function(r,t){var a=t.MyAMS;a.browser={getInternetExplorerVersion:function(){var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var o=navigator.userAgent;null!==new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(o)&&(e=parseFloat(RegExp.$1))}return e},checkVersion:function(){var e="You're not using Windows Internet Explorer.",o=this.getInternetExplorerVersion();-1<o&&(e=8<=o?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),t.alert&&t.alert(e)},isIE8orlower:function(){var e="0",o=this.getInternetExplorerVersion();return-1<o&&(e=9<=o?0:1),e},copyToClipboard:function(e){function n(e){var o=!1;if(window.clipboardData&&window.clipboardData.setData)o=clipboardData.setData("Text",e);else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var n=r("<textarea>");n.val(e),n.css("position","fixed"),n.appendTo(r("body")),n.get(0).select();try{document.execCommand("copy"),o=!0}catch(e){console&&console.warn&&console.warn("Copy to clipboard failed.",e)}finally{n.remove()}}o?a.skin&&a.skin.smallBox("success",{title:1<e.length?a.i18n.CLIPBOARD_TEXT_COPY_OK:a.i18n.CLIPBOARD_CHARACTER_COPY_OK,icon:"fa fa-fw fa-info-circle font-xs align-top margin-top-10",timeout:3e3}):t.prompt&&t.prompt(a.i18n.CLIPBOARD_COPY,e)}if(void 0===e)return function(){var e=r(this),o=e.text();e.parents(".btn-group").removeClass("open"),n(o)};n(e)}}}(jQuery,this);