This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(salary) | |
| { | |
| var tax7120 = { | |
| 0: 0, | |
| 100: 0, | |
| 200: 0, | |
| 300: 0, | |
| 400: 0, | |
| 500: 0, | |
| 600: 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) | |
| { | |
| grunt.initConfig( | |
| { | |
| pkg: grunt.file.readJSON('package.json'), | |
| watch: { | |
| css: { | |
| files: ['www/src/sass/**/*.scss'], | |
| tasks: ['css'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Drafts | |
| filter: { | |
| scheduled: false, | |
| published: false | |
| } | |
| // Scheduled | |
| filter: { | |
| scheduled: true, | |
| published: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( | |
| ['marionette', 'model/publication', 'collection/issue/sections'], | |
| function(Marionette, PublicationModel, SectionCollection) | |
| { | |
| var PublicationBaseLayout = Marionette.Layout.extend( | |
| { | |
| id: 'publication', | |
| events: { | |
| 'click nav a': 'navigate' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function (doc) { | |
| if (doc.docType === 'issue') { | |
| index('default', doc.title); | |
| if (doc.title) { | |
| index('title', doc.title, {'store': 'yes'}); | |
| } | |
| if (doc.publicationId) { | |
| index('publicationId', doc.publicationId, {'store': 'yes'}); | |
| } | |
| if (doc.liveStartDate) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(doc) | |
| { | |
| if(doc.docType == 'issue') | |
| { | |
| var indexProperties = function(properties) | |
| { | |
| for(var i = 0; i < properties.length; i++) | |
| { | |
| var property = properties[i]; | |
| if(doc[property]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background: white; | |
| } | |
| @media (min-width: 800px) { | |
| body { | |
| background: black; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fetch: function() | |
| { | |
| var deferred; | |
| var data = this.cache(); | |
| if(data) | |
| { | |
| deferred = $.Deferred(); | |
| deferred.resolve(data); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fetch(options) | |
| { | |
| var ongoingAjaxFetch = this.get('ongoingAjaxFetch'); | |
| if(ongoingAjaxFetch) return ongoingAjaxFetch; | |
| var defaults = { includeDocs: true }; | |
| options = options ? $.extend({}, defaults, options) : defaults; | |
| var deferred; | |
| var data = this.cache(); |