Browse Source

Actually that "no-js support" doesn't have to be that complicated as the previous version was.

rewrite
Viljami S 13 years ago
parent
commit
425b546e07
  1. 6
      demo/demo.html
  2. 6
      demo/themes/themes.html
  3. 2
      responsiveslides.css

6
demo/demo.html

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="no-js"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>ResponsiveSlides.js &middot; Responsive jQuery slideshow</title> <title>ResponsiveSlides.js &middot; Responsive jQuery slideshow</title>
@ -10,10 +10,6 @@
<script src="../responsiveslides.min.js"></script> <script src="../responsiveslides.min.js"></script>
<script> <script>
$(function () { $(function () {
// If you aren't using Modernizr you might want to add no-js class
// to html and use that to support cases when JavaScript isn't available
$("html").removeClass("no-js");
// Slideshow 1 // Slideshow 1
$(".rslides1").responsiveSlides({ $(".rslides1").responsiveSlides({

6
demo/themes/themes.html

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="no-js"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>ResponsiveSlides.js &middot; Alternative themes</title> <title>ResponsiveSlides.js &middot; Alternative themes</title>
@ -11,10 +11,6 @@
<script> <script>
$(function () { $(function () {
// If you aren't using Modernizr you might want to add no-js class
// to html and use that to support cases when JavaScript isn't available
$("html").removeClass("no-js");
// Slideshow 1 // Slideshow 1
$(".rslides1").responsiveSlides({ $(".rslides1").responsiveSlides({
auto: false, auto: false,

2
responsiveslides.css

@ -17,7 +17,7 @@
top: 0; top: 0;
} }
.no-js .rslides li:first-child { .rslides li:first-child {
position: relative; position: relative;
display: block; display: block;
float: left; float: left;

Loading…
Cancel
Save