-
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.
- Loading branch information
0 parents
commit d1f9250
Showing
3 changed files
with
76 additions
and
0 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,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Connection Guide</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<div class="guide"> | ||
<h1>Guide to Connecting the Revolution Pi with Cumulocity</h1> | ||
<h2>Table of Contents</h2> | ||
<!-- List other sections similarly --> | ||
|
||
<h3>1. Introduction</h3> | ||
<p>This guide provides comprehensive instructions for connecting...</p> | ||
|
||
<div class="code-block"> | ||
<pre><code>ssh pi@revpi1234.local</code></pre> | ||
<button class="copy-btn">Copy</button> | ||
</div> | ||
<!-- Repeat for other sections --> | ||
</div> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</html> |
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,12 @@ | ||
// script.js | ||
document.querySelectorAll('.copy-btn').forEach(button => { | ||
button.addEventListener('click', function() { | ||
const code = this.previousElementSibling.textContent; | ||
navigator.clipboard.writeText(code).then(() => { | ||
button.textContent = 'Copied!'; | ||
setTimeout(() => { | ||
button.textContent = 'Copy'; | ||
}, 2000); | ||
}); | ||
}); | ||
}); |
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,37 @@ | ||
/* styles.css */ | ||
body { | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
h1, h2, h3 { | ||
color: #333; | ||
} | ||
|
||
.code-block { | ||
position: relative; | ||
background-color: #333; | ||
color: #fff; | ||
padding: 10px; | ||
border-radius: 5px; | ||
margin: 10px 0; | ||
} | ||
|
||
code { | ||
font-family: monospace; | ||
} | ||
|
||
.copy-btn { | ||
position: absolute; | ||
right: 10px; | ||
top: 10px; | ||
padding: 5px 10px; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
color: #333; | ||
background-color: #fff; | ||
} | ||
|
||
.copy-btn:hover { | ||
background-color: #eee; | ||
} |