From eed4d0ab9b4e4f6eee16964e7745614c37867589 Mon Sep 17 00:00:00 2001 From: quoije Date: Sun, 20 Jun 2021 23:18:41 -0400 Subject: [PATCH] wow winxp part two --- assets/css/oof.css | 11 +++++++++++ assets/img/spek.icon.svg | 7 +++++++ assets/js/site.js | 13 ++++++++++--- index.html | 3 ++- 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 assets/img/spek.icon.svg diff --git a/assets/css/oof.css b/assets/css/oof.css index bedd409..214b954 100644 --- a/assets/css/oof.css +++ b/assets/css/oof.css @@ -50,6 +50,17 @@ body { text-shadow: 4px 0px var(--teal); } +#sbody { + font-size: 15px; + margin-left: 5px; + margin-right: 5px; + margin-top: 10px; + margin-bottom: 10px; + font-weight: bold; + font-family: 'Comic Neue', cursive; + font-style: normal; +} + #ws:link { text-decoration: none; color: inherit; diff --git a/assets/img/spek.icon.svg b/assets/img/spek.icon.svg new file mode 100644 index 0000000..6ca462e --- /dev/null +++ b/assets/img/spek.icon.svg @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/assets/js/site.js b/assets/js/site.js index 9920c9b..9c17f59 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -10,7 +10,7 @@ jQuery(function($) { }, }, layoutTemplate: "{entries}", - entryTemplate:"\n", + entryTemplate:"
{title}
{date}

{bodyPlain}

\n", dateFormat: 'DD/MM/YYYY', dateLocale: 'fr-ca', }); @@ -25,7 +25,7 @@ jQuery(function($) { }, }, layoutTemplate: "{entries}", - entryTemplate:"
{title}
{date}

{bodyPlain}

\n", + entryTemplate:"
{title}
{date}

{bodyPlain}

\n", dateFormat: 'DD/MM/YYYY', dateLocale: 'fr-ca', }); @@ -33,13 +33,14 @@ jQuery(function($) { }); - function play(src, title, date) { + function play(src, title, date, body) { console.log(src); console.log(title); console.log(linkdec) var linkenc = src.substring(src.lastIndexOf('/')+1); var linkdec = decodeURIComponent(linkenc); document.getElementById("lienep").innerHTML= title; + document.getElementById("sbody").innerHTML= body + "...."; document.getElementById("lienep").href= linkdec; document.getElementById("player").pause(); document.getElementById("player").setAttribute('src', linkdec); @@ -51,6 +52,11 @@ jQuery(function($) { $('[href="#ep"]').tab('show'); } + function topFunction() { + document.body.scrollTop = 0; // safari + document.documentElement.scrollTop = 0; // webkit + } + $( function() { $( "#draggable" ).draggable(); $("#draggable").data({ @@ -62,6 +68,7 @@ jQuery(function($) { 'left': $("#draggable").data('originalLeft'), 'top': $("#draggable").data('origionalTop') }); + topFunction(); }); } ); diff --git a/index.html b/index.html index cb16a61..b41726f 100644 --- a/index.html +++ b/index.html @@ -125,8 +125,9 @@
-
{title}
{date}

{bodyPlain}