From 183a308167ba22e2ca4aa4df8a191844e547250b Mon Sep 17 00:00:00 2001 From: Tarpit Grover Date: Tue, 24 Mar 2015 01:21:20 +0530 Subject: [PATCH] first commit --- about/about-partial.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++ config.codekit | 880 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ home/home-partial.html | 29 +++++++++++++++++++++++++++++ includes/css/style.css | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ includes/js/min/page-scripts-min.js | 1 + includes/js/page-scripts.js | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ includes/less/style.less | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 1364 insertions(+), 0 deletions(-) create mode 100644 about/about-partial.html create mode 100644 config.codekit create mode 100644 home/home-partial.html create mode 100644 includes/css/style.css create mode 100644 includes/js/min/page-scripts-min.js create mode 100644 includes/js/page-scripts.js create mode 100644 includes/less/style.less create mode 100644 index.html diff --git a/about/about-partial.html b/about/about-partial.html new file mode 100644 index 0000000..e19eb8f --- /dev/null +++ b/about/about-partial.html @@ -0,0 +1,46 @@ +
+

Todo List App

+
+
+
Add Task
+
+ + +
+
+ + +
+ +
+
+
View Task
+ + + + + + + + + + + + + + + +
TasksActions
+
+    +
+    + + {{todo.taskname}}
+
+
+
+
+ +
\ No newline at end of file diff --git a/config.codekit b/config.codekit new file mode 100644 index 0000000..9eeac7a --- /dev/null +++ b/config.codekit @@ -0,0 +1,880 @@ +{ +"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit", +"creatorBuild": "18493", +"files": { + "\/includes\/css\/style.css": { + "fileType": 16, + "ignore": 1, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/includes\/css\/style.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, + "\/includes\/js\/page-scripts.js": { + "fileType": 64, + "ignore": 1, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/includes\/js\/page-scripts.js", + "outputAbbreviatedPath": "\/includes\/js\/min\/page-scripts-min.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 0, + "syntaxCheckerStyle": 0 + }, + "\/includes\/less\/style.less": { + "allowInsecureImports": 0, + "createSourceMap": 0, + "disableJavascript": 0, + "fileType": 1, + "ieCompatibility": 1, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/includes\/less\/style.less", + "outputAbbreviatedPath": "\/includes\/css\/style.css", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 0, + "relativeURLS": 0, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0, + "strictImports": 0, + "strictMath": 0, + "strictUnits": 0 + }, + "\/index.html": { + "fileType": 8192, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/index.html", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + } + }, +"hooks": [ + ], +"lastSavedByUser": "Tarpit Grover", +"manualImportLinks": { + }, +"projectAttributes": { + "bowerAbbreviatedPath": "", + "displayValue": "AppStore", + "displayValueWasSetByUser": 0, + "iconImageName": "globe_orange" + }, +"projectSettings": { + "alwaysUseExternalServer": 0, + "animateCSSInjections": 1, + "autoApplyPSLanguageSettingsStyle": 0, + "autoprefixerBrowserString": "> 1%, last 2 versions, Firefox ESR, Opera 12.1", + "autoSyncProjectSettingsFile": 1, + "browserRefreshDelay": 0, + "coffeeAutoOutputPathEnabled": 1, + "coffeeAutoOutputPathFilenamePattern": "*.js", + "coffeeAutoOutputPathRelativePath": "", + "coffeeAutoOutputPathReplace1": "", + "coffeeAutoOutputPathReplace2": "", + "coffeeAutoOutputPathStyle": 0, + "coffeeCreateSourceMap": 0, + "coffeeLintFlags2": { + "arrow_spacing": { + "active": 0, + "flagValue": -1 + }, + "camel_case_classes": { + "active": 1, + "flagValue": -1 + }, + "colon_assignment_spacing": { + "active": 0, + "flagValue": 1 + }, + "cyclomatic_complexity": { + "active": 0, + "flagValue": 10 + }, + "duplicate_key": { + "active": 1, + "flagValue": -1 + }, + "empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "ensure_comprehensions": { + "active": 1, + "flagValue": -1 + }, + "indentation": { + "active": 1, + "flagValue": 2 + }, + "line_endings": { + "active": 0, + "flagValue": 0 + }, + "max_line_length": { + "active": 0, + "flagValue": 150 + }, + "missing_fat_arrows": { + "active": 0, + "flagValue": -1 + }, + "newlines_after_classes": { + "active": 0, + "flagValue": 3 + }, + "no_backticks": { + "active": 1, + "flagValue": -1 + }, + "no_debugger": { + "active": 1, + "flagValue": -1 + }, + "no_empty_functions": { + "active": 0, + "flagValue": -1 + }, + "no_empty_param_list": { + "active": 0, + "flagValue": -1 + }, + "no_implicit_braces": { + "active": 1, + "flagValue": -1 + }, + "no_implicit_parens": { + "active": 0, + "flagValue": -1 + }, + "no_interpolation_in_single_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_plusplus": { + "active": 0, + "flagValue": -1 + }, + "no_stand_alone_at": { + "active": 1, + "flagValue": -1 + }, + "no_tabs": { + "active": 1, + "flagValue": -1 + }, + "no_throwing_strings": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_semicolons": { + "active": 1, + "flagValue": -1 + }, + "no_trailing_whitespace": { + "active": 1, + "flagValue": -1 + }, + "no_unnecessary_double_quotes": { + "active": 0, + "flagValue": -1 + }, + "no_unnecessary_fat_arrows": { + "active": 1, + "flagValue": -1 + }, + "non_empty_constructor_needs_parens": { + "active": 0, + "flagValue": -1 + }, + "prefer_english_operator": { + "active": 0, + "flagValue": -1 + }, + "space_operators": { + "active": 0, + "flagValue": -1 + }, + "spacing_after_comma": { + "active": 1, + "flagValue": -1 + } + }, + "coffeeMinifyOutput": 1, + "coffeeOutputStyle": 0, + "coffeeSyntaxCheckerStyle": 1, + "externalServerAddress": "http:\/\/localhost:8888", + "externalServerPreviewPathAddition": "", + "genericWebpageFileExtensionsString": "html, htm, shtml, shtm, xhtml, php, jsp, asp, aspx, erb, ctp", + "hamlAutoOutputPathEnabled": 1, + "hamlAutoOutputPathFilenamePattern": "*.html", + "hamlAutoOutputPathRelativePath": "", + "hamlAutoOutputPathReplace1": "", + "hamlAutoOutputPathReplace2": "", + "hamlAutoOutputPathStyle": 0, + "hamlEscapeHTMLCharacters": 0, + "hamlNoEscapeInAttributes": 0, + "hamlOutputFormat": 2, + "hamlOutputStyle": 0, + "hamlUseCDATA": 0, + "hamlUseDoubleQuotes": 0, + "hamlUseUnixNewlines": 0, + "jadeAutoOutputPathEnabled": 1, + "jadeAutoOutputPathFilenamePattern": "*.html", + "jadeAutoOutputPathRelativePath": "", + "jadeAutoOutputPathReplace1": "", + "jadeAutoOutputPathReplace2": "", + "jadeAutoOutputPathStyle": 0, + "jadeCompileDebug": 1, + "jadeOutputStyle": 0, + "javascriptAutoOutputPathEnabled": 0, + "javascriptAutoOutputPathFilenamePattern": "*-min.js", + "javascriptAutoOutputPathRelativePath": "\/min", + "javascriptAutoOutputPathReplace1": "", + "javascriptAutoOutputPathReplace2": "", + "javascriptAutoOutputPathStyle": 2, + "javascriptCreateSourceMap": 1, + "javascriptOutputStyle": 0, + "javascriptSyntaxCheckerStyle": 0, + "jsCheckerReservedNamesString": "", + "jsHintFlags2": { + "asi": { + "active": 0, + "flagValue": -1 + }, + "bitwise": { + "active": 1, + "flagValue": -1 + }, + "boss": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "browserify": { + "active": 0, + "flagValue": -1 + }, + "camelcase": { + "active": 0, + "flagValue": -1 + }, + "couch": { + "active": 0, + "flagValue": -1 + }, + "curly": { + "active": 1, + "flagValue": -1 + }, + "debug": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "dojo": { + "active": 0, + "flagValue": -1 + }, + "elision": { + "active": 1, + "flagValue": -1 + }, + "eqeqeq": { + "active": 1, + "flagValue": -1 + }, + "eqnull": { + "active": 0, + "flagValue": -1 + }, + "es3": { + "active": 0, + "flagValue": -1 + }, + "esnext": { + "active": 0, + "flagValue": -1 + }, + "evil": { + "active": 0, + "flagValue": -1 + }, + "expr": { + "active": 0, + "flagValue": -1 + }, + "forin": { + "active": 0, + "flagValue": -1 + }, + "freeze": { + "active": 1, + "flagValue": -1 + }, + "funcscope": { + "active": 0, + "flagValue": -1 + }, + "globalstrict": { + "active": 0, + "flagValue": -1 + }, + "immed": { + "active": 0, + "flagValue": -1 + }, + "indent": { + "active": 0, + "flagValue": 4 + }, + "iterator": { + "active": 0, + "flagValue": -1 + }, + "jasmine": { + "active": 0, + "flagValue": -1 + }, + "jquery": { + "active": 1, + "flagValue": -1 + }, + "lastsemic": { + "active": 0, + "flagValue": -1 + }, + "latedef": { + "active": 1, + "flagValue": -1 + }, + "laxbreak": { + "active": 0, + "flagValue": -1 + }, + "laxcomma": { + "active": 0, + "flagValue": -1 + }, + "loopfunc": { + "active": 0, + "flagValue": -1 + }, + "maxcomplexity": { + "active": 0, + "flagValue": 10 + }, + "maxdepth": { + "active": 0, + "flagValue": 3 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "maxparams": { + "active": 0, + "flagValue": 3 + }, + "maxstatements": { + "active": 0, + "flagValue": 4 + }, + "mocha": { + "active": 0, + "flagValue": -1 + }, + "mootools": { + "active": 0, + "flagValue": -1 + }, + "moz": { + "active": 0, + "flagValue": -1 + }, + "multistr": { + "active": 0, + "flagValue": -1 + }, + "newcap": { + "active": 1, + "flagValue": -1 + }, + "noarg": { + "active": 1, + "flagValue": -1 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "noempty": { + "active": 0, + "flagValue": -1 + }, + "nonbsp": { + "active": 0, + "flagValue": -1 + }, + "nonew": { + "active": 1, + "flagValue": -1 + }, + "nonstandard": { + "active": 0, + "flagValue": -1 + }, + "notypeof": { + "active": 1, + "flagValue": -1 + }, + "noyield": { + "active": 0, + "flagValue": -1 + }, + "onecase": { + "active": 0, + "flagValue": -1 + }, + "phantom": { + "active": 0, + "flagValue": -1 + }, + "plusplus": { + "active": 0, + "flagValue": -1 + }, + "proto": { + "active": 0, + "flagValue": -1 + }, + "prototypejs": { + "active": 0, + "flagValue": -1 + }, + "qunit": { + "active": 0, + "flagValue": -1 + }, + "regexp": { + "active": 1, + "flagValue": -1 + }, + "rhino": { + "active": 0, + "flagValue": -1 + }, + "scripturl": { + "active": 0, + "flagValue": -1 + }, + "shadow": { + "active": 0, + "flagValue": -1 + }, + "shelljs": { + "active": 0, + "flagValue": -1 + }, + "singleGroups": { + "active": 0, + "flagValue": -1 + }, + "strict": { + "active": 0, + "flagValue": -1 + }, + "sub": { + "active": 0, + "flagValue": -1 + }, + "supernew": { + "active": 0, + "flagValue": -1 + }, + "typed": { + "active": 0, + "flagValue": -1 + }, + "undef": { + "active": 1, + "flagValue": -1 + }, + "unused": { + "active": 1, + "flagValue": -1 + }, + "withstmt": { + "active": 0, + "flagValue": -1 + }, + "worker": { + "active": 0, + "flagValue": -1 + }, + "wsh": { + "active": 0, + "flagValue": -1 + }, + "yui": { + "active": 0, + "flagValue": -1 + } + }, + "jsLintFlags2": { + "ass": { + "active": 0, + "flagValue": -1 + }, + "bitwise": { + "active": 0, + "flagValue": -1 + }, + "browser": { + "active": 1, + "flagValue": -1 + }, + "closure": { + "active": 0, + "flagValue": -1 + }, + "continue": { + "active": 0, + "flagValue": -1 + }, + "debug": { + "active": 0, + "flagValue": -1 + }, + "devel": { + "active": 0, + "flagValue": -1 + }, + "eqeq": { + "active": 0, + "flagValue": -1 + }, + "evil": { + "active": 0, + "flagValue": -1 + }, + "forin": { + "active": 0, + "flagValue": -1 + }, + "indent": { + "active": 0, + "flagValue": 4 + }, + "maxlen": { + "active": 0, + "flagValue": 150 + }, + "newcap": { + "active": 0, + "flagValue": -1 + }, + "node": { + "active": 0, + "flagValue": -1 + }, + "nomen": { + "active": 0, + "flagValue": -1 + }, + "plusplus": { + "active": 0, + "flagValue": -1 + }, + "properties": { + "active": 0, + "flagValue": -1 + }, + "regexp": { + "active": 0, + "flagValue": -1 + }, + "rhino": { + "active": 0, + "flagValue": -1 + }, + "sloppy": { + "active": 0, + "flagValue": -1 + }, + "stupid": { + "active": 0, + "flagValue": -1 + }, + "sub": { + "active": 0, + "flagValue": -1 + }, + "todo": { + "active": 0, + "flagValue": -1 + }, + "unparam": { + "active": 0, + "flagValue": -1 + }, + "vars": { + "active": 0, + "flagValue": -1 + }, + "white": { + "active": 0, + "flagValue": -1 + } + }, + "kitAutoOutputPathEnabled": 1, + "kitAutoOutputPathFilenamePattern": "*.html", + "kitAutoOutputPathRelativePath": "", + "kitAutoOutputPathReplace1": "", + "kitAutoOutputPathReplace2": "", + "kitAutoOutputPathStyle": 0, + "lessAllowInsecureImports": 0, + "lessAutoOutputPathEnabled": 1, + "lessAutoOutputPathFilenamePattern": "*.css", + "lessAutoOutputPathRelativePath": "..\/css", + "lessAutoOutputPathReplace1": "less", + "lessAutoOutputPathReplace2": "css", + "lessAutoOutputPathStyle": 2, + "lessCreateSourceMap": 0, + "lessDisableJavascript": 0, + "lessIeCompatibility": 1, + "lessOutputStyle": 0, + "lessRelativeURLS": 0, + "lessStrictImports": 0, + "lessStrictMath": 0, + "lessStrictUnits": 0, + "markdownAutoOutputPathEnabled": 1, + "markdownAutoOutputPathFilenamePattern": "*.html", + "markdownAutoOutputPathRelativePath": "", + "markdownAutoOutputPathReplace1": "", + "markdownAutoOutputPathReplace2": "", + "markdownAutoOutputPathStyle": 0, + "markdownEnableFootnotes": 0, + "markdownEnableSmartyPants": 1, + "markdownExpandTabs": 1, + "reloadFileURLs": 0, + "sassAutoOutputPathEnabled": 1, + "sassAutoOutputPathFilenamePattern": "*.css", + "sassAutoOutputPathRelativePath": "..\/css", + "sassAutoOutputPathReplace1": "sass", + "sassAutoOutputPathReplace2": "css", + "sassAutoOutputPathStyle": 2, + "sassCreateSourceMap": 0, + "sassDebugStyle": 0, + "sassDecimalPrecision": 10, + "sassOutputStyle": 0, + "sassUseLibsass": 0, + "shouldRunAutoprefixer": 0, + "shouldRunBless": 0, + "skippedItemsString": ".svn, .git, .hg, log, _logs, _cache, cache, logs, node_modules", + "slimAutoOutputPathEnabled": 1, + "slimAutoOutputPathFilenamePattern": "*.html", + "slimAutoOutputPathRelativePath": "", + "slimAutoOutputPathReplace1": "", + "slimAutoOutputPathReplace2": "", + "slimAutoOutputPathStyle": 0, + "slimCompileOnly": 0, + "slimLogicless": 0, + "slimOutputFormat": 0, + "slimOutputStyle": 1, + "slimRailsCompatible": 0, + "stylusAutoOutputPathEnabled": 1, + "stylusAutoOutputPathFilenamePattern": "*.css", + "stylusAutoOutputPathRelativePath": "..\/css", + "stylusAutoOutputPathReplace1": "stylus", + "stylusAutoOutputPathReplace2": "css", + "stylusAutoOutputPathStyle": 2, + "stylusCreateSourceMap": 0, + "stylusDebugStyle": 0, + "stylusImportCSS": 0, + "stylusOutputStyle": 0, + "stylusResolveRelativeURLS": 0, + "typescriptAutoOutputPathEnabled": 1, + "typescriptAutoOutputPathFilenamePattern": "*.js", + "typescriptAutoOutputPathRelativePath": "\/js", + "typescriptAutoOutputPathReplace1": "", + "typescriptAutoOutputPathReplace2": "", + "typescriptAutoOutputPathStyle": 2, + "typescriptCreateDeclarationFile": 0, + "typescriptCreateSourceMap": 0, + "typescriptMinifyOutput": 0, + "typescriptModuleType": 0, + "typescriptNoImplicitAny": 0, + "typescriptPreserveConstEnums": 0, + "typescriptRemoveComments": 0, + "typescriptSuppressImplicitAnyIndexErrors": 0, + "typescriptTargetECMAVersion": 0, + "uglifyDefinesString": "", + "uglifyFlags2": { + "ascii-only": { + "active": 0, + "flagValue": -1 + }, + "booleans": { + "active": 1, + "flagValue": -1 + }, + "bracketize": { + "active": 0, + "flagValue": -1 + }, + "cascade": { + "active": 1, + "flagValue": -1 + }, + "comments": { + "active": 1, + "flagValue": -1 + }, + "comparisons": { + "active": 1, + "flagValue": -1 + }, + "compress": { + "active": 1, + "flagValue": -1 + }, + "conditionals": { + "active": 1, + "flagValue": -1 + }, + "dead_code": { + "active": 0, + "flagValue": -1 + }, + "drop_console": { + "active": 0, + "flagValue": -1 + }, + "drop_debugger": { + "active": 1, + "flagValue": -1 + }, + "eval": { + "active": 0, + "flagValue": -1 + }, + "evaluate": { + "active": 1, + "flagValue": -1 + }, + "hoist_funs": { + "active": 1, + "flagValue": -1 + }, + "hoist_vars": { + "active": 0, + "flagValue": -1 + }, + "if_return": { + "active": 1, + "flagValue": -1 + }, + "indent-level": { + "active": 0, + "flagValue": 4 + }, + "indent-start": { + "active": 0, + "flagValue": 0 + }, + "inline-script": { + "active": 0, + "flagValue": -1 + }, + "join_vars": { + "active": 1, + "flagValue": -1 + }, + "keep_fargs": { + "active": 0, + "flagValue": -1 + }, + "loops": { + "active": 1, + "flagValue": -1 + }, + "mangle": { + "active": 1, + "flagValue": -1 + }, + "max-line-len": { + "active": 1, + "flagValue": 32000 + }, + "negate_iife": { + "active": 1, + "flagValue": -1 + }, + "properties": { + "active": 1, + "flagValue": -1 + }, + "pure_getters": { + "active": 0, + "flagValue": -1 + }, + "quote-keys": { + "active": 0, + "flagValue": -1 + }, + "screw-ie8": { + "active": 0, + "flagValue": -1 + }, + "semicolons": { + "active": 1, + "flagValue": -1 + }, + "sequences": { + "active": 1, + "flagValue": -1 + }, + "sort": { + "active": 0, + "flagValue": -1 + }, + "space-colon": { + "active": 1, + "flagValue": -1 + }, + "toplevel": { + "active": 0, + "flagValue": -1 + }, + "unsafe": { + "active": 0, + "flagValue": -1 + }, + "unused": { + "active": 0, + "flagValue": -1 + }, + "warnings": { + "active": 0, + "flagValue": -1 + }, + "width": { + "active": 1, + "flagValue": 80 + } + }, + "uglifyReservedNamesString": "$", + "websiteRelativeRoot": "" + }, +"settingsFileVersion": "2" +} \ No newline at end of file diff --git a/home/home-partial.html b/home/home-partial.html new file mode 100644 index 0000000..5bf22ea --- /dev/null +++ b/home/home-partial.html @@ -0,0 +1,29 @@ +
+
+
+
+
+ +
+
+

{{app['im:name'].label}}

+
+ ...more +
+
+ +
+
+
+
+

Fav Apps

+
    +
  • + {{cartItem["im:name"].label}} + x +
  • +
+
No Items Added to the Cart
+
+
+
\ No newline at end of file diff --git a/includes/css/style.css b/includes/css/style.css new file mode 100644 index 0000000..4e36bac --- /dev/null +++ b/includes/css/style.css @@ -0,0 +1,97 @@ +nav { + margin-top: 10px; +} +nav.navbar-default { + background: #8e44ad; + color: #ffffff !important; +} +nav .search-box { + float: right; + margin-top: 10px; +} +nav a.navbar-brand { + color: white !important; +} +nav #navbar ul li a { + color: #fff; +} +nav #navbar ul li.active a { + color: #8e44ad; +} +.app { + border: 1px solid #8e44ad; + border-radius: 6px; + padding: 20px; + margin-bottom: 10px; + background-color: #eee3f3; +} +.app .app-logo { + border: 1px solid #aaa; + border-radius: 50px; +} +.app h3 { + color: #8e44ad; + margin: 0 0 10px 0; + font-size: 18px; +} +.app .btn { + width: 100%; + margin-top: 20px; + display: none; +} +@media (max-width: 1024px) { + .app .btn { + display: block; + } +} +.app:hover .btn { + display: block; +} +.cart { + background-color: #8e44ad; + padding: 20px; + border-radius: 10px; + color: #fff; +} +.cart ul { + list-style: none; + padding-left: 0; +} +.cart ul li { + display: block; + padding: 5px 0; + border-bottom: 1px dashed #000; +} +.cart ul li:first-child { + border-top: 1px dashed #000; +} +.cart ul li span { + cursor: pointer; +} +#todo h1 { + color: #8e44ad; + font-size: 28px; + margin: 10px 0 10px; +} +#todo .table thead th { + color: #8e44ad; +} +#todo .table tbody tr td { + height: 50px; + vertical-align: middle; +} +#todo .task .task-item { + float: left; +} +#todo .task .delete { + display: none; + float: right; + margin: 0; +} +#todo .task:hover .delete { + display: block; +} +.btn.btn-primary { + background: #391b45; + border: 0; +} diff --git a/includes/js/min/page-scripts-min.js b/includes/js/min/page-scripts-min.js new file mode 100644 index 0000000..1113449 --- /dev/null +++ b/includes/js/min/page-scripts-min.js @@ -0,0 +1 @@ +!function(){"use strict";var o=angular.module("appStore",[]);o.controller("pageController",function(o){})}(); \ No newline at end of file diff --git a/includes/js/page-scripts.js b/includes/js/page-scripts.js new file mode 100644 index 0000000..e635371 --- /dev/null +++ b/includes/js/page-scripts.js @@ -0,0 +1,137 @@ +(function () { + 'use strict'; + + //Initiate module + var app = angular.module("appStore",['ngRoute']); + + app.config(['$routeProvider', + function ($routeProvider) { + $routeProvider + .when('/', { + controller: 'appController', + templateUrl: '/home/home-partial.html' + }) + .when('/about', { + controller: 'aboutController', + templateUrl: '/about/about-partial.html' + }) + .otherwise('/') + }]); + + app.controller("pageController",function($scope, $location){ + + $scope.isActive = function (viewLocation) { + return viewLocation === $location.path(); + }; + + }); + + app.controller("appController", function($scope, $http){ + //Call to get top 5 apps + $http.get('http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeapplications/sf=143441/limit=25/json'). + success(function(data, status, headers, config) { + $scope.appData = data.feed.entry; + }). + error(function(data, status, headers, config) { + // called asynchronously if an error occurs + // or server returns response with an error status. + }); + + if(localStorage.getItem("Cart")) { + $scope.Cart = JSON.parse(localStorage.getItem("Cart")); + } + else { + $scope.Cart={ + Items: [] + }; + } + + $scope.addtofav = addtofav; + + function addtofav(item){ + var index = $scope.Cart.Items.indexOf(item); + if(index==-1) { + $scope.Cart.Items.push(item); + } + else + alert("Item Already Added"); + + debugger; + localStorage.setItem("Cart", JSON.stringify($scope.Cart)); + } + + $scope.removeApp = removeApp; + + function removeApp(item) { + var index = $scope.Cart.Items.indexOf(item); + $scope.Cart.Items.splice(index, 1); + localStorage.setItem("Cart", JSON.stringify($scope.Cart)); + } + }); + + app.controller("aboutController",function($scope, $http){ + + $http.get('http://localhost:8080/todolist').success(function(response) { + //console.log("I got the data I requested"); + $scope.todolist = response; + }); + + $scope.task = { + taskname: "", + Done: false, + details: "" + } + + $scope.addTask = function() { + $http.post('http://localhost:8080/todolist', $scope.task).success(function(response){ + $http.get('http://localhost:8080/todolist').success(function(response) { + $scope.todolist = response; + }); + console.log(response); + $scope.task = { + taskname: "", + Done: false, + details: "" + } + }); + }; + + $scope.updateTask = function(task) { + $http.put('http://localhost:8080/todolist/'+task._id,task).success(function(response) { + }); + }; + + $scope.deleteTask = function(id) { + var x=confirm("Are you sure?") + if(x==true){ + $http.delete('http://localhost:8080/todolist/' + id).success(function(response) { + console.log(response); + $http.get('http://localhost:8080/todolist').success(function(response) { + $scope.todolist = response; + }); + }); + } + } + }); + + app.filter('Truncate', function () { + return function (text, length, end) { + if (!text) { + return ''; + } + if (isNaN(length)) + length = 10; + if (end === undefined) + end = ""; + if (text.length <= length || text.length - end.length <= length) + { return text; } + else + { + return String(text).substring(0, length - end.length) + end; + //return '

Bokachoda

Chutiyapa ka limit'; + } + } + }); + + +})(); \ No newline at end of file diff --git a/includes/less/style.less b/includes/less/style.less new file mode 100644 index 0000000..c600372 --- /dev/null +++ b/includes/less/style.less @@ -0,0 +1,127 @@ +@brand-primary: #8e44ad; + +nav { + margin-top: 10px; + &.navbar-default { + background: @brand-primary; + color: #fff !important +} + .search-box { + float: right; + margin-top: 10px; + } + a.navbar-brand { + color: white !important; + } + #navbar { + ul { + li { + a { + color: #fff; + } + &.active { + a { + color: @brand-primary; + } + } + } + } + } +} + +.app { + border:1px solid @brand-primary; + border-radius: 6px; + padding:20px; + margin-bottom: 10px; + background-color: mix(@brand-primary, white, 15%); + .app-logo { + border:1px solid #aaa; + border-radius: 50px; + } + h3 { + color: @brand-primary; + margin: 0 0 10px 0; + font-size: 18px; + } + .btn { + width: 100%; + margin-top: 20px; + display:none; + @media (max-width:1024px) { + display:block; + } + } + &:hover { + .btn { + display: block;; + } + } +} + +.cart { + background-color: @brand-primary; + padding:20px; + border-radius:10px; + color: #fff; + ul { + list-style: none; + padding-left: 0; + li { + display: block; + padding:5px 0; + border-bottom:1px dashed #000; + &:first-child { + border-top:1px dashed #000; + } + span { + cursor: pointer; + } + } + } +} + +#todo { + h1 { + color: @brand-primary; + font-size: 28px; + margin: 10px 0 10px; + } + .table { + thead { + th { + color: @brand-primary; + } + } + tbody { + tr { + td { + height: 50px; + vertical-align: middle; + } + } + } + } + .task { + .task-item { + float: left; + } + .delete { + display: none; + float: right; + margin:0; + } + &:hover{ + .delete{ + display: block; + } + } + } +} + +.btn { + &.btn-primary { + background: mix(@brand-primary,black,40%); + border:0; + } +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..2d2e54e --- /dev/null +++ b/index.html @@ -0,0 +1,47 @@ + + + + App Store + + + + + + + + + + + +
+ +
+
+ + + + + + + + + \ No newline at end of file -- libgit2 0.21.0