forked from prmr/JetUML
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[prmr#530] Modify UserGuideGenerator to dynamicall re-organize tips.
- Loading branch information
Showing
5 changed files
with
343 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# User Guide | ||
|
||
This page contains the complete list of "tips" available through JetUML's "Tip of the Day" dialog. Click on an entry to expand with details. | ||
|
||
<div id="body"> | ||
|
||
<button class="collapsible">Class Diagram</button> | ||
<div class="content"> | ||
$CLASS$ | ||
</div> | ||
<button class="collapsible">Sequence Diagram</button> | ||
<div class="content"> | ||
$SEQUENCE$ | ||
</div> | ||
<button class="collapsible">Object Diagram</button> | ||
<div class="content"> | ||
$OBJECT$ | ||
</div> | ||
<button class="collapsible">State Diagram</button> | ||
<div class="content"> | ||
$STATE$ | ||
</div> | ||
<button class="collapsible">General</button> | ||
<div class="content"> | ||
$GENERAL$ | ||
</div> | ||
|
||
</div> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
|
||
<style> | ||
.collapsible | ||
{ | ||
background-color: #DCDCDC; | ||
color: black; | ||
cursor: pointer; | ||
padding: 10px; | ||
width: 100%; | ||
border: none; | ||
text-align: left; | ||
outline: none; | ||
font-size: 15px; | ||
} | ||
.collapsible:hover | ||
{ | ||
background-color: #8e8e8e; | ||
} | ||
.content | ||
{ | ||
padding: 0px 10px; | ||
overflow: hidden; | ||
background-color: #f1f1f1; | ||
max-height: 0; | ||
transition: max-height 0.2s ease-out; | ||
} | ||
</style> | ||
|
||
<!-- Source: https://www.w3schools.com/ --> | ||
<script> | ||
var coll = document.getElementsByClassName("collapsible"); | ||
var i; | ||
|
||
for (i = 0; i < coll.length; i++) { | ||
coll[i].addEventListener("click", function() { | ||
var parent = this.parentElement; | ||
var content = this.nextElementSibling; | ||
if (content.style.maxHeight){ | ||
content.style.maxHeight = null; | ||
} else { | ||
parent.style.maxHeight = parseInt(parent.style.maxHeight) + content.scrollHeight + "px"; | ||
content.style.maxHeight = content.scrollHeight + "px"; | ||
} | ||
}); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# User Guide | ||
|
||
This page contains the complete list of "tips" available through JetUML's "Tip of the Day" dialog. Click on an entry to expand with details. | ||
|
||
<div id="body"> | ||
|
||
<button class="collapsible">Beginner</button> | ||
<div class="content"> | ||
$BEGINNER$ | ||
</div> | ||
<button class="collapsible">Intermediate</button> | ||
<div class="content"> | ||
$INTERMEDIATE$ | ||
</div> | ||
<button class="collapsible">Advanced</button> | ||
<div class="content"> | ||
$ADVANCED$ | ||
</div> | ||
|
||
</div> | ||
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
|
||
<style> | ||
.collapsible | ||
{ | ||
background-color: #DCDCDC; | ||
color: black; | ||
cursor: pointer; | ||
padding: 10px; | ||
width: 100%; | ||
border: none; | ||
text-align: left; | ||
outline: none; | ||
font-size: 15px; | ||
} | ||
.collapsible:hover | ||
{ | ||
background-color: #8e8e8e; | ||
} | ||
.content | ||
{ | ||
padding: 0px 10px; | ||
overflow: hidden; | ||
background-color: #f1f1f1; | ||
max-height: 0; | ||
transition: max-height 0.2s ease-out; | ||
} | ||
</style> | ||
|
||
<!-- Source: https://www.w3schools.com/ --> | ||
<script> | ||
var coll = document.getElementsByClassName("collapsible"); | ||
var i; | ||
|
||
for (i = 0; i < coll.length; i++) { | ||
coll[i].addEventListener("click", function() { | ||
var parent = this.parentElement; | ||
var content = this.nextElementSibling; | ||
if (content.style.maxHeight){ | ||
content.style.maxHeight = null; | ||
} else { | ||
parent.style.maxHeight = parseInt(parent.style.maxHeight) + content.scrollHeight + "px"; | ||
content.style.maxHeight = content.scrollHeight + "px"; | ||
} | ||
}); | ||
} | ||
</script> |
Oops, something went wrong.