Added automatic slideshow

This commit is contained in:
theo1 2020-05-16 19:58:00 +02:00
parent 92f9830d28
commit 22851ff930
168 changed files with 208 additions and 16 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
Makefile Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
content/articles/construction.md Normal file → Executable file
View File

0
content/articles/courtyard.md Normal file → Executable file
View File

0
content/articles/sunday.md Normal file → Executable file
View File

0
content/pages/about.md Normal file → Executable file
View File

0
content/pages/download.md Normal file → Executable file
View File

View File

@ -14,6 +14,8 @@
</header>
<div class='content'>
<script src="/theme/js/slideshow.js"></script>
<h1 class='article-title'>Construction</h1>
<div class="article">
<div class='article-content column'> <p><audio controls="controls"
@ -23,13 +25,24 @@
Your browser does not support the HTML5 Audio element.
</audio></p></div>
<div class='article-img column'>
<img alt="" src="/images/Construction/Construction-1.jpg">
<img alt="" src="/images/Construction/Construction-2.jpg">
<img alt="" src="/images/Construction/Construction-3.jpg">
<img alt="" src="/images/Construction/Construction-4.jpg">
<img alt="" src="/images/Construction/Construction-5.jpg">
<img alt="" onclick="showSlide('img-1')" src="/images/Construction/Construction-1.jpg">
<img alt="" onclick="showSlide('img-2')" src="/images/Construction/Construction-2.jpg">
<img alt="" onclick="showSlide('img-3')" src="/images/Construction/Construction-3.jpg">
<img alt="" onclick="showSlide('img-4')" src="/images/Construction/Construction-4.jpg">
<img alt="" onclick="showSlide('img-5')" src="/images/Construction/Construction-5.jpg">
</div>
</div>
<div id="slide-container">
<div id="close-modal" onclick="closeModal()">X</div>
<div id="slides" class="modal">
<img class="slide" id="img-1" alt="" src="/images/Construction/Construction-1.jpg">
<img class="slide" id="img-2" alt="" src="/images/Construction/Construction-2.jpg">
<img class="slide" id="img-3" alt="" src="/images/Construction/Construction-3.jpg">
<img class="slide" id="img-4" alt="" src="/images/Construction/Construction-4.jpg">
<img class="slide" id="img-5" alt="" src="/images/Construction/Construction-5.jpg">
</div>
</div>
</div>
</body>

View File

@ -14,6 +14,8 @@
</header>
<div class='content'>
<script src="/theme/js/slideshow.js"></script>
<h1 class='article-title'>Courtyard</h1>
<div class="article">
<div class='article-content column'> <p><audio controls="controls"
@ -34,13 +36,24 @@ He also comments with either self-pity or candid interest everything he undertak
<p>He goes to the balcony twice a day to smoke a cigarette. It overlooks the courtyard, so it is just outside enough to give himself the impression that he is going somewhere. The junk and the dust lingering on the other balconies have made space to allow a chair and a reading person to get a bit of sunlight.
He can hear neighbors laughing out loud, as they always had in peaceful sunny spring afternoon. They started to watch an old TV show last week. He knows the ending and can even tell some lines.</p></div>
<div class='article-img column'>
<img alt="" src="/images/Courtyard/Courtyard-1.jpg">
<img alt="" src="/images/Courtyard/Courtyard-2.jpg">
<img alt="" src="/images/Courtyard/Courtyard-3.jpg">
<img alt="" src="/images/Courtyard/Courtyard-4.jpg">
<img alt="" src="/images/Courtyard/Courtyard-5.jpg">
<img alt="" onclick="showSlide('img-1')" src="/images/Courtyard/Courtyard-1.jpg">
<img alt="" onclick="showSlide('img-2')" src="/images/Courtyard/Courtyard-2.jpg">
<img alt="" onclick="showSlide('img-3')" src="/images/Courtyard/Courtyard-3.jpg">
<img alt="" onclick="showSlide('img-4')" src="/images/Courtyard/Courtyard-4.jpg">
<img alt="" onclick="showSlide('img-5')" src="/images/Courtyard/Courtyard-5.jpg">
</div>
</div>
<div id="slide-container">
<div id="close-modal" onclick="closeModal()">X</div>
<div id="slides" class="modal">
<img class="slide" id="img-1" alt="" src="/images/Courtyard/Courtyard-1.jpg">
<img class="slide" id="img-2" alt="" src="/images/Courtyard/Courtyard-2.jpg">
<img class="slide" id="img-3" alt="" src="/images/Courtyard/Courtyard-3.jpg">
<img class="slide" id="img-4" alt="" src="/images/Courtyard/Courtyard-4.jpg">
<img class="slide" id="img-5" alt="" src="/images/Courtyard/Courtyard-5.jpg">
</div>
</div>
</div>
</body>

View File

