Use icon in the "copy" button. Add "copy" buttons dynamically, in JS. CSS tweaks.

This commit is contained in:
Pēteris Caune 2016-10-01 17:48:17 +03:00
parent 4e260421f0
commit 913b82eb23
17 changed files with 123 additions and 239 deletions

View File

@ -75,3 +75,7 @@ body {
.dialog-body { .dialog-body {
margin: 24px 0; margin: 24px 0;
} }
pre {
border: 0;
}

View File

@ -55,11 +55,8 @@ a.section:hover {
.page-docs code { .page-docs code {
padding: 2px 4px; padding: 2px 4px;
font-size: 90%; font-size: 90%;
color: #427d5e; color: #333;
background-color: #f2f9f6; background-color: #f5f5f5;
border-radius: 4px; border-radius: 4px;
} }
.snippet pre {
border: 1px solid #cccccc;
}

View File

@ -1,10 +1,10 @@
@font-face { @font-face {
font-family: 'icomoon'; font-family: 'icomoon';
src: url('../fonts/icomoon.eot?j2asdo'); src: url('../fonts/icomoon.eot?cxijqz');
src: url('../fonts/icomoon.eot?j2asdo#iefix') format('embedded-opentype'), src: url('../fonts/icomoon.eot?cxijqz#iefix') format('embedded-opentype'),
url('../fonts/icomoon.ttf?j2asdo') format('truetype'), url('../fonts/icomoon.ttf?cxijqz') format('truetype'),
url('../fonts/icomoon.woff?j2asdo') format('woff'), url('../fonts/icomoon.woff?cxijqz') format('woff'),
url('../fonts/icomoon.svg?j2asdo#icomoon') format('svg'); url('../fonts/icomoon.svg?cxijqz#icomoon') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@ -24,6 +24,9 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-clippy:before {
content: "\e900";
}
.icon-cancel:before { .icon-cancel:before {
content: "\e5c9"; content: "\e5c9";
} }

View File

@ -63,20 +63,20 @@
font-style: normal; font-style: normal;
} }
#show-usage-modal .modal-dialog { #show-usage-modal .modal-dialog {
width: 1100px; width: 1100px;
} }
#show-usage-modal .tab-content { #show-usage-modal .modal-body {
margin-top: 15px;
}
.tab-pane {
border: none;
padding: 0; padding: 0;
} }
.snippet { #show-usage-modal pre {
margin-bottom: 15px; margin: 0;
padding: 15px;
} }
#show-usage-modal .highlight:nth-child(n+2) {
border-top: 1px solid #ddd;
}

View File

@ -1,44 +1,15 @@
.snippet { .highlight {
position: relative; position: relative;
margin-bottom: 3px;
} }
.snippet:last-child { .highlight button {
margin-bottom: 0;
}
.snippet pre {
border: none;
background: #F6F6F6 !important;
margin: 0;
}
.snippet:hover .copy-snippet-link {
opacity: 1
}
button.copy-snippet-link {
position: absolute; position: absolute;
top: 0; top: 4px;
right: 0; right: 4px;
margin-top: -1px;
margin-right: -1px;
z-index: 10;
display: block;
padding: 5px 8px !important;
font-size: 12px;
cursor: pointer;
border-radius: 0 0 0 4px;
opacity: 0; opacity: 0;
background: none!important;
border: none;
outline: none;
font-family: "Open Sans", Arial, sans-serif;
color: #0091ea;
cursor :pointer;
transition: opacity 0.1s linear; transition: opacity 0.1s linear;
} }
button.copy-snippet-link:hover { .highlight:hover button {
text-decoration: underline; opacity: 1
} }

View File

