Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions add-custom-button-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
</p>
</div>
<div class="col-md-5">
<pre><code class="language-html">&lt;html>
<pre class="code-style-custom-btn"><code>&lt;html>
&lt;head>
&lt;script src="<span id="script-site-origin"></span>https://orion-api-testnet.starhermit.com/static/js/checkout.js">&lt;/script>
&lt;script src="<span id="script-site-origin"></span>https://alpha-api.coinpayments.net/static/js/checkout.js">&lt;/script>
&lt;/head>
&lt;body>
&lt;!-- ... -->
Expand All @@ -47,7 +47,7 @@
</p>
</div>
<div class="col-md-5">
<pre><code class="language-js">CoinPayments.Button({
<pre class="code-style-custom-btn"><code>CoinPayments.Button({

//
// the \`createInvoice\` method is called when the user presses the
Expand Down Expand Up @@ -88,7 +88,7 @@
</p>
</div>
<div class="col-md-5">
<pre><code class="language-js">CoinPayments.Button({
<pre class="code-style-custom-btn"><code>CoinPayments.Button({
style: {
color: "blue",
width: 180
Expand All @@ -115,7 +115,7 @@
</p>
</div>
<div class="col-md-5">
<pre><code class="language-js">{
<pre class="code-style-custom-btn"><code>{
clientId: "CoinPaymentsDemoClient",
currencyId: "5057", // USD
items: [
Expand Down Expand Up @@ -168,7 +168,7 @@
</p>
</div>
<div class="col-md-5">
<pre><code class="language-js">CoinPayments.Button({
<pre class="code-style-custom-btn"><code>CoinPayments.Button({

//
// you can specify the \`invoiceId\` and \`customData\` dictionary of strings to store
Expand Down
25 changes: 16 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
<link rel="shortcut icon" type="image/png" href="https://alpha-api.coinpayments.net/favicon.ico" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism.min.css"
integrity="sha256-77qGXu2p8NpfcBpTjw4jsMeQnz0vyh74f5do0cWjQ/Q=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-okaidia.min.css"
integrity="sha256-Ykz0nNWK7w4QWJUYR7OraN4773aMB/11aMt1nZyrhuQ=" crossorigin="anonymous" />
<link rel="stylesheet" href="custom-button-styles.css">
<link rel="stylesheet" href="tutorial-styles.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
Expand Down Expand Up @@ -195,6 +191,21 @@
padding: 0 40px;
}

.code-style-custom-btn {
display: block;
margin: 0 0 10px;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
line-height: 1.45;
overflow: auto!important;
padding: 16px;
background: #f1f8e9;
border-radius: 4px;
-webkit-box-shadow: 0 0 10px #f1f8e9;
box-shadow: 0 0 10px #f1f8e9;
}

@media print,
screen and (max-width:85rem) {
.cjtbAK {
Expand Down Expand Up @@ -2917,7 +2928,6 @@
</head>

<body>

<div id="redoc">
<div class="sc-hZSUBg bxcHYI redoc-wrap">
<div class="sc-iQNlJl jzMYjV menu-content" style="top:0px;height:calc(100vh - 0px)">
Expand Down Expand Up @@ -18043,11 +18053,8 @@ <h3 class="sc-eXEjpC espozG"> Responses </h3>
Redoc.hydrate(__redoc_state, container);;

</script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-core.min.js" integrity="sha256-Y+Budm2wBEjYjbH0qcJRmLuRBFpXd0VKxl6XhdS4hgA=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/plugins/autoloader/prism-autoloader.min.js" integrity="sha256-ht8ay6ZTPZfuixYB99I5oRpCLsCq7Do2LjEYLwbe+X8=" crossorigin="anonymous"></script>

<script src="add-tutorial-section.js"></script>
</body>
<script src="add-custom-button-section.js"></script>
</body>
</html>