Skip to content

Commit

Permalink
Fixing the html site so that it works as a download.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed May 23, 2014
1 parent f650929 commit a8b39c9
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 7 deletions.
10 changes: 9 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,22 @@ module.exports = function(grunt) {
'bin/jsencrypt.min.js': files
}
}
},
jekyll: {
build: {
options: {
config: '_config.yml,_config.build.yml'
}
}
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-jekyll');

// Default task(s).
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'jekyll']);
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ gwQco1KRMDSmXSMkDwIDAQAB
</html>
```

- Look at how index.html works to get a better idea.
- Look at how http://www.travistidwell.com/jsencrypt/example.html works to get a better idea.

Other Information
========================
Expand Down
10 changes: 9 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
<html>
<head>
<title>Online RSA Key Generator</title>
<base id="basetag" href="/jsencrypt/">
<base id="basetag" href="/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Expand Down
10 changes: 9 additions & 1 deletion example.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
<html>
<head>
<title>JSEncrypt Example</title>
<base id="basetag" href="/jsencrypt/">
<base id="basetag" href="/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Expand Down
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
<html>
<head>
<title>JSEncrypt</title>
<base id="basetag" href="/jsencrypt/">
<base id="basetag" href="/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"grunt": "~0.4.4",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-concat": "~0.4.0"
"grunt-contrib-concat": "~0.4.0",
"grunt-jekyll": "0.4.2"
}
}
10 changes: 9 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
<html>
<head>
<title>Testing JSEncrypt</title>
<base id="basetag" href="/jsencrypt/">
<base id="basetag" href="/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Expand Down

0 comments on commit a8b39c9

Please sign in to comment.