Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Jun 15, 2023
1 parent cfd91b0 commit b0e0549
Show file tree
Hide file tree
Showing 16 changed files with 1,343 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a26529ed
c0fd1aa9
Binary file modified parts/designing-surveys/designing-surveys.pdf
Binary file not shown.
Binary file modified parts/designing-surveys/figs/unnamed-chunk-24-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified parts/designing-surveys/figs/unnamed-chunk-26-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions parts/designing-surveys/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,19 @@ background-size: contain

class: inverse

```{r}
#| echo: false
countdown::countdown(
minutes = 10,
warn_when = 30,
update_every = 1,
top = 0,
right = 0,
font_size = '2em'
)
```

# Your turn

- Be sure to have downloaded and unzipped the [practice code](https://jhelvy.github.io/2023-qux-conf-conjoint/practice/2023-qux-conf-conjoint.zip).
Expand Down
93 changes: 50 additions & 43 deletions parts/designing-surveys/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
<meta property="og:type" content="website"/>
<meta property="og:locale" content="en_US"/>
<meta property="article:author" content="John Paul Helveston"/>
<link href="libs/countdown/countdown.css" rel="stylesheet" />
<script src="libs/countdown/countdown.js"></script>
<link rel="stylesheet" href="css/lexis.css" type="text/css" />
<link rel="stylesheet" href="css/lexis-fonts.css" type="text/css" />
</head>
Expand Down Expand Up @@ -304,12 +306,12 @@

```
#&gt; profileID respID qID altID obsID price type freshness
#&gt; 1 55 1 1 1 1 3.5 Gala Excellent
#&gt; 2 15 1 1 2 1 1.0 Honeycrisp Poor
#&gt; 3 16 1 1 3 1 1.5 Honeycrisp Poor
#&gt; 4 6 1 2 1 2 3.5 Fuji Poor
#&gt; 5 35 1 2 2 2 4.0 Gala Average
#&gt; 6 57 1 2 3 2 1.0 Honeycrisp Excellent
#&gt; 1 53 1 1 1 1 2.5 Gala Excellent
#&gt; 2 45 1 1 2 1 2.0 Fuji Excellent
#&gt; 3 33 1 1 3 1 3.0 Gala Average
#&gt; 4 19 1 2 1 2 3.0 Honeycrisp Poor
#&gt; 5 14 1 2 2 2 4.0 Gala Poor
#&gt; 6 28 1 2 3 2 4.0 Fuji Average
```

---
Expand All @@ -336,12 +338,12 @@

```
#&gt; profileID respID qID altID obsID price type_Fuji type_Gala type_Honeycrisp freshness_Poor freshness_Average freshness_Excellent no_choice
#&gt; 1 33 1 1 1 1 3.0 0 1 0 0 1 0 0
#&gt; 2 62 1 1 2 1 3.5 0 0 1 0 0 1 0
#&gt; 3 48 1 1 3 1 3.5 1 0 0 0 0 1 0
#&gt; 1 6 1 1 1 1 3.5 1 0 0 1 0 0 0
#&gt; 2 1 1 1 2 1 1.0 1 0 0 1 0 0 0
#&gt; 3 27 1 1 3 1 3.5 1 0 0 0 1 0 0
#&gt; 4 0 1 1 4 1 0.0 0 0 0 0 0 0 1
#&gt; 5 15 1 2 1 2 1.0 0 0 1 1 0 0 0
#&gt; 6 23 1 2 2 2 1.5 1 0 0 0 1 0 0
#&gt; 5 48 1 2 1 2 3.5 1 0 0 0 0 1 0
#&gt; 6 1 1 2 2 2 1.0 1 0 0 1 0 0 0
```

---
Expand Down Expand Up @@ -370,12 +372,12 @@

```
#&gt; profileID respID qID altID obsID price type freshness
#&gt; 1 26 1 1 1 1 3 Fuji Average
#&gt; 2 31 1 1 2 1 2 Gala Average
#&gt; 3 19 1 1 3 1 3 Honeycrisp Poor
#&gt; 4 1 1 2 1 2 1 Fuji Poor
#&gt; 5 8 1 2 2 2 1 Gala Poor
#&gt; 6 57 1 2 3 2 1 Honeycrisp Excellent
#&gt; 1 22 1 1 1 1 1.0 Fuji Average
#&gt; 2 55 1 1 2 1 3.5 Gala Excellent
#&gt; 3 63 1 1 3 1 4.0 Honeycrisp Excellent
#&gt; 4 28 1 2 1 2 4.0 Fuji Average
#&gt; 5 54 1 2 2 2 3.0 Gala Excellent
#&gt; 6 57 1 2 3 2 1.0 Honeycrisp Excellent
```

---
Expand Down Expand Up @@ -421,12 +423,12 @@

```
#&gt; respID qID altID obsID price type freshness
#&gt; 1 1 1 1 1 3 Fuji Average
#&gt; 2 1 1 2 1 2 Gala Average
#&gt; 3 1 1 3 1 3 Honeycrisp Poor
#&gt; 4 1 2 1 2 1 Fuji Poor
#&gt; 5 1 2 2 2 1 Gala Poor
#&gt; 6 1 2 3 2 1 Honeycrisp Excellent
#&gt; 1 1 1 1 1 1.0 Fuji Average
#&gt; 2 1 1 2 1 3.5 Gala Excellent
#&gt; 3 1 1 3 1 4.0 Honeycrisp Excellent
#&gt; 4 1 2 1 2 4.0 Fuji Average
#&gt; 5 1 2 2 2 3.0 Gala Excellent
#&gt; 6 1 2 3 2 1.0 Honeycrisp Excellent
```

---
Expand Down Expand Up @@ -549,12 +551,12 @@

```
#&gt; profileID respID qID altID obsID price type freshness choice
#&gt; 1 26 1 1 1 1 3 Fuji Average 0
#&gt; 2 31 1 1 2 1 2 Gala Average 1
#&gt; 3 19 1 1 3 1 3 Honeycrisp Poor 0
#&gt; 4 1 1 2 1 2 1 Fuji Poor 0
#&gt; 5 8 1 2 2 2 1 Gala Poor 0
#&gt; 6 57 1 2 3 2 1 Honeycrisp Excellent 1
#&gt; 1 22 1 1 1 1 1.0 Fuji Average 0
#&gt; 2 55 1 1 2 1 3.5 Gala Excellent 0
#&gt; 3 63 1 1 3 1 4.0 Honeycrisp Excellent 1
#&gt; 4 28 1 2 1 2 4.0 Fuji Average 1
#&gt; 5 54 1 2 2 2 3.0 Gala Excellent 0
#&gt; 6 57 1 2 3 2 1.0 Honeycrisp Excellent 0
```

---
Expand Down Expand Up @@ -705,13 +707,13 @@
```

```
#&gt; sampleSize coef est se
#&gt; 1 30 price -0.0395841 0.09664295
#&gt; 2 30 typeGala 0.3198033 0.18958184
#&gt; 3 30 typeHoneycrisp 0.1728158 0.19532138
#&gt; 4 30 freshnessAverage 0.6564963 0.22311590
#&gt; 5 30 freshnessExcellent -0.1699275 0.24271214
#&gt; 6 60 price -0.1187266 0.06587854
#&gt; sampleSize coef est se
#&gt; 1 30 price -0.18969925 0.09519838
#&gt; 2 30 typeGala -0.03074145 0.19389450
#&gt; 3 30 typeHoneycrisp 0.19956629 0.18165533
#&gt; 4 30 freshnessAverage 0.46713033 0.23479744
#&gt; 5 30 freshnessExcellent 0.47712173 0.22886577
#&gt; 6 60 price -0.13185249 0.06576991
```

]
Expand All @@ -724,13 +726,13 @@
```

```
#&gt; sampleSize coef est se
#&gt; 45 270 freshnessExcellent -0.1221717 0.07561697
#&gt; 46 300 price -0.1388063 0.02949868
#&gt; 47 300 typeGala 0.1638605 0.06015893
#&gt; 48 300 typeHoneycrisp 0.2682089 0.05873098
#&gt; 49 300 freshnessAverage 0.1894352 0.06988738
#&gt; 50 300 freshnessExcellent -0.1025510 0.07192388
#&gt; sampleSize coef est se
#&gt; 45 270 freshnessExcellent -0.14791440 0.07498391
#&gt; 46 300 price -0.11983143 0.02896963
#&gt; 47 300 typeGala 0.08577075 0.05984688
#&gt; 48 300 typeHoneycrisp 0.22142284 0.05810356
#&gt; 49 300 freshnessAverage 0.17092085 0.07083180
#&gt; 50 300 freshnessExcellent -0.11784026 0.07093520
```

]
Expand Down Expand Up @@ -805,6 +807,11 @@

