Skip to content

Commit

Permalink
Various fixes after latest pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan McDougall committed Oct 2, 2015
1 parent a62896a commit 8cf3612
Show file tree
Hide file tree
Showing 14 changed files with 323 additions and 364 deletions.
86 changes: 50 additions & 36 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

uglify: {
build: {
src: 'jquery.lightbox.js',
dest: 'jquery.lightbox.min.js'
},
options: {
report : 'gzip',
preserveComments : 'some'
}
},

cssmin: {
compress: {
files: {
'jquery.lightbox.min.css': ['jquery.lightbox.css']
module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

uglify: {
build: {
src: 'jquery.lightbox.js',
dest: 'jquery.lightbox.min.js'
},
options: {
report: 'gzip',
preserveComments: 'some'
}
},

cssmin: {
compress: {
files: {
'jquery.lightbox.min.css': ['jquery.lightbox.css']
}
},
options: {
report: 'gzip'
}
},

jshint: {
all: ['jquery.lightbox.js']
},

copy: {
build: {
files: [{
src: 'jquery.lightbox.css',
dest: 'scss/jquery.lightbox.scss'
},
{
src: 'jquery.lightbox.css',
dest: 'less/jquery.lightbox.less'
}]
}
}
},
options: {
report : 'gzip'
}
},
});

jshint: {
all: ['jquery.lightbox.js']
}
});
// Load the plugin that provides the "uglify" task.

// Load the plugin that provides the "uglify" task.

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-copy');

// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin', 'jshint']);
// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin', 'jshint', 'copy']);

};
90 changes: 0 additions & 90 deletions css/jquery.lightbox.css

This file was deleted.

7 changes: 0 additions & 7 deletions css/jquery.lightbox.css.map

This file was deleted.

22 changes: 22 additions & 0 deletions demo/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body {
font-family: sans-serif;
font-size: 1rem;
color: #333;
}

.container {
max-width: 800px;
margin: 0 auto;
}

.gallery {
list-style: none;
overflow: hidden;
padding: 0;
margin: 0;
}

.gallery li {
float: left;
margin: 4px;
}
26 changes: 3 additions & 23 deletions demo/disabled_on_mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,8 @@
<meta charset="utf-8">
<title>Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../css/jquery.lightbox.css">
<style type="text/css">
body {
font-family: sans-serif;
font-size: 1rem;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.gallery {
list-style: none;
overflow: hidden;
padding: 0;
margin: 0;
}
.gallery li {
float: left;
margin: 4px;
}
</style>
<link rel="stylesheet" type="text/css" href="../jquery.lightbox.css">
<link rel="stylesheet" href="demo.css">
</head>
<body>
<div class="container">
Expand All @@ -44,7 +24,7 @@ <h1>Responsive Lightbox - minSize Demo</h1>
</div>


<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="../jquery.lightbox.js"></script>
<script>
// Initiate Lightbox
Expand Down
26 changes: 3 additions & 23 deletions demo/groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,8 @@
<meta charset="utf-8">
<title>Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../css/jquery.lightbox.css">
<style type="text/css">
body {
font-family: sans-serif;
font-size: 1rem;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.gallery {
list-style: none;
overflow: hidden;
padding: 0;
margin: 0;
}
.gallery li {
float: left;
margin: 4px;
}
</style>
<link rel="stylesheet" type="text/css" href="../jquery.lightbox.css">
<link rel="stylesheet" href="demo.css">
</head>
<body>
<div class="container">
Expand Down Expand Up @@ -53,7 +33,7 @@ <h2>Group 3</h2>
</footer>
</div>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="../jquery.lightbox.js"></script>
<script>
// Initiate Lightbox
Expand Down
26 changes: 3 additions & 23 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,8 @@
<meta charset="utf-8">
<title>Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../css/jquery.lightbox.css">
<style type="text/css">
body {
font-family: sans-serif;
font-size: 1rem;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.gallery {
list-style: none;
overflow: hidden;
padding: 0;
margin: 0;
}
.gallery li {
float: left;
margin: 4px;
}
</style>
<link rel="stylesheet" type="text/css" href="../jquery.lightbox.css">
<link rel="stylesheet" href="demo.css">
</head>
<body>
<div class="container">
Expand All @@ -42,7 +22,7 @@ <h1>Responsive Lightbox</h1>
</footer>
</div>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="../jquery.lightbox.js"></script>
<script>
// Initiate Lightbox
Expand Down
27 changes: 4 additions & 23 deletions demo/index_button_define.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,9 @@
<meta charset="utf-8">
<title>Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../css/jquery.lightbox.css">
<style type="text/css">
body {
font-family: sans-serif;
font-size: 1rem;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.gallery {
list-style: none;
overflow: hidden;
padding: 0;
margin: 0;
}
.gallery li {
float: left;
margin: 4px;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../jquery.lightbox.css">
<link rel="stylesheet" href="demo.css">
</head>
<body>
<div class="container">
Expand All @@ -42,7 +23,7 @@ <h1>Responsive Lightbox - Custom Button Text</h1>
</footer>
</div>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="../jquery.lightbox.js"></script>
<script>
// Initiate Lightbox
Expand Down
Loading

0 comments on commit 8cf3612

Please sign in to comment.