|
@@ -23,7 +23,7 @@
|
|
theElement.empty();
|
|
theElement.empty();
|
|
for(l=0;l<lines.length;l++){
|
|
for(l=0;l<lines.length;l++){
|
|
if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
|
|
if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
|
|
- theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '"') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
|
|
|
|
|
|
+ theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ $.trim(lines[l].replace(/"/g, '"')) +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
|
|
} else {
|
|
} else {
|
|
theElement.append(lines[l]);
|
|
theElement.append(lines[l]);
|
|
}
|
|
}
|
|
@@ -33,9 +33,15 @@
|
|
$(document).on('click','input.copy-text',function(){
|
|
$(document).on('click','input.copy-text',function(){
|
|
theButton = $(this);
|
|
theButton = $(this);
|
|
$('input.copy-text').attr('src','images/clipboard.png');
|
|
$('input.copy-text').attr('src','images/clipboard.png');
|
|
- $('span.copy-animation').removeClass('copy-animation');
|
|
|
|
|
|
+ $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
|
|
try {
|
|
try {
|
|
- $('#'+ theButton.attr('rel')).addClass('copy-animation');
|
|
|
|
|
|
+ if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
|
|
|
|
+ $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
|
|
|
|
+ } else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){
|
|
|
|
+ $('#'+ theButton.attr('rel')).addClass('copy-animation-cmd');
|
|
|
|
+ } else {
|
|
|
|
+ $('#'+ theButton.attr('rel')).addClass('copy-animation');
|
|
|
|
+ }
|
|
navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
|
|
navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
|
|
theButton.attr('src','images/clipboard_active.png');
|
|
theButton.attr('src','images/clipboard_active.png');
|
|
} catch(err) {
|
|
} catch(err) {
|
|
@@ -57,8 +63,8 @@
|
|
});
|
|
});
|
|
|
|
|
|
if(window.self !== window.top){
|
|
if(window.self !== window.top){
|
|
- window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
|
|
|
|
- }
|
|
|
|
|
|
+ window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
|
|
|
|
+ }
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
<link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
@@ -86,9 +92,9 @@
|
|
sudo groupadd tomcat<br />
|
|
sudo groupadd tomcat<br />
|
|
sudo useradd -s /bin/false -g tomcat -d /var/lib/tomcat9 tomcat<br />
|
|
sudo useradd -s /bin/false -g tomcat -d /var/lib/tomcat9 tomcat<br />
|
|
# download and extract tomcat 9<br />
|
|
# download and extract tomcat 9<br />
|
|
- curl -O https://downloads.apache.org/tomcat/tomcat-9/v9.0.39/bin/apache-tomcat-9.0.39.tar.gz<br />
|
|
|
|
|
|
+ curl -O https://downloads.apache.org/tomcat/tomcat-9/v9.0.55/bin/apache-tomcat-9.0.55.tar.gz<br />
|
|
sudo tar xzvf apache-tomcat-9*tar.gz -C /var/lib/tomcat9 --strip-components=1<br />
|
|
sudo tar xzvf apache-tomcat-9*tar.gz -C /var/lib/tomcat9 --strip-components=1<br />
|
|
- # set permissions <br />
|
|
|
|
|
|
+ # set permissions <br />
|
|
cd /var/lib/tomcat9<br />
|
|
cd /var/lib/tomcat9<br />
|
|
sudo chgrp -R tomcat /var/lib/tomcat9<br />
|
|
sudo chgrp -R tomcat /var/lib/tomcat9<br />
|
|
sudo chmod -R g+r conf<br />
|
|
sudo chmod -R g+r conf<br />
|