class: inverse

<div class="countdown" id="timer_d522cfc8" data-warn-when="30" data-update-every="1" tabindex="0" style="top:0;right:0;font-size:2em;">
<div class="countdown-controls"><button class="countdown-bump-down">&minus;</button><button class="countdown-bump-up">&plus;</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">10</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div>

# Your turn

- Be sure to have downloaded and unzipped the [practice code](https://jhelvy.github.io/2023-qux-conf-conjoint/practice/2023-qux-conf-conjoint.zip).
Expand Down
144 changes: 144 additions & 0 deletions parts/designing-surveys/libs/countdown/countdown.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
.countdown {
background: inherit;
position: absolute;
cursor: pointer;
font-size: 2em;
line-height: 1;
border-color: #ddd;
border-width: 3px;
border-style: solid;
border-radius: 15px;
box-shadow: 0px 4px 10px 0px rgba(50, 50, 50, 0.4);
-webkit-box-shadow: 0px 4px 10px 0px rgba(50, 50, 50, 0.4);
margin: 0.6em;
padding: 10px 15px;
text-align: center;
z-index: 10;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.countdown {
display: flex;
align-items: center;
justify-content: center;
}
.countdown .countdown-time {
background: none;
font-size: 100%;
padding: 0;
}
.countdown-digits {
color: inherit;
}
.countdown.running {
border-color: #2A9B59FF;
background-color: #43AC6A;
}
.countdown.running .countdown-digits {
color: #002F14FF;
}
.countdown.finished {
border-color: #DE3000FF;
background-color: #F04124;
}
.countdown.finished .countdown-digits {
color: #4A0900FF;
}
.countdown.running.warning {
border-color: #CEAC04FF;
background-color: #E6C229;
}
.countdown.running.warning .countdown-digits {
color: #3A2F02FF;
}

.countdown.running.blink-colon .countdown-digits.colon {
opacity: 0.1;
}

/* ------ Controls ------ */
.countdown:not(.running) .countdown-controls {
display: none;
}

.countdown-controls {
position: absolute;
top: -0.5rem;
right: -0.5rem;
left: -0.5rem;
display: flex;
justify-content: space-between;
margin: 0;
padding: 0;
}

.countdown-controls > button {
font-size: 1.5rem;
width: 1rem;
height: 1rem;
display: inline-block;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: monospace;
padding: 10px;
margin: 0;
background: inherit;
border: 2px solid;
border-radius: 100%;
transition: 50ms transform ease-in-out, 150ms opacity ease-in;
--countdown-transition-distance: 10px;
}

.countdown .countdown-controls > button:last-child {
transform: translate(calc(-1 * var(--countdown-transition-distance)), var(--countdown-transition-distance));
opacity: 0;
color: #002F14FF;
background-color: #43AC6A;
border-color: #2A9B59FF;
}

.countdown .countdown-controls > button:first-child {
transform: translate(var(--countdown-transition-distance), var(--countdown-transition-distance));
opacity: 0;
color: #4A0900FF;
background-color: #F04124;
border-color: #DE3000FF;
}

.countdown.running:hover .countdown-controls > button,
.countdown.running:focus-within .countdown-controls > button{
transform: translate(0, 0);
opacity: 1;
}

.countdown.running:hover .countdown-controls > button:hover,
.countdown.running:focus-within .countdown-controls > button:hover{
transform: translate(0, calc(var(--countdown-transition-distance) / -2));
box-shadow: 0px 2px 5px 0px rgba(50, 50, 50, 0.4);
-webkit-box-shadow: 0px 2px 5px 0px rgba(50, 50, 50, 0.4);
}

.countdown.running:hover .countdown-controls > button:active,
.countdown.running:focus-within .countdown-controls > button:active{
transform: translate(0, calc(var(--coutndown-transition-distance) / -5));
}

/* ----- Fullscreen ----- */
.countdown.countdown-fullscreen {
z-index: 0;
}

.countdown-fullscreen.running .countdown-controls {
top: 1rem;
left: 0;
right: 0;
justify-content: center;
}

.countdown-fullscreen.running .countdown-controls > button + button {
margin-left: 1rem;
}
Loading

0 comments on commit b0e0549

Please sign in to comment.