From 2079bea15eafffd734e60319084e4161d9e8e7cd Mon Sep 17 00:00:00 2001 From: yamat0jp Date: Mon, 11 Sep 2017 19:48:53 +0900 Subject: [PATCH] =?utf8?q?=E5=8B=95=E4=BD=9C=E3=81=8C=E9=88=8D=E3=81=84?= =?utf8?q?=E3=81=A7=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- static/css/top.css | 10 ++++------ static/js/top.js | 12 +++--------- templates/top.htm | 7 ++++--- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/static/css/top.css b/static/css/top.css index d7cde8c..d81e4e3 100644 --- a/static/css/top.css +++ b/static/css/top.css @@ -1,10 +1,8 @@ .slideshow { - background-color:rgb(50,50,50); + background-color:rgb(225,225,225); height:465px; min-width:960px; - border: solid 1px black; - outline-style:dotted; overflow:hidden; position:relative } @@ -12,14 +10,14 @@ .slideshow-slides { height:100%; position:absolute; - width:100% + width:100%; } .slideshow-slides .slide { height:100%; - overflow:hidden; + overflow:auto; position:absolute; - width:100% + width:100%; } .slideshow-nav a, diff --git a/static/js/top.js b/static/js/top.js index 1a7be90..1c59228 100644 --- a/static/js/top.js +++ b/static/js/top.js @@ -46,9 +46,9 @@ $(function(){ .eq(currentIndex).addClass('active'); } - function startTimver(){ + function startTimer(){ timer = setInterval(function(){ - var nextIndex = (currentIndex+1)%slideCount; + var nextIndex = (currentIndex+1) % slideCount; goToSlide(nextIndex); },interval); } @@ -75,16 +75,10 @@ $(function(){ } }); - /* - $container.on({ - 'mouseenter':stopTimer(), - 'mouseleave':startTimer() - }); - */ + goToSlide(currentIndex); - startTimer(); }); diff --git a/templates/top.htm b/templates/top.htm index e75983d..215f705 100755 --- a/templates/top.htm +++ b/templates/top.htm @@ -22,10 +22,11 @@ }(document, 'script', 'facebook-jssdk'));

無料電子掲示板へようこそ

{% set d = 0 %} +{% set i = 10 %}
{% for x in coll %} - {% if d % 5 == 0 %} + {% if d % i == 0 %}
{% end %} {% set d += 1 %} @@ -34,11 +35,11 @@ {% else %}

{{x}} {% end %} - {% if d % 5 == 0 %} + {% if d % i == 0 %}

{% end %} {% end %} -{% if d % 5 != 0 %} +{% if d % i != 0 %}
{% end %}
-- 2.11.0