Skip to content

Commit

Permalink
🚧 replaced frame by simple image with a link on it for now
Browse files Browse the repository at this point in the history
 Issues related:
 -> #19 Documentation
 -> #22 Tutorial

 On branch gh-pages
 Your branch is up to date with 'origin/gh-pages'.

 Changes to be committed:
	modified:   _includes/js/wallet.js
	modified:   _includes/wallet/add.md
	modified:   _includes/wallet/init.md
	modified:   _layouts/wallet.html
  • Loading branch information
ChacaS0 committed Mar 21, 2018
1 parent d286eed commit ee7ce79
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
33 changes: 26 additions & 7 deletions _includes/js/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,37 @@ $(document).ready(function(){
$(".wall-ctnt").hide();
// Wallet Title, showing / hiding content
$(".wall-head").click(function(event){
var idEvt = "#"+event.target.id;

// hide others
$(".wall-ctnt:visible").not($("#"+event.target.id).next()).toggle("slow");
$(".wall-ctnt:visible").not($(idEvt).next()).toggle("slow");

// show the right one
$("#"+event.target.id).next().toggle("slow");
$(idEvt).next(".wall-ctnt").toggle("slow");

// $(getid).load(getsrc);
// // get the script URL


// var iframe = document.getElementById(getid);
// iframe.contentDocument.location=iframe.src;
// $('#'+getid).attr('src', $('#'+getid).attr('src'));

// $(getid).attr("src", "");
// $(getid).attr("src", getsrc);


// scroll to it
$.wait(1200).then(
$('html, body').animate({
scrollTop: $("#"+event.target.id).offset().top
}, 1000)
);
$.wait(390).then(function(){
$('html').animate({
scrollTop: $(idEvt).offset().top
}, 450);
}
);

// load frame
// $(idEvt).next("script").load(this);

});

});
Expand Down
3 changes: 2 additions & 1 deletion _includes/wallet/add.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

In this section, we'll see how to add a ``target`` to **TEMPest**, shall we begin? :smile_cat:

<script src="https://asciinema.org/a/171117.js" id="asciicast-171117" async></script>
<!-- <script src="https://asciinema.org/a/171117.js" id="asciicast-171117" class="asciiframe" async></script> -->
<a href="https://asciinema.org/a/171117" target="_blank"><img src="https://asciinema.org/a/171117.png" /></a>

### [](#head-add-1)The \*\*\*\*\* we doing:
- ``tempest list``: Listing available targets (checking if there are any already set).
Expand Down
3 changes: 2 additions & 1 deletion _includes/wallet/init.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

<script src="https://asciinema.org/a/170840.js" id="asciicast-170840" async></script>
<!-- <script src="https://asciinema.org/a/170840.js" id="asciicast-170840"></script> -->
<a href="https://asciinema.org/a/170840" target="_blank"><img src="https://asciinema.org/a/170840.png" /></a>

### [](#head-init-1)The \*\*\*\*\* we doing:
- ``tempest init``: initialize **TEMPest**
Expand Down
2 changes: 2 additions & 0 deletions _layouts/wallet.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
<!-- <meta http-equiv="Access-Control-Allow-Origin" content="*"> -->
<!-- <header name = "Access-Control-Allow-Origin" value = "*" /> -->

{% seo %}
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit ee7ce79

Please sign in to comment.