Skip to content

Instantly share code, notes, and snippets.

@ColinFay
Last active October 14, 2019 14:33
Show Gist options
  • Save ColinFay/2cfc6ada89bea5eafd9d790d6c5f4ffe to your computer and use it in GitHub Desktop.
Save ColinFay/2cfc6ada89bea5eafd9d790d6c5f4ffe to your computer and use it in GitHub Desktop.
---
title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
institute: "RStudio, Inc."
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
beforeInit: ["https://code.jquery.com/jquery-3.1.1.min.js"]
---
class: slide
# Questions
<style>
.tabcontentb{
display:none;
}
.tab {
overflow: hidden;
}
.tab button {
float: left;
border: none;
cursor: pointer;
padding: 1em;
font-size: 1.05em;
}
.tab button:hover {
background-color: #ddd;
}
</style>
<div class="tab">
<button onclick="$('.tabcontenta').toggle();$('.tabcontentb').toggle()">Question</button>
<button onclick="$('.tabcontenta').toggle();$('.tabcontentb').toggle()">Answer</button>
</div>
.tabcontenta[
```{r}
print("a")
```
]
.tabcontentb[
```{r}
print("b")
```
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment