Skip to content
Snippets Groups Projects
Commit 54c6d47c authored by Saad bin Abid's avatar Saad bin Abid
Browse files

added separate js and remove the redundant scripts from MIRA

Requirements htmls.

Issue-Ref: 4007
Issue-Url: https://af3-developer.fortiss.org/issues/4007



Signed-off-by: default avatarSaad bin Abid <abid@fortiss.org>
parent 34fef3e0
No related branches found
No related tags found
1 merge request!31Task 4006 online help content
This commit is part of merge request !31. Comments created here will be created in the context of that merge request.
......@@ -91,27 +91,7 @@ When you add a picture it is copied into the <i>Images</i> folder in the project
If you want to send the model file to someone else, you should also send the <i>Images</i> folder. </p>
</div>
<!-- TODO (SB): Move to separate .js file -->
<script>
//Get the button
var upButton = document.getElementById("upBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
upButton.style.display = "block";
} else {
upButton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
<script src="jsscript/topBtn.js">
</script>
</body>
</html>
\ No newline at end of file
......@@ -80,27 +80,7 @@
</div>
<!-- TODO (SB): Move to separate .js file -->
<script>
//Get the button
var upButton = document.getElementById("upBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
upButton.style.display = "block";
} else {
upButton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
<script src="jsscript/topBtn.js">
</script>
</body>
</html>
\ No newline at end of file
......@@ -64,28 +64,7 @@
<p>The list of requirements can be sorted by clicking on the column headers of the overview list.
You can filter the requirements by inserting filter text in the filter section. Double-clicking on a requirement opens the corresponding requirement.</p>
</div>
<!-- TODO (SB): Move to separate .js file -->
<script>
//Get the button
var upButton = document.getElementById("upBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
upButton.style.display = "block";
} else {
upButton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
<script src="jsscript/topBtn.js">
</script>
</body>
</html>
\ No newline at end of file
//Get the button
var upButton = document.getElementById("upBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
upButton.style.display = "block";
} else {
upButton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment