-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
557f7733 |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Sitemap: https://RePsychLing.github.io/SMLP2024/sitemap.xml |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
/** | ||
* code-fullscreen | ||
* A filter that add a fullscreen button in code chunk. | ||
* | ||
* MIT License | ||
* Copyright (c) 2023 Shafayet Khan Shafee. | ||
*/ | ||
|
||
|
||
/**************************** fullscreen buttons *************************/ | ||
|
||
pre .fullscreen-button { | ||
z-index: 5; | ||
position: absolute; | ||
top: 0; | ||
right: 30px; | ||
border: 0; | ||
margin-top: 7px; | ||
margin-right: 5px; | ||
background-color: transparent; | ||
display: none; | ||
} | ||
|
||
div#fullscreen-box pre .fullscreen-button { | ||
position: fixed; | ||
right: 0; | ||
} | ||
|
||
.reveal-full-page pre .fullscreen-button { | ||
margin-top: 5px; | ||
} | ||
|
||
.reveal-full-page div#fullscreen-box pre .fullscreen-button { | ||
position: fixed; | ||
margin-top: 7px; | ||
right: 15px; | ||
} | ||
|
||
pre:hover .fullscreen-button { | ||
display: block; | ||
} | ||
|
||
div.sourceCode.cell-code:hover .fullscreen-button { | ||
display: block; | ||
} | ||
|
||
div#fullscreen-box:hover .fullscreen-button { | ||
display: block; | ||
} | ||
|
||
|
||
pre .fullscreen-button .fullscreen-icon { | ||
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-fullscreen" viewBox="0 0 16 16"><path d="M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z"/></svg>'); | ||
} | ||
|
||
div#fullscreen-box pre .fullscreen-button .fullscreen-exit-icon { | ||
content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-fullscreen-exit" viewBox="0 0 16 16"><path d="M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5zm5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5zM0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zm10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4z"/></svg>'); | ||
} | ||
|
||
/**************************** fullscreen buttons *************************/ | ||
|
||
|
||
|
||
/*************************** div#fullscreen-box **************************/ | ||
|
||
div#fullscreen-box { | ||
margin: 0; | ||
padding: 0; | ||
z-index: 9999; | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
width: 100vw; | ||
height: 100svmax; | ||
display: none; | ||
background-color: rgba(233,236,239); | ||
} | ||
|
||
div#fullscreen-box.visible{ | ||
display: block; | ||
} | ||
|
||
div#fullscreen-box pre.sourceCode { | ||
background-color: rgba(233,236,239); | ||
} | ||
|
||
div#fullscreen-box code { | ||
padding-top: 0.3rem ; | ||
padding-bottom: 1.5rem; | ||
} | ||
|
||
|
||
div#fullscreen-box pre code span a { | ||
pointer-events: none; | ||
} | ||
|
||
div#fullscreen-box code { | ||
font-family: var(--r-code-font); | ||
} | ||
|
||
div#fullscreen-box pre.numberSource code > span > a:first-child::before { | ||
left: -1.2em !important; | ||
} | ||
|
||
div#fullscreen-box pre.numberSource { | ||
border-left: 1px solid #aaaaaa !important; | ||
border-radius: 0; | ||
margin-left: 4em; | ||
} | ||
|
||
|
||
/* using `auto` instead of `overlay` */ | ||
body.reveal-viewport { | ||
overflow: auto !important; | ||
} | ||
|
||
/* for modal that open when clicking on </> Code button on html */ | ||
body.modal-open { | ||
overflow: auto !important; | ||
} | ||
|
||
|
||
.reveal-full-page div#fullscreen-box { | ||
height: unset !important; | ||
} | ||
|
||
.reveal-full-page div#fullscreen-box pre.numberSource { | ||
border-left: 1px solid #aaaaaa !important; | ||
border-radius: 0; | ||
margin-left: 4em; | ||
} | ||
|
||
|
||
/********************** for mobile devices ****************************/ | ||
|
||
@media only screen and (max-width: 992px) { | ||
div#fullscreen-box { | ||
font-size: 1.5vw; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 500px) { | ||
div#fullscreen-box pre.numberSource code > span { | ||
left: -5em !important; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 501px) and (max-width: 768px) { | ||
div#fullscreen-box pre.numberSource code > span { | ||
left: -4.5em !important; | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
code modified from https://github.com/mkordulewski/reveal.js-fullscreen-code/blob/master/reveal.js-fullscreen-code.js | ||
*/ | ||
|
||
/** | ||
* code-fullscreen | ||
* A filter that add a fullscreen button in code chunk. | ||
* | ||
* MIT License | ||
* Copyright (c) 2023 Shafayet Khan Shafee. | ||
*/ | ||
|
||
function fullscreen_code() { | ||
// creating the fullscreen box | ||
$('body').append("<div id='fullscreen-box'><pre class='sourceCode numberSource number-lines'><code class='sourceCode'></code></pre></div>" ); | ||
|
||
// for revealjs do not link the button | ||
if ($('div.reveal').length) { | ||
$('pre code').before("<button title='Fullscreen' class='fullscreen-button'><i class='fullscreen-icon'></i></button>"); | ||
$('div#fullscreen-box button.fullscreen-button').replaceWith("<button title='Exit Fullscreen' class='fullscreen-button'><i class='fullscreen-exit-icon'></i></button>") | ||
} else { | ||
// create buttons with links | ||
$('pre code').before("<button title='Fullscreen' class='fullscreen-button'><a href='#fullscreen-box'><i class='fullscreen-icon'></a></i></button>"); | ||
$('div#fullscreen-box button.fullscreen-button').replaceWith("<button title='Exit Fullscreen' class='fullscreen-button'><a href='#'><i class='fullscreen-exit-icon'></i></a></button>") | ||
} | ||
|
||
var fullscreenBoxVisible = false; | ||
$('button.fullscreen-button').click(function(e){ | ||
var code = this.parentElement.children[1].innerHTML; | ||
if (fullscreenBoxVisible) { | ||
$('div#fullscreen-box pre code').html(''); | ||
$('div#fullscreen-box').toggleClass('visible'); | ||
fullscreenBoxVisible = false; | ||
} else { | ||
$('div#fullscreen-box pre code').html(code); | ||
$('div#fullscreen-box').toggleClass('visible'); | ||
fullscreenBoxVisible = true; | ||
var box_height = Math.max($('div#fullscreen-box pre').outerHeight(), $(document).height()); | ||
$('div#fullscreen-box pre').height(box_height); | ||
$('div#fullscreen-box').height(box_height); | ||
// attach links for html (not revealjs) | ||
if (!$('div.reveal').length) { | ||
let id = this.parentElement.parentElement.id; | ||
let id_string = `#${id}`; | ||
$('div#fullscreen-box button.fullscreen-button a').attr("href", id_string); | ||
}; | ||
}; | ||
// slow the link changing | ||
if (!$('div.reveal').length) { | ||
setTimeout(function() { | ||
if (!fullscreenBoxVisible) { | ||
$('div#fullscreen-box button.fullscreen-button a').attr("href", "#fullscreen-box"); | ||
} | ||
}, 100); | ||
}; | ||
}); | ||
}; | ||
|
||
window.addEventListener("load", (event) => { | ||
fullscreen_code(); | ||
}); |
Large diffs are not rendered by default.