@ -50,26 +50,6 @@
margin-bottom: 0; margin-bottom: 0;
} }
.page-welcome .highlight pre {
background: #FFF;
border-top: 0;
border-radius: 0;
border-color: #dddddd;
}
#email .instructions {
background: #FFF;
border: 1px solid #dddddd;
border-top: 0;
padding: 10px;
}
#email .email-address {
font-size: 18px;
padding-top: 10px;
}
#get-started { #get-started {
margin-top: 4em; margin-top: 4em;
} }
@ -88,11 +68,24 @@
height: 22px; height: 22px;
} }
.tab-pane { .page-welcome .tab-content {
border-left: 1px solid #DDD; border: 1px solid #ddd;
border-right: 1px solid #DDD; border-top: 0;
border-bottom: 1px solid #DDD; }
padding: 3px;
.tab-pane p {
padding: 15px;
margin: 0;
}
.page-welcome .highlight:nth-child(n+2) {
border-top: 1px solid #ddd;
}
.page-welcome .tab-pane pre {
margin-bottom: 0;
background: transparent;
padding: 15px;
} }
.tab-pane.tab-pane-email { .tab-pane.tab-pane-email {

Binary file not shown.

View File

@ -19,4 +19,5 @@
<glyph unicode="&#xe86d;" glyph-name="ok" d="M426 212.667l384 384-60 62-324-324-152 152-60-60zM512 852.667c236 0 426-190 426-426s-190-426-426-426-426 190-426 426 190 426 426 426z" /> <glyph unicode="&#xe86d;" glyph-name="ok" d="M426 212.667l384 384-60 62-324-324-152 152-60-60zM512 852.667c236 0 426-190 426-426s-190-426-426-426-426 190-426 426 190 426 426 426z" />
<glyph unicode="&#xe872;" glyph-name="delete" d="M810 768.667v-86h-596v86h148l44 42h212l44-42h148zM256 128.667v512h512v-512c0-46-40-86-86-86h-340c-46 0-86 40-86 86z" /> <glyph unicode="&#xe872;" glyph-name="delete" d="M810 768.667v-86h-596v86h148l44 42h212l44-42h148zM256 128.667v512h512v-512c0-46-40-86-86-86h-340c-46 0-86 40-86 86z" />
<glyph unicode="&#xe8b8;" glyph-name="settings" d="M512 276.667c82 0 150 68 150 150s-68 150-150 150-150-68-150-150 68-150 150-150zM830 384.667l90-70c8-6 10-18 4-28l-86-148c-6-10-16-12-26-8l-106 42c-22-16-46-32-72-42l-16-112c-2-10-10-18-20-18h-172c-10 0-18 8-20 18l-16 112c-26 10-50 24-72 42l-106-42c-10-4-20-2-26 8l-86 148c-6 10-4 22 4 28l90 70c-2 14-2 28-2 42s0 28 2 42l-90 70c-8 6-10 18-4 28l86 148c6 10 16 12 26 8l106-42c22 16 46 32 72 42l16 112c2 10 10 18 20 18h172c10 0 18-8 20-18l16-112c26-10 50-24 72-42l106 42c10 4 20 2 26-8l86-148c6-10 4-22-4-28l-90-70c2-14 2-28 2-42s0-28-2-42z" /> <glyph unicode="&#xe8b8;" glyph-name="settings" d="M512 276.667c82 0 150 68 150 150s-68 150-150 150-150-68-150-150 68-150 150-150zM830 384.667l90-70c8-6 10-18 4-28l-86-148c-6-10-16-12-26-8l-106 42c-22-16-46-32-72-42l-16-112c-2-10-10-18-20-18h-172c-10 0-18 8-20 18l-16 112c-26 10-50 24-72 42l-106-42c-10-4-20-2-26 8l-86 148c-6 10-4 22 4 28l90 70c-2 14-2 28-2 42s0 28 2 42l-90 70c-8 6-10 18-4 28l86 148c6 10 16 12 26 8l106-42c22 16 46 32 72 42l16 112c2 10 10 18 20 18h172c10 0 18-8 20-18l16-112c26-10 50-24 72-42l106 42c10 4 20 2 26-8l86-148c6-10 4-22-4-28l-90-70c2-14 2-28 2-42s0-28-2-42z" />
<glyph unicode="&#xe900;" glyph-name="clippy" horiz-adv-x="896" d="M704 64h-640v576h640v-192h64v320c0 35-29 64-64 64h-192c0 71-57 128-128 128s-128-57-128-128h-192c-35 0-64-29-64-64v-704c0-35 29-64 64-64h640c35 0 64 29 64 64v128h-64v-128zM192 768c29 0 29 0 64 0s64 29 64 64 29 64 64 64 64-29 64-64 32-64 64-64 33 0 64 0 64-29 64-64h-512c0 39 28 64 64 64zM128 256h128v64h-128v-64zM576 384v128l-256-192 256-192v128h320v128h-320zM128 128h192v64h-192v-64zM448 576h-320v-64h320v64zM256 448h-128v-64h128v64z" />
</font></defs></svg> </font></defs></svg>

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,24 @@
$(function() { $(function() {
if (/Mac/i.test(navigator.userAgent)) {
// No support for Safari :(
return;
}
var markup = '<button class="btn btn-default hidden-sm">' +
'<span class="icon-clippy"></span>' +
'</button>';
$(".highlight").append(markup);
var reBlankLines = new RegExp("^\\s*[\\r\\n]", "gm"); var reBlankLines = new RegExp("^\\s*[\\r\\n]", "gm");
var reTrailingWhitespace = new RegExp("\\s+$"); var reTrailingWhitespace = new RegExp("\\s+$");
var clipboard = new Clipboard("button.copy-snippet-link", { var clipboard = new Clipboard(".highlight button", {
text: function (trigger) { text: function (trigger) {
var snippetElement = $(trigger).next(".highlight").children().clone(); var snippetElement = $(trigger).parent().children().clone();
/* remove pygmentize comment elements */ /* remove pygmentize comment elements */
snippetElement.find(".c, .cm, .cp, .c1, .cs").remove(); snippetElement.find(".c, .cm, .cp, .c1, .cs").remove();
/* remove blank lines and trailing whitespace */ /* remove blank lines and trailing whitespace */
@ -14,13 +27,15 @@ $(function() {
}); });
clipboard.on("success", function(e) { clipboard.on("success", function(e) {
e.trigger.textContent = "copied!"; $(e.trigger)
e.clearSelection(); .tooltip({title: "Copied!", trigger: "hover"})
}); .tooltip("show")
.on("hidden.bs.tooltip", function(){
$("button.copy-snippet-link").mouseout(function(e) { $(this).tooltip("destroy");
setTimeout(function() {
e.target.textContent = "copy";
}, 300);
}) })
}); });
clipboard.on("error", function(e) {
prompt("Press Ctrl+C to select:", e.text)
});
});

View File

@ -44,10 +44,7 @@ and your command runs. If it completes successfully (exit code 0),
curl or wget runs a HTTP GET call to the ping URL. curl or wget runs a HTTP GET call to the ping URL.
</p> </p>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/crontab.html" %} {% include "front/snippets/crontab.html" %}
</div>
<p>With this simple modification, you monitor several failure <p>With this simple modification, you monitor several failure
scenarios:</p> scenarios:</p>
@ -113,41 +110,21 @@ thing: they fire off a HTTP GET method.</p>
Ubuntu, for example, does not have curl installed out of the box. Ubuntu, for example, does not have curl installed out of the box.
</p> </p>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/bash_curl.html" %} {% include "front/snippets/bash_curl.html" %}
</div>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/bash_wget.html" %} {% include "front/snippets/bash_wget.html" %}
</div>
<a name="python"></a> <a name="python"></a>
<h3>Python</h3> <h3>Python</h3>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/python_urllib2.html" %} {% include "front/snippets/python_urllib2.html" %}
</div>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/python_requests.html" %} {% include "front/snippets/python_requests.html" %}
</div>
<a name="node"></a> <a name="node"></a>
<h3>Node</h3> <h3>Node</h3>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/node.html" %} {% include "front/snippets/node.html" %}
</div>
<a name="php"></a> <a name="php"></a>
<h3>PHP</h3> <h3>PHP</h3>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/php.html" %} {% include "front/snippets/php.html" %}
</div>
<a name="browser"></a> <a name="browser"></a>
<h3>Browser</h3> <h3>Browser</h3>
@ -156,10 +133,7 @@ thing: they fire off a HTTP GET method.</p>
CORS header in its ping responses, so cross-domain AJAX requests CORS header in its ping responses, so cross-domain AJAX requests
should work. should work.
</p> </p>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/browser.html" %} {% include "front/snippets/browser.html" %}
</div>
<a name="powershell"></a> <a name="powershell"></a>
<h3>PowerShell</h3> <h3>PowerShell</h3>
@ -173,21 +147,15 @@ When scheduled to run with Task Scheduler, it will essentially
just send regular "I'm alive" messages. You can of course extend it to just send regular "I'm alive" messages. You can of course extend it to
do more things.</p> do more things.</p>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/powershell.html" %} {% include "front/snippets/powershell.html" %}
</div>
<p>Save the above to e.g. <code>C:\Scripts\healthchecks.ps1</code>. Then use <p>Save the above to e.g. <code>C:\Scripts\healthchecks.ps1</code>. Then use
the following command in a Scheduled Task to run the script: the following command in a Scheduled Task to run the script:
</p> </p>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
<div class="highlight"> <div class="highlight">
<pre>powershell.exe -ExecutionPolicy bypass -File C:\Scripts\healthchecks.ps1</pre> <pre>powershell.exe -ExecutionPolicy bypass -File C:\Scripts\healthchecks.ps1</pre>
</div> </div>
</div>
<a name="email"></a> <a name="email"></a>
<h3>Email</h3> <h3>Email</h3>
@ -284,6 +252,7 @@ the following command in a Scheduled Task to run the script:
{% block scripts %} {% block scripts %}
{% compress js %} {% compress js %}
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/clipboard.min.js' %}"></script> <script src="{% static 'js/clipboard.min.js' %}"></script>
<script src="{% static 'js/snippet-copy.js' %}"></script> <script src="{% static 'js/snippet-copy.js' %}"></script>
{% endcompress %} {% endcompress %}

View File

@ -64,10 +64,7 @@ The response may contain a JSON document with additional data.
a JSON document with all checks in user's account. a JSON document with all checks in user's account.
</p> </p>
<h3 class="api-section">Example Request</h3> <h3 class="api-section">Example Request</h3>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/list_checks_request.html" %} {% include "front/snippets/list_checks_request.html" %}
</div>
<h3 class="api-section">Example Response</h3> <h3 class="api-section">Example Response</h3>
{% include "front/snippets/list_checks_response.html" %} {% include "front/snippets/list_checks_response.html" %}
@ -170,16 +167,10 @@ The response may contain a JSON document with additional data.
</table> </table>
<h3 class="api-section">Example Request</h3> <h3 class="api-section">Example Request</h3>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/create_check_request_a.html" %} {% include "front/snippets/create_check_request_a.html" %}
</div>
<br> <br>
<p>Or, alternatively:</p> <p>Or, alternatively:</p>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/create_check_request_b.html" %} {% include "front/snippets/create_check_request_b.html" %}
</div>
<h3 class="api-section">Example Response</h3> <h3 class="api-section">Example Response</h3>
@ -208,10 +199,7 @@ The response may contain a JSON document with additional data.
<h3 class="api-section">Example Request</h3> <h3 class="api-section">Example Request</h3>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/pause_check_request.html" %} {% include "front/snippets/pause_check_request.html" %}
</div>
<h3 class="api-section">Example Response</h3> <h3 class="api-section">Example Response</h3>
{% include "front/snippets/pause_check_response.html" %} {% include "front/snippets/pause_check_response.html" %}
@ -222,6 +210,7 @@ The response may contain a JSON document with additional data.
{% block scripts %} {% block scripts %}
{% compress js %} {% compress js %}
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/clipboard.min.js' %}"></script> <script src="{% static 'js/clipboard.min.js' %}"></script>
<script src="{% static 'js/snippet-copy.js' %}"></script> <script src="{% static 'js/snippet-copy.js' %}"></script>
{% endcompress %} {% endcompress %}

View File

@ -230,67 +230,37 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="tab-content"> <div class="tab-content">
{% with ping_url="<span class='ex'></span>" %} {% with ping_url="<span class='ex'></span>" %}
<div role="tabpanel" class="tab-pane active" id="crontab"> <div role="tabpanel" class="tab-pane active" id="crontab">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/crontab.html" %} {% include "front/snippets/crontab.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="bash"> <div role="tabpanel" class="tab-pane" id="bash">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/bash_curl.html" %} {% include "front/snippets/bash_curl.html" %}
</div>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/bash_wget.html" %} {% include "front/snippets/bash_wget.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="python"> <div role="tabpanel" class="tab-pane" id="python">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/python_urllib2.html" %} {% include "front/snippets/python_urllib2.html" %}
</div>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/python_requests.html" %} {% include "front/snippets/python_requests.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="node"> <div role="tabpanel" class="tab-pane" id="node">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/node.html" %} {% include "front/snippets/node.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="php"> <div role="tabpanel" class="tab-pane" id="php">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/php.html" %} {% include "front/snippets/php.html" %}
</div> </div>
</div>
<div class="tab-pane" id="browser"> <div class="tab-pane" id="browser">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/browser.html" %} {% include "front/snippets/browser.html" %}
</div> </div>
</div>
<div class="tab-pane" id="powershell"> <div class="tab-pane" id="powershell">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/powershell.html" %} {% include "front/snippets/powershell.html" %}
</div> </div>
</div>
<div class="tab-pane" id="email"> <div class="tab-pane" id="email">
<p>
As an alternative to HTTP/HTTPS requests, As an alternative to HTTP/HTTPS requests,
you can "ping" this check by sending an you can "ping" this check by sending an
email message to email message to <code class="em"></code>
<div class="email-address"> </p>
<code class="em"></code>
</div>
</div> </div>
{% endwith %} {% endwith %}
</div> </div>

View File

@ -1,4 +1,5 @@
<div class="highlight"><pre><span></span><span class="kd">var</span> <span class="nx">xhr</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">XMLHttpRequest</span><span class="p">();</span> <div class="highlight"><pre><span></span><span class="c1">// the server returns appropriate CORS headers so cross-domain AJAX requests should work:</span>
<span class="kd">var</span> <span class="nx">xhr</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">XMLHttpRequest</span><span class="p">();</span>
<span class="nx">xhr</span><span class="p">.</span><span class="nx">open</span><span class="p">(</span><span class="s1">&#39;GET&#39;</span><span class="p">,</span> <span class="s1">&#39;{{ ping_url }}&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span> <span class="nx">xhr</span><span class="p">.</span><span class="nx">open</span><span class="p">(</span><span class="s1">&#39;GET&#39;</span><span class="p">,</span> <span class="s1">&#39;{{ ping_url }}&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="nx">xhr</span><span class="p">.</span><span class="nx">send</span><span class="p">(</span><span class="kc">null</span><span class="p">);</span> <span class="nx">xhr</span><span class="p">.</span><span class="nx">send</span><span class="p">(</span><span class="kc">null</span><span class="p">);</span>
</pre></div> </pre></div>

View File

@ -1,3 +1,4 @@
// the server returns appropriate CORS headers so cross-domain AJAX requests should work:
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', 'PING_URL', true); xhr.open('GET', 'PING_URL', true);
xhr.send(null); xhr.send(null);

View File

@ -59,64 +59,35 @@
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="crontab"> <div role="tabpanel" class="tab-pane active" id="crontab">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/crontab.html" %} {% include "front/snippets/crontab.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="bash"> <div role="tabpanel" class="tab-pane" id="bash">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/bash_curl.html" %} {% include "front/snippets/bash_curl.html" %}
</div>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/bash_wget.html" %} {% include "front/snippets/bash_wget.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="python"> <div role="tabpanel" class="tab-pane" id="python">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/python_urllib2.html" %} {% include "front/snippets/python_urllib2.html" %}
</div>
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/python_requests.html" %} {% include "front/snippets/python_requests.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="node"> <div role="tabpanel" class="tab-pane" id="node">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/node.html" %} {% include "front/snippets/node.html" %}
</div> </div>
</div>
<div role="tabpanel" class="tab-pane" id="php"> <div role="tabpanel" class="tab-pane" id="php">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/php.html" %} {% include "front/snippets/php.html" %}
</div> </div>
</div>
<div class="tab-pane" id="browser"> <div class="tab-pane" id="browser">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/browser.html" %} {% include "front/snippets/browser.html" %}
</div> </div>
</div>
<div class="tab-pane" id="powershell"> <div class="tab-pane" id="powershell">
<div class="snippet">
<button class="copy-snippet-link hidden-sm">copy</button>
{% include "front/snippets/powershell.html" %} {% include "front/snippets/powershell.html" %}
</div> </div>
</div>
<div class="tab-pane tab-pane-email" id="email"> <div class="tab-pane tab-pane-email" id="email">
<div class="instructions"> <p>
As an alternative to HTTP/HTTPS requests, As an alternative to HTTP/HTTPS requests,
you can "ping" this check by sending an you can "ping" this check by sending an
email message to email message to
<div class="email-address"> <a href="mailto:{{ check.email }}">{{ check.email }}</a>
<code>{{ check.email }}</code> </p>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -360,9 +331,8 @@
{% block scripts %} {% block scripts %}
{% compress js %} {% compress js %}
<script src="{% static 'js/collapse-native.js' %}"></script>
<script src="{% static 'js/tab-native.js' %}"></script>
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/clipboard.min.js' %}"></script> <script src="{% static 'js/clipboard.min.js' %}"></script>
<script src="{% static 'js/snippet-copy.js' %}"></script> <script src="{% static 'js/snippet-copy.js' %}"></script>
{% endcompress %} {% endcompress %}