Skip to content

Commit a04c5cf

Browse files
committed
cleanup y gracefull degradation
1 parent a126779 commit a04c5cf

12 files changed

+37
-12
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Ignore your pretty photos from the repo (add if you like)
2+
/img/*
3+
14
# Numerous always-ignore extensions
25
*.diff
36
*.err
-1.01 KB
Binary file not shown.
-640 Bytes
Binary file not shown.
-747 Bytes
Binary file not shown.

apple-touch-icon-precomposed.png

-640 Bytes
Binary file not shown.

apple-touch-icon.png

-640 Bytes
Binary file not shown.

config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/* An array containing desired position within slideshow and video URLs */
2424

2525
$videos = array(
26-
// "2" => "http://www.youtube.com/watch?v=MejbOFk7H6c", /* You can add all videos you want in the positions you like. There can not be more videos than images or they won't show up. */
26+
"2" => "http://www.youtube.com/watch?v=MejbOFk7H6c", /* You can add all videos you want in the positions you like. There can not be more videos than images or they won't show up. */
2727
// "5" => "http://vimeo.com/36160341",
2828
// "6" => "http://www.youtube.com/watch?v=MejbOFk7H6c",
2929
// "10" => "http://vimeo.com/36160348",

crossdomain.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3+
<cross-domain-policy>
4+
<site-control permitted-cross-domain-policies="none"/>
5+
</cross-domain-policy>

css/style.css

+18-2
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,26 @@ body , html {
9797
text-align:left;
9898
}
9999

100+
.js #slideshow .video a {
101+
display:block;
102+
/* I like being dirty */
103+
font-size:0px;
104+
letter-spacing:-1em;
105+
line-height:0px;
106+
}
100107

108+
.no-js #slideshow {
109+
overflow: auto;
110+
}
101111

102-
103-
112+
.no-js #slideshow .video a {
113+
color:#fff;
114+
display:block;
115+
font-size:2em;
116+
padding: 40px 0px;
117+
text-align:center;
118+
text-decoration:none;
119+
}
104120

105121
@media only screen and (min-width: 35em) {
106122

index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
$extension = substr($img_array[$index], -3);
5858
if ($extension == 'jpg' || $extension == 'png' || $extension == 'gif'){
5959
if($videos[$img_count+1]){
60-
echo '<li class="slide video"><a class="videolink" href="'.$videos[$img_count+1].'">Video '.($img_count+1).'</a></li>'.PHP_EOL;
60+
echo '<li class="slide video"><a class="videolink" href="'.$videos[$img_count+1].'" target="_blank">Video '.($img_count+1).'</a></li>'.PHP_EOL;
6161
}
6262
echo '<li class="slide" style="background-image:url('. $images_folder . '/' . $img_array[$index] .');"><img class="visuallyhidden" src="' . $images_folder . '/' . $img_array[$index] . '" alt="" /></li>'.PHP_EOL;
6363
$img_count++;

js/libs/modernizr-2.5.3.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# HTML Image Slides
1+
# HTML Slides
22

33
This is a very simple script that will allow you to set up an image based slideshow in no time.
4-
It has support for jpg, png, and gif images, as well as youtube and vimeo support so your slides can be a full screen video.
5-
4+
It has support for jpg, png, and gif images, as well as youtube and vimeo support so some of your slides can be a full screen video.
65

76

87
## Quick start
@@ -15,16 +14,18 @@ All you need is a php server, upload the script, drop some images in the img fol
1514
* HTML5 ready.
1615
* Cross-browser compatible (Chrome, Opera, Safari, Firefox 3.6+).
1716
* Responsive layout, you can select to crop or letterbox your images.
18-
* Google analytics support
17+
* Auto-advance slides
18+
* Minimal css and html
1919
* Dead simple youtube and vimeo support
20-
* Mousewheel and keyboard navigation
20+
* Google analytics support
21+
* Click, Mousewheel and keyboard navigation
2122
* Easy to customize
2223
* Built on top of the best plugins available.
2324

2425

2526
## Settings
2627

27-
For an out of the box installation you should just add images to the img folder and set your options in the config.php file.
28+
For an out of the box installation you should just add images to the img folder and set your basic settings in the config.php file.
2829

2930

3031
## Contributing

0 commit comments

Comments
 (0)