Skip to content

Added Universal Module Definition #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 2 additions & 2 deletions demo/default-pt.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Outdated Browser</title>
<meta name="description" content="A time saving tool for developers. It detects outdated browsers and advises users to upgrade to a new version.">
<!-- Styles -->
<link rel="stylesheet" href="../outdatedbrowser/outdatedbrowser.min.css">
<link rel="stylesheet" href="../dist/outdatedbrowser.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
Expand Down Expand Up @@ -38,7 +38,7 @@ <h3>What does it look like? <span>(it may differ in your tests)</span></h3>
<div id="outdated"></div>

<!-- javascript includes -->
<script src="../outdatedbrowser/outdatedbrowser.min.js"></script>
<script src="../dist/outdatedbrowser.js"></script>

<!-- plugin call -->
<script>
Expand Down
4 changes: 2 additions & 2 deletions demo/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Outdated Browser</title>
<meta name="description" content="A time saving tool for developers. It detects outdated browsers and advises users to upgrade to a new version.">
<!-- Styles -->
<link rel="stylesheet" href="../outdatedbrowser/outdatedbrowser.min.css">
<link rel="stylesheet" href="../dist/outdatedbrowser.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
Expand Down Expand Up @@ -42,7 +42,7 @@ <h3>What does it look like? <span>(it may differ in your tests) </span></h3>


<!-- javascript includes -->
<script src="../outdatedbrowser/outdatedbrowser.min.js"></script>
<script src="../dist/outdatedbrowser.js"></script>

<!-- plugin call -->
<script>
Expand Down
10 changes: 4 additions & 6 deletions demo/design.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Outdated Browser</title>
<meta name="description" content="A time saving tool for developers. It detects outdated browsers and advises users to upgrade to a new version.">
<!-- Styles -->
<link rel="stylesheet" href="../outdatedbrowser/outdatedbrowser.min.css">
<link rel="stylesheet" href="../dist/outdatedbrowser.css">

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
Expand All @@ -20,9 +20,6 @@
p.designBy{position: absolute; bottom: 0; right: 1em; font-size: .8em;}
a {color: #0a0a0a;}
ul{list-style-type: none; padding: 0;}
/*do not use this!*/
h6, p{color: #0a0a0a;} /* test to be sure that I have inline colors! IE6-9 kills me!*/
#outdated{display: block;}
</style>
</head>

Expand All @@ -45,7 +42,7 @@ <h6>Your browser is out-of-date!</h6>
</div>

<!-- javascript includes -->
<script src="../outdatedbrowser/outdatedbrowser.min.js"></script>
<script src="../dist/outdatedbrowser.js"></script>


<!-- plugin call -->
Expand All @@ -70,7 +67,8 @@ <h6>Your browser is out-of-date!</h6>
bgColor: '#f25648',
color: '#ffffff',
lowerThan: 'transform',
languagePath: ''
languagePath: '',
force: true
})
});
</script>
Expand Down
4 changes: 2 additions & 2 deletions demo/jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Outdated Browser</title>
<meta name="description" content="A time saving tool for developers. It detects outdated browsers and advises users to upgrade to a new version.">
<!-- Styles -->
<link rel="stylesheet" href="../outdatedbrowser/outdatedbrowser.min.css">
<link rel="stylesheet" href="../dist/outdatedbrowse.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
Expand Down Expand Up @@ -40,7 +40,7 @@ <h3>What does it look like? <span>(it may differ in your tests) </span></h3>

<!-- javascript includes -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="../outdatedbrowser/outdatedbrowser.min.js"></script>
<script src="../dist/outdatedbrowse.js"></script>

<!-- plugin call -->
<script>
Expand Down
4 changes: 2 additions & 2 deletions demo/noajax-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Outdated Browser</title>
<meta name="description" content="A time saving tool for developers. It detects outdated browsers and advises users to upgrade to a new version.">
<!-- Styles -->
<link rel="stylesheet" href="../outdatedbrowser/outdatedbrowser.min.css">
<link rel="stylesheet" href="../dist/outdatedbrowser.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
Expand Down Expand Up @@ -42,7 +42,7 @@ <h6>Votre navigateur est désuet!</h6>
</div>

<!-- javascript includes -->
<script src="../outdatedbrowser/outdatedbrowser.min.js"></script>
<script src="../dist/outdatedbrowser.js"></script>

<!-- plugin call -->
<script>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions dist/outdatedbrowser.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/outdatedbrowser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
gulp = require('gulp')
$ = require('gulp-load-plugins')()
browserSync = require("browser-sync")
reload = browserSync.reload

gulp.task "default", ['jshint', 'js', 'css']

gulp.task 'js', ->
gulp.src 'src/*.js'
.pipe $.uglify()
.pipe gulp.dest 'dist/'
.pipe $.size()
.pipe reload(stream: true)

gulp.task 'css', ->
gulp.src 'src/*.css'
.pipe $.csso()
.pipe gulp.dest 'dist/'
.pipe $.size()
.pipe reload(stream: true)

gulp.task 'jshint', ->
gulp.src 'src/*.js'
.pipe $.jshint()
.pipe $.jshint.reporter 'jshint-stylish'


gulp.task 'serve', ['default'], ->
browserSync
server: { baseDir: './' }
notify: false
gulp.watch 'src/*.js', ['jshint', 'js']
gulp.watch 'src/*.css', ['css']
gulp.watch 'demo/**/*.html', reload

2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require('coffee-script/register');
require('./gulpfile.coffee');
219 changes: 0 additions & 219 deletions outdatedbrowser/outdatedbrowser.js

This file was deleted.

8 changes: 0 additions & 8 deletions outdatedbrowser/outdatedbrowser.min.css

This file was deleted.

Loading