├── README.md ├── .DS_Store ├── package.json ├── Gruntfile.js └── htdocs └── assets ├── css └── style.css └── js └── custom.min.js /README.md: -------------------------------------------------------------------------------- 1 | ## Website for JoshBertrand.com 2 | Dis gun be gud -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkh44/jbdevelopment/master/.DS_Store -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JoshBertrand.com", 3 | "version": "0.0.1", 4 | "description": "Porfolio Site", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/JBinc/jbdevelopment.git" 12 | }, 13 | "keywords": [ 14 | "web", 15 | "development", 16 | "web", 17 | "design" 18 | ], 19 | "author": "Josh Bertrand", 20 | "license": "BSD", 21 | "devDependencies": { 22 | "grunt": "~0.4.1", 23 | "grunt-contrib-less": "~0.8.1", 24 | "grunt-contrib-watch": "~0.5.3", 25 | "grunt-contrib-uglify": "~0.2.4" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | 3 | // Project configuration. 4 | grunt.initConfig({ 5 | pkg: grunt.file.readJSON('package.json'), 6 | uglify: { 7 | build: { 8 | src: 'build/js/custom.js', 9 | dest: 'htdocs/assets/js/custom.min.js' 10 | } 11 | }, 12 | less: { 13 | development: { 14 | options: { 15 | paths: ["build/less"] 16 | }, 17 | files: { 18 | "htdocs/assets/css/style.css": "build/less/main.less" 19 | } 20 | } 21 | }, 22 | watch: { 23 | files: "build/less/*", 24 | tasks: ["less"] 25 | } 26 | }); 27 | 28 | // Load Plugins 29 | grunt.loadNpmTasks('grunt-contrib-uglify'); 30 | grunt.loadNpmTasks('grunt-contrib-watch'); 31 | grunt.loadNpmTasks('grunt-contrib-less'); 32 | 33 | // Default task(s). 34 | grunt.registerTask('default', ['uglify']); 35 | 36 | }; -------------------------------------------------------------------------------- /htdocs/assets/css/style.css: -------------------------------------------------------------------------------- 1 | .animation-setup { 2 | transform: translate3d(0, 0, 0) scale3d(1, 1, 1); 3 | -webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1); 4 | -webkit-backface-visibility: hidden; 5 | -webkit-transform-style: preserve-3d; 6 | } 7 | .animate-fast { 8 | -webkit-transition: all .3s; 9 | transition: all .3s; 10 | } 11 | .animate-slide { 12 | -webkit-transition: all 0.5s ease-in-out; 13 | transition: all 0.5s ease-in-out; 14 | } 15 | .animate-slide-left { 16 | -webkit-transition: all 0.5s ease-in-out; 17 | transition: all 0.5s ease-in-out; 18 | -webkit-transform: translateX(-100%); 19 | transform: translateX(-100%); 20 | } 21 | .animate-slide-right { 22 | -webkit-transition: all 0.5s ease-in-out; 23 | transition: all 0.5s ease-in-out; 24 | -webkit-transform: translateX(100%); 25 | transform: translateX(100%); 26 | } 27 | .animation-position { 28 | position: absolute; 29 | width: 100%; 30 | } 31 | .slideUp { 32 | border: none !important; 33 | overflow: hidden !important; 34 | padding: 0 !important; 35 | margin: 0 !important; 36 | } 37 | /*Custom Styles*/ 38 | -------------------------------------------------------------------------------- /htdocs/assets/js/custom.min.js: -------------------------------------------------------------------------------- 1 | var tacoApp=angular.module("tacoApp",["TacoModel","hmTouchevents"]);tacoApp.controller("IndexCtrl",function(a,b){a.tacos=[],a.open=function(a){webView=new steroids.views.WebView("/views/taco/show.html?id="+a),steroids.layers.push(webView)},a.loadTacos=function(){a.loading=!0,c.getList().then(function(b){a.tacos=b,a.loading=!1})};var c=b.all("taco");a.loadTacos(),window.addEventListener("message",function(b){"reload"===b.data.status&&a.loadTacos()}),steroids.view.navigationBar.show("Taco index");var d=new steroids.buttons.NavigationBarButton;d.title="Add",d.onTap=function(){var a=new steroids.views.WebView("/views/taco/new.html");steroids.modal.show(a)},steroids.view.navigationBar.setButtons({right:[d]})}),tacoApp.controller("ShowCtrl",function(a,b){a.loadTaco=function(){a.loading=!0,c.get().then(function(b){a.taco=b,a.loading=!1})},localStorage.setItem("currentTacoId",steroids.view.params.id);var c=b.one("taco",steroids.view.params.id);a.loadTaco(),window.addEventListener("message",function(b){"reload"===b.data.status&&a.loadTaco()}),steroids.view.navigationBar.show("Taco: "+steroids.view.params.id);var d=new steroids.buttons.NavigationBarButton;d.title="Edit",d.onTap=function(){webView=new steroids.views.WebView("/views/taco/edit.html"),steroids.modal.show(webView)},steroids.view.navigationBar.setButtons({right:[d]})}),tacoApp.controller("NewCtrl",function(a,b){a.close=function(){steroids.modal.hide()},a.create=function(c){a.loading=!0,b.all("taco").post(c).then(function(){var b={status:"reload"};window.postMessage(b,"*"),a.close(),a.loading=!1},function(){a.loading=!1,alert("Error when creating the object, is Restangular configured correctly, are the permissions set correctly?")})},a.taco={}}),tacoApp.controller("EditCtrl",function(a,b){var c=localStorage.getItem("currentTacoId"),d=b.one("taco",c);a.close=function(){steroids.modal.hide()},a.update=function(b){a.loading=!0,b.put().then(function(){var b={status:"reload"};window.postMessage(b,"*"),a.close(),a.loading=!1},function(){a.loading=!1,alert("Error when editing the object, is Restangular configured correctly, are the permissions set correctly?")})},a.loadTaco=function(){a.loading=!0,d.get().then(function(b){a.taco=b,a.loading=!1})},a.loadTaco()}); --------------------------------------------------------------------------------