@ -14,6 +14,8 @@
</header>
<div class='content'>
<script src="/theme/js/slideshow.js"></script>
<h1 class='article-title'>Sunday</h1>
<div class="article">
<div class='article-content column'> <p><audio controls="controls"
@ -23,13 +25,24 @@
Your browser does not support the HTML5 Audio element.
</audio></p></div>
<div class='article-img column'>
<img alt="" src="/images/Sunday/Sunday-1.jpg">
<img alt="" src="/images/Sunday/Sunday-2.jpg">
<img alt="" src="/images/Sunday/Sunday-3.jpg">
<img alt="" src="/images/Sunday/Sunday-4.jpg">
<img alt="" src="/images/Sunday/Sunday-5.jpg">
<img alt="" onclick="showSlide('img-1')" src="/images/Sunday/Sunday-1.jpg">
<img alt="" onclick="showSlide('img-2')" src="/images/Sunday/Sunday-2.jpg">
<img alt="" onclick="showSlide('img-3')" src="/images/Sunday/Sunday-3.jpg">
<img alt="" onclick="showSlide('img-4')" src="/images/Sunday/Sunday-4.jpg">
<img alt="" onclick="showSlide('img-5')" src="/images/Sunday/Sunday-5.jpg">
</div>
</div>
<div id="slide-container">
<div id="close-modal" onclick="closeModal()">X</div>
<div id="slides" class="modal">
<img class="slide" id="img-1" alt="" src="/images/Sunday/Sunday-1.jpg">
<img class="slide" id="img-2" alt="" src="/images/Sunday/Sunday-2.jpg">
<img class="slide" id="img-3" alt="" src="/images/Sunday/Sunday-3.jpg">
<img class="slide" id="img-4" alt="" src="/images/Sunday/Sunday-4.jpg">
<img class="slide" id="img-5" alt="" src="/images/Sunday/Sunday-5.jpg">
</div>
</div>
</div>
</body>

0
output/theme/css/fonts/Libertinage.ttf Normal file → Executable file
View File

0
output/theme/css/fonts/SolideMirage-Etroit.otf Normal file → Executable file
View File

View File

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

View File

View File

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

View File

View File

View File

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

View File

View File

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

View File

0
output/theme/css/fonts/fengardo_neue/.DS_Store vendored Normal file → Executable file
View File

View File

View File

View File

40
output/theme/css/main-v2.css Normal file → Executable file
View File

@ -187,4 +187,44 @@ p a {
float: left;
width: 50%;
padding: 15px;
}
#slide-container {
display: none;
width: 100%;
height: 300%;
position: absolute;
left: 0;
top: 0;
overflow: hidden;
background-color: #000000;
text-align: center;
padding-top: 100px;
}
.slide {
/* hide by default */
display: none;
position: relative;
margin-left: auto;
margin-right: auto;
max-width: 80%;
max-height: 80%;
width: auto;
height: auto;
background-color: black;
}
#close-modal {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: white;
width: 20px;
height:20px;
margin-left: 95%;
}
#close-modal:hover {
font-size: larger;
}

0
output/theme/css/main.css Normal file → Executable file
View File

View File

@ -0,0 +1,31 @@
window.onload = function(){
// close on esc key
document.addEventListener('keydown', function(event){
if(event.keyCode === 27){
closeModal()
}
});
}
// Close the Modal
function closeModal() {
document.getElementById("slide-container").style.display = "none"
elems = document.getElementsByClassName('slide')
for(let i=0; i<elems.length; i++){
elems[i].style.display = "none"
}
}
function showSlide(id){
isOpen = true
document.getElementById('slide-container').style.display = "block"
document.getElementById(id).style.display = "block"
goToTop()
}
// When the user clicks on an image, scroll to the top
function goToTop() {
document.body.scrollTop = 0 // safari
document.documentElement.scrollTop = 0 // Chrome, Firefox, IE and Opera
}

0
pelicanconf.py Normal file → Executable file
View File

0
publishconf.py Normal file → Executable file
View File

0
tasks.py Normal file → Executable file
View File

0
themes/cebong/LICENSE.txt Normal file → Executable file
View File

0
themes/cebong/README.markdown Normal file → Executable file
View File

0
themes/cebong/screenshot-article.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 266 KiB

0
themes/cebong/screenshot-with-tagline.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 462 KiB

After

Width:  |  Height:  |  Size: 462 KiB

0
themes/cebong/screenshot-without-tagline.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 457 KiB

After

Width:  |  Height:  |  Size: 457 KiB

0
themes/cebong/static/css/main.css Normal file → Executable file
View File

0
themes/cebong/static/css/pygment.css Normal file → Executable file
View File

0
themes/cebong/static/css/reset.css Normal file → Executable file
View File

0
themes/cebong/static/css/typogrify.css Normal file → Executable file
View File

0
themes/cebong/static/css/wide.css Normal file → Executable file
View File

0
themes/cebong/static/images/icons/delicious.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 963 B

After

Width:  |  Height:  |  Size: 963 B

0
themes/cebong/static/images/icons/facebook.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 300 B

After

Width:  |  Height:  |  Size: 300 B

0
themes/cebong/static/images/icons/gitorious.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

0
themes/cebong/static/images/icons/lastfm.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 980 B

After

Width:  |  Height:  |  Size: 980 B

0
themes/cebong/static/images/icons/linkedin.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 376 B

0
themes/cebong/static/images/icons/rss.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 896 B

0
themes/cebong/static/images/icons/twitter.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 835 B

After

Width:  |  Height:  |  Size: 835 B

0
themes/cebong/templates/analytics.html Normal file → Executable file
View File

0
themes/cebong/templates/archives.html Normal file → Executable file
View File

0
themes/cebong/templates/article.html Normal file → Executable file
View File

0
themes/cebong/templates/article_infos.html Normal file → Executable file
View File

0
themes/cebong/templates/author.html Normal file → Executable file
View File

0
themes/cebong/templates/authors.html Normal file → Executable file
View File

0
themes/cebong/templates/base.html Normal file → Executable file
View File

0
themes/cebong/templates/category.html Normal file → Executable file
View File

0
themes/cebong/templates/comments.html Normal file → Executable file
View File

0
themes/cebong/templates/disqus_script.html Normal file → Executable file
View File

0
themes/cebong/templates/github.html Normal file → Executable file
View File

0
themes/cebong/templates/index.html Normal file → Executable file
View File

0
themes/cebong/templates/page.html Normal file → Executable file
View File

0
themes/cebong/templates/piwik.html Normal file → Executable file
View File

0
themes/cebong/templates/tag.html Normal file → Executable file
View File

0
themes/cebong/templates/taglist.html Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More