Skip to content

Commit

Permalink
20240513 - include files
Browse files Browse the repository at this point in the history
  • Loading branch information
Petersen committed May 13, 2024
1 parent 34edd86 commit 38b0992
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,26 @@ format:
execute:
error: true
keep-md: true
link-external-newwindow: true
embed-resources: true
anchor-sections: true
comments:
hypothesis:
theme: clean
openSidebar: false
include-in-header:
- "includes/google_analytics.html"
include-before-body:
- "includes/open-review.html"
include-after-body:
- "includes/disqus.html"
- "includes/email_submit.html"
- "includes/footer.html"
license: CC BY
author-meta: "Isaac T. Petersen"
date-meta: today
pdf:
documentclass: scrreprt
keep-tex: true
epub:
cover-image: cover.png
19 changes: 19 additions & 0 deletions includes/disqus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://fantasyfootballanalytics.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14 changes: 14 additions & 0 deletions includes/email_submit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<h3>Feedback</h3>

Please consider providing feedback about this textbook, so that I can make it as helpful as possible. You can provide feedback at the following link:

<a href="https://forms.gle/LsnVKwqmS1VuxWD18">https://forms.gle/LsnVKwqmS1VuxWD18</a>

<h3>Email Notification</h3>

<div class = rmdsale>
The online version of this book will remain open access. If you want to know when the print version of the book is for sale, enter your email below so I can let you know.
<br>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSccMKaTBXzMBmcy4myCNQnL8mCgRczh0Eg_Pw3c15bork7-xQ/viewform?embedded=true" width="640" height="750" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
</br>
</div>
1 change: 1 addition & 0 deletions includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script id="dsq-count-scr" src="//fantasyfootballanalytics.disqus.com/count.js" async></script>
9 changes: 9 additions & 0 deletions includes/google_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-C3SNF7Y0PJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-C3SNF7Y0PJ');
</script>
31 changes: 31 additions & 0 deletions includes/open-review.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<div class="alert alert-info hints-alert">
<div class="hints-icon">
<i class="fa fa-comments-o"></i>
</div>
<div class="hints-container">
<b>I need your help!</b>
<p>
I want your feedback to make the book better for you and other readers. If you find typos, errors, or places where the text may be improved, please let me know.
The best ways to provide feedback are by <a href="https://github.com/isaactpetersen/Fantasy-Football-Analytics-Textbook">GitHub</a> or <a href="https://hypothes.is">hypothes.is</a> annotations.
</p>

<p>
<i class="fa fa-github"></i>
<a href="https://github.com/isaactpetersen/Fantasy-Football-Analytics-Textbook/issues">Opening an issue</a> or <a href="https://github.com/isaactpetersen/Fantasy-Football-Analytics-Textbook/pulls">submitting a pull request</a> on GitHub: <a href="https://github.com/isaactpetersen/Fantasy-Football-Analytics-Textbook">https://github.com/isaactpetersen/Fantasy-Football-Analytics-Textbook</a>
</p>
<p>
<img style="display: inline;" src="https://hypothes.is/organizations/__default__/logo" alt="Hypothesis">
Adding an annotation using <a href="https://hypothes.is">hypothes.is</a>.
To add an annotation, <span style="background-color: #3297FD; color: white">select some text</span> and then click the
<span class="svg-icon--inline"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class="annotator-adder-actions__icon">
<path fill="currentColor" fill-rule="nonzero" d="M15 0c.27 0 .505.099.703.297A.961.961 0 0116 1v15l-4-3H1a.974.974 0 01-.703-.29A.953.953 0 010 12V1C0 .719.096.482.29.29A.966.966 0 011 0h14zM7 3l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C4.156 5.229 4 6 4 7l.002.063.006.062a.896.896 0 01.008.11l-.002.074-.006.066a1.447 1.447 0 00.43 1.188C4.729 8.854 5.082 9 5.5 9c.417 0 .77-.146 1.063-.438C6.854 8.271 7 7.918 7 7.5c0-.417-.146-.77-.438-1.063A1.447 1.447 0 005.5 6c-.073 0-.146.005-.219.016-.073.01-.14.026-.203.046.177-1.03.542-1.632 1.094-1.804L7 4V3zm5 0l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C9.156 5.229 9 6 9 7l.002.063.006.062a.896.896 0 01.008.11l-.002.074-.006.066a1.447 1.447 0 00.43 1.188c.291.291.645.437 1.062.437.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.447 1.447 0 0010.5 6c-.073 0-.146.005-.219.016-.073.01-.14.026-.203.046.177-1.03.542-1.632 1.094-1.804L12 4V3z"></path>
</svg>
</span>
symbol on the pop-up menu.
To see the annotations of others, click the
<span class="svg-icon--inline"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class=""><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 12L6 8l4-4"></path></g></svg>
</span>
symbol in the upper right-hand corner of the page.
</p>
</div>
</div>

0 comments on commit 38b0992

Please sign in to comment.