diff --git a/app/index.js b/app/index.js index 2902fb5..c16b37f 100755 --- a/app/index.js +++ b/app/index.js @@ -90,10 +90,14 @@ JekyllizeGenerator.prototype.askForProject = function askForProject() { }, { name: 'tagline', message: 'What is the tagline of your project?' + }, { + name: 'projecturl', + message: 'What will the address for your site be?' }], function (props) { this.projectname = props.projectname; this.description = props.description; this.tagline = props.tagline; + this.projecturl = props.projecturl; cb(); }.bind(this)); @@ -194,7 +198,7 @@ JekyllizeGenerator.prototype.askForJekyll = function askForJekyll() { }, { name: 'jekyllPageinate', message: 'Number of posts to show on the home page', - default: 'all', + default: '10', validate: function (input) { if (/^[0-9]*$/.test(input)) { return true; diff --git a/app/templates/Gemfile b/app/templates/Gemfile index ddde18c..7609c68 100755 --- a/app/templates/Gemfile +++ b/app/templates/Gemfile @@ -1,4 +1,4 @@ source "http://rubygems.org" gem 'jekyll', '~>1.4.0' -gem 'redcarpet' +gem 'redcarpet' \ No newline at end of file diff --git a/app/templates/_config.build.yml b/app/templates/_config.build.yml index e3d347b..d221593 100644 --- a/app/templates/_config.build.yml +++ b/app/templates/_config.build.yml @@ -1,10 +1,16 @@ -# Jekyll configuration precedence: -# 1. Gruntfile task -# 2. config.build.yml -# 3. config.yml +# Run during the 'gulp build' command +# Overrides these options in the +# Overrides the default URL, needed for your atom feed and sitemap +url: <%= projecturl %> + +# Hides your drafts and future posts future: false show_drafts: false +# Gives you more accurate related posts +lsi: true +# Removes the upper limit for posts generated +limit_posts: 0 source: 'src' destination: 'serve' \ No newline at end of file diff --git a/app/templates/_config.yml b/app/templates/_config.yml index e68ee8c..2fd7179 100755 --- a/app/templates/_config.yml +++ b/app/templates/_config.yml @@ -1,16 +1,16 @@ -# Jekyll configuration precedence: -# 1. gulpfile -# 2. config.build.yml -# 3. config.yml - -name: <%= projectname %> +# Title, decription, tagline and URL for your site +# Can be used in your theme by calling 'site.title' and so on +title: <%= projectname %> description: <%= description %> tagline: <%= tagline %> +url: localhost:4000 -# Used so Gulp knows where our app lives -source: 'src' -destination: 'serve' +# Used so Jekyll outputs the site correctly so Gulp can do what it wants +source: src +destination: serve +# Same as the title etc for your site but can instead be +# called by using 'site.owner.name' and so on owner: name: <%= ownerName %> email: <%= ownerEmail %> @@ -20,11 +20,18 @@ owner: # general setting for Jekyll googleAnalytics: UA-XXXXX-X -# _config.build.yml sets future and show_drafts to false on `grunt build` +# _config.build.yml overwrites these options when you run `gulp build` +# Enables future posts (posts with dates in the future) and drafts future: true -show_drafts: true<% if (jekyllPageinate) { %> - -permalink: <%= jekyllPermalinks %> +show_drafts: true +# Disables the more accurate related posts for faster generating of the site +lsi: false +# Only make the last 10 posts so generating isn't slow +limit_posts: 10 + +# Permalink structure and pagination options +relative_permalinks: true +permalink: <%= jekyllPermalinks %><% if (jekyllPageinate) { %> paginate: <%= jekyllPageinate %> paginate_path: 'page:num'<% } %> @@ -33,5 +40,4 @@ markdown: redcarpet # Markdown library options # redcarpet: # extensions: ['fenced_code_blocks', 'smart'] - pygments: true diff --git a/app/templates/app/404.html b/app/templates/app/404.html new file mode 100644 index 0000000..5f5b9bf --- /dev/null +++ b/app/templates/app/404.html @@ -0,0 +1,9 @@ +--- +layout: default +title: "404: Page not found" +--- + +
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Head back home to try finding it again.
+Name | +Upvotes | +Downvotes | +
---|---|---|
Totals | +21 | +23 | +
Alice | +10 | +11 | +
Bob | +4 | +3 | +
Charlie | +7 | +9 | +
`, + * or to a parent if there are multiple elements to show. + */ + +.message { + margin-bottom: 1rem; + padding: 1rem; + color: #717171; + background-color: #f9f9f9; +} + +/* + * Container + * + * Center the page content. + */ + +.container { + max-width: 38rem; + padding-left: 1rem; + padding-right: 1rem; + margin-left: auto; + margin-right: auto; +} + +/* + * Masthead + * + * Super small header above the content for site name and short description. + */ + +.masthead { + padding-top: 1rem; + padding-bottom: 1rem; + margin-bottom: 3rem; +} + +.masthead-title { + margin-top: 0; + margin-bottom: 0; + color: #505050; + a { + color: #505050; + } + small { + font-size: 75%; + font-weight: 400; + color: #c0c0c0; + letter-spacing: 0; + } +} + +/* + * Posts and pages + * + * Each post is wrapped in `.post` and is used on default and post layouts. Each + * page is wrapped in `.page` and is only used on the page layout. + */ + +.page, .post { + margin-bottom: 4em; +} + +/* Blog post or page title */ + +.page-title { + color: #303030; +} + +.post-title { + color: #303030; + a { + color: #303030; + } +} + +.page-title, .post-title { + margin-top: 0; +} + +/* Meta data line below post title */ + +.post-date { + display: block; + margin-top: -.5rem; + margin-bottom: 1rem; + color: #9a9a9a; +} + +/* Related posts */ + +.related { + padding-top: 2rem; + padding-bottom: 2rem; + border-top: 1px solid #eee; +} + +.related-posts { + padding-left: 0; + list-style: none; + h3 { + margin-top: 0; + } + li { + small { + font-size: 75%; + color: #999; + } + a:hover { + color: #268bd2; + text-decoration: none; + small { + color: inherit; + } + } + } +} + +/* + * Pagination + * + * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when + * there are no more previous or next posts to show. + */ + +.pagination { + overflow: hidden; + /* clearfix */ + margin-left: -1rem; + margin-right: -1rem; + font-family: "PT Sans", Helvetica, Arial, sans-serif; + color: #ccc; + text-align: center; +} + +/* Pagination items can be `span`s or `a`s */ + +.pagination-item { + display: block; + padding: 1rem; + border: 1px solid #eee; + &:first-child { + margin-bottom: -1px; + } +} + +/* Only provide a hover state for linked pagination items */ + +a.pagination-item:hover { + background-color: #f5f5f5; +} + +@media (min-width: 30rem) { + .pagination { + margin: 3rem 0; + } + .pagination-item { + float: left; + width: 50%; + &:first-child { + margin-bottom: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + } + &:last-child { + margin-left: -1px; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; + } + } +} diff --git a/app/templates/app/assets/_scss/style.scss b/app/templates/app/assets/_scss/style.scss index 4ebae80..5fcad21 100644 --- a/app/templates/app/assets/_scss/style.scss +++ b/app/templates/app/assets/_scss/style.scss @@ -1,168 +1,542 @@ -/*****************************************************************************/ /* -/* Common + * ___ + * /\_ \ + * \//\ \ __ ___ __ __ ___ ___ + * \ \ \ /'__`\ /' _ `\/\ \/\ \ / __`\ /' _ `\ + * \_\ \_/\ \_\.\_/\ \/\ \ \ \_\ \/\ \_\ \/\ \/\ \ + * /\____\ \__/.\_\ \_\ \_\/`____ \ \____/\ \_\ \_\ + * \/____/\/__/\/_/\/_/\/_/`/___/> \/___/ \/_/\/_/ + * /\___/ + * \/__/ + * + * Designed, built, and released under MIT license by @mdo. Learn more at + * https://github.com/poole/lanyon. + */ + /* -/*****************************************************************************/ + * Contents + * + * Global resets + * Masthead + * Sidebar + * Slide effect + * Posts and pages + * Pagination + * Reverse layout + * Themes + */ -/* Global Reset */ +/* + * Global resets + * + * Update the foundational and global aspects of the page. + */ -* { - margin: 0; - padding: 0; -} +/* Prevent scroll on narrow devices */ -html { - height: 100%; +html, body { + overflow-x: hidden; } -body { - height: 100%; - background-color: #FFF; - font: 13.34px Helvetica, Arial, sans-serif; - font-size: small; - text-align: center; +html { + font-family: "PT Serif", Georgia, "Times New Roman", serif; } h1, h2, h3, h4, h5, h6 { - font-size: 100%; + font-family: "PT Sans", Helvetica, Arial, sans-serif; + font-weight: 400; + color: #313131; + letter-spacing: -.025rem; } -h1 { - margin-bottom: 1em; +/* + * Wrapper + * + * The wrapper is used to position site content when the sidebar is toggled. We + * use an outter wrap to position the sidebar without interferring with the + * regular page content. + */ + +.wrap { + position: relative; + width: 100%; } -p { - margin: 1em 0; +/* + * Container + * + * Center the page content. + */ + +.container { + max-width: 28rem; } -a { - color: #00a; - &:hover { - color: #000; +@media (min-width: 38rem) { + .container { + max-width: 32rem; } - &:visited { - color: #a0a; +} + +@media (min-width: 56rem) { + .container { + max-width: 38rem; } } -/*****************************************************************************/ /* -/* Home -/* -/*****************************************************************************/ + * Masthead + * + * Super small header above the content for site name and short description. + */ -.posts { - list-style-type: none; - margin-bottom: 2em; - li { - line-height: 1.75em; +.masthead { + padding-top: 1rem; + padding-bottom: 1rem; + margin-bottom: 3rem; + border-bottom: 1px solid #eee; +} + +.masthead-title { + margin-top: 0; + margin-bottom: 0; + color: #505050; + a { + color: #505050; + } + small { + font-size: 75%; + font-weight: 400; + color: #c0c0c0; + letter-spacing: 0; } - span { - color: #aaa; - font-family: Monaco, "Courier New", monospace; - font-size: 80%; +} + +@media (max-width: 48rem) { + .masthead-title { + text-align: center; + small { + display: none; + } } } -/*****************************************************************************/ /* -/* Site + * Sidebar + * + * The sidebar is the drawer, the item we are toggling with our handy hamburger + * button in the corner of the page. + * + * This particular sidebar implementation was inspired by Chris Coyier's + * "Offcanvas Menu with CSS Target" article, and the checkbox variation from the + * comments by a reader. It modifies both implementations to continue using the + * checkbox (no change in URL means no polluted browser history), but this uses + * `position` for the menu to avoid some potential content reflow issues. + * + * Source: http://css-tricks.com/off-canvas-menu-with-css-target/#comment-207504 + */ + +/* Style and "hide" the sidebar */ + +.sidebar { + position: fixed; + top: 0; + bottom: 0; + left: -14rem; + width: 14rem; + visibility: hidden; + overflow-y: auto; + font-family: "PT Sans", Helvetica, Arial, sans-serif; + font-size: .875rem; + /* 15px */ + color: rgba(255, 255, 255, 0.6); + background-color: #202020; + -webkit-transition: all .3s ease-in-out; + transition: all .3s ease-in-out; + a { + font-weight: normal; + color: #fff; + } +} + +@media (min-width: 30rem) { + .sidebar { + font-size: .75rem; + /* 14px */ + } +} + +/* Sidebar content */ + +.sidebar-item { + padding: 1rem; + p:last-child { + margin-bottom: 0; + } +} + +/* Sidebar nav */ + +.sidebar-nav { + border-bottom: 1px solid rgba(255, 255, 255, 0.1); +} + +.sidebar-nav-item { + display: block; + padding: .5rem 1rem; + border-top: 1px solid rgba(255, 255, 255, 0.1); + &.active { + text-decoration: none; + background-color: rgba(255, 255, 255, 0.1); + border-color: transparent; + } +} + +a.sidebar-nav-item { + &:hover, &:focus { + text-decoration: none; + background-color: rgba(255, 255, 255, 0.1); + border-color: transparent; + } +} + +@media (min-width: 48rem) { + .sidebar-item { + padding: 1.5rem; + } + .sidebar-nav-item { + padding-left: 1.5rem; + padding-right: 1.5rem; + } +} + +/* Hide the sidebar checkbox that we toggle with `.sidebar-toggle` */ + +.sidebar-checkbox { + display: none; +} + +/* Style the `label` that we use to target the `.sidebar-checkbox` */ + +.sidebar-toggle { + position: absolute; + top: 1rem; + left: 1rem; + display: block; + width: 2.2rem; + padding: .5rem .65rem; + color: #505050; + background-color: #fff; + border-radius: 4px; + cursor: pointer; + &:before { + display: block; + content: ""; + width: 100%; + padding-bottom: .125rem; + border-top: .375rem double; + border-bottom: .125rem solid; + /* Make the border inside the box */ + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + &:active { + color: #fff; + background-color: #505050; + } +} + +#sidebar-checkbox:checked ~ .sidebar-toggle { + color: #fff; + background-color: #505050; +} + +@media (min-width: 30.1rem) { + .sidebar-toggle { + position: fixed; + width: 2.25rem; + &:before { + padding-bottom: .15rem; + border-top-width: .45rem; + border-bottom-width: .15rem; + } + } +} + +/* Slide effect + * + * Handle the sliding effects of the sidebar and content in one spot, seperate + * from the default styles. + * + * As an a heads up, we don't use `transform: translate3d()` here because when + * mixed with `position: fixed;` for the sidebar toggle, it creates a new + * containing block. Put simply, the fixed sidebar toggle behaves like + * `position: absolute;` when transformed. + * + * Read more about it at http://meyerweb.com/eric/thoughts/2011/09/12/. + */ + +.wrap, .sidebar, .sidebar-toggle { + -webkit-backface-visibility: hidden; + -ms-backface-visibility: hidden; + backface-visibility: hidden; +} + +.wrap, .sidebar-toggle { + -webkit-transition: -webkit-transform .3s ease-in-out; + transition: transform .3s ease-in-out; +} + +#sidebar-checkbox:checked { + + .sidebar { + visibility: visible; + } + ~ { + .sidebar, .wrap, .sidebar-toggle { + -webkit-transform: translateX(14rem); + -ms-transform: translateX(14rem); + transform: translateX(14rem); + } + } +} + /* -/*****************************************************************************/ + * Posts and pages + * + * Each post is wrapped in `.post` and is used on default and post layouts. Each + * page is wrapped in `.page` and is only used on the page layout. + */ -.site { - font-size: 115%; - text-align: justify; - width: 42em; - margin: 3em auto 2em; - line-height: 1.5em; +.page, .post { + margin-bottom: 4em; } -.header a { - font-weight: bold; - text-decoration: none; +/* Blog post or page title */ + +.page-title { + color: #303030; } -.title { - display: inline-block; - margin-bottom: 2em; +.post-title { + color: #303030; a { - color: #a00; - &:hover { - color: #000; + color: #303030; + } +} + +.page-title, .post-title { + margin-top: 0; +} + +/* Meta data line below post title */ + +.post-date { + display: block; + margin-top: -.5rem; + margin-bottom: 1rem; + color: #9a9a9a; +} + +/* Related posts */ + +.related { + padding-top: 2rem; + padding-bottom: 2rem; + border-top: 1px solid #eee; +} + +.related-posts { + padding-left: 0; + list-style: none; + h3 { + margin-top: 0; + } + li { + small { + font-size: 75%; + color: #999; + } + a:hover { + color: #268bd2; + text-decoration: none; + small { + color: inherit; + } } } } -.header a.extra { - color: #aaa; - margin-left: 1em; - &:hover { - color: #000; +/* + * Pagination + * + * Super lightweight (HTML-wise) blog pagination. `span`s are provide for when + * there are no more previous or next posts to show. + */ + +.pagination { + overflow: hidden; + /* clearfix */ + margin-left: -1rem; + margin-right: -1rem; + font-family: "PT Sans", Helvetica, Arial, sans-serif; + color: #ccc; + text-align: center; +} + +/* Pagination items can be `span`s or `a`s */ + +.pagination-item { + display: block; + padding: 1rem; + border: 1px solid #eee; + &:first-child { + margin-bottom: -1px; } } -.meta { - color: #aaa; +/* Only provide a hover state for linked pagination items */ + +a.pagination-item:hover { + background-color: #f5f5f5; } -.footer { - font-size: 80%; - color: #666; - border-top: 4px solid #eee; - margin-top: 2em; - overflow: hidden; - .contact { +@media (min-width: 30rem) { + .pagination { + margin: 3rem 0; + } + .pagination-item { float: left; - margin-right: 3em; - a { - color: #8085C1; + width: 50%; + &:first-child { + margin-bottom: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; } - } - .rss { - margin-top: 1.1em; - margin-right: -.2em; - float: right; - img { - border: 0; + &:last-child { + margin-left: -1px; + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; } } } -/*****************************************************************************/ /* -/* Posts + * Reverse layout + * + * Flip the orientation of the page by placing the `.sidebar` and sidebar toggle + * on the right side. + */ + +.layout-reverse { + .sidebar { + left: auto; + right: -14rem; + } + .sidebar-toggle { + left: auto; + right: 1rem; + } + #sidebar-checkbox:checked ~ { + .sidebar, .wrap, .sidebar-toggle { + -webkit-transform: translateX(-14rem); + -ms-transform: translateX(-14rem); + transform: translateX(-14rem); + } + } +} + /* -/*****************************************************************************/ + * Themes + * + * Apply custom color schemes by adding the appropriate class to the `body`. + * Based on colors from Base16: http://chriskempson.github.io/base16/#default. + */ + +/* Red */ -/* standard */ +.theme-base-08 { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #ac4142; + } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #ac4142; + } +} -.post { - pre { - border: 1px solid #ddd; - background-color: #eef; - padding: 0 .4em; +/* Orange */ + +.theme-base-09 { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #d28445; } - ul, ol { - margin-left: 1.35em; + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #d28445; } - code { - border: 1px solid #ddd; - background-color: #eef; - padding: 0 .2em; +} + +/* Yellow */ + +.theme-base-0a { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #f4bf75; } - pre { - code { - border: none; - } - /* terminal */ - &.terminal { - border: 1px solid #000; - background-color: #333; - color: #FFF; - code { - background-color: #333; - } - } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #f4bf75; + } +} + +/* Green */ + +.theme-base-0b { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #90a959; + } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #90a959; + } +} + +/* Cyan */ + +.theme-base-0c { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #75b5aa; + } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #75b5aa; + } +} + +/* Blue */ + +.theme-base-0d { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #6a9fb5; + } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #6a9fb5; + } +} + +/* Magenta */ + +.theme-base-0e { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #aa759f; + } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #aa759f; + } +} + +/* Brown */ + +.theme-base-0f { + .sidebar, .sidebar-toggle:active, #sidebar-checkbox:checked ~ .sidebar-toggle { + background-color: #8f5536; + } + .container a, .sidebar-toggle, .related-posts li a:hover { + color: #8f5536; } } diff --git a/app/templates/app/assets/_scss/syntax.scss b/app/templates/app/assets/_scss/syntax.scss index 26da07f..5aa1e8a 100644 --- a/app/templates/app/assets/_scss/syntax.scss +++ b/app/templates/app/assets/_scss/syntax.scss @@ -1,143 +1,66 @@ -.highlight { - background: #ffffff; - .c { /* Comment */ - color: #999988; - font-style: italic; - } - .err { /* Error */ - color: #a61717; - background-color: #e3d2d2; - } - .k, .o { /* Keyword & Operator */ - font-weight: bold; - } - .cm { /* Comment.Multiline */ - color: #999988; - font-style: italic; - } - .cp { /* Comment.Preproc */ - color: #999999; - font-weight: bold; - } - .c1 { /* Comment.Single */ - color: #999988; - font-style: italic; - } - .cs { /* Comment.Special */ - color: #999999; - font-weight: bold; - font-style: italic; - } - .gd { /* Generic.Deleted */ - color: #000000; - background-color: #ffdddd; - .x { /* Generic.Deleted.Specific */ - color: #000000; - background-color: #ffaaaa; - } - } - .ge { /* Generic.Emph */ - font-style: italic; - } - .gr { /* Generic.Error */ - color: #aa0000; - } - .gh { /* Generic.Heading */ - color: #999999; - } - .gi { /* Generic.Inserted */ - color: #000000; - background-color: #ddffdd; - .x { /* Generic.Inserted.Specific */ - color: #000000; - background-color: #aaffaa; - } - } - .go { /* Generic.Output */ - color: #888888; - } - .gp { /* Generic.Prompt */ - color: #555555; - } - .gs { /* Generic.Strong */ - font-weight: bold; - } - .gu { /* Generic.Subheading */ - color: #aaaaaa; - } - .gt { /* Generic.Traceback */ - color: #aa0000; - } - .kc, .kd, .kp, .kr { /* Keyword.{Constant,Declaration,Pseudo,Reserved} */ - font-weight: bold; - } - .kt { /* Keyword.Type */ - color: #445588; - font-weight: bold; - } - .m { /* Literal.Number */ - color: #009999; - } - .s { /* Literal.String */ - color: #dd1144; - } - .na { /* Name.Attribute */ - color: teal; - } - .nb { /* Name.Builtin */ - color: #0086b3; - } - .nc { /* Name.Class */ - color: #445588; - font-weight: bold; - } - .no { /* Name.Constant */ - color: teal; - } - .ni { /* Name.Entity */ - color: purple; - } - .ne, .nf { /* Name.Exception & Name.Function */ - color: #990000; - font-weight: bold; - } - .nn { /* Name.Namespace */ - color: #555555; - } - .nt { /* Name.Tag */ - color: navy; - } - .nv { /* Name.Variable */ - color: teal; - } - .ow { /* Operator.Word */ - font-weight: bold; - } - .w { /* Text.Whitespace */ - color: #bbbbbb; - } - .mf, .mh, .mi, .mo { /* Literal.Number.{Float,Hex,Integer,Oct} */ - color: #009999; - } - .sb, .sc, .sd, .s2, .se, .sh, .si, .sx { /* Literal.String.{Backtick,Char,Doc,Double,Escape,Heredoc,Interpol,Other} */ - color: #dd1144; - } - .sr { /* Literal.String.Regex */ - color: #009926; - } - .s1 { /* Literal.String.Single */ - color: #dd1144; - } - .ss { /* Literal.String.Symbol */ - color: #990073; - } - .bp { /* Name.Builtin.Pseudo */ - color: #999999; - } - .vc, .vg, .vi { /* Name.Variable.{Class,Global,Instance} */ - color: teal; - } - .il { /* Literal.Number.Integer.Long */ - color: #009999; - } -} \ No newline at end of file +.hll { background-color: #ffffcc } + //{ background: #f0f3f3; } +.c { color: #999; } // Comment +.err { color: #AA0000; background-color: #FFAAAA } // Error +.k { color: #006699; } // Keyword +.o { color: #555555 } // Operator +.cm { color: #0099FF; font-style: italic } // Comment.Multiline +.cp { color: #009999 } // Comment.Preproc +.c1 { color: #999; } // Comment.Single +.cs { color: #999; } // Comment.Special +.gd { background-color: #FFCCCC; border: 1px solid #CC0000 } // Generic.Deleted +.ge { font-style: italic } // Generic.Emph +.gr { color: #FF0000 } // Generic.Error +.gh { color: #003300; } // Generic.Heading +.gi { background-color: #CCFFCC; border: 1px solid #00CC00 } // Generic.Inserted +.go { color: #AAAAAA } // Generic.Output +.gp { color: #000099; } // Generic.Prompt +.gs { } // Generic.Strong +.gu { color: #003300; } // Generic.Subheading +.gt { color: #99CC66 } // Generic.Traceback +.kc { color: #006699; } // Keyword.Constant +.kd { color: #006699; } // Keyword.Declaration +.kn { color: #006699; } // Keyword.Namespace +.kp { color: #006699 } // Keyword.Pseudo +.kr { color: #006699; } // Keyword.Reserved +.kt { color: #007788; } // Keyword.Type +.m { color: #FF6600 } // Literal.Number +.s { color: #d44950 } // Literal.String +.na { color: #4f9fcf } // Name.Attribute +.nb { color: #336666 } // Name.Builtin +.nc { color: #00AA88; } // Name.Class +.no { color: #336600 } // Name.Constant +.nd { color: #9999FF } // Name.Decorator +.ni { color: #999999; } // Name.Entity +.ne { color: #CC0000; } // Name.Exception +.nf { color: #CC00FF } // Name.Function +.nl { color: #9999FF } // Name.Label +.nn { color: #00CCFF; } // Name.Namespace +.nt { color: #2f6f9f; } // Name.Tag +.nv { color: #003333 } // Name.Variable +.ow { color: #000000; } // Operator.Word +.w { color: #bbbbbb } // Text.Whitespace +.mf { color: #FF6600 } // Literal.Number.Float +.mh { color: #FF6600 } // Literal.Number.Hex +.mi { color: #FF6600 } // Literal.Number.Integer +.mo { color: #FF6600 } // Literal.Number.Oct +.sb { color: #CC3300 } // Literal.String.Backtick +.sc { color: #CC3300 } // Literal.String.Char +.sd { color: #CC3300; font-style: italic } // Literal.String.Doc +.s2 { color: #CC3300 } // Literal.String.Double +.se { color: #CC3300; } // Literal.String.Escape +.sh { color: #CC3300 } // Literal.String.Heredoc +.si { color: #AA0000 } // Literal.String.Interpol +.sx { color: #CC3300 } // Literal.String.Other +.sr { color: #33AAAA } // Literal.String.Regex +.s1 { color: #CC3300 } // Literal.String.Single +.ss { color: #FFCC33 } // Literal.String.Symbol +.bp { color: #336666 } // Name.Builtin.Pseudo +.vc { color: #003333 } // Name.Variable.Class +.vg { color: #003333 } // Name.Variable.Global +.vi { color: #003333 } // Name.Variable.Instance +.il { color: #FF6600 } // Literal.Number.Integer.Long + +.css .o, +.css .o + .nt, +.css .nt + .nt { color: #999; } diff --git a/app/templates/app/assets/apple-touch-icon-144-precomposed.png b/app/templates/app/assets/apple-touch-icon-144-precomposed.png new file mode 100644 index 0000000..177bbae Binary files /dev/null and b/app/templates/app/assets/apple-touch-icon-144-precomposed.png differ diff --git a/app/templates/app/assets/favicon.ico b/app/templates/app/assets/favicon.ico new file mode 100644 index 0000000..34b4206 Binary files /dev/null and b/app/templates/app/assets/favicon.ico differ diff --git a/app/templates/app/assets/images/logo-2x.png b/app/templates/app/assets/images/logo-2x.png deleted file mode 100644 index bc84a9e..0000000 Binary files a/app/templates/app/assets/images/logo-2x.png and /dev/null differ diff --git a/app/templates/app/assets/javascript/fastclick.js b/app/templates/app/assets/javascript/fastclick.js deleted file mode 100644 index 193714a..0000000 --- a/app/templates/app/assets/javascript/fastclick.js +++ /dev/null @@ -1,772 +0,0 @@ -/** - * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. - * - * @version 1.0.0 - * @codingstandard ftlabs-jsv2 - * @copyright The Financial Times Limited [All Rights Reserved] - * @license MIT License (see LICENSE.txt) - */ - -/*jslint browser:true, node:true*/ -/*global define, Event, Node*/ - - -/** - * Instantiate fast-clicking listeners on the specificed layer. - * - * @constructor - * @param {Element} layer The layer to listen on - */ -function FastClick(layer) { - 'use strict'; - var oldOnClick; - - - /** - * Whether a click is currently being tracked. - * - * @type boolean - */ - this.trackingClick = false; - - - /** - * Timestamp for when when click tracking started. - * - * @type number - */ - this.trackingClickStart = 0; - - - /** - * The element being tracked for a click. - * - * @type EventTarget - */ - this.targetElement = null; - - - /** - * X-coordinate of touch start event. - * - * @type number - */ - this.touchStartX = 0; - - - /** - * Y-coordinate of touch start event. - * - * @type number - */ - this.touchStartY = 0; - - - /** - * ID of the last touch, retrieved from Touch.identifier. - * - * @type number - */ - this.lastTouchIdentifier = 0; - - - /** - * Touchmove boundary, beyond which a click will be cancelled. - * - * @type number - */ - this.touchBoundary = 10; - - - /** - * The FastClick layer. - * - * @type Element - */ - this.layer = layer; - - if (FastClick.notNeeded(layer)) { - return; - } - - // Some old versions of Android don't have Function.prototype.bind - function bind(method, context) { - return function() { return method.apply(context, arguments); }; - } - - // Set up event handlers as required - if (deviceIsAndroid) { - layer.addEventListener('mouseover', bind(this.onMouse, this), true); - layer.addEventListener('mousedown', bind(this.onMouse, this), true); - layer.addEventListener('mouseup', bind(this.onMouse, this), true); - } - - layer.addEventListener('click', bind(this.onClick, this), true); - layer.addEventListener('touchstart', bind(this.onTouchStart, this), false); - layer.addEventListener('touchmove', bind(this.onTouchMove, this), false); - layer.addEventListener('touchend', bind(this.onTouchEnd, this), false); - layer.addEventListener('touchcancel', bind(this.onTouchCancel, this), false); - - // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) - // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick - // layer when they are cancelled. - if (!Event.prototype.stopImmediatePropagation) { - layer.removeEventListener = function(type, callback, capture) { - var rmv = Node.prototype.removeEventListener; - if (type === 'click') { - rmv.call(layer, type, callback.hijacked || callback, capture); - } else { - rmv.call(layer, type, callback, capture); - } - }; - - layer.addEventListener = function(type, callback, capture) { - var adv = Node.prototype.addEventListener; - if (type === 'click') { - adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) { - if (!event.propagationStopped) { - callback(event); - } - }), capture); - } else { - adv.call(layer, type, callback, capture); - } - }; - } - - // If a handler is already declared in the element's onclick attribute, it will be fired before - // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and - // adding it as listener. - if (typeof layer.onclick === 'function') { - - // Android browser on at least 3.2 requires a new reference to the function in layer.onclick - // - the old one won't work if passed to addEventListener directly. - oldOnClick = layer.onclick; - layer.addEventListener('click', function(event) { - oldOnClick(event); - }, false); - layer.onclick = null; - } -} - - -/** - * Android requires exceptions. - * - * @type boolean - */ -var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0; - - -/** - * iOS requires exceptions. - * - * @type boolean - */ -var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent); - - -/** - * iOS 4 requires an exception for select elements. - * - * @type boolean - */ -var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); - - -/** - * iOS 6.0(+?) requires the target element to be manually derived - * - * @type boolean - */ -var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent); - - -/** - * Determine whether a given element requires a native click. - * - * @param {EventTarget|Element} target Target DOM element - * @returns {boolean} Returns true if the element needs a native click - */ -FastClick.prototype.needsClick = function(target) { - 'use strict'; - switch (target.nodeName.toLowerCase()) { - - // Don't send a synthetic click to disabled inputs (issue #62) - case 'button': - case 'select': - case 'textarea': - if (target.disabled) { - return true; - } - - break; - case 'input': - - // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) - if ((deviceIsIOS && target.type === 'file') || target.disabled) { - return true; - } - - break; - case 'label': - case 'video': - return true; - } - - return (/\bneedsclick\b/).test(target.className); -}; - - -/** - * Determine whether a given element requires a call to focus to simulate click into element. - * - * @param {EventTarget|Element} target Target DOM element - * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. - */ -FastClick.prototype.needsFocus = function(target) { - 'use strict'; - switch (target.nodeName.toLowerCase()) { - case 'textarea': - return true; - case 'select': - return !deviceIsAndroid; - case 'input': - switch (target.type) { - case 'button': - case 'checkbox': - case 'file': - case 'image': - case 'radio': - case 'submit': - return false; - } - - // No point in attempting to focus disabled inputs - return !target.disabled && !target.readOnly; - default: - return (/\bneedsfocus\b/).test(target.className); - } -}; - - -/** - * Send a click event to the specified element. - * - * @param {EventTarget|Element} targetElement - * @param {Event} event - */ -FastClick.prototype.sendClick = function(targetElement, event) { - 'use strict'; - var clickEvent, touch; - - // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) - if (document.activeElement && document.activeElement !== targetElement) { - document.activeElement.blur(); - } - - touch = event.changedTouches[0]; - - // Synthesise a click event, with an extra attribute so it can be tracked - clickEvent = document.createEvent('MouseEvents'); - clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); - clickEvent.forwardedTouchEvent = true; - targetElement.dispatchEvent(clickEvent); -}; - -FastClick.prototype.determineEventType = function(targetElement) { - 'use strict'; - - //Issue #159: Android Chrome Select Box does not open with a synthetic click event - if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { - return 'mousedown'; - } - - return 'click'; -}; - - -/** - * @param {EventTarget|Element} targetElement - */ -FastClick.prototype.focus = function(targetElement) { - 'use strict'; - var length; - - // Issue #160: on iOS 7, some input elements (e.g. date datetime) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. - if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time') { - length = targetElement.value.length; - targetElement.setSelectionRange(length, length); - } else { - targetElement.focus(); - } -}; - - -/** - * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. - * - * @param {EventTarget|Element} targetElement - */ -FastClick.prototype.updateScrollParent = function(targetElement) { - 'use strict'; - var scrollParent, parentElement; - - scrollParent = targetElement.fastClickScrollParent; - - // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the - // target element was moved to another parent. - if (!scrollParent || !scrollParent.contains(targetElement)) { - parentElement = targetElement; - do { - if (parentElement.scrollHeight > parentElement.offsetHeight) { - scrollParent = parentElement; - targetElement.fastClickScrollParent = parentElement; - break; - } - - parentElement = parentElement.parentElement; - } while (parentElement); - } - - // Always update the scroll top tracker if possible. - if (scrollParent) { - scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; - } -}; - - -/** - * @param {EventTarget} targetElement - * @returns {Element|EventTarget} - */ -FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { - 'use strict'; - - // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. - if (eventTarget.nodeType === Node.TEXT_NODE) { - return eventTarget.parentNode; - } - - return eventTarget; -}; - - -/** - * On touch start, record the position and scroll offset. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onTouchStart = function(event) { - 'use strict'; - var targetElement, touch, selection; - - // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). - if (event.targetTouches.length > 1) { - return true; - } - - targetElement = this.getTargetElementFromEventTarget(event.target); - touch = event.targetTouches[0]; - - if (deviceIsIOS) { - - // Only trusted events will deselect text on iOS (issue #49) - selection = window.getSelection(); - if (selection.rangeCount && !selection.isCollapsed) { - return true; - } - - if (!deviceIsIOS4) { - - // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): - // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched - // with the same identifier as the touch event that previously triggered the click that triggered the alert. - // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an - // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. - if (touch.identifier === this.lastTouchIdentifier) { - event.preventDefault(); - return false; - } - - this.lastTouchIdentifier = touch.identifier; - - // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: - // 1) the user does a fling scroll on the scrollable layer - // 2) the user stops the fling scroll with another tap - // then the event.target of the last 'touchend' event will be the element that was under the user's finger - // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check - // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). - this.updateScrollParent(targetElement); - } - } - - this.trackingClick = true; - this.trackingClickStart = event.timeStamp; - this.targetElement = targetElement; - - this.touchStartX = touch.pageX; - this.touchStartY = touch.pageY; - - // Prevent phantom clicks on fast double-tap (issue #36) - if ((event.timeStamp - this.lastClickTime) < 200) { - event.preventDefault(); - } - - return true; -}; - - -/** - * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.touchHasMoved = function(event) { - 'use strict'; - var touch = event.changedTouches[0], boundary = this.touchBoundary; - - if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { - return true; - } - - return false; -}; - - -/** - * Update the last position. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onTouchMove = function(event) { - 'use strict'; - if (!this.trackingClick) { - return true; - } - - // If the touch has moved, cancel the click tracking - if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { - this.trackingClick = false; - this.targetElement = null; - } - - return true; -}; - - -/** - * Attempt to find the labelled control for the given label element. - * - * @param {EventTarget|HTMLLabelElement} labelElement - * @returns {Element|null} - */ -FastClick.prototype.findControl = function(labelElement) { - 'use strict'; - - // Fast path for newer browsers supporting the HTML5 control attribute - if (labelElement.control !== undefined) { - return labelElement.control; - } - - // All browsers under test that support touch events also support the HTML5 htmlFor attribute - if (labelElement.htmlFor) { - return document.getElementById(labelElement.htmlFor); - } - - // If no for attribute exists, attempt to retrieve the first labellable descendant element - // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label - return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); -}; - - -/** - * On touch end, determine whether to send a click event at once. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onTouchEnd = function(event) { - 'use strict'; - var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; - - if (!this.trackingClick) { - return true; - } - - // Prevent phantom clicks on fast double-tap (issue #36) - if ((event.timeStamp - this.lastClickTime) < 200) { - this.cancelNextClick = true; - return true; - } - - // Reset to prevent wrong click cancel on input (issue #156). - this.cancelNextClick = false; - - this.lastClickTime = event.timeStamp; - - trackingClickStart = this.trackingClickStart; - this.trackingClick = false; - this.trackingClickStart = 0; - - // On some iOS devices, the targetElement supplied with the event is invalid if the layer - // is performing a transition or scroll, and has to be re-detected manually. Note that - // for this to function correctly, it must be called *after* the event target is checked! - // See issue #57; also filed as rdar://13048589 . - if (deviceIsIOSWithBadTarget) { - touch = event.changedTouches[0]; - - // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null - targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; - targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; - } - - targetTagName = targetElement.tagName.toLowerCase(); - if (targetTagName === 'label') { - forElement = this.findControl(targetElement); - if (forElement) { - this.focus(targetElement); - if (deviceIsAndroid) { - return false; - } - - targetElement = forElement; - } - } else if (this.needsFocus(targetElement)) { - - // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. - // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). - if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) { - this.targetElement = null; - return false; - } - - this.focus(targetElement); - this.sendClick(targetElement, event); - - // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. - if (!deviceIsIOS4 || targetTagName !== 'select') { - this.targetElement = null; - event.preventDefault(); - } - - return false; - } - - if (deviceIsIOS && !deviceIsIOS4) { - - // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled - // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). - scrollParent = targetElement.fastClickScrollParent; - if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { - return true; - } - } - - // Prevent the actual click from going though - unless the target node is marked as requiring - // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. - if (!this.needsClick(targetElement)) { - event.preventDefault(); - this.sendClick(targetElement, event); - } - - return false; -}; - - -/** - * On touch cancel, stop tracking the click. - * - * @returns {void} - */ -FastClick.prototype.onTouchCancel = function() { - 'use strict'; - this.trackingClick = false; - this.targetElement = null; -}; - - -/** - * Determine mouse events which should be permitted. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onMouse = function(event) { - 'use strict'; - - // If a target element was never set (because a touch event was never fired) allow the event - if (!this.targetElement) { - return true; - } - - if (event.forwardedTouchEvent) { - return true; - } - - // Programmatically generated events targeting a specific element should be permitted - if (!event.cancelable) { - return true; - } - - // Derive and check the target element to see whether the mouse event needs to be permitted; - // unless explicitly enabled, prevent non-touch click events from triggering actions, - // to prevent ghost/doubleclicks. - if (!this.needsClick(this.targetElement) || this.cancelNextClick) { - - // Prevent any user-added listeners declared on FastClick element from being fired. - if (event.stopImmediatePropagation) { - event.stopImmediatePropagation(); - } else { - - // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) - event.propagationStopped = true; - } - - // Cancel the event - event.stopPropagation(); - event.preventDefault(); - - return false; - } - - // If the mouse event is permitted, return true for the action to go through. - return true; -}; - - -/** - * On actual clicks, determine whether this is a touch-generated click, a click action occurring - * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or - * an actual click which should be permitted. - * - * @param {Event} event - * @returns {boolean} - */ -FastClick.prototype.onClick = function(event) { - 'use strict'; - var permitted; - - // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. - if (this.trackingClick) { - this.targetElement = null; - this.trackingClick = false; - return true; - } - - // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. - if (event.target.type === 'submit' && event.detail === 0) { - return true; - } - - permitted = this.onMouse(event); - - // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. - if (!permitted) { - this.targetElement = null; - } - - // If clicks are permitted, return true for the action to go through. - return permitted; -}; - - -/** - * Remove all FastClick's event listeners. - * - * @returns {void} - */ -FastClick.prototype.destroy = function() { - 'use strict'; - var layer = this.layer; - - if (deviceIsAndroid) { - layer.removeEventListener('mouseover', this.onMouse, true); - layer.removeEventListener('mousedown', this.onMouse, true); - layer.removeEventListener('mouseup', this.onMouse, true); - } - - layer.removeEventListener('click', this.onClick, true); - layer.removeEventListener('touchstart', this.onTouchStart, false); - layer.removeEventListener('touchmove', this.onTouchMove, false); - layer.removeEventListener('touchend', this.onTouchEnd, false); - layer.removeEventListener('touchcancel', this.onTouchCancel, false); -}; - - -/** - * Check whether FastClick is needed. - * - * @param {Element} layer The layer to listen on - */ -FastClick.notNeeded = function(layer) { - 'use strict'; - var metaViewport; - var chromeVersion; - - // Devices that don't support touch don't need FastClick - if (typeof window.ontouchstart === 'undefined') { - return true; - } - - // Chrome version - zero for other browsers - chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; - - if (chromeVersion) { - - if (deviceIsAndroid) { - metaViewport = document.querySelector('meta[name=viewport]'); - - if (metaViewport) { - // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) - if (metaViewport.content.indexOf('user-scalable=no') !== -1) { - return true; - } - // Chrome 32 and above with width=device-width or less don't need FastClick - if (chromeVersion > 31 && window.innerWidth <= window.screen.width) { - return true; - } - } - - // Chrome desktop doesn't need FastClick (issue #15) - } else { - return true; - } - } - - // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97) - if (layer.style.msTouchAction === 'none') { - return true; - } - - return false; -}; - - -/** - * Factory method for creating a FastClick object - * - * @param {Element} layer The layer to listen on - */ -FastClick.attach = function(layer) { - 'use strict'; - return new FastClick(layer); -}; - - -if (typeof define !== 'undefined' && define.amd) { - - // AMD. Register as an anonymous module. - define(function() { - 'use strict'; - return FastClick; - }); -} else if (typeof module !== 'undefined' && module.exports) { - module.exports = FastClick.attach; - module.exports.FastClick = FastClick; -} else { - window.FastClick = FastClick; -} \ No newline at end of file diff --git a/app/templates/app/assets/javascript/ngprogress.js b/app/templates/app/assets/javascript/ngprogress.js deleted file mode 100644 index 240fceb..0000000 --- a/app/templates/app/assets/javascript/ngprogress.js +++ /dev/null @@ -1,314 +0,0 @@ -/*! NProgress (c) 2013, Rico Sta. Cruz - * http://ricostacruz.com/nprogress */ - -;(function(factory) { - - if (typeof module === 'function') { - module.exports = factory(this.jQuery || require('jquery')); - } else if (typeof define === 'function' && define.amd) { - define(['jquery'], function($) { - return factory($); - }); - } else { - this.NProgress = factory(this.jQuery); - } - -})(function($) { - var NProgress = {}; - - NProgress.version = '0.1.2'; - - var Settings = NProgress.settings = { - minimum: 0.08, - easing: 'ease', - positionUsing: '', - speed: 200, - trickle: true, - trickleRate: 0.02, - trickleSpeed: 800, - showSpinner: true, - template: '
And a test paragraph. Make some changes... It still works, right?
+