Added placeholder scripting
This commit is contained in:
		@@ -187,6 +187,11 @@ body {
 | 
			
		||||
    font-size: 20px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.invisible-button {
 | 
			
		||||
    background-color: #00000000;
 | 
			
		||||
    border: #00000000;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.action-button.active {
 | 
			
		||||
    background: #2A93B0;
 | 
			
		||||
    border: 1px solid #7ed0eb;
 | 
			
		||||
 
 | 
			
		||||
@@ -40,6 +40,12 @@ $('#btn-newRow').click(
 | 
			
		||||
    }   
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
$('#btn-copy').click(
 | 
			
		||||
    ()=> {
 | 
			
		||||
        console.log("btn-copy");
 | 
			
		||||
    }   
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
    Functions segment
 | 
			
		||||
*/
 | 
			
		||||
@@ -145,9 +151,11 @@ function loadFetchedMessage(){
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function fillStaticFields(uuid, contentType, body, httpStatus){
 | 
			
		||||
    const copyButton = '<button id="btn-copy" class="invisible-button">Copy</button>';
 | 
			
		||||
    let link = createLink(uuid);
 | 
			
		||||
    let linkHtml = '<a class="hyperlink" target="_blank" href="'+link+'">'+link+'</a>';
 | 
			
		||||
    $('#messageLink').html(linkHtml);
 | 
			
		||||
    let linkHtml = '<a class="hyperlink" target="_blank" href="'+link+'">'+link+'</a>' + copyButton;
 | 
			
		||||
    $('#messageLink').attr("href", link);
 | 
			
		||||
    $('#messageLink').html(link);
 | 
			
		||||
    $('#httpStatus').val(httpStatus);
 | 
			
		||||
    $('#typeSelector').val(contentType);
 | 
			
		||||
    $('#bodyEditor').val(body);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user