diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7a9dfa0 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/ProjctBC1/code-for-careers b/ProjctBC1/code-for-careers new file mode 100644 index 0000000..8c6c365 --- /dev/null +++ b/ProjctBC1/code-for-careers @@ -0,0 +1,143 @@ + + + + + + ChaudharySecurityCareers + + + + + + + + + + + + + + + + + + + + + +
+
+ +
Career
+
+
+
    +
  • WHATSAPP/MAIL on following number/website for Job Enquiry.
  • +
  • Phone: +91 9824062240, 9428399478
  • +
  • Email: css2017brd@gmail.com
  • +
+ +
+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/To-do list.html b/To-do list.html new file mode 100644 index 0000000..f7e994f --- /dev/null +++ b/To-do list.html @@ -0,0 +1,14 @@ +
+

My To Do List

+ + Add +
+ + \ No newline at end of file diff --git a/W2 D2/HTML-Website.html b/W2 D2/HTML-Website.html new file mode 100644 index 0000000..e659a65 --- /dev/null +++ b/W2 D2/HTML-Website.html @@ -0,0 +1,107 @@ + + +W3.CSS Template + + + + + + + +
+
+ Gourmet au Catering + +
+ About + Menu + Contact +
+
+
+ + +
+ Hamburger Catering +
+

Le Catering

+
+
+ + +
+ + +
+
+ Table Setting +
+ +
+

About Catering


+
Tradition since 1889
+

The Catering was founded in blabla by Mr. Smith in lorem ipsum dolor sit amet, consectetur adipiscing elit consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute iruredolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.We only use seasonal ingredients.

+

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur adipiscing elit, sed do eiusmod temporincididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

+
+
+ +
+ + + + +
+ + +
+

Contact


+

We offer full-service catering for any event, large or small. We understand your needs and we will cater the food to satisfy the biggerst criteria of them all, both look and taste. Do not hesitate to contact us.

+

Catering Service, 42nd Living St, 43043 New York, NY

+

You can also contact us by phone 00553123-2323 or email catering@catering.com, or you can send us a message here:

+
+

+

+

+

+

