Skip to content
Open
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 .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"extends": "eslint:recommended",
Expand Down
77 changes: 77 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
module.exports = function(grunt) {
grunt.initConfig({
watch: {
scripts: {
files: ['styles/customboot.less'],
tasks: ['dist-css'],
options: {
spawn: false,
},
},
},
bspkg: grunt.file.readJSON('bower_components/bootstrap/package.json'),
bspath: 'bower_components/bootstrap',
banner: '/*!\n' +
' * Bootstrap v<%= bspkg.version %> (<%= bspkg.homepage %>)\n' +
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= bspkg.author %>\n' +
' * Licensed under <%= bspkg.license.type %> (<%= bspkg.license.url %>)\n' +
' */\n',
less: {
compileCore: {
options: {
strictMath: true,
sourceMap: true,
outputSourceFiles: true,
sourceMapURL: 'styles/css/bootstrap.css.map',
sourceMapFilename: 'styles/css/bootstrap.css.map',
paths: '<%= bspath %>/less'
},
files: {
'styles/css/bootstrap.css': 'styles/customboot.less'
}
}
},
autoprefixer: {
options: {
browsers: [
'Android 2.3',
'Android >= 4',
'Chrome >= 20',
'Firefox >= 24', // Firefox 24 is the latest ESR
'Explorer >= 8',
'iOS >= 6',
'Opera >= 12',
'Safari >= 6'
]
},
core: {
options: {
map: true
},
src: 'styles/css/bootstrap.css'
}
},
cssmin: {
options: {
compatibility: 'ie8',
keepSpecialComments: '*',
noAdvanced: true
},
core: {
files: {
'styles/css/bootstrap.min.css': 'styles/css/bootstrap.css'
}
}
}
});

// Loading our grunt modules
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');

// CSS distribution task.
grunt.registerTask('dist-css', ['less:compileCore', 'autoprefixer', 'cssmin']);

};
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ <h4 id="member-title">Member of Congress Information<br>
</div><!-- /btn-group -->
</div><!-- /input-group -->
</div><!-- /form-group -->

</section>

<div>
<button type="button" class="btn btn-primary" id="add-member" disabled>Add additional member</button>
<span class="help-block hidden">Enter a member before adding another one</span>
</div>
<section class="meeting infomation">
<h4 class="text-info">Information about the Event</h4>
<div class="form-group col-sm-12">
Expand Down Expand Up @@ -296,6 +298,7 @@ <h4 class="text-info">Information about the Event</h4>
<script src="/scripts/models/moc.js"></script>

<script src="/scripts/views/newEventView.js"></script>
<script src="/scripts/views/memberView.js"></script>

<script src="/scripts/controllers/newEventController.js"></script>
<script src="/scripts/controllers/routes.js"></script>
Expand Down
Loading