src/pyams_skin/resources/js/myams-browser.min.js
changeset 433 f8b091800256
child 456 c09f55f777fa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_skin/resources/js/myams-browser.min.js	Wed Oct 17 11:14:10 2018 +0200
@@ -0,0 +1,1 @@
+!function(e,o){var r=o.MyAMS,n=r;r.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.",r=this.getInternetExplorerVersion();r>-1&&(e=r>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),o.alert&&o.alert(e)},isIE8orlower:function(){var e="0",o=this.getInternetExplorerVersion();return o>-1&&(e=o>=9?0:1),e},copyToClipboard:function(t){function a(t){var a=!1;if(window.clipboardData&&window.clipboardData.setData)a=clipboardData.setData("Text",t);else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var i=e("<textarea>");i.val(t),i.css("position","fixed"),i.appendTo(e("body")),i.get(0).select();try{document.execCommand("copy"),a=!0}catch(e){console&&console.warn&&console.warn("Copy to clipboard failed.",e)}finally{i.remove()}}a?n.skin.smallBox("success",{title:t.length>1?n.i18n.CLIPBOARD_TEXT_COPY_OK:n.i18n.CLIPBOARD_CHARACTER_COPY_OK,icon:"fa fa-fw fa-info-circle font-xs align-top margin-top-10",timeout:3e3}):o.prompt&&o.prompt(r.i18n.CLIPBOARD_COPY,t)}if(void 0===t)return function(){var o=e(this),r=o.text();o.parents(".btn-group").removeClass("open"),a(r)};a(t)}}}(jQuery,this);