+
+
+ + +
+ + + + + + \ No newline at end of file diff --git a/W2-D4/for-loops b/W2-D4/for-loops new file mode 100644 index 0000000..384771d --- /dev/null +++ b/W2-D4/for-loops @@ -0,0 +1,11 @@ +for (var x=0; x<=99; x++) { + if (x === 0) { + console.log(x + " is even"); + } + else if (x % 2 === 0) { + console.log(x + " is even"); + } + else { + console.log(x + " is odd"); + } +} \ No newline at end of file diff --git a/gulp_tasks/babel.js b/gulp_tasks/babel.js deleted file mode 100644 index afb21c9..0000000 --- a/gulp_tasks/babel.js +++ /dev/null @@ -1,19 +0,0 @@ -// Compile ES6 code -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - babel = require('gulp-babel'); - - -// Compile ES6 -gulp.task('babel:main', function() { - return gulp.src([ - paths.build.js + '/*.min.js' - ]) - .pipe(plumber()) - .pipe(babel({ - presets: ['es2015'], - babelrc: false - })) - .pipe(gulp.dest(paths.build.js)); -}); diff --git a/gulp_tasks/browserSync.js b/gulp_tasks/browserSync.js deleted file mode 100644 index c0611dd..0000000 --- a/gulp_tasks/browserSync.js +++ /dev/null @@ -1,15 +0,0 @@ -// Static server for theme dev -var gulp = require('gulp'), - paths = require('./config/paths'), - browserSync = require('browser-sync'); - -// Static server -gulp.task('browserSync:server', function() { - browserSync({ - server: paths.build.main - }); -}); - -gulp.task('browserSync:reload', function() { - return browserSync.reload(); -}); diff --git a/gulp_tasks/clean.js b/gulp_tasks/clean.js deleted file mode 100644 index 70154e0..0000000 --- a/gulp_tasks/clean.js +++ /dev/null @@ -1,11 +0,0 @@ -// Delete files/folders using globs -var gulp = require('gulp'), - paths = require('./config/paths'), - del = require('del'), - vinylPaths = require('vinyl-paths'); - - -gulp.task('clean:gitkeep', function() { - return gulp.src([paths.dev.main + '/**/.gitkeep', paths.build.main + '/**/.gitkeep'], { read: false }) - .pipe(vinylPaths(del)); -}); diff --git a/gulp_tasks/cmq.js b/gulp_tasks/cmq.js deleted file mode 100644 index add7985..0000000 --- a/gulp_tasks/cmq.js +++ /dev/null @@ -1,16 +0,0 @@ -// Combine matching media queries into one media query definition -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - cmq = require('gulp-merge-media-queries'); - - -//Combine media queries in result *.css files -gulp.task('cmq:main', function () { - return gulp.src(paths.build.css + '/*.min.css') - .pipe(plumber()) - .pipe(cmq({ - log: false - })) - .pipe(gulp.dest(paths.build.css)); -}); diff --git a/gulp_tasks/coffee.js b/gulp_tasks/coffee.js deleted file mode 100644 index e21f3d1..0000000 --- a/gulp_tasks/coffee.js +++ /dev/null @@ -1,27 +0,0 @@ -// Coffeescript plugin for gulp -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - changed = require('gulp-changed'), - coffee = require('gulp-coffee'), - rename = require('gulp-rename'); - - -//Compile main *.coffee files -gulp.task('coffee:main', function() { - return gulp.src([paths.dev.coffee + '/*.coffee']) - .pipe(plumber()) - .pipe(coffee({bare: true})) - .pipe(rename({suffix: '.coffee'})) - .pipe(gulp.dest(paths.dev.js + '/lib')); -}); - -//Compile main *.coffee files within watch task -gulp.task('coffee:main:changed', function() { - return gulp.src([paths.dev.coffee + '/*.coffee']) - .pipe(plumber()) - .pipe(changed(paths.dev.js + '/lib', {extension: '.coffee.js'})) - .pipe(coffee({bare: true})) - .pipe(rename({suffix: '.coffee'})) - .pipe(gulp.dest(paths.dev.js + '/lib')); -}); diff --git a/gulp_tasks/config/aliases.js b/gulp_tasks/config/aliases.js deleted file mode 100644 index 3bd9033..0000000 --- a/gulp_tasks/config/aliases.js +++ /dev/null @@ -1,64 +0,0 @@ -// Include gulp -var gulp = require('gulp'), - runSequence = require('run-sequence'); - -// Install bower dependencies and place them to dev folders -gulp.task('start', function() { - runSequence( - 'clean:gitkeep' - ); -}); - -// Dev task with static server -gulp.task('dev', function() { - runSequence( - // 'coffee:main', - // 'rollup:main', - // 'babel:main', - // 'sass:main', - 'stylus:main', - 'postcss:dev', - 'cmq:main', - 'pug:main', - 'sync:helpers', - 'sync:fonts', - 'sync:images', - 'browserSync:server', - 'watch' - ); -}); - -// Build task -gulp.task('build', function() { - runSequence( - 'imagemin:main', - 'uglify:main', - 'postcss:build', - 'htmlmin:main', - 'browserSync:server' - ); -}); - -// Regenerate and build project by running all tasks -gulp.task('rebuild', function() { - runSequence( - // 'coffee:main', - // 'rollup:main', - // 'babel:main', - // 'sass:main', - 'stylus:main', - 'postcss:dev', - 'cmq:main', - 'pug:main', - 'sync:helpers', - 'sync:fonts', - 'sync:images', - 'imagemin:main', - 'uglify:main', - 'postcss:build', - 'htmlmin:main' - ); -}); - -// Run server without watching for changes -gulp.task('server', ['browserSync:server']); diff --git a/gulp_tasks/config/paths.js b/gulp_tasks/config/paths.js deleted file mode 100644 index 22dfbe3..0000000 --- a/gulp_tasks/config/paths.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - // Dev paths - dev: { - main: 'dev', - coffee: 'dev/coffee', - js: 'dev/js', - jade: 'dev/jade', - pug: 'dev/pug', - sass: 'dev/sass', - stylus: 'dev/stylus', - images: 'dev/images', - fonts: 'dev/fonts', - helpers: 'dev/helpers', - data: 'dev/data' - }, - // Build paths - build: { - main: 'build', - html: 'build', - css: 'build/static/css', - fonts: 'build/static/fonts', - images: 'build/static/images', - js: 'build/static/js' - } -}; diff --git a/gulp_tasks/htmlmin.js b/gulp_tasks/htmlmin.js deleted file mode 100644 index 1c4c71a..0000000 --- a/gulp_tasks/htmlmin.js +++ /dev/null @@ -1,14 +0,0 @@ -// Gulp plugin to minify HTML -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - htmlmin = require('gulp-htmlmin'); - - -//Minify *.html files -gulp.task('htmlmin:main', function() { - return gulp.src(paths.build.main + '/*.html') - .pipe(plumber()) - .pipe(htmlmin({collapseWhitespace: true})) - .pipe(gulp.dest(paths.build.main)); -}); diff --git a/gulp_tasks/imagemin.js b/gulp_tasks/imagemin.js deleted file mode 100644 index 972f997..0000000 --- a/gulp_tasks/imagemin.js +++ /dev/null @@ -1,17 +0,0 @@ -// Minify PNG, JPEG, GIF and SVG images -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - imagemin = require('gulp-imagemin'); - - -// Minify image files -gulp.task('imagemin:main', function () { - return gulp.src(paths.dev.images + '/**/*.{png,jpg,gif,svg}') - .pipe(plumber()) - .pipe(imagemin({ - progressive: true, - optimizationLevel: 7 - })) - .pipe(gulp.dest(paths.build.images)); -}); diff --git a/gulp_tasks/postcss.js b/gulp_tasks/postcss.js deleted file mode 100644 index 4396fca..0000000 --- a/gulp_tasks/postcss.js +++ /dev/null @@ -1,40 +0,0 @@ -// Transforming styles with JS plugins -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - postcss = require('gulp-postcss'), - autoprefixer = require('autoprefixer'), - csso = require('postcss-csso'); - - -gulp.task('postcss:dev', function () { - var processors = [ - autoprefixer({ - browsers: [ - '> 1%', - 'last 30 versions', - 'Opera 12.1', - 'Explorer > 7', - 'Safari >= 5' - ], - cascade: true - }) - ]; - return gulp.src(paths.build.css + '/*.min.css') - .pipe(plumber()) - .pipe(postcss(processors)) - .pipe(gulp.dest(paths.build.css)); -}); - -gulp.task('postcss:build', function () { - var processors = [ - csso({ - keepSpecialComments: '*', - restructure: false - }) - ]; - return gulp.src(paths.build.css + '/*.min.css') - .pipe(plumber()) - .pipe(postcss(processors)) - .pipe(gulp.dest(paths.build.css)); -}); diff --git a/gulp_tasks/pug.js b/gulp_tasks/pug.js deleted file mode 100644 index b34a428..0000000 --- a/gulp_tasks/pug.js +++ /dev/null @@ -1,51 +0,0 @@ -// Compile pug/jade templates with gulp build tool -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - changed = require('gulp-changed'), - data = require('gulp-data'), - fs = require('fs'), - pug = require('gulp-pug'), - dataObject = function() { - var files = fs.readdirSync(paths.dev.data), - obj = {}; - - for (var i in files) { - var key = files[i].substr(0, files[i].lastIndexOf('.')), - val = JSON.parse(fs.readFileSync(paths.dev.data + '/' + files[i])); - - obj[key] = val; - } - - return obj; - }; - - -//Compile *.pug files -gulp.task('pug:main', function() { - return gulp.src([paths.dev.jade + '/pages/*.jade', paths.dev.pug + '/pages/*.pug']) - .pipe(plumber()) - .pipe(data(dataObject)) - .pipe(pug({ - client: false, - pretty: true - }).on('error', function(err) { - console.log(err); - })) - .pipe(gulp.dest(paths.build.html)); -}); - -//Compile *.pug files within watch task -gulp.task('pug:main:changed', function() { - return gulp.src([paths.dev.jade + '/pages/*.jade', paths.dev.pug + '/pages/*.pug']) - .pipe(plumber()) - .pipe(changed(paths.build.html, {extension: '.html'})) - .pipe(data(dataObject)) - .pipe(pug({ - client: false, - pretty: true - }).on('error', function(err) { - console.log(err); - })) - .pipe(gulp.dest(paths.build.html)); -}); diff --git a/gulp_tasks/rigger.js b/gulp_tasks/rigger.js deleted file mode 100644 index 56a5ee1..0000000 --- a/gulp_tasks/rigger.js +++ /dev/null @@ -1,19 +0,0 @@ -// Streaming concat middleware for gulp -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - rigger = require('gulp-rigger'), - rename = require('gulp-rename'); - - -// Concatenate & Minify JS -gulp.task('rigger:main', function() { - return gulp.src([ - paths.dev.js + '/*.js', - '!' + paths.dev.js + '/*.min.js' - ]) - .pipe(plumber()) - .pipe(rigger()) - .pipe(rename({suffix: '.min'})) - .pipe(gulp.dest(paths.build.js)); -}); diff --git a/gulp_tasks/rollup.js b/gulp_tasks/rollup.js deleted file mode 100644 index 8ecc3a1..0000000 --- a/gulp_tasks/rollup.js +++ /dev/null @@ -1,28 +0,0 @@ -// Next-generation ES6 module bundler -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - rollup = require('gulp-rollup'), - babel = require('rollup-plugin-babel'), - rename = require('gulp-rename'); - - -// Bundle ES6 modules. -gulp.task('rollup:main', function() { - return gulp.src(paths.dev.js + '/**/*.js') - .pipe(plumber()) - .pipe(rollup({ - entry: [ - paths.dev.js + '/body.js', - paths.dev.js + '/head.js' - ], - plugins: [ - babel({ - exclude: 'node_modules/**', - presets: ['es2015-rollup'] - }) - ] - })) - .pipe(rename({suffix: '.min'})) - .pipe(gulp.dest(paths.build.js)); -}); diff --git a/gulp_tasks/sass.js b/gulp_tasks/sass.js deleted file mode 100644 index 9d79702..0000000 --- a/gulp_tasks/sass.js +++ /dev/null @@ -1,26 +0,0 @@ -// SASS plugin for gulp -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - changed = require('gulp-changed'), - sass = require('gulp-sass'), - rename = require('gulp-rename'); - -//Compile *.scss files -gulp.task('sass:main', function () { - return gulp.src(paths.dev.sass + '/*.{sass,scss}') - .pipe(plumber()) - .pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError)) - .pipe(rename({suffix: '.min'})) - .pipe(gulp.dest(paths.build.css)); -}); - -//Compile *.scss files within watch task -gulp.task('sass:main:changed', function () { - return gulp.src(paths.dev.sass + '/*.{sass,scss}') - .pipe(plumber()) - .pipe(changed(paths.build.css, {extension: '.min.css'})) - .pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError)) - .pipe(rename({suffix: '.min'})) - .pipe(gulp.dest(paths.build.css)); -}); diff --git a/gulp_tasks/sprite.js b/gulp_tasks/sprite.js deleted file mode 100644 index 5a3f0a0..0000000 --- a/gulp_tasks/sprite.js +++ /dev/null @@ -1,56 +0,0 @@ -// Grunt task for converting a set of images into a spritesheet and corresponding CSS variables -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - spritesmith = require('gulp.spritesmith'), - merge = require('merge-stream'); - - -// Minify image files -gulp.task('sprite:sass', function () { - var spriteData = gulp.src([ - paths.dev.images + '/sprite/*.png', - '!' + paths.dev.images + '/sprite/sprite.png' - ]) - .pipe(plumber()) - .pipe(spritesmith({ - imgName: 'sprite.png', - imgPath: '../images/sprite/sprite.png', - cssName: 'sprite.sass', - algorithm: 'left-right', - algorithmOpts: {sort: false}, - padding: 5 - })) - - var imgStream = spriteData.img - .pipe(gulp.dest(paths.dev.images + '/sprite')); - - var cssStream = spriteData.css - .pipe(gulp.dest(paths.dev.sass + '/helpers')); - - return merge(imgStream, cssStream); -}); - -gulp.task('sprite:stylus', function () { - var spriteData = gulp.src([ - paths.dev.images + '/sprite/*.png', - '!' + paths.dev.images + '/sprite/sprite.png' - ]) - .pipe(plumber()) - .pipe(spritesmith({ - imgName: 'sprite.png', - imgPath: '../images/sprite/sprite.png', - cssName: 'sprite.styl', - algorithm: 'left-right', - algorithmOpts: {sort: false}, - padding: 5 - })) - - var imgStream = spriteData.img - .pipe(gulp.dest(paths.dev.images + '/sprite')); - - var cssStream = spriteData.css - .pipe(gulp.dest(paths.dev.stylus + '/helpers')); - - return merge(imgStream, cssStream); -}); diff --git a/gulp_tasks/stylus.js b/gulp_tasks/stylus.js deleted file mode 100644 index 398cc67..0000000 --- a/gulp_tasks/stylus.js +++ /dev/null @@ -1,27 +0,0 @@ -// Compile Stylus with gulp -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - changed = require('gulp-changed'), - stylus = require('gulp-stylus'), - rename = require('gulp-rename'); - - -//Compile *.scss files -gulp.task('stylus:main', function () { - return gulp.src(paths.dev.stylus + '/*.styl') - .pipe(plumber()) - .pipe(stylus()) - .pipe(rename({suffix: '.min'})) - .pipe(gulp.dest(paths.build.css)); -}); - -//Compile *.scss files within watch task -gulp.task('stylus:main:changed', function () { - return gulp.src(paths.dev.stylus + '/*.styl') - .pipe(plumber()) - .pipe(changed(paths.build.css, {extension: '.min.css'})) - .pipe(stylus()) - .pipe(rename({suffix: '.min'})) - .pipe(gulp.dest(paths.build.css)); -}); diff --git a/gulp_tasks/sync.js b/gulp_tasks/sync.js deleted file mode 100644 index dc2fab6..0000000 --- a/gulp_tasks/sync.js +++ /dev/null @@ -1,51 +0,0 @@ -// Copy assets -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'); - - -// Copy some helpers and devtools. -// Credits to @jbdemonte https://github.com/gulpjs/gulp/issues/151 -gulp.task('sync:fonts', function() { - return gulp.src([paths.dev.fonts + '/**/*.{eot,svg,ttf,otf,woff,woff2}'], {base: paths.dev.fonts}) - .pipe(plumber()) - .pipe(gulp.dest(paths.build.fonts)); -}); - -gulp.task('sync:helpers', function() { - return gulp.src([ - paths.dev.helpers + '/**/', - paths.dev.helpers + '/.htaccess' - ], {base: paths.dev.helpers}) - .pipe(plumber()) - .pipe(gulp.dest(paths.build.main)); -}); - -gulp.task('sync:images', function() { - return gulp.src([paths.dev.images + '/**/*.*'], {base: paths.dev.images}) - .pipe(plumber()) - .pipe(gulp.dest(paths.build.images)); -}); - - -// Copy some helpers and devtools within watch task -gulp.task('sync:fonts:changed', function() { - return gulp.src([paths.dev.fonts + '/**/*.{eot,svg,ttf,otf,woff,woff2}'], {base: paths.dev.fonts}) - .pipe(plumber()) - .pipe(gulp.dest(paths.build.fonts)); -}); - -gulp.task('sync:helpers:changed', function() { - gulp.src([ - paths.dev.helpers + '/**/', - paths.dev.helpers + '/.htaccess' - ], {base: paths.dev.helpers}) - .pipe(plumber()) - .pipe(gulp.dest(paths.build.main)); -}); - -gulp.task('sync:images:changed', function() { - return gulp.src([paths.dev.images + '/**/*.*'], {base: paths.dev.images}) - .pipe(plumber()) - .pipe(gulp.dest(paths.build.images)); -}); diff --git a/gulp_tasks/uglify.js b/gulp_tasks/uglify.js deleted file mode 100644 index 0368045..0000000 --- a/gulp_tasks/uglify.js +++ /dev/null @@ -1,13 +0,0 @@ -// Minify JavaScript with UglifyJS2 -var gulp = require('gulp'), - paths = require('./config/paths'), - plumber = require('gulp-plumber'), - uglify = require('gulp-uglify'); - - -gulp.task('uglify:main', function() { - return gulp.src(paths.build.js + '/*.min.js') - .pipe(plumber()) - .pipe(uglify()) - .pipe(gulp.dest(paths.build.js)); -}); diff --git a/gulp_tasks/watch.js b/gulp_tasks/watch.js deleted file mode 100644 index 0af1831..0000000 --- a/gulp_tasks/watch.js +++ /dev/null @@ -1,112 +0,0 @@ -// File watcher that uses super-fast chokidar and emits vinyl objects -var gulp = require('gulp'), - paths = require('./config/paths'), - runSequence = require('run-sequence'); - - -// Watch Files For Changes -gulp.task('watch', function() { - gulp.watch( - paths.dev.coffee + '/*.coffee', - function() { - runSequence( - 'coffee:main:changed', - 'rollup:main', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - [ - paths.dev.js + '/*.js', - paths.dev.js + '/lib/*.js' - ], - function() { - runSequence( - 'rollup:main', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - paths.dev.sass + '/**/*.{sass,scss}', - function() { - runSequence( - 'sass:main', - 'postcss:dev', - 'cmq:main', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - paths.dev.stylus + '/**/*.styl', - function() { - runSequence( - 'stylus:main', - 'postcss:dev', - 'cmq:main', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - paths.dev.data + '/*.*', - function() { - runSequence( - 'pug:main', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - [ - paths.dev.pug + '/**/*.pug', - paths.dev.jade + '/**/*.jade' - ], - function() { - runSequence( - 'pug:main', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - paths.dev.images + '/**/*.*', - function() { - runSequence( - 'sync:images:changed', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - paths.dev.fonts + '/**/*.{eot,svg,ttf,otf,woff,woff2}', - function() { - runSequence( - 'sync:fonts:changed', - 'browserSync:reload' - ); - } - ); - - gulp.watch( - [ - paths.dev.helpers + '/**/*.*', - paths.dev.helpers + '/.htaccess' - ], - function() { - runSequence( - 'sync:helpers:changed', - 'browserSync:reload' - ); - } - ); -}); diff --git a/gymwebsite/Style.css b/gymwebsite/Style.css new file mode 100644 index 0000000..88ec978 --- /dev/null +++ b/gymwebsite/Style.css @@ -0,0 +1,43 @@ +body { + color: blueviolet; + background-color: burlywood; + font-family: 'Times New Roman', Times, serif; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + color: cornflowerblue; +} + +a { + color: cyan; + transition: cubic-bezier(0.075, 0.82, 0.165, 1); +} + +a:hover, +a:active, +a:focus { + color: darkolivegreen; + outline: darkseagreen; + text-decoration: deeppink; +} + +.button { + background-color: firebrick; + border: fuchsia; + padding: 15px 32px; + text-shadow: gold; + text-align: center; + text-decoration: indigo; + display: inline-flex; + font-size: large; + + +} + + + \ No newline at end of file diff --git a/gymwebsite/gymwebsite.js b/gymwebsite/gymwebsite.js new file mode 100644 index 0000000..0255a42 --- /dev/null +++ b/gymwebsite/gymwebsite.js @@ -0,0 +1,23 @@ +(Function($){ + "use strict"; + + // Back to top button + $(window).scroll(function () { + if ($(this).scrolltop() > 200 { + $('.back-to-top').FadeIn('slow'); + } else { + $(',back-to-top').FadeOut('fast'); + } + }); + $('.back-to-top').click(function () { + $('html,body').animate({scrolltop: 0}, 1500, 'easeInOutExpo'); + return false; + + + }); + + + + + + \ No newline at end of file diff --git a/screenshots/pic.jpg b/screenshots/pic.jpg deleted file mode 100644 index 349953c..0000000 Binary files a/screenshots/pic.jpg and /dev/null differ diff --git a/week 4 day 2/Fruit b/week 4 day 2/Fruit new file mode 100644 index 0000000..2c1f29d --- /dev/null +++ b/week 4 day 2/Fruit @@ -0,0 +1,44 @@ + clas Fruit { + fruitname="fruit"; + hownutritious = "unknown"; + constructor(name){ + this.fruitname = name; + this.calculateNutrition(); + } + + speak = function () { + console.log("Hey my name is " + this.name); + }; + + calculateNutrition = function () { + if (this.fruitname === "Apple") { + this.hownutritious = "very"; + } else if (this.fruitname === "Banana") { + this.hownutritious = "pretty"; + } else { + this.hownutritious = "not very"; + } + + }; + sayNutrition() { + console.log("This " + this.fruitname + " is " + hownutritious + ""); + } + } + + let apple = new Fruit("Apple"); + let banan = new Fruit("Banana"); + + console.log("Our first fruit is named: " + apple.name); + + console.log("Our second fruit is named: " + banan.name); + + apple.speak(); + banan.speak(); + + class Animal { + legs = 0; + brain = "regular" + speak = function() { + console.log("I'm an animal"); + }; + } diff --git a/week 4 day 2/Index b/week 4 day 2/Index new file mode 100644 index 0000000..56efbdb --- /dev/null +++ b/week 4 day 2/Index @@ -0,0 +1,12 @@ + + + + + + + Document + + + + + \ No newline at end of file diff --git a/week 4 day 2/The to-do list.css b/week 4 day 2/The to-do list.css new file mode 100644 index 0000000..81a8b02 --- /dev/null +++ b/week 4 day 2/The to-do list.css @@ -0,0 +1,114 @@ +/* Include the padding and border in an element's total width and height */ +* { + box-sizing: border-box; + } + + /* Remove margins and padding from the list */ + ul { + margin: 0; + padding: 0; + } + + /* Style the list items */ + ul li { + cursor: pointer; + position: relative; + padding: 12px 8px 12px 40px; + background: #eee; + font-size: 18px; + transition: 0.2s; + + /* make the list items unselectable */ + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + + /* Set all odd list items to a different color (zebra-stripes) */ + ul li:nth-child(odd) { + background: #f9f9f9; + } + + /* Darker background-color on hover */ + ul li:hover { + background: #ddd; + } + + /* When clicked on, add a background color and strike out text */ + ul li.checked { + background: #888; + color: #fff; + text-decoration: line-through; + } + + /* Add a "checked" mark when clicked on */ + ul li.checked::before { + content: ''; + position: absolute; + border-color: #fff; + border-style: solid; + border-width: 0 2px 2px 0; + top: 10px; + left: 16px; + transform: rotate(45deg); + height: 15px; + width: 7px; + } + + /* Style the close button */ + .close { + position: absolute; + right: 0; + top: 0; + padding: 12px 16px 12px 16px; + } + + .close:hover { + background-color: #f44336; + color: white; + } + + /* Style the header */ + .header { + background-color: #f44336; + padding: 30px 40px; + color: white; + text-align: center; + } + + /* Clear floats after the header */ + .header:after { + content: ""; + display: table; + clear: both; + } + + /* Style the input */ + input { + margin: 0; + border: none; + border-radius: 0; + width: 75%; + padding: 10px; + float: left; + font-size: 16px; + } + + /* Style the "Add" button */ + .addBtn { + padding: 10px; + width: 25%; + background: #d9d9d9; + color: #555; + float: left; + text-align: center; + font-size: 16px; + cursor: pointer; + transition: 0.3s; + border-radius: 0; + } + + .addBtn:hover { + background-color: #bbb; + } \ No newline at end of file