<target name="deploy" depends="download" description="deploy cspace ui to ${jee.server.cspace}">
<filter token="UI_VERSION" value="${cspace.ui.version}" />
- <copy todir="${jee.deploy.cspace}/${cspace.ui.webapp}" filtering="true">
+ <copy todir="${jee.deploy.cspace}/${cspace.ui.webapp}" filtering="true" overwrite="true">
<fileset dir="${cspace.ui.webapp}"/>
</copy>
<move file="cspaceUI@${cspace.ui.version}.min.js" todir="${jee.deploy.cspace.ui.shared}"></move>
--- /dev/null
+<!DOCTYPE html>
+<html>
+ <head></head>
+ <body>
+ <p>What is the name(s) of your browser?</p>
+ <button onclick="myFunction()">Try it</button>
+ <p id="demo"></p>
+ <script>
+
+ function myFunction() {
+ if((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1 )
+ {
+ alert('Opera');
+ }
+ else if(navigator.userAgent.indexOf("Chrome") != -1 )
+ {
+ alert('Chrome');
+ }
+ else if(navigator.userAgent.indexOf("Safari") != -1)
+ {
+ alert('Safari');
+ }
+ else if(navigator.userAgent.indexOf("Firefox") != -1 )
+ {
+ alert('Firefox');
+ }
+ else if((navigator.userAgent.indexOf("MSIE") != -1 ) || (!!document.documentMode == true )) //IF IE > 10
+ {
+ alert('IE');
+ }
+ else
+ {
+ alert('unknown');
+ }
+ }
+ </script>
+
+ </body>
+</html>