Skip to content

Commit 7fef928

Browse files
johnwinifredNtemKenyor
authored andcommitted
I have added a comment that will remain throughout the project when all the content in the develoment dashboard is erased at the creation of the first project element
1 parent c61ab71 commit 7fef928

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

assets/vendor/js/dashboard.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,20 @@ function add_element_2_dashboard (tag_name) {
107107
//ref.innerHTML = document.createElement(tag_name).toString();
108108
//var content = '<' + tag_name + ' id="'+elemId+'" ondblclick="change_selected(event, "'+tag_name+'", "'+elemId+'" ) style= "height: '+ height + '; width: '+ width + '; background-color: ' + background + ' ;"' + '></' + tag_name + '>';
109109
/*'<' + tag_name + ' ondblclick="change_selected(event,'+ '"'+tag_name+'"' , '"'+elemId+'"' +') id="'+elemId+'" style= "height: '+ height + '; width: '+ width + '; background-color: ' + background + ' ;"' + '></' + tag_name + '>';*/
110-
ref.innerHTML = "";
110+
111+
// This is the innerHTML of the development dashboard
112+
ref.innerHTML = "";
113+
var your_comment = `
114+
<head>
115+
<title> #Particular Project Name</title>
116+
<script>
117+
//Plugin Start
118+
//##
119+
//Plugin End
120+
</script>
121+
</head>
122+
`;
123+
ref.innerHTML= your_comment;
111124
proper_fitting = "\n" + "\t";
112125
//alert( document.getElementById('the_dev_dashboard').compareDocumentPosition(ref) );
113126
ref.append(proper_fitting);

pages/dashboard.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ <h3 class="sider_header" id="The_right_header_side"> Attributes </h3>
427427
428428
429429
-->
430+
430431
<b>This is the main dashboard arena. Drag html tag here and add more attributes and styles to them</b>
431432

432433
</div>

0 commit comments

Comments
 (0)