From 86b867347c7248ba56660a8e1544c1efaceab1a6 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Thu, 28 Jun 2012 13:13:24 +0300 Subject: [PATCH] tweaking the HTML inclusion --- galleryscript.js | 8 ++++++-- gallerystyle.css | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/galleryscript.js b/galleryscript.js index d1b9a5e..71346ae 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -1097,7 +1097,11 @@ function thumblist(n,curr) { ' (S)etup'; thumbstr='
Images'+menustr+'
'+leftstr; for (i=ends.first; i
'+nicestring((imagelist[i]))+''; + if (isHTML(imagelist[i])) { + thumbstr+='
'+nicestring((imagelist[i]))+'
'; + } else { + thumbstr+='
'+nicestring((imagelist[i]))+'
'; + } } thumbstr+=rightstr+'
'; $('#thumbcontainer').html(thumbstr); @@ -1459,7 +1463,7 @@ function getmaxthumbs() { } function isHTML(s) { - return s.match(/html$/i); + return s.match(/htm.?$/i); } function hidethumbs() { diff --git a/gallerystyle.css b/gallerystyle.css index a9ebff8..03fbdd1 100644 --- a/gallerystyle.css +++ b/gallerystyle.css @@ -201,6 +201,9 @@ input { img { border: 0px; } +iframe { + border: 1px inset; +} #arrowleft,#arrowright { width: 40px; height: